mirror of
https://github.com/4IceG/luci-app-3ginfo-lite.git
synced 2026-04-25 11:25:50 +03:00
[GH-ISSUE #124] 3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/12d1155e: line 94: arithmetic syntax error #99
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/luci-app-3ginfo-lite#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ZAV-8 on GitHub (May 22, 2025).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/124
Hello,
script 3ginfo.sh and 3ginfo-lite menu works only in LTE mode (Network mode in interface settings set in Prefer LTE or LTE).
Any another mode (Prefer UMTS or UMTS/GPRS and etc) in interface settings give error script
/usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/12d1155e: line 94: arithmetic syntax error
and
OpenWrt 3ginfo-lite page give next errors:
SyntaxError Unexpected end of JSON input
Error: Unexpected end of JSON input
luci-app-3ginfo-lite version is 1.0.75-r20250517
@4IceG commented on GitHub (May 23, 2025):
Hi,
Scripts support only WCDMA and LTE mode.
You didn't show the results of the diagnostics, so I don't see the error.
@ZAV-8 commented on GitHub (May 23, 2025):
Debug output:
+CPIN: READY
+CSQ: 13,0
+COPS: 0,0,"MTS BY",2
+COPS: 0,2,"25702",2
+CREG: 2,1,"00D3","00D09A81",6
OK
'
uci show modemdefine
wc+ -l
xargs
uci show network
cut -f2 -d.
cut -f2 -d.
SEC=
'[' -n ]
getpath /dev/ttyUSB2
basename /dev/ttyUSB2
devname=ttyUSB2
readlink -f /sys/class/tty/ttyUSB2/device
devpath=/sys/devices/platform/ahb/1b000000.usb/usb1/1-1/1-1:1.2/ttyUSB2
P=/sys/devices/platform/ahb/1b000000.usb/usb1/1-1
'[' x/sys/devices/platform/ahb/1b000000.usb/usb1/1-1 '==' x/sys/devices/platform/ahb/1b000000.usb/usb1/1-1 ]
network
cut -f2 -d.
SEC=modemwan
'[' -n modemwan ]
break
CONN_TIME=-
RX=-
TX=-
NETUP=' "up": true,'
'[' -n ' "up": true,' ]
uci -q -P /var/state/ get network.modemwan.connect_time
CT=
'[' -z ]
xargsawk
'-F[:,]' '/uptime/ {print $2}'
CT=330
'[' '!' -z 330 ]
expr 330 / 60 / 60 / 24
D=0
expr 330 / 60 / 60 '%' 24
H=0
expr 330 / 60 '%' 60
M=5
expr 330 '%' 60
S=30
printf '%dd, %02d:%02d:%02d' 0 0 5 30
CONN_TIME='0d, 00:05:30'
date '+%s'
date '+%Y%m%d%H%M%S' -d @1748011669
CONN_TIME_SINCE=20250523144749
modemwan
IFACE=wwan0
'[' -n wwan0 ]
awk '-F[()]' '/bytes/ {printf "%s",$2}'
RX='3.8 MiB'
awk '-F[()]' '/bytes/ {printf "%s",$4}'
TX='947.7 KiB'
+CPIN: READY
+CSQ: 13,0
+COPS: 0,0,"MTS BY",2
+COPS: 0,2,"25702",2
+CREG: 2,1,"00D3","00D09A81",6
OK
'
awk '-F[, ]' '/^+CSQ/ {print $2}'
+CPIN: READY
+CSQ: 13,0
+COPS: 0,0,"MTS BY",2
+COPS: 0,2,"25702",2
+CREG: 2,1,"00D3","00D09A81",6
OK
'+
awk '-F["]' '/^+COPS:\s*.,2/ {print $2}'
+CPIN: READY
+CSQ: 13,0
+COPS: 0,0,"MTS BY",2
+COPS: 0,2,"25702",2
+CREG: 2,1,"00D3","00D09A81",6
OK
'
awk '-F["]' '/^+COPS:\s*.,0/ {print $2}'
echo 'MTS BY'
sms_tool -d /dev/ttyUSB2 at 'AT+COPS?'+
cut -d '"' -f2
tr -d '\r'
+CPIN: READY
+CSQ: 13,0
+COPS: 0,0,"MTS BY",2
+COPS: 0,2,"25702",2
+CREG: 2,1,"00D3","00D09A81",6
OK
'
xargsawk
'-F[, ]' '/^+CPIN:/ {print $0;exit}'
+CPIN: READY
+CSQ: 13,0
+COPS: 0,0,"MTS BY",2
+COPS: 0,2,"25702",2
+CREG: 2,1,"00D3","00D09A81",6
OK
'awk
'-F[, ]' '/^+CME ERROR:/ {print $0;exit}'
+CPIN: READY
+CSQ: 13,0
+COPS: 0,0,"MTS BY",2
+COPS: 0,2,"25702",2
+CREG: 2,1,"00D3","00D09A81",6
OK
'
busybox awk '-F[,]' '/^+CREG/ {gsub(/[[:space:]"]+/,"");printf "T="%d";LAC_HEX="%X";CID_HEX="%X";LAC_DEC="%d";CID_DEC="%d";MODE_NUM="%d"", $2, "0x"$3, "0x"$4, "0x"$3, "0x"$4, $5}'
'
'
sed 's/[^A-F0-9]//g'
awk '-F[,]' '/^+CEREG/ {printf "%s", toupper($3)}'
grep -q 192.168.
^CHIPTEMP: 373,373,65535,30,65535
^HCSQ:"WCDMA",42,35,51
^ICCID: 89375027010070487051
'
^CHIPTEMP: 373,373,65535,30,65535
^HCSQ:"WCDMA",42,35,51
^ICCID: 89375027010070487051
'
xargs
awk '-F[,:]' '/^^HCSQ:/ {print $2}'
^CHIPTEMP: 373,373,65535,30,65535
^HCSQ:"WCDMA",42,35,51
^ICCID: 89375027010070487051
'
awkxargs
'-F[,:]' '/^^HCSQ:/ {print $4}'
^CHIPTEMP: 373,373,65535,30,65535
^HCSQ:"WCDMA",42,35,51
^ICCID: 89375027010070487051
'
xargs
Manufacturer: Huawei Technologies Co.,Ltd.
Model: E3372h-320
Revision: 10.0.5.1(H195SP3C983)
IMEI: 862329049458888
+GCAP: +CGSM,+DS,+ES
'
' '\n' '
'
Manufacturer: Huawei Technologies 'Co.,Ltd.
'xargs Model:
'E3372h-320
' Revision: '10.0.5.1(H195SP3C983)
' IMEI: '862329049458888
' +GCAP: '+CGSM,+DS,+ES
' '
'
xargs
echo ati Manufacturer: Huawei Technologies Co.,Ltd. Model: E3372h-320 Revision: '10.0.5.1(H195SP3C983)' IMEI: 862329049458888 +GCAP: +CGSM,+DS,+ES
echo Huawei Technologies Co.,Ltd. Model: E3372h-320
xargs
echo Huawei Technologies Co.,Ltd. E3372h-320
echo '{print $2}' ati
Manufacturer: Huawei Technologies Co.,Ltd. Model: E3372h-320 Revision: '10.0.5.1(H195SP3C983)' IMEI: 862329049458888 +GCAP: +CGSM,+DS,+ES
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 1/800 us ( 0%), #Int= 1, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.04
S: Manufacturer=Linux 5.4.143 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=1b000000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=155e Rev= 1.02
S: Manufacturer=HUAWEI_MOBILE
S: Product=HUAWEI_MOBILE
C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr= 2mA
A: FirstIf#= 3 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm
E: Ad=87(I) Atr=03(Int.) MxPS= 16 Ivl=2ms
I: If#= 4 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
I:* If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms'
cut -c-1104
echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'MxCh=' 1 B: 'Alloc=' 1/800 us '(' '0%),' '#Int=' 1, '#Iso=' 0 D: 'Ver=' 2.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0002' 'Rev=' 5.04 S: 'Manufacturer=Linux' 5.4.143 ehci_hcd S: 'Product=EHCI' Host Controller S: 'SerialNumber=1b000000.usb' 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=01' 'Lev=01' 'Prnt=01' 'Port=00' 'Cnt=01' 'Dev#=' 3 'Spd=480' 'MxCh=' 0 D: 'Ver=' 2.00 'Cls=02(comm.)' 'Sub=00' 'Prot=00' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=12d1' 'ProdID=155e' 'Rev=' 1.02 S: 'Manufacturer=HUAWEI_MOBILE' S: 'Product=HUAWEI_MOBILE' 'C:' '#Ifs=' 5 'Cfg#=' 1 'Atr=80' 'MxPwr=' 2mA A: 'FirstIf#=' 3 'IfCount=' 2 'Cls=02(comm.)' 'Sub=0d' 'Prot=00' 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=83(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:' 'If#=' 1 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:' 'If#=' 2 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=85(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=04(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:' 'If#=' 3 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' 'Sub=0d' 'Prot=00' 'Driver=cdc_ncm' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 16 'Ivl=2ms' I: 'If#=' 4 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=01' 'Driver=cdc_ncm' 'I:' 'If#=' 4 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=01' 'Driver=cdc_ncm' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=05(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms'
PVCUT=' Rev= 1.02 S: Manufacturer=HUAWEI_MOBILE S: Product=HUAWEI_MOBILE C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr= 2mA A: FirstIf#= 3 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00 I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm E: Ad=87(I) Atr=03(Int.) MxPS= 16 Ivl=2ms I: If#= 4 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm I:* If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms'
echo ' Rev= 1.02 S: Manufacturer=HUAWEI_MOBILE S: Product=HUAWEI_MOBILE C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr= 2mA A: FirstIf#= 3 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00 I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm E: Ad=87(I) Atr=03(Int.) MxPS= 16 Ivl=2ms I: If#= 4 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm I:* If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms'
echo ' Rev= 1.02 S: Manufacturer=HUAWEI_MOBILE S: Product=HUAWEI_MOBILE C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr= 2mA A: FirstIf#= 3 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00 I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm E: Ad=87(I) Atr=03(Int.) MxPS= 16 Ivl=2ms I: If#= 4 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm I:* If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms'
echo ' Rev= 1.02 S: Manufacturer=HUAWEI_MOBILE S: Product=HUAWEI_MOBILE C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr= 2mA A: FirstIf#= 3 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00 I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm E: Ad=87(I) Atr=03(Int.) MxPS= 16 Ivl=2ms I: If#= 4 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm I:* If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms'
echo ' Rev= 1.02 S: Manufacturer=HUAWEI_MOBILE S: Product=HUAWEI_MOBILE C:* #Ifs= 5 Cfg#= 1 Atr=80 MxPwr= 2mA A: FirstIf#= 3 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00 I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm E: Ad=87(I) Atr=03(Int.) MxPS= 16 Ivl=2ms I: If#= 4 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm I:* If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms'
PROTO=ncm
sms_tool -d /dev/ttyUSB2 at AT+GSN
OI='AT+GSN 862329049458888'
echo 'AT+GSN 862329049458888'
xargs
NR_I=862329049458888
'[' -n NR_I ]
NR_IMEI=862329049458888
sms_tool -d /dev/ttyUSB2 at AT+CIMI
OC='^MODE: 5,17 ^RSSI: 14 ^CERSSI:0,-85,-6,0,0,0,0 ^HCSQ:WCDMA,42,36,53 AT+CIMI 257027017048705'
echo '^MODE: 5,17 ^RSSI: 14 ^CERSSI:0,-85,-6,0,0,0,0 ^HCSQ:WCDMA,42,36,53 AT+CIMI 257027017048705'xargs
NR_C='^MODE: 5,17 ^RSSI: 14 ^CERSSI:0,-85,-6,0,0,0,0 ^HCSQ:WCDMA,42,36,53 257027017048705'
'[' -n '^MODE: 5,17 ^RSSI: 14 ^CERSSI:0,-85,-6,0,0,0,0 ^HCSQ:WCDMA,42,36,53 257027017048705' ]
NR_IMSI='^MODE: 5,17 ^RSSI: 14 ^CERSSI:0,-85,-6,0,0,0,0 ^HCSQ:WCDMA,42,36,53 257027017048705'
^CHIPTEMP: 373,373,65535,30,65535
^HCSQ:"WCDMA",42,35,51
^ICCID: 89375027010070487051
'
xargs
awk -F '[:]' '/^^ICCID: /{print $2}'
'
echo -n 'at^hfreqinfo?
'
' ]
'
awk -F '[:]'xargs '/^^HFREQINFO:/{print $2}'
-f3-3
-f6-6
/usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/12d1155e: line 94: arithmetic syntax error
@4IceG commented on GitHub (May 23, 2025):
Replace this file /usr/share/3ginfo-lite/modem/usb/12d1155e and check if it will be OK.
12d1155e.zip
@ZAV-8 commented on GitHub (May 24, 2025):
My report after replace 12d1155e.
Modem in LTE mode
/usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/12d1155e: line 115: syntax error: unexpected "fi"
I deleted string 115 "fi" from fle and script started.
Modem in UMTS mode
/usr/share/3ginfo-lite/modem/usb/12d1155e: line 96: arithmetic syntax error
Debug info:
@ZAV-8 commented on GitHub (May 24, 2025):
I think script can't get value DL, UL (and also BAND) in UMTS mode.
I replaced it on integer and script started (these and signal quality values are absent)
result
thank you for attention
@4IceG commented on GitHub (May 24, 2025):
Script needs fixing, because for WCDMA the modem does not return much of the data required by LuCI. I will look at it later.
@4IceG commented on GitHub (May 24, 2025):
Replace files:
test.zip
Clear browser cache and check if it will be OK.
@ZAV-8 commented on GitHub (May 29, 2025):
I tested it. Script work but signal indicators are empty.
@4IceG commented on GitHub (May 29, 2025):
It is OK, it shows only what is available.