LuCI APP: luci-app-3ginfo - 3ginfo gui (Info about 3G/LTE connection)


Signal strengthworking now
Technology wrong band CA

Pband give a data
Sband no data

I try to attach the script added on version 1.0.18-20220707 /addon 19d21489

Thanks again for ur time helping me.


Update on above.

Now its looking good. I have sinr/signal strength

Technology issue same

What script i add for imei
Same issue on signal strength before
Im thinking doing the same on like u do on signal strength but i dont know how .

Thanks again

Either I edit the files or you, if you are doing it, I can go.

If I'm going to waste my time, I need to know what's going on. Now you change yourself, correct older versions. Not the way.

Sorry my bad. The problem i encounter in ur new update sinr mising sband mising. And also imei . For this device only. Then band 41/1 real value band 41/41. I add those add from version 1.0.18 20220707. Itry to use the latest update then build image again.

How do you know that the real band is 41/41?

Tdd and Fdd plus i use modemband for band locking from eko.one.pl I band lock it for 41 only.
When comes in CA. It cant CA the TDD and FDD.

Sorry for my english.


Update i build again this.

Issue.

  1. Sim status: none
    2 technology info : 41/1 instead 41/41 base on the pband and s1 band
  2. Imei : none
  3. Sinr missing

You don't need to recompile the package to make changes. Only edit the scripts (e.g. with WinSCP) on the router with the problematic modem. I changed the script again, you can replace it and check it.

I hope you don't change anything and run everything as is.

Are these commands working?

sms_tool -d  /dev/ttyACM0 at "AT+GSN"
sms_tool -d  /dev/ttyACM0 at "AT+CIMI"
sms_tool -d  /dev/ttyACM0 at "AT+ICCID"

Create a new thread here

and show the command result

sh -x /usr/share/3ginfo-lite/3ginfo.sh

Remember to clean the browser cache after the changes, check it on two browsers.

I follow the instructions

Sim status : none
Iccid : none
Imei : none
Technology: band 41/1 instead 41/41

Connecting to 192.168.1.1 port 22, please wait...
login as: 

BusyBox v1.35.0 (2022-10-07 23:34:56 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| I S E K A I  W O R L D
 -----------------------------------------------------
 OpenWrt 22.03.1, r19777-2853b6d652
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# sh -x /usr/share/3ginfo-lite/3ginfo.sh
+ RES=/usr/share/3ginfo-lite
+ uci -q get '3ginfo.@3ginfo[0].device'
+ DEVICE=/dev/ttyACM0
+ '[' x/dev/ttyACM0 '=' x ]
+ echo /dev/ttyACM0
+ '[' x/dev/ttyACM0 '=' x ]
+ '[' x/dev/ttyACM0 '=' x ]
+ uci -q get '3ginfo.@3ginfo[0].network'
+ SECT=
+ SUB=@
+ '[['  '==' '*@*' ]]
+ uci -q get '3ginfo.@3ginfo[0].network'
+ SEC=
+ '[' -z  ]
+ getpath /dev/ttyACM0
/usr/share/3ginfo-lite/3ginfo.sh: line 114: getpath: not found
+ PORIG=
+ getpath /dev/console
/usr/share/3ginfo-lite/3ginfo.sh: line 117: getpath: not found
+ '[' x '=' x ]
+ + + grep /dev/console
cut -f2 -d.
uci show network
+ SEC=
+ '[' -n  ]
+ getpath /dev/ptmx
/usr/share/3ginfo-lite/3ginfo.sh: line 117: getpath: not found
+ '[' x '=' x ]
+ + + grepcut /dev/ptmx
 -f2 -d.
uci show network
+ SEC=
+ '[' -n  ]
+ getpath /dev/tty
/usr/share/3ginfo-lite/3ginfo.sh: line 117: getpath: not found
+ '[' x '=' x ]
+ + + uci show network
grep /dev/tty
cut -f2 -d.
+ SEC=wan
+ '[' -n wan ]
+ break
+ CONN_TIME=-
+ RX=-
+ TX=-
+ + grep '"up": true'ifstatus
 wan
+ NETUP='  "up": true,'
+ '[' -n '  "up": true,' ]
+ uci -q -P /var/state/ get network.wan.connect_time
+ CT=
+ '[' -z ]
+ + + ifstatus wan
awk '-F[:,]' '/uptime/ {print $2}'xargs

+ CT=539
+ '[' '!' -z 539 ]
+ expr 539 / 60 / 60 / 24
+ D=0
+ expr 539 / 60 / 60 '%' 24
+ H=0
+ expr 539 / 60 '%' 60
+ M=8
+ expr 539 '%' 60
+ S=59
+ printf '%dd, %02d:%02d:%02d' 0 0 8 59
+ CONN_TIME='0d, 00:08:59'
+ + awk '-F"' '/l3_device/ {print $4}'ifstatus
 wan
+ IFACE=usb1
+ '[' -n usb1 ]
+ + ifconfig usb1awk '-F[()]' '/bytes/ {printf "%s",$2}'

+ RX='66.2 KiB'
+ + ifconfig usb1
awk '-F[()]' '/bytes/ {printf "%s",$4}'
+ TX='1.0 MiB'
+ sms_tool -D -d /dev/ttyACM0 at 'AT+CSQ;+CPIN?;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?'
+ O='

+CSQ: 24,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb82a",9



OK
'
+ + echo '

+CSQ: 24,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb82a",9



OK
'awk '-F[, ]' '/^\+CSQ/ {print $2}'

+ CSQ=24
+ '[' x24 '=' x ]
+ '[' 24 -ge 0 -a 24 -le 31 ]
+ CSQ_PER=77
+ + echoawk '

+CSQ: 24,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb82a",9



OK
'
 '-F["]' '/^\+COPS: .,2/ {print $2}'
+ COPS_NUM=51502
+ '[' x51502 '=' x ]
+ COPS_MCCB=515
+ + + sedtr 's/ //g' '\n'
 ' '
echo 515
+ COPS_MCC=515
+ COPS_MNCB=02
+ + + echotr 02 '\n'
 ' '
sed 's/ //g'
+ COPS_MNC=02
+ awk '-F[;]' '/51502/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat
+ COPS='Globe Telecom'
+ '[' 'xGlobe Telecom' '=' x ]
+ '[' -z  ]
+ + echo '

+CSQ: 24,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb82a",9



OK
'
awk '-F["]' '/^\+COPS: .,0/ {print $2}'
+ T='Globe Telecom-PH'
+ '[' 'xGlobe Telecom-PH' '!=' x ]
+ COPS='Globe Telecom-PH'
+ + sed ':s;s/\(\\)\(.*\)\/\1\2/g;ts'
echo Globe Telecom-PH
+ COPZ='Globe Telecom-PH'
+ + awk '{for(i=1;i
echo Globe Telecom-PH
+ COPS='Globe Telecom-PH'
+ + + echo '

+CSQ: 24,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb82a",9



OK
'
awk '-F[, ]' '/^\+CPIN:/ {print $0;exit}'
xargs
+ T='+CPIN: READY'
+ '[' -n '+CPIN: READY' ]
+ '[' '+CPIN: READY' '=' '+CPIN: READY' ]
+ + echo '

+CSQ: 24,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb82a",9



OK
'
awk '-F[, ]' '/^\+CME ERROR:/ {print $0;exit}'
+ T=
+ '[' -n  ]
+ + echo '

+CSQ: 24,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb82a",9



OK
'
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}'
+ eval 'T="6";LAC_HEX="FC2";CID_HEX="3ABB82A";LAC_DEC="4034";CID_DEC="61585450";MODE_NUM="9"'
+ T=6
+ LAC_HEX=FC2
+ CID_HEX=3ABB82A
+ LAC_DEC=4034
+ CID_DEC=61585450
+ MODE_NUM=9
+ REG=-
+ CSQ=-
+ CSQ_PER=0
+ '[' -z 9 ]
+ '[' x9 '=' x0 ]
+ MODE=-
+ sms_tool -d /dev/ttyACM0 at at+cereg
+ OTX='
'
+ + + sed 's/[^A-F0-9]//g'
awkecho '-F[,]' '
' '/^\+CEREG/ {printf "%s", toupper($3)}'

+ TAC=
+ '[' x '!=' x ]
+ TAC=-
+ TAC_HEX=-
+ uci -q get '3ginfo.@3ginfo[0].device'
+ DEVICE=/dev/ttyACM0
+ + grep -q 192.168.
echo x/dev/ttyACM0
+ + sortawk -u '/Vendor=/{gsub(/.*Vendor=| ProdID=| Rev.*/,"");print}' /sys/kernel/debug/usb/devices

+ _DEVS='19d21489
1d6b0002'
+ '[' -e /usr/share/3ginfo-lite/3ginfo-addon/19d21489 ]
+ cat /tmp/sysinfo/board_name
+ . /usr/share/3ginfo-lite/3ginfo-addon/19d21489
+ _DEVICE=/dev/ttyACM0
+ sms_tool -d /dev/ttyACM0 at 'at+zrssi;+zcellinfo?;+zcainfo?'
+ OB='

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
+ + + trecho -d ' \t\n\r'xargs

 '
' +ZRSSI: '-104,-18.5,-64,19
' '
' +ZCELLINFO: 61585450,328,LTE 'B41,40562
' '
' +ZCAINFO: '328,41,4034,40562,20;328,2,41,39790,20
' '
'
+ O='+ZRSSI:-104,-18.5,-64,19+ZCELLINFO:61585450,328,LTEB41,40562+ZCAINFO:328,41,4034,40562,20;328,2,41,39790,20'
+ + + xargs
echoawk '-F[,:;]' '/^\+ZCAINFO/ {print $4}' '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'

+ T=4034
+ '[' -n 4034 ]
+ '[' x4034 '!=' x0 ]
+ '[' -n  ]
+ printf '%X' 4034
+ T_HEX=FC2
+ T_DEC=4034
+ echo+  '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
+ xargs
awk '-F[,:]' '/^\+ZRSSI/ {print $4}'
+ T=-64
+ '[' -n  ]
+ RSSI=-64
+ + + echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
xargs
awk '-F[,:]' '/^\+ZRSSI/ {print $2}'
+ T=-104
+ '[' -n  ]
+ RSRP=-104
+ + + echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
awk '-F[,:]' '/^\+ZRSSI/ {print $3}'
xargs
+ T=-18.5
+ '[' -n  ]
+ RSRQB=-18.5
+ + + + echo -18.5
grep -E '^[+-]?[0-9]*\.?([0-9]+)$'
tr ' 'cut '\n'
 -f1 -d.
+ RSRQ=-18
+ + + xargs
awk '-F[,:]' '/^\+ZRSSI/ {print $5}'
echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
+ T=19
+ '[' -n  ]
+ SINRB=19
+ + + + greptr -E ' ' '^[+-]?[0-9]*\.?([0-9]+)$' '\n'

echo 19
cut -f1 -d.
+ SINR=19
+ + + echoxargs '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'

awk '-F[,:]' '/^\+ZCELLINFO/ {print $4}'
+ T='LTE B41'
+ band 41 'LTE '
+ echo 'LTE B41  (2500 MHz)'
+ MODE='LTE B41  (2500 MHz)'
+ + echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
xargs
+ awk '-F[,:;]' '/^\+ZCAINFO/ {print $3}'
+ T=41
+ '[' -n 41 ]
+ '[' x41 '!=' x0 ]
+ + + echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
awk '-F[,:;]' '/^\+ZCAINFO/ {print $6}'xargs

+ T1=20
+ '[' -n  ]
+ band 41 
+ echo 'B41  (2500 MHz)'
+ PBAND='B41  (2500 MHz) @20 MHz'
+ + + xargs
awk '-F[,:;]' '/^\+ZCAINFO/ {print $2}'
echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
+ T=328
+ '[' -n 328 ]
+ '[' x328 '!=' x0 ]
+ '[' -n  ]
+ PCI=328
+ + + echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
awk '-F[,:;]' '/^\+ZCAINFO/ {print $5}'
xargs
+ T=40562
+ '[' -n 40562 ]
+ '[' x40562 '!=' x0 ]
+ '[' -n  ]
+ EARFCN=40562
+ '[' x9 '=' x9 ]
+ + + echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
xargsawk
 '-F[,:;]' '/^\+ZCAINFO/ {print $9}'
+ T=41
+ '[' -n 41 ]
+ band 1 
+ echo 'B1  (2100 MHz)'
+ MODE='LTE_A B41  (2500 MHz) / B1  (2100 MHz)'
+ + + echosed LTE_A s,/,+, B41
 '(2500' 'MHz)' / B1sed '(2100' 'MHz)'
 's/LTE_A/LTE-A |/g'
+ MODE='LTE-A | B41 (2500 MHz) + B1 (2100 MHz)'
+ + + echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'xargs

awk '-F[,:;]' '/^\+ZCAINFO/ {print $9}'
+ T=41
+ '[' -n 41 ]
+ + + xargsecho
awk '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


' '-F[,:;]'
 '/^\+ZCAINFO/ {print $11}'
+ T2=20
+ '[' -n  ]
+ + + echotr 20 -d
 ' \t\n\r'
xargs
+ T1=20
+ band 41 
+ echo 'B41  (2500 MHz)'
+ S1BAND='B41  (2500 MHz) @20 MHz'
+ + + xargs
awk '-F[,:;]' '/^\+ZCAINFO/ {print $7}'
echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'
+ T=328
+ '[' -n 328 ]
+ '[' -n  ]
+ S1PCI=328
+ + + echo '

+ZRSSI: -104,-18.5,-64,19



+ZCELLINFO: 61585450,328,LTE B41,40562



+ZCAINFO: 328,41,4034,40562,20;328,2,41,39790,20


'xargsawk

 '-F[,:;]' '/^\+ZCAINFO/ {print $10}'
+ T=39790
+ '[' -n 39790 ]
+ '[' -n  ]
+ S1EARFCN=39790
+ sms_tool -d /dev/ttyACM0 at AT+GMR
+ FWB='

BD_GLOBEMF286RAMODULEV1.0.0B08


'
+ + echo '
'+  'BD_GLOBEMF286RAMODULEV1.0.0B08
'tr '
' -d ' \t\n\r'

xargs
+ FW=BD_GLOBEMF286RAMODULEV1.0.0B08
+ '[[' BD_GLOBEMF286RAMODULEV1.0.0B08 '==' '*MF286RA*' '&&' - '==' '*-*' ]]
+ sms_tool -D -d /dev/ttyACM0 at AT+CSQ
+ OQ='

+CSQ: 24,99



OK
'
+ + echo '

+CSQ: 24,99



OK
'
awk '-F[, ]' '/^\+CSQ/ {print $2}'
+ CSQ=24
+ '[' x24 '=' x ]
+ '[' 24 -ge 0 -a 24 -le 31 ]
+ CSQ_PER=77
+ + tr+  -s '\n'
xargs
sms_tool -d /dev/ttyACM0 at AT+CGMI
+ MODELA='+CPIN: READY +COPS: 0,0,Globe Telecom-PH,9'
+ SUB=ZTE
+ '[[' '+CPIN: READY +COPS: 0,0,Globe Telecom-PH,9' '==' '*ZTE*' ]]
+ + tr -decho ' \t\n\r'+ 
+  +CPIN: READY +COPS: 0,0,Globe Telecom-PH,9
cutxargs
 -d : -f2
+ MODELO=READY+COPS
+ sms_tool -d /dev/ttyACM0 at AT+CGMM
+ MODELB='

+CGMM: "MF286R"


'
+ + + tr -d ' \t\n\r'
cut -d : -f2
+ echo '
' +CGMM: '"MF286R"
' '
'
xargs
+ MODELCUT=MF286R
+ MODEL='READY+COPS MF286R'
+ cat /tmp/modem
+ DEVICE=/dev/ttyACM0
+ + sms_tool -d /dev/ttyACM0 atxargs
 AT+GSN
+ O=
+ + cutecho  -c 1-

+ NR_I=
+ '[' -n  ]
+ + xargs
sms_tool -d /dev/ttyACM0 at AT+CIMI
+ O=515021152481462
+ + echo 515021152481462
cut -c 1-
+ NR_C=515021152481462
+ '[' -n 515021152481462 ]
+ NR_IMSI=515021152481462
+ sms_tool -d /dev/ttyACM0 at AT+ICCID
+ O='
'
+ + echo+  '
'
awk -F '[:]' '/^\ICCID:/{print $2}'
xargs
+ NR_D=
+ '[' -n  ]
+ cat /sys/kernel/debug/usb/devices
+ PV='
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  2/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.10
S:  Manufacturer=Linux 5.10.146 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#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=1489 Rev=ff.ff
S:  Manufacturer=ZTE
S:  Product=ZTE
S:  SerialNumber=123456789ABCD
C:* #Ifs= 8 Cfg#= 1 Atr=e0 MxPwr=  2mA
A:  FirstIf#= 0 IfCount= 2 Cls=e0(wlcon) Sub=01 Prot=03
A:  FirstIf#= 2 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01
A:  FirstIf#= 6 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=rndis_host
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=1ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=rndis_host
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm
E:  Ad=84(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=ff Driver=(none)
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether
E:  Ad=88(I) Atr=03(Int.) MxPS=  16 Ivl=32ms
I:  If#= 7 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
I:* If#= 7 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.10
S:  Manufacturer=Linux 5.10.146 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=1b400000.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'
+ awk -F 'Vendor=19d2 ProdID=1489'+  '{print $2}'
+ cut -c-1450
echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'MxCh=' 1 B: 'Alloc=' 2/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.10 S: 'Manufacturer=Linux' 5.10.146 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#=' 2 'Spd=480' 'MxCh=' 0 D: 'Ver=' 2.00 'Cls=ef(misc' ')' 'Sub=02' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=19d2' 'ProdID=1489' 'Rev=ff.ff' S: 'Manufacturer=ZTE' S: 'Product=ZTE' S: 'SerialNumber=123456789ABCD' 'C:*' '#Ifs=' 8 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 2mA A: 'FirstIf#=' 0 'IfCount=' 2 'Cls=e0(wlcon)' 'Sub=01' 'Prot=03' A: 'FirstIf#=' 2 'IfCount=' 2 'Cls=02(comm.)' 'Sub=02' 'Prot=01' A: 'FirstIf#=' 6 'IfCount=' 2 'Cls=02(comm.)' 'Sub=06' 'Prot=00' 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=e0(wlcon)' 'Sub=01' 'Prot=03' 'Driver=rndis_host' E: 'Ad=82(I)' 'Atr=03(Int.)' 'MxPS=' 8 'Ivl=1ms' 'I:*' 'If#=' 1 'Alt=' 0 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=00' 'Driver=rndis_host' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:*' 'If#=' 2 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' 'Sub=02' 'Prot=01' 'Driver=cdc_acm' E: 'Ad=84(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' 'I:*' 'If#=' 3 'Alt=' 0 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=00' 'Driver=cdc_acm' E: 'Ad=83(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:*' 'If#=' 4 'Alt=' 0 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=ff' 'Driver=(none)' E: 'Ad=85(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:*' 'If#=' 5 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=42' 'Prot=01' 'Driver=(none)' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=04(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:*' 'If#=' 6 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' 'Sub=06' 'Prot=00' 'Driver=cdc_ether' E: 'Ad=88(I)' 'Atr=03(Int.)' 'MxPS=' 16 'Ivl=32ms' I: 'If#=' 7 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=00' 'Driver=cdc_ether' 'I:*' 'If#=' 7 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=00' 'Driver=cdc_ether' E: 'Ad=87(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=05(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' T: 'Bus=02' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'MxCh=' 1 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 2.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0002' 'Rev=' 5.10 S: 'Manufacturer=Linux' 5.10.146 ehci_hcd S: 'Product=EHCI' Host Controller S: 'SerialNumber=1b400000.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'
+ PVCUT=' Rev=ff.ff S: Manufacturer=ZTE S: Product=ZTE S: SerialNumber=123456789ABCD C:* #Ifs= 8 Cfg#= 1 Atr=e0 MxPwr= 2mA A: FirstIf#= 0 IfCount= 2 Cls=e0(wlcon) Sub=01 Prot=03 A: FirstIf#= 2 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01 A: FirstIf#= 6 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=rndis_host E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=1ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=rndis_host E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm E: Ad=84(I) Atr=03(Int.) MxPS= 10 Ivl=32ms I:* If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=ff Driver=(none) E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none) E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 6 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether E: Ad=88(I) Atr=03(Int.) MxPS= 16 Ivl=32ms I: If#= 7 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether I:* If#= 7 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02'
+ + grep -q rndis_host
echo ' Rev=ff.ff S: Manufacturer=ZTE S: Product=ZTE S: SerialNumber=123456789ABCD C:* #Ifs= 8 Cfg#= 1 Atr=e0 MxPwr= 2mA A: FirstIf#= 0 IfCount= 2 Cls=e0(wlcon) Sub=01 Prot=03 A: FirstIf#= 2 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01 A: FirstIf#= 6 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=rndis_host E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=1ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=rndis_host E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm E: Ad=84(I) Atr=03(Int.) MxPS= 10 Ivl=32ms I:* If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=ff Driver=(none) E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none) E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 6 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether E: Ad=88(I) Atr=03(Int.) MxPS= 16 Ivl=32ms I: If#= 7 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether I:* If#= 7 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02'
+ PROTO=ncm
+ break
+ cat
{
"connt":"0d, 00:08:59",
"conntx":"1.0 MiB",
"connrx":"66.2 KiB",
"modem":"READY+COPS MF286R",
"mtemp":"",
"firmware":"BD_GLOBEMF286RAMODULEV1.0.0B08",
"cport":"/dev/ttyACM0",
"protocol":"ncm",
"csq":"24",
"signal":"77",
"operator_name":"Globe Telecom-PH",
"operator_mcc":"515",
"operator_mnc":"02",
"mode":"LTE-A | B41 (2500 MHz) + B1 (2100 MHz)",
"registration":"-",
"simslot":"",
"imei":"",
"imsi":"2481462",
"iccid":"",
"lac_dec":"4034",
"lac_hex":"FC2",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"FC2",
"tac_d":"4034",
"cid_dec":"61585450",
"cid_hex":"3ABB82A",
"pci":"328",
"earfcn":"40562",
"pband":"B41  (2500 MHz) @20 MHz",
"s1band":"B41  (2500 MHz) @20 MHz",
"s1pci":"328",
"s1earfcn":"39790",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"-104",
"rsrq":"-18",
"rssi":"-64",
"sinr":"19"
}
+ exit 0
root@OpenWrt:~#
clear
root@OpenWrt:~# sms_tool -d  /dev/ttyACM0 at "AT+GSN"


root@OpenWrt:~# sms_tool -d  /dev/ttyACM0 at "AT+CIMI"




2481462



root@OpenWrt:~# sms_tool -d  /dev/ttyACM0 at "AT+ICCID"


root@OpenWrt:~#

Please reformat the post as described below:

Thanks You

I made package updates. I don't have this router so the update won't be the last.

Check if any command returns a number

AT^ICCID?
AT+ICCID
AT+QCCID
AT#CCID
AT!ICCID?
AT*ICCID?

Ok i get responce for iccid.

The 3 issue remainings

Sim status: 6
Imei : none
Iccid: none

clear
root@OpenWrt:~# sms_tool -d  /dev/ttyACM0 at "AT^ICCID?"


root@OpenWrt:~# sms_tool -d  /dev/ttyACM0 at "AT+ICCID"


root@OpenWrt:~# sms_tool -d  /dev/ttyACM0 at "AT+QCCID"


root@OpenWrt:~# sms_tool -d  /dev/ttyACM0 at "AT#CCID"


root@OpenWrt:~# sms_tool -d  /dev/ttyACM0 at "AT!ICCID?"


root@OpenWrt:~# sms_tool -d  /dev/ttyACM0 at "AT*ICCID?"


*ICCID: 89634170931111175691



root@OpenWrt:~# 


Ok, there is some progress. More fixes and new build.


Ok 2 issue only

Sim status : 6
Modem imei : none

Waiting for new update

Ok, show the command result

sh -x /usr/share/3ginfo-lite/3ginfo.sh

There are 2 worst things left at the end. I hope this command that I found on the web works and it reads imei, it just cuts it badly.

Remember to clean the browser cache after the changes, check it on two browsers.

Sorry for the late reply.

Connecting to 192.168.10.1 port 22, please wait...
login as: 

BusyBox v1.35.0 (2022-10-07 23:34:56 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| I S E K A I  W O R L D
 -----------------------------------------------------
 OpenWrt 22.03.1, r19777-2853b6d652
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# sh -x /usr/share/3ginfo-lite/3ginfo.sh
+ RES=/usr/share/3ginfo-lite
+ uci -q get '3ginfo.@3ginfo[0].device'
+ DEVICE=/dev/ttyACM0
+ '[' x/dev/ttyACM0 '=' x ]
+ echo /dev/ttyACM0
+ '[' x/dev/ttyACM0 '=' x ]
+ '[' x/dev/ttyACM0 '=' x ]
+ uci -q get '3ginfo.@3ginfo[0].network'
+ SECT=
+ SUB=@
+ '[['  '==' '*@*' ]]
+ uci -q get '3ginfo.@3ginfo[0].network'
+ SEC=
+ '[' -z  ]
+ getpath /dev/ttyACM0
/usr/share/3ginfo-lite/3ginfo.sh: line 114: getpath: not found
+ PORIG=
+ getpath /dev/console
/usr/share/3ginfo-lite/3ginfo.sh: line 117: getpath: not found
+ '[' x '=' x ]
+ + grep /dev/console
uci show network
+ cut -f2 -d.
+ SEC=
+ '[' -n  ]
+ getpath /dev/ptmx
/usr/share/3ginfo-lite/3ginfo.sh: line 117: getpath: not found
+ '[' x '=' x ]
+ + grep+  /dev/ptmxuci show network

cut -f2 -d.
+ SEC=
+ '[' -n  ]
+ getpath /dev/tty
/usr/share/3ginfo-lite/3ginfo.sh: line 117: getpath: not found
+ '[' x '=' x ]
+ uci show network+ 
+ grep /dev/ttycut
 -f2 -d.
+ SEC=wan
+ '[' -n wan ]
+ break
+ CONN_TIME=-
+ RX=-
+ TX=-
+ + grep '"up": true'ifstatus wan

+ NETUP='  "up": true,'
+ '[' -n '  "up": true,' ]
+ uci -q -P /var/state/ get network.wan.connect_time
+ CT=
+ '[' -z ]
+ + + ifstatus wan
xargs
awk '-F[:,]' '/uptime/ {print $2}'
+ CT=332
+ '[' '!' -z 332 ]
+ expr 332 / 60 / 60 / 24
+ D=0
+ expr 332 / 60 / 60 '%' 24
+ H=0
+ expr 332 / 60 '%' 60
+ M=5
+ expr 332 '%' 60
+ S=32
+ printf '%dd, %02d:%02d:%02d' 0 0 5 32
+ CONN_TIME='0d, 00:05:32'
+ + ifstatus wan
awk '-F"' '/l3_device/ {print $4}'
+ IFACE=usb1
+ '[' -n usb1 ]
+ + ifconfig usb1
awk '-F[()]' '/bytes/ {printf "%s",$2}'
+ RX='98.0 KiB'
+ + ifconfigawk usb1
 '-F[()]' '/bytes/ {printf "%s",$4}'
+ TX='952.0 KiB'
+ sms_tool -D -d /dev/ttyACM0 at 'AT+CSQ;+CPIN?;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?'
+ O='

+CSQ: 31,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb820",9



OK
'
+ + echo '

+CSQ: 31,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb820",9



OK
'
awk '-F[, ]' '/^\+CSQ/ {print $2}'
+ CSQ=31
+ '[' x31 '=' x ]
+ '[' 31 -ge 0 -a 31 -le 31 ]
+ CSQ_PER=100
+ + echo '

+CSQ: 31,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb820",9



OK
'
awk '-F["]' '/^\+COPS: .,2/ {print $2}'
+ COPS_NUM=51502
+ '[' x51502 '=' x ]
+ COPS_MCCB=515
+ + + sedecho 515
tr 's/ //g' '\n'
 ' '
+ COPS_MCC=515
+ COPS_MNCB=02
+ + + tr '\n' ' '
echo 02sed 's/ //g'

+ COPS_MNC=02
+ awk '-F[;]' '/51502/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat
+ COPS='Globe Telecom'
+ '[' 'xGlobe Telecom' '=' x ]
+ '[' -z  ]
+ + echo '

+CSQ: 31,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb820",9



OK
'
awk '-F["]' '/^\+COPS: .,0/ {print $2}'
+ T='Globe Telecom-PH'
+ '[' 'xGlobe Telecom-PH' '!=' x ]
+ COPS='Globe Telecom-PH'
+ + sed ':s;s/\(\\)\(.*\)\/\1\2/g;ts'echo Globe Telecom-PH

+ COPZ='Globe Telecom-PH'
+ echo+  Globe Telecom-PH
awk '{for(i=1;i
+ COPS='Globe Telecom-PH'
+ + echo+  '

+CSQ: 31,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb820",9



OK
'
awk '-F[, ]'xargs '/^\+CPIN:/ {print $0;exit}'

+ T='+CPIN: READY'
+ '[' -n '+CPIN: READY' ]
+ '[' '+CPIN: READY' '=' '+CPIN: READY' ]
+ + awk '-F[, ]'echo '/^\+CME ERROR:/ {print $0;exit}' '

+CSQ: 31,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb820",9



OK
'

+ T=
+ '[' -n  ]
+ + echo '

+CSQ: 31,99



+CPIN: READY



+COPS: 0,0,"Globe Telecom-PH",9



+COPS: 0,2,"51502",9



+CREG: 2,6,"0fc2","03abb820",9



OK
'
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}'
+ eval 'T="6";LAC_HEX="FC2";CID_HEX="3ABB820";LAC_DEC="4034";CID_DEC="61585440";MODE_NUM="9"'
+ T=6
+ LAC_HEX=FC2
+ CID_HEX=3ABB820
+ LAC_DEC=4034
+ CID_DEC=61585440
+ MODE_NUM=9
+ REG=-
+ CSQ=-
+ CSQ_PER=0
+ '[' -z 9 ]
+ '[' x9 '=' x0 ]
+ MODE=-
+ sms_tool -d /dev/ttyACM0 at at+cereg
+ OTX='
'
+ + + echo '
'
sedawk 's/[^A-F0-9]//g' '-F[,]'
 '/^\+CEREG/ {printf "%s", toupper($3)}'
+ TAC=
+ '[' x '!=' x ]
+ TAC=-
+ TAC_HEX=-
+ uci -q get '3ginfo.@3ginfo[0].device'
+ DEVICE=/dev/ttyACM0
+ + grep -qecho 192.168. x/dev/ttyACM0

+ + sort -u
awk '/Vendor=/{gsub(/.*Vendor=| ProdID=| Rev.*/,"");print}' /sys/kernel/debug/usb/devices
+ _DEVS='19d21489
1d6b0002'
+ '[' -e /usr/share/3ginfo-lite/3ginfo-addon/19d21489 ]
+ cat /tmp/sysinfo/board_name
+ . /usr/share/3ginfo-lite/3ginfo-addon/19d21489
+ _DEVICE=/dev/ttyACM0
+ sms_tool -d /dev/ttyACM0 at 'at+zrssi;+zcellinfo?;+zcainfo?'
+ OB='

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'
+ tr -d+  ' \t\n\r'
+ xargs
echo '
' +ZRSSI: '-78,-7.5,-49,1
' '
' +ZCELLINFO: 61585440,328,LTE 'B41,39790
' '
' +ZCAINFO: '328,41,4034,39790,20;328,1,41,40364,20
' '
' +ZRSSI: '-78,-7.5,-49,1
' '
' +ZCELLINFO: 61585440,328,LTE 'B41,39790
' '
' +ZCAINFO: '328,41,4034,39790,20;328,1,41,40364,20
' '
'
+ O='+ZRSSI:-78,-7.5,-49,1+ZCELLINFO:61585440,328,LTEB41,39790+ZCAINFO:328,41,4034,39790,20;328,1,41,40364,20+ZRSSI:-78,-7.5,-49,1+ZCELLINFO:61585440,328,LTEB41,39790+ZCAINFO:328,41,4034,39790,20;328,1,41,40364,20'
+ + + xargs
echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'
awk '-F[,:;]' '/^\+ZCAINFO/ {print $4}'
+ T='4034 4034'
+ '[' -n '4034 4034' ]
+ '[' 'x4034 4034' '!=' x0 ]
+ '[' -n  ]
+ printf '%X' 4034 4034
+ T_HEX=FC2FC2
+ T_DEC='4034 4034'
+ LAC_DEC='4034 4034'
+ LAC_HEX=FC2FC2
+ + + echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'
xargs
awk '-F[,:]' '/^\+ZRSSI/ {print $4}'
+ T='-49 -49'
+ '[' -n  ]
+ RSSI='-49 -49'
+ + + echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'awk
 '-F[,:]' '/^\+ZRSSI/ {print $2}'
xargs
+ T='-78 -78'
+ '[' -n  ]
+ RSRP='-78 -78'
+ + xargs
+ echoawk '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


' '-F[,:]'
 '/^\+ZRSSI/ {print $3}'
+ T='-7.5 -7.5'
+ '[' -n  ]
+ RSRQB='-7.5 -7.5'
+ + tr ' 'echo -7.5 -7.5
+ + grep '\n'
 -E '^[+-]?[0-9]*\.?([0-9]+)$'
cut -f1 -d.
+ RSRQ='-7
-7'
+ + + awk '-F[,:]'xargs '/^\+ZRSSI/ {print $5}'

echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'
+ T='1 1'
+ '[' -n  ]
+ SINRB='1 1'
+ grep -E '^[+-]?[0-9]*\.?([0-9]+)$'
+ tr ' '+ cut+ echo 1 1
 '\n'
 -f1 -d.
+ SINR='1
1'
+ + + echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'
xargs
awk '-F[,:;]' '/^\+ZCELLINFO/ {print $4}'
+ TU='LTE B41 LTE B41'
+ band 41 'LTE '
+ echo 'LTE B41  (2500 MHz)'
+ MODE='LTE B41  (2500 MHz)'
+ + echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'
+ awk '-F[,:;]' '/^\+ZCAINFO/ {print $3}'
xargs
+ T='41 41'
+ '[' -n '41 41' ]
+ + echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'+ 
awkxargs
 '-F[,:;]' '/^\+ZCAINFO/ {print $6}'
+ T1='20 20'
+ '[' -n  ]
+ band 41 41 
+ echo '41B41  (2500 MHz)'
+ PBAND='41B41  (2500 MHz) @20 20 MHz'
+ band 41 41 
+ echo '41B41  (2500 MHz)'
+ ADDON='{"Primary band":"41B41  (2500 MHz), 20 20 MHz"}'
+ + + awk '-F[,:;]' '/^\+ZCAINFO/ {print $2}'echo
 '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'
xargs
+ T='328 328'
+ '[' -n '328 328' ]
+ '[' -n '{"Primary band":"41B41  (2500 MHz), 20 20 MHz"}' ]
+ ADDON='{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},'
+ PCI='328 328'
+ ADDON='{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},{"PCI":"328 328"}'
+ + + echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'awk '-F[,:;]' '/^\+ZCAINFO/ {print $5}'
xargs

+ T='39790 39790'
+ '[' -n '39790 39790' ]
+ '[' -n '{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},{"PCI":"328 328"}' ]
+ ADDON='{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},{"PCI":"328 328"},'
+ EARFCN='39790 39790'
+ ADDON='{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},{"PCI":"328 328"},{"EARFCN":"39790 39790"}'
+ + echoxargs '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'

+ awk '-F[,:;]' '/^\+ZCAINFO/ {print $9}'
+ TS='41 41'
+ '[' -n '41 41' ]
+ band 41 41 
+ echo '41B41  (2500 MHz)'
+ MODE='LTE_A B41  (2500 MHz) / 41B41  (2500 MHz)'
+ + + echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'awk '-F[,:;]' '/^\+ZCAINFO/ {print $9}'
xargs

+ T='41 41'
+ '[' -n '41 41' ]
+ + + echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'
xargsawk
 '-F[,:;]' '/^\+ZCAINFO/ {print $11}'
+ T2='20 20'
+ '[' -n '{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},{"PCI":"328 328"},{"EARFCN":"39790 39790"}' ]
+ ADDON='{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},{"PCI":"328 328"},{"EARFCN":"39790 39790"},'
+ + echo '20 20'
tr+  -dxargs
 ' \t\n\r'
+ T1=2020
+ band 41 41 
+ echo '41B41  (2500 MHz)'
+ S1BAND='41B41  (2500 MHz) @2020 MHz'
+ + + awk '-F[,:;]' '/^\+ZCAINFO/ {print $7}'
xargs
echo '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


'
+ T='328 328'
+ '[' -n '328 328' ]
+ '[' -n '{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},{"PCI":"328 328"},{"EARFCN":"39790 39790"},' ]
+ ADDON='{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},{"PCI":"328 328"},{"EARFCN":"39790 39790"},,'
+ S1PCI='328 328'
+ + + echoawk '

+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20



+ZRSSI: -78,-7.5,-49,1



+ZCELLINFO: 61585440,328,LTE B41,39790



+ZCAINFO: 328,41,4034,39790,20;328,1,41,40364,20


' '-F[,:;]'
 '/^\+ZCAINFO/ {print $10}'
xargs
+ T='40364 40364'
+ '[' -n '40364 40364' ]
+ '[' -n '{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},{"PCI":"328 328"},{"EARFCN":"39790 39790"},,' ]
+ ADDON='{"Primary band":"41B41  (2500 MHz), 20 20 MHz"},{"PCI":"328 328"},{"EARFCN":"39790 39790"},,,'
+ S1EARFCN='40364 40364'
+ + + sed 's/LTE_A/LTE-A |/g'
sed s,/,+,
echo LTE_A B41 '(2500' 'MHz)' / 41B41 '(2500' 'MHz)'
+ MODE='LTE-A | B41 (2500 MHz) + 41B41 (2500 MHz)'
+ sms_tool -d /dev/ttyACM0 at AT+GMR
+ FWB='

BD_GLOBEMF286RAMODULEV1.0.0B08


'
+ echo '
' 'BD_GLOBEMF286RAMODULEV1.0.0B08
' '
'+ 
+ tr -d ' \t\n\r'
xargs
+ FW=BD_GLOBEMF286RAMODULEV1.0.0B08
+ '[[' BD_GLOBEMF286RAMODULEV1.0.0B08 '==' '*MF286RA*' '&&' - '==' '*-*' ]]
+ sms_tool -D -d /dev/ttyACM0 at AT+CSQ
+ OQ='

+CSQ: 29,99



OK
'
+ + echo '

+CSQ: 29,99



OK
'
awk '-F[, ]' '/^\+CSQ/ {print $2}'
+ CSQ=29
+ '[' x29 '=' x ]
+ '[' 29 -ge 0 -a 29 -le 31 ]
+ CSQ_PER=93
+ + sms_tool -d /dev/ttyACM0 at AT+CGMItr
+  -s '\n'
xargs
+ MODELA='+CGMI: ZTE CORPORATION'
+ '[[' '+CGMI: ZTE CORPORATION' '==' '*ZTE*' ]]
+ + echo+ awk +CGMI: '-FCGMI: ' ZTE CORPORATION '{print $2}'

sed+  's/ CORPORATION//g'
sed 's/"//g'
+ MODELACUT=ZTE
+ + echo ZTE
tr -d ' \t\n\r'
+ xargs
+ MODELO=ZTE
+ sms_tool -d /dev/ttyACM0 at AT+CGMM
+ MODELB='

+CGMM: "MF286R"


'
+ + + echo '
'awk +CGMM: '-FCGMM: ' '"MF286R"
' '
' '{print $2}'

sed 's/"//g'
+ MODELBCUT='MF286R
 
'
+ + tr -d ' \t\n\r'
echo 'MF286R
' '
'
+ xargs
+ MODELCUT=MF286R
+ MODEL='ZTE MF286R'
+ cat /tmp/modem
+ DEVICE=/dev/ttyACM0
+ + sms_tool -d /dev/ttyACM0 at AT+GSN
xargs
+ OI=
+ + + echosed  s/AT+GSN//g

xargs
+ NR_I=
+ '[' -z NR_I ]
+ NR_IMEI=
+ + xargs
sms_tool -d /dev/ttyACM0 at AT+CIMI
+ OS=515021152481462
+ + + echo 515021152481462
sed s/AT+CIMI//g
xargs
+ NR_C=515021152481462
+ '[' -n 515021152481462 ]
+ NR_IMSI=515021152481462
+ + sms_toolxargs -d
 /dev/ttyACM0 at 'AT*ICCID?'
+ OD='*ICCID: 89634170931111175691'
+ + + echo '*ICCID: 89634170931111175691'
xargs
awk -F '[:]' '/^\*ICCID: /{print $2}'
+ NR_D=89634170931111175691
+ '[' -n 89634170931111175691 ]
+ NR_ICCID=89634170931111175691
+ cat /sys/kernel/debug/usb/devices
+ PV='
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  2/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.10
S:  Manufacturer=Linux 5.10.146 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#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=1489 Rev=ff.ff
S:  Manufacturer=ZTE
S:  Product=ZTE
S:  SerialNumber=123456789ABCD
C:* #Ifs= 8 Cfg#= 1 Atr=e0 MxPwr=  2mA
A:  FirstIf#= 0 IfCount= 2 Cls=e0(wlcon) Sub=01 Prot=03
A:  FirstIf#= 2 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01
A:  FirstIf#= 6 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=rndis_host
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=1ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=rndis_host
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm
E:  Ad=84(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=ff Driver=(none)
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether
E:  Ad=88(I) Atr=03(Int.) MxPS=  16 Ivl=32ms
I:  If#= 7 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
I:* If#= 7 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.10
S:  Manufacturer=Linux 5.10.146 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=1b400000.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'
+ + awk -F 'Vendor=19d2 ProdID=1489' '{print $2}'cut
 -c-1450
+ echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'MxCh=' 1 B: 'Alloc=' 2/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.10 S: 'Manufacturer=Linux' 5.10.146 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#=' 2 'Spd=480' 'MxCh=' 0 D: 'Ver=' 2.00 'Cls=ef(misc' ')' 'Sub=02' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=19d2' 'ProdID=1489' 'Rev=ff.ff' S: 'Manufacturer=ZTE' S: 'Product=ZTE' S: 'SerialNumber=123456789ABCD' 'C:*' '#Ifs=' 8 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 2mA A: 'FirstIf#=' 0 'IfCount=' 2 'Cls=e0(wlcon)' 'Sub=01' 'Prot=03' A: 'FirstIf#=' 2 'IfCount=' 2 'Cls=02(comm.)' 'Sub=02' 'Prot=01' A: 'FirstIf#=' 6 'IfCount=' 2 'Cls=02(comm.)' 'Sub=06' 'Prot=00' 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=e0(wlcon)' 'Sub=01' 'Prot=03' 'Driver=rndis_host' E: 'Ad=82(I)' 'Atr=03(Int.)' 'MxPS=' 8 'Ivl=1ms' 'I:*' 'If#=' 1 'Alt=' 0 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=00' 'Driver=rndis_host' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:*' 'If#=' 2 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' 'Sub=02' 'Prot=01' 'Driver=cdc_acm' E: 'Ad=84(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' 'I:*' 'If#=' 3 'Alt=' 0 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=00' 'Driver=cdc_acm' E: 'Ad=83(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:*' 'If#=' 4 'Alt=' 0 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=ff' 'Driver=(none)' E: 'Ad=85(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:*' 'If#=' 5 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=42' 'Prot=01' 'Driver=(none)' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=04(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:*' 'If#=' 6 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' 'Sub=06' 'Prot=00' 'Driver=cdc_ether' E: 'Ad=88(I)' 'Atr=03(Int.)' 'MxPS=' 16 'Ivl=32ms' I: 'If#=' 7 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=00' 'Driver=cdc_ether' 'I:*' 'If#=' 7 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=00' 'Driver=cdc_ether' E: 'Ad=87(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=05(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' T: 'Bus=02' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'MxCh=' 1 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 2.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0002' 'Rev=' 5.10 S: 'Manufacturer=Linux' 5.10.146 ehci_hcd S: 'Product=EHCI' Host Controller S: 'SerialNumber=1b400000.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'
+ PVCUT=' Rev=ff.ff S: Manufacturer=ZTE S: Product=ZTE S: SerialNumber=123456789ABCD C:* #Ifs= 8 Cfg#= 1 Atr=e0 MxPwr= 2mA A: FirstIf#= 0 IfCount= 2 Cls=e0(wlcon) Sub=01 Prot=03 A: FirstIf#= 2 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01 A: FirstIf#= 6 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=rndis_host E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=1ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=rndis_host E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm E: Ad=84(I) Atr=03(Int.) MxPS= 10 Ivl=32ms I:* If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=ff Driver=(none) E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none) E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 6 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether E: Ad=88(I) Atr=03(Int.) MxPS= 16 Ivl=32ms I: If#= 7 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether I:* If#= 7 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02'
+ + grep -q rndis_host
echo ' Rev=ff.ff S: Manufacturer=ZTE S: Product=ZTE S: SerialNumber=123456789ABCD C:* #Ifs= 8 Cfg#= 1 Atr=e0 MxPwr= 2mA A: FirstIf#= 0 IfCount= 2 Cls=e0(wlcon) Sub=01 Prot=03 A: FirstIf#= 2 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01 A: FirstIf#= 6 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=rndis_host E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=1ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=rndis_host E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm E: Ad=84(I) Atr=03(Int.) MxPS= 10 Ivl=32ms I:* If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=ff Driver=(none) E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none) E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 6 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether E: Ad=88(I) Atr=03(Int.) MxPS= 16 Ivl=32ms I: If#= 7 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether I:* If#= 7 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02'
+ PROTO=ncm
+ break
+ cat
{
"connt":"0d, 00:05:32",
"conntx":"952.0 KiB",
"connrx":"98.0 KiB",
"modem":"ZTE MF286R",
"mtemp":"",
"firmware":"BD_GLOBEMF286RAMODULEV1.0.0B08",
"cport":"/dev/ttyACM0",
"protocol":"ncm",
"csq":"29",
"signal":"93",
"operator_name":"Globe Telecom-PH",
"operator_mcc":"515",
"operator_mnc":"02",
"mode":"LTE-A | B41 (2500 MHz) + 41B41 (2500 MHz)",
"registration":"-",
"simslot":"",
"imei":"",
"imsi":"515021152481462",
"iccid":"89634170931111175691",
"lac_dec":"4034 4034",
"lac_hex":"FC2FC2",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"FC2FC2",
"tac_d":"4034 4034",
"cid_dec":"61585440",
"cid_hex":"3ABB820",
"pci":"328 328",
"earfcn":"39790 39790",
"pband":"41B41  (2500 MHz) @20 20 MHz",
"s1band":"41B41  (2500 MHz) @2020 MHz",
"s1pci":"328 328",
"s1earfcn":"40364 40364",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"-78 -78",
"rsrq":"-7
-7",
"rssi":"-49 -49",
"sinr":"1
1"
}
+ exit 0
root@OpenWrt:~# 

Cool, everyone has their own life and lots of activities, not just OpenWrt.

At the moment, I don't know the command to read the imei from this modem. Unless @Isekai you know the at command?

The commands I know do not return anything:

sms_tool -d /dev/ttyACM0 at "AT*MRD_IMEI?"
sms_tool -d /dev/ttyACM0 at "AT+GSN"