root@OpenWrt:~# sh -x /usr/share/3ginfo-lite/3ginfo.sh
+ RES=/usr/share/3ginfo-lite
+ /usr/share/3ginfo-lite/detect.sh
+ DEVICE=/dev/cdc-wdm0
+ '[' -z /dev/cdc-wdm0 ]
+ O=
+ '[' -e /usr/bin/sms_tool ]
+ sms_tool -D -d /dev/cdc-wdm0 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?'
tcgetattr(/dev/cdc-wdm0)
tcsetattr(/dev/cdc-wdm0)
No response from modem.
failed tcsetattr(/dev/cdc-wdm0): Not a tty
+ O=
+ CONFIG=modemdefine
+ uci show modemdefine
+ grep -o '@modemdefine\[[0-9]*\]\.modem'
+ xargs
+ wc -l
+ MODEMZ=1
+ '[[' 1 ]]
+ uci -q get 'modemdefine.@general[0].main_network'
+ SEC=
+ '[[' 1 '=' 0 ]]
+ '[[' 1 '=' 1 ]]
+ uci -q get 'modemdefine.@modemdefine[0].network'
+ SEC=wan
+ '[' -z wan ]
+ CONN_TIME=-
+ RX=-
+ TX=-
+ ifstatus wan
+ grep '"up": true'
+ 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=5091
+ '[' '!' -z 5091 ]
+ expr 5091 / 60 / 60 / 24
+ D=0
+ expr 5091 / 60 / 60 '%' 24
+ H=1
+ expr 5091 / 60 '%' 60
+ M=24
+ expr 5091 '%' 60
+ S=51
+ printf '%dd, %02d:%02d:%02d' 0 1 24 51
+ CONN_TIME='0d, 01:24:51'
+ date '+%s'
+ date '+%Y%m%d%H%M%S' -d @1721794736
+ CONN_TIME_SINCE=20240724061856
+ ifstatus wan
+ awk '-F"' '/l3_device/ {print $4}'
+ IFACE=wwan0
+ '[' -n wwan0 ]
+ ifconfig wwan0
+ awk '-F[()]' '/bytes/ {printf "%s",$2}'
+ RX='670.8 MiB'
+ ifconfig wwan0
+ awk '-F[()]' '/bytes/ {printf "%s",$4}'
+ TX='328.5 MiB'
+ echo
+ awk '-F[, ]' '/^\+CSQ/ {print $2}'
+ CSQ=
+ '[' x '=' x ]
+ CSQ=-1
+ '[' -1 -ge 0 -a -1 -le 31 ]
+ CSQ=
+ CSQ_PER=
+ COPS=
+ COPS_MCC=
+ COPS_MNC=
+ echo
+ awk '-F["]' '/^\+COPS:\s*.,2/ {print $2}'
+ COPS_NUM=
+ '[' -n ]
+ echo
+ awk '-F["]' '/^\+COPS:\s*.,0/ {print $2}'
+ TCOPS=
+ '[' x '!=' x ]
+ '[' -z ]
+ '[' -n ]
+ '[' -z ]
+ COPS=
+ '[[' '=~' ' ' ]]
sh: : unknown operand
+ sms_tool -d /dev/cdc-wdm0 at 'AT+COPS?'
+ sed -n 2p
+ cut -d '"' -f2
+ tr -d '\r'
tcgetattr(/dev/cdc-wdm0)
tcsetattr(/dev/cdc-wdm0)
No response from modem.
failed tcsetattr(/dev/cdc-wdm0): Not a tty
+ isp=
+ isp_num=' '
+ isp_numws=
+ '[[' '=~' '^[0-9]+$' ]]
sh: ^[0-9]+$: unknown operand
+ LOCATIONFILE=/tmp/location
+ '[' -e /tmp/location ]
+ '[[' '=~' '^[0-9]+$' ]]
+ echo
+ xargs
+ awk '-F[, ]' '/^\+CPIN:/ {print $0;exit}'
+ T=
+ '[' -n ]
+ echo
+ awk '-F[, ]' '/^\+CME ERROR:/ {print $0;exit}'
+ T=
+ '[' -n ]
+ echo
+ 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
+ REG=
+ '[' -z ]
+ echo
+ awk '-F[,]' '/^\+COPS/ {print $4;exit}'
+ MODE_NUM=
+ MODE=-
+ sms_tool -d /dev/cdc-wdm0 at at+cereg
tcgetattr(/dev/cdc-wdm0)
tcsetattr(/dev/cdc-wdm0)
No response from modem.
failed tcsetattr(/dev/cdc-wdm0): Not a tty
+ OTX=
+ echo
+ awk '-F[,]' '/^\+CEREG/ {printf "%s", toupper($3)}'
+ sed 's/[^A-F0-9]//g'
+ TAC=
+ '[' x '!=' x ]
+ TAC=-
+ TAC_HEX=-
+ uci -q get '3ginfo.@3ginfo[0].device'
+ CONF_DEVICE=/dev/ttyUSB2
+ + echo x/dev/ttyUSB2grep -q 192.168.
+ '[' -e /usr/bin/sms_tool ]
+ REGOK=0
+ '[' x '=' x1 ]
+ '[' x '=' x5 ]
+ '[' x '=' x6 ]
+ '[' x '=' x7 ]
+ getdevicevendorproduct /dev/cdc-wdm0
+ basename /dev/cdc-wdm0
+ devname=cdc-wdm0
+ readlink -f /sys/class/usbmisc/cdc-wdm0/device
+ devpath=/sys/devices/platform/soc/8af8800.usb3/8a00000.dwc3/xhci-hcd.0.auto/usb2/2-1/2-1:1.5
+ T=/sys/devices/platform/soc/8af8800.usb3/8a00000.dwc3/xhci-hcd.0.auto/usb2/2-1
+ cat /sys/devices/platform/soc/8af8800.usb3/8a00000.dwc3/xhci-hcd.0.auto/usb2/2-1/idVendor
+ cat /sys/devices/platform/soc/8af8800.usb3/8a00000.dwc3/xhci-hcd.0.auto/usb2/2-1/idProduct
+ echo usb/19d21485
+ VIDPID=usb/19d21485
+ '[' -e /usr/share/3ginfo-lite/modem/usb/19d21485 ]
+ cat /tmp/sysinfo/board_name
+ . /usr/share/3ginfo-lite/modem/usb/19d21485
+ sms_tool -d /dev/cdc-wdm0 at 'at+zrssi;+zcellinfo?;+zcainfo?'
tcgetattr(/dev/cdc-wdm0)
tcsetattr(/dev/cdc-wdm0)
No response from modem.
failed tcsetattr(/dev/cdc-wdm0): Not a tty
+ O=
+ echo -
+ sed 's/LTE_A/LTE-A |/g'
+ sed s,/,+,
+ MODE=-
+ '[' '=' 0 ]
+ sms_tool -d /dev/cdc-wdm0 at ati
tcgetattr(/dev/cdc-wdm0)
tcsetattr(/dev/cdc-wdm0)
No response from modem.
failed tcsetattr(/dev/cdc-wdm0): Not a tty
+ OF=
+ echo
+ tr -s '\n'
+ xargs
+ DEVV=
+ sms_tool+ tr -s '\n'
+ xargs -d /dev/cdc-wdm0 at
AT+GMR
tcgetattr(/dev/cdc-wdm0)
tcsetattr(/dev/cdc-wdm0)
No response from modem.
failed tcsetattr(/dev/cdc-wdm0): Not a tty
+ FWA=
+ echo
+ cut -c 8-
+ FW=
+ echo
+ awk -F 'Revision: ' '{print $1}'
+ xargs
+ MODELA=
+ echo+ awk -F 'Manufacturer: |CORPORATION' '{print $2}'+ xargs
+ MODELB=
+ sms_tool -d /dev/cdc-wdm0 at AT+CGMM
+ tr -s '\n'+ xargs
tcgetattr(/dev/cdc-wdm0)
tcsetattr(/dev/cdc-wdm0)
No response from modem.
failed tcsetattr(/dev/cdc-wdm0): Not a tty
+ MODELD=
+ SUB=MODULE
+ '[[' '==' '*MODULE*' ]]
+ echo
+ cut -c 9-
+ MODELDCUT=
+ MODEL=' '
+ + sms_tool -d /dev/cdc-wdm0 at AT+GSN
xargs
tcgetattr(/dev/cdc-wdm0)
tcsetattr(/dev/cdc-wdm0)
No response from modem.
failed tcsetattr(/dev/cdc-wdm0): Not a tty
+ O=
+ + echo
cut -c 8-
+ NR_I=
+ '[' -n ]
+ sms_tool+ xargs
-d /dev/cdc-wdm0 at AT+CIMI
tcgetattr(/dev/cdc-wdm0)
tcsetattr(/dev/cdc-wdm0)
No response from modem.
failed tcsetattr(/dev/cdc-wdm0): Not a tty
+ O=
+ echo
+ cut -c 9-
+ NR_C=
+ '[' -n ]
+ sms_tool -d /dev/cdc-wdm0 at AT+ICCID
tcgetattr(/dev/cdc-wdm0)
tcsetattr(/dev/cdc-wdm0)
No response from modem.
failed tcsetattr(/dev/cdc-wdm0): Not a tty
+ 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= 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.15
S: Manufacturer=Linux 5.15.162 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=xhci-hcd.0.auto
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=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.15
S: Manufacturer=Linux 5.15.162 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=xhci-hcd.0.auto
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=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=19d2 ProdID=1485 Rev=52.87
S: Manufacturer=ZTE,Incorporated
S: Product=ZTE Technologies MSM
S: SerialNumber=MF286DZTED000000
C:* #Ifs= 7 Cfg#= 1 Atr=80 MxPwr=896mA
A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=ff Driver=rndis_host
E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
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=1024 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=83(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E: Ad=88(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
E: Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=0f(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=usbfs
E: Ad=05(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=89(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
T: Bus=03 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.15
S: Manufacturer=Linux 5.15.162 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=xhci-hcd.1.auto
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=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 0
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.15
S: Manufacturer=Linux 5.15.162 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=xhci-hcd.1.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms'
+ awk -F 'Vendor=19d2 ProdID=1485' '{print $2}'
+ cut -c-1220
+ echo T: 'Bus=01' '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.15 S: 'Manufacturer=Linux' 5.15.162 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=xhci-hcd.0.auto' '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=02' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 1 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.162 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=xhci-hcd.0.auto' '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=02' 'Lev=01' 'Prnt=01' 'Port=00' 'Cnt=01' 'Dev#=' 2 'Spd=5000' 'MxCh=' 0 D: 'Ver=' 3.00 'Cls=00(>ifc' ')' 'Sub=00' 'Prot=00' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=19d2' 'ProdID=1485' 'Rev=52.87' S: 'Manufacturer=ZTE,Incorporated' S: 'Product=ZTE' Technologies MSM S: 'SerialNumber=MF286DZTED000000' 'C:*' '#Ifs=' 7 'Cfg#=' 1 'Atr=80' 'MxPwr=896mA' A: 'FirstIf#=' 0 'IfCount=' 2 'Cls=02(comm.)' 'Sub=06' 'Prot=00' 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' 'Sub=02' 'Prot=ff' 'Driver=rndis_host' E: 'Ad=82(I)' 'Atr=03(Int.)' 'MxPS=' 8 'Ivl=32ms' '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=1024' 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 2 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=83(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 4 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=04(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 5 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qmi_wwan' E: 'Ad=88(I)' 'Atr=03(Int.)' 'MxPS=' 8 'Ivl=32ms' E: 'Ad=8e(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=0f(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 6 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=42' 'Prot=01' 'Driver=usbfs' E: 'Ad=05(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=89(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' T: 'Bus=03' '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.15 S: 'Manufacturer=Linux' 5.15.162 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=xhci-hcd.1.auto' '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=04' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 0 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.162 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=xhci-hcd.1.auto' 'C:*' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=(none)' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms'
+ PV85=' Rev=52.87 S: Manufacturer=ZTE,Incorporated S: Product=ZTE Technologies MSM S: SerialNumber=MF286DZTED000000 C:* #Ifs= 7 Cfg#= 1 Atr=80 MxPwr=896mA A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=ff Driver=rndis_host E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=32ms 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=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan E: Ad=88(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=0f(O) Atr=02(Bulk) MxPS=1024 I'
+ '[' -n ' Rev=52.87 S: Manufacturer=ZTE,Incorporated S: Product=ZTE Technologies MSM S: SerialNumber=MF286DZTED000000 C:* #Ifs= 7 Cfg#= 1 Atr=80 MxPwr=896mA A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=ff Driver=rndis_host E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=32ms 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=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan E: Ad=88(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=0f(O) Atr=02(Bulk) MxPS=1024 I' ]
+ echo ' Rev=52.87 S: Manufacturer=ZTE,Incorporated S: Product=ZTE Technologies MSM S: SerialNumber=MF286DZTED000000 C:* #Ifs= 7 Cfg#= 1 Atr=80 MxPwr=896mA A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00 I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=ff Driver=rndis_host E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=32ms 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=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=83(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan E: Ad=88(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=0f(O) Atr=02(Bulk) MxPS=1024 I'+ grep -q
'Driver=qmi_wwan'
+ PROTO=qmi
+ awk -F 'Vendor=19d2 ProdID=1432' '{print $2}'
+ cut -c-1220
+ echo T: 'Bus=01' '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.15 S: 'Manufacturer=Linux' 5.15.162 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=xhci-hcd.0.auto' '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=02' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 1 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.162 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=xhci-hcd.0.auto' '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=02' 'Lev=01' 'Prnt=01' 'Port=00' 'Cnt=01' 'Dev#=' 2 'Spd=5000' 'MxCh=' 0 D: 'Ver=' 3.00 'Cls=00(>ifc' ')' 'Sub=00' 'Prot=00' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=19d2' 'ProdID=1485' 'Rev=52.87' S: 'Manufacturer=ZTE,Incorporated' S: 'Product=ZTE' Technologies MSM S: 'SerialNumber=MF286DZTED000000' 'C:*' '#Ifs=' 7 'Cfg#=' 1 'Atr=80' 'MxPwr=896mA' A: 'FirstIf#=' 0 'IfCount=' 2 'Cls=02(comm.)' 'Sub=06' 'Prot=00' 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' 'Sub=02' 'Prot=ff' 'Driver=rndis_host' E: 'Ad=82(I)' 'Atr=03(Int.)' 'MxPS=' 8 'Ivl=32ms' '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=1024' 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 2 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=83(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 4 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=04(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 5 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qmi_wwan' E: 'Ad=88(I)' 'Atr=03(Int.)' 'MxPS=' 8 'Ivl=32ms' E: 'Ad=8e(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=0f(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 6 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=42' 'Prot=01' 'Driver=usbfs' E: 'Ad=05(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=89(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' T: 'Bus=03' '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.15 S: 'Manufacturer=Linux' 5.15.162 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=xhci-hcd.1.auto' '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=04' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 0 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.162 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=xhci-hcd.1.auto' 'C:*' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=(none)' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms'
+ PV32=
+ '[' -n ]
+ cat
{
"conn_time":"0d, 01:24:51",
"conn_time_sec":"5091",
"conn_time_since":"20240724061856",
"rx":"670.8 MiB",
"tx":"328.5 MiB",
"modem":" ",
"mtemp":"",
"firmware":"",
"cport":"/dev/cdc-wdm0",
"protocol":"qmi",
"csq":"",
"signal":"",
"operator_name":"",
"operator_mcc":"",
"operator_mnc":"",
"location":"",
"mode":"-",
"registration":"",
"simslot":"",
"imei":"",
"imsi":"",
"iccid":"",
"lac_dec":"",
"lac_hex":"",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"",
"tac_d":"",
"cid_dec":"",
"cid_hex":"",
"pci":"",
"earfcn":"",
"pband":"",
"s1band":"",
"s1pci":"",
"s1earfcn":"",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"",
"rsrq":"",
"rssi":"",
"sinr":""
}
+ exit 0