Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cell ID is null #111

Open
giorez opened this issue Jan 2, 2025 · 0 comments
Open

Cell ID is null #111

giorez opened this issue Jan 2, 2025 · 0 comments

Comments

@giorez
Copy link

giorez commented Jan 2, 2025

When I install the package luci-app-3ginfo-lite 1.0.74-20240827 with package mangar in luci, the package works properly. When i build with imagebuilder the Cell ID is null and I can't locate the tower. Even If i unistall and reinstall package with package manager in luci the Cell ID is null.

PS I don't know if modemband and luci-app-modemband can cause the issue

Reported also at https://forum.openwrt.org/t/imagebuilder-misses-custom-packages/219475/4

Heere is the debug log:

`{
"conn_time":"-",
"conn_time_sec":"",
"conn_time_since":"",
"rx":"-",
"tx":"-",
"modem":"Quectel EP06",
"mtemp":"35 °C",
"firmware":"EP06ELAR03A08M4G",
"cport":"/dev/ttyUSB4",
"protocol":"qmi",
"csq":"28",
"signal":"90",
"operator_name":"spusu",
"operator_mcc":"222",{
"conn_time":"-",
"conn_time_sec":"",
"conn_time_since":"",
"rx":"-",
"tx":"-",
"modem":"Quectel EP06",
"mtemp":"35 °C",
"firmware":"EP06ELAR03A08M4G",
"cport":"/dev/ttyUSB4",
"protocol":"qmi",
"csq":"28",
"signal":"90",
"operator_name":"spusu",
"operator_mcc":"222",
"operator_mnc":"88",
"location":"Italy",
"mode":"LTE-A | B7 (2600 MHz) + B3 (1800 MHz)",
"registration":"1",
"simslot":"",
"imei":"xxxxxxx",
"imsi":"xxxxxxx",
"iccid":"xxxxxxx",
"lac_dec":"0",
"lac_hex":"0",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"3AC9",
"tac_d":"15049",
"cid_dec":"0",
"cid_hex":"0",
"pci":"20",
"earfcn":"3350",
"pband":"B7 (2600 MHz) DL: @20 MHz UL: @20 MHz",
"s1band":"B3 (1800 MHz) @20 MHz",
"s1pci":"201",
"s1earfcn":"1650",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"-81",
"rsrq":"-13",
"rssi":"-59",
"sinr":"-20.0"
}

  • RES=/usr/share/3ginfo-lite
  • /usr/share/3ginfo-lite/detect.sh
  • DEVICE=/dev/ttyUSB4
  • '[' -z /dev/ttyUSB4 ]
  • O=
  • '[' -e /usr/bin/sms_tool ]
  • sms_tool -D -d /dev/ttyUSB4 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?'
  • O='AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

  • CONFIG=modemdefine
  • uci show modemdefine
  • grep -o '@modemdefine[[0-9]*].modem'
  • wc -l
  • xargs
  • MODEMZ=0
  • '[[' 0 -gt 1 ]]
  • '[[' 0 -eq 0 ]]
  • uci -q get '3ginfo.@3ginfo[0].network'
  • SEC=wan
  • '[[' 0 -eq 1 ]]
  • '[' -z wan ]
  • CONN_TIME=-
  • RX=-
  • TX=-
  • ifstatus wan
  • grep '"up": true'
  • NETUP=
  • '[' -n ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

  • awk '-F[, ]' '/^+CSQ/ {print $2}'
  • CSQ=28
  • '[' x28 '==' x ]
  • '[' 28 -ge 0 -a 28 -le 31 ]
  • CSQ_PER=90
  • COPS=
  • COPS_MCC=
  • COPS_MNC=
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

  • awk '-F["]' '/^+COPS:\s*.,2/ {print $2}'
  • COPS_NUM=22288
  • '[' -n 22288 ]
  • COPS_MCC=222
  • COPS_MNC=88
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

  • awk '-F["]' '/^+COPS:\s*.,0/ {print $2}'
  • TCOPS='spusu spusu'
  • '[' 'xspusu spusu' '!=' x ]
  • COPS='spusu spusu'
  • '[' -z 'spusu spusu' ]
  • '[' -z 'spusu spusu' ]
  • '[[' 'spusu spusu' '=~' ' ' ]]
  • echo 'spusu spusu'
  • awk '{if(NF==2 && tolower($1)==tolower($2)){print $1}else{print $0}}'
  • COPS=spusu
  • sms_tool -d /dev/ttyUSB4 at 'AT+COPS?'
  • sed -n 2p
  • cut -d '"' -f2
  • tr -d '\r'
  • isp=22288
  • isp_num='222 88'
  • isp_numws=22288
  • '[[' spusu '=~' '^[0-9]+$' ]]
  • LOCATIONFILE=/tmp/location
  • '[' -e /tmp/location ]
  • touch /tmp/location
  • cat /tmp/location
  • LOC=Italy
  • '[' -n Italy ]
  • cat /tmp/location
  • LOC=Italy
  • '[[' Italy '==' - ]]
  • awk '-F[;]' '/^22288;/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat
  • LOC=Italy
  • '[' -n Italy ]
  • echo Italy
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

    • xargs
      awk '-F[, ]' '/^+CPIN:/ {print $0;exit}'
  • T='+CPIN: READY'
  • '[' -n '+CPIN: READY' ]
  • '[' '+CPIN: READY' '==' '+CPIN: READY' ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

  • awk '-F[, ]' '/^+CME ERROR:/ {print $0;exit}'
  • T=
  • '[' -n ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

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="1";LAC_HEX="0";CID_HEX="0";LAC_DEC="0";CID_DEC="0";MODE_NUM="7"'
  • T=1
  • LAC_HEX=0
  • CID_HEX=0
  • LAC_DEC=0
  • CID_DEC=0
  • MODE_NUM=7
  • REG=1
  • '[' -z 7 ]
  • '[' x7 '==' x0 ]
  • MODE=LTE
  • sms_tool -d /dev/ttyUSB4 at at+cereg
  • OTX='at+cereg

'

  • echo 'at+cereg

'

    • awksed '-F[,]' 's/[^A-F0-9]//g' '/^+CEREG/ {printf "%s", toupper($3)}'
  • TAC=

  • '[' x '!=' x ]

  • TAC=-

  • TAC_HEX=-

  • uci -q get '3ginfo.@3ginfo[0].device'

  • CONF_DEVICE=/dev/ttyUSB4

  • echo x/dev/ttyUSB4

  • grep -q 192.168.

  • '[' -e /usr/bin/sms_tool ]

  • REGOK=0

  • '[' x1 '==' x1 ]

  • REGOK=1

  • getdevicevendorproduct /dev/ttyUSB4

  • basename /dev/ttyUSB4

  • devname=ttyUSB4

  • readlink -f /sys/class/tty/ttyUSB4/device

  • devpath=/sys/devices/platform/1e1c0000.xhci/usb1/1-2/1-2:1.3/ttyUSB4

  • T=/sys/devices/platform/1e1c0000.xhci/usb1/1-2

  • cat /sys/devices/platform/1e1c0000.xhci/usb1/1-2/idVendor

  • cat /sys/devices/platform/1e1c0000.xhci/usb1/1-2/idProduct

  • echo usb/2c7c0306

  • VIDPID=usb/2c7c0306

  • '[' -e /usr/share/3ginfo-lite/modem/usb/2c7c0306 ]

  • cat /tmp/sysinfo/board_name

  • . /usr/share/3ginfo-lite/modem/usb/2c7c0306

  • sms_tool -d /dev/ttyUSB4 at at+qtemp

  • O='at+qtemp

+QTEMP: 35,33,33

'

  • echo 'at+qtemp

+QTEMP: 35,33,33

'

  • awk '-F[,:]' '/^+QTEMP/ {t=$21;if($31>t)t=$31;if($41>t)t=$4*1;printf "%d", t}'
  • T=35
  • '[' -n 35 ]
  • TEMP='35 °C'
  • sms_tool -d /dev/ttyUSB4 at 'at+qnwinfo;+qeng="servingcell";+qspn'
  • O='at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

    • awkxargs '-F[,:]'
      '/^+QNWINFO/ {print $2"/"$4}'
  • T='FDD LTE/LTE BAND 7'
  • '[' -n 'FDD LTE/LTE BAND 7' ]
  • '[' x7 '=' x7 ]
  • echo FDD LTE/LTE BAND 7
  • sed 's/.LTE BAND (.)/\1/'
  • B=7
  • band4g 7
  • echo -n B7
  • echo ' (2600 MHz)'
  • MODE='LTE B7 (2600 MHz)'
  • band4g 7
  • echo -n B7
  • echo ' (2600 MHz)'
  • MAINCUT='B7 (2600 MHz)'
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

    • xargsawk
      '-F[,:]' '/^+QENG:/ {print $4}'
  • T=LTE
  • '[' xLTE '=' xLTE ]
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $14}'
  • T=3AC9
  • printf '%d' 0x3AC9
  • T_DEC=15049
  • T_HEX=3AC9
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $12}'
  • T=5
  • T1=20
  • ULBW='UL: @20 MHz'
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $13}'
  • T=5
  • T1=20
  • DLBW='DL: @20 MHz'
  • PBAND='B7 (2600 MHz) DL: @20 MHz UL: @20 MHz'
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $9}'
  • T=20
  • PCI=20
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $10}'
  • T=3350
  • EARFCN=3350
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $17}'
  • T=-52
  • RSSI=-52
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $15}'
  • T=-86
  • RSRP=-86
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $16}'
  • T=-13
  • RSRQ=-13
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '{printf "%.1f\n", $1*0.2-20}'+
    awk '-F[,:]' '/^+QENG:/ {print $18}'
  • T=-17.0
  • SINR=-17.0
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

    • awkxargs '-F[,:]'
      '/^+QSPN/ {print $2}'
  • T=spusu
  • '[' -n spusu ]
  • '[' -z ]
  • COPS=spusu
  • '[' x7 '=' x7 ]
  • sms_tool -d /dev/ttyUSB4 at AT+QCAINFO
  • O='AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

    • xargsawk
      '-F[,]' '/^+QCAINFO: "scc"/{print $4}'
  • T='LTE BAND 3'
  • '[' -n 'LTE BAND 3' ]
  • echo LTE BAND 3
  • sed 's/.LTE BAND (.)/\1/'
  • B=3
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $4}'
  • T=100
  • T1=20
  • band4g 3
  • echo -n B3
  • echo ' (1800 MHz)'
  • MODE='LTE_A B7 (2600 MHz) / B3 (1800 MHz)'
  • band4g 3
  • echo -n B3
  • echo ' (1800 MHz)'
  • S1BAND='B3 (1800 MHz) @20 MHz'
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $7}'
  • T=201
  • S1PCI=201
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $3}'
  • T=1650
  • S1EARFCN=1650
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $10}'
  • T=-59
  • RSSI=-59
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $8}'
  • T=-81
  • RSRP=-81
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $9}'
  • T=-13
  • RSRQ=-13
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '{printf "%.1f\n", $1*0.2-20}'
  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $11}'
  • T=-20.0
  • SINR=-20.0
  • echo LTE_A B7 '(2600' 'MHz)' / B3 '(1800' 'MHz)'
  • sed s,/,+,
  • sed 's/LTE_A/LTE-A | /g'
  • MODE='LTE-A | B7 (2600 MHz) + B3 (1800 MHz)'
  • sms_tool -d /dev/ttyUSB4 at ati
  • OF='ati

Quectel
EP06
Revision: EP06ELAR03A08M4G

'

  • echo 'ati

' 'Quectel
' 'EP06
' Revision: 'EP06ELAR03A08M4G
' '
'

  • tr -s '\n'
  • xargs
  • DEVV='ati Quectel EP06 Revision: EP06ELAR03A08M4G'
  • echo ati Quectel EP06 Revision: EP06ELAR03A08M4G
  • awk -F Revision: '{print $2}'
  • xargs
  • FW=EP06ELAR03A08M4G
  • echo ati Quectel EP06 Revision: EP06ELAR03A08M4G
  • awk -F 'ati|Revision:' '{print $1}'
  • xargs
  • MODEL=
  • '[' -z ]
  • echo ati Quectel EP06 Revision: EP06ELAR03A08M4G
  • awk -F 'ati|Revision:' '{print $2}'
  • xargs
  • MODEL='Quectel EP06'
  • sms_tool -d /dev/ttyUSB4 at AT+GSN
  • xargs
  • O='AT+GSN xxxxx'
  • echo 'AT+GSN xxxxx'
  • cut -c 8-
  • NR_I=xxxxx
  • '[' -n xxxxx ]
  • NR_IMEI=xxxxx
  • sms_tool -d /dev/ttyUSB4 at AT+CIMI
  • xargs
  • O='AT+CIMI xxxxx'
  • echo 'AT+CIMI xxxxx'
  • cut -c 9-
  • NR_C=xxxxx
  • '[' -n xxxxx ]
  • NR_IMSI=xxxxx
  • sms_tool -d /dev/ttyUSB4 at AT+QCCID
  • O='AT+QCCID

+QCCID: xxxxx

'

  • echo 'AT+QCCID

+QCCID: xxxxx

'

  • awk -F '[:]' '/^+QCCID/{print $2}'+
    xargs
  • NR_D=xxxxx
  • '[' -n xxxxx ]
  • NR_ICCID=xxxxx
  • cat /sys/kernel/debug/usb/devices
  • PV='
    T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
    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= 6.06
    S: Manufacturer=Linux 6.6.67 xhci-hcd
    S: Product=xHCI Host Controller
    S: SerialNumber=1e1c0000.xhci
    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=12 MxCh= 0
D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=1a86 ProdID=7523 Rev=82.33
S: Product=USB Serial
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=102mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=02 Driver=ch341
E: Ad=82(I) Atr=02(Bulk) MxPS= 32 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 32 Ivl=0ms
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=1ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=2c7c ProdID=0306 Rev= 3.10
S: Manufacturer=Quectel
S: Product=EP06-E
S: SerialNumber=0123456789ABCDEF
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 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#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E: Ad=89(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
E: Ad=88(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=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= 6.06
S: Manufacturer=Linux 6.6.67 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1e1c0000.xhci
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=2c7c ProdID=0306' '{print $2}'

  • cut -c-1220

  • echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'MxCh=' 2 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=' 6.06 S: 'Manufacturer=Linux' 6.6.67 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' '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=12' 'MxCh=' 0 D: 'Ver=' 1.10 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' 'MxPS=' 8 '#Cfgs=' 1 P: 'Vendor=1a86' 'ProdID=7523' 'Rev=82.33' S: 'Product=USB' Serial 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=80' 'MxPwr=102mA' 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=01' 'Prot=02' 'Driver=ch341' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=' 32 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02(Bulk)' 'MxPS=' 32 'Ivl=0ms' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 8 'Ivl=1ms' T: 'Bus=01' 'Lev=01' 'Prnt=01' 'Port=01' 'Cnt=02' 'Dev#=' 4 'Spd=480' 'MxCh=' 0 D: 'Ver=' 2.00 'Cls=ef(misc' ')' 'Sub=02' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=2c7c' 'ProdID=0306' 'Rev=' 3.10 S: 'Manufacturer=Quectel' S: 'Product=EP06-E' S: 'SerialNumber=0123456789ABCDEF' 'C:' '#Ifs=' 5 'Cfg#=' 1 'Atr=a0' 'MxPwr=500mA' 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:' 'If#=' 1 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' '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#=' 2 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' 'Driver=option' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' 'Driver=option' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=04(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:' 'If#=' 4 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qmi_wwan' E: 'Ad=89(I)' 'Atr=03(Int.)' 'MxPS=' 8 'Ivl=32ms' E: 'Ad=88(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=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=' 6.06 S: 'Manufacturer=Linux' 6.6.67 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' '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= 3.10 S: Manufacturer=Quectel S: Product=EP06-E S: SerialNumber=0123456789ABCDEF C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 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#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan E: Ad=89(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=88(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=5000 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=0'

    • echogrep -q ' Rev= 3.10 S: Manufacturer=Quectel S: Product=EP06-E S: SerialNumber=0123456789ABCDEF C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 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#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan E: Ad=89(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=88(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=5000 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=0' 'Driver=qmi_wwan'
  • PROTO=qmi

  • cat

  • exit 0

"operator_mnc":"88",
"location":"Italy",
"mode":"LTE-A | B7 (2600 MHz) + B3 (1800 MHz)",
"registration":"1",
"simslot":"",
"imei":"xxxxx",
"imsi":"xxxxx",
"iccid":"xxxxx",
"lac_dec":"0",
"lac_hex":"0",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"3AC9",
"tac_d":"15049",
"cid_dec":"0",
"cid_hex":"0",
"pci":"20",
"earfcn":"3350",
"pband":"B7 (2600 MHz) DL: @20 MHz UL: @20 MHz",
"s1band":"B3 (1800 MHz) @20 MHz",
"s1pci":"201",
"s1earfcn":"1650",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"-81",
"rsrq":"-13",
"rssi":"-59",
"sinr":"-20.0"
}

  • RES=/usr/share/3ginfo-lite
  • /usr/share/3ginfo-lite/detect.sh
  • DEVICE=/dev/ttyUSB4
  • '[' -z /dev/ttyUSB4 ]
  • O=
  • '[' -e /usr/bin/sms_tool ]
  • sms_tool -D -d /dev/ttyUSB4 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?'
  • O='AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

  • CONFIG=modemdefine
  • uci show modemdefine
  • grep -o '@modemdefine[[0-9]*].modem'
  • wc -l
  • xargs
  • MODEMZ=0
  • '[[' 0 -gt 1 ]]
  • '[[' 0 -eq 0 ]]
  • uci -q get '3ginfo.@3ginfo[0].network'
  • SEC=wan
  • '[[' 0 -eq 1 ]]
  • '[' -z wan ]
  • CONN_TIME=-
  • RX=-
  • TX=-
  • ifstatus wan
  • grep '"up": true'
  • NETUP=
  • '[' -n ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

  • awk '-F[, ]' '/^+CSQ/ {print $2}'
  • CSQ=28
  • '[' x28 '==' x ]
  • '[' 28 -ge 0 -a 28 -le 31 ]
  • CSQ_PER=90
  • COPS=
  • COPS_MCC=
  • COPS_MNC=
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

  • awk '-F["]' '/^+COPS:\s*.,2/ {print $2}'
  • COPS_NUM=22288
  • '[' -n 22288 ]
  • COPS_MCC=222
  • COPS_MNC=88
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

  • awk '-F["]' '/^+COPS:\s*.,0/ {print $2}'
  • TCOPS='spusu spusu'
  • '[' 'xspusu spusu' '!=' x ]
  • COPS='spusu spusu'
  • '[' -z 'spusu spusu' ]
  • '[' -z 'spusu spusu' ]
  • '[[' 'spusu spusu' '=~' ' ' ]]
  • echo 'spusu spusu'
  • awk '{if(NF==2 && tolower($1)==tolower($2)){print $1}else{print $0}}'
  • COPS=spusu
  • sms_tool -d /dev/ttyUSB4 at 'AT+COPS?'
  • sed -n 2p
  • cut -d '"' -f2
  • tr -d '\r'
  • isp=22288
  • isp_num='222 88'
  • isp_numws=22288
  • '[[' spusu '=~' '^[0-9]+$' ]]
  • LOCATIONFILE=/tmp/location
  • '[' -e /tmp/location ]
  • touch /tmp/location
  • cat /tmp/location
  • LOC=Italy
  • '[' -n Italy ]
  • cat /tmp/location
  • LOC=Italy
  • '[[' Italy '==' - ]]
  • awk '-F[;]' '/^22288;/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat
  • LOC=Italy
  • '[' -n Italy ]
  • echo Italy
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

    • xargs
      awk '-F[, ]' '/^+CPIN:/ {print $0;exit}'
  • T='+CPIN: READY'
  • '[' -n '+CPIN: READY' ]
  • '[' '+CPIN: READY' '==' '+CPIN: READY' ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

OK
'

  • awk '-F[, ]' '/^+CME ERROR:/ {print $0;exit}'
  • T=
  • '[' -n ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 28,99

+COPS: 0,0,"spusu spusu",7

+COPS: 0,2,"22288",7

+CREG: 2,1,"3AC9","243800E",7

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="1";LAC_HEX="0";CID_HEX="0";LAC_DEC="0";CID_DEC="0";MODE_NUM="7"'
  • T=1
  • LAC_HEX=0
  • CID_HEX=0
  • LAC_DEC=0
  • CID_DEC=0
  • MODE_NUM=7
  • REG=1
  • '[' -z 7 ]
  • '[' x7 '==' x0 ]
  • MODE=LTE
  • sms_tool -d /dev/ttyUSB4 at at+cereg
  • OTX='at+cereg

'

  • echo 'at+cereg

'

    • awksed '-F[,]' 's/[^A-F0-9]//g' '/^+CEREG/ {printf "%s", toupper($3)}'
  • TAC=

  • '[' x '!=' x ]

  • TAC=-

  • TAC_HEX=-

  • uci -q get '3ginfo.@3ginfo[0].device'

  • CONF_DEVICE=/dev/ttyUSB4

  • echo x/dev/ttyUSB4

  • grep -q 192.168.

  • '[' -e /usr/bin/sms_tool ]

  • REGOK=0

  • '[' x1 '==' x1 ]

  • REGOK=1

  • getdevicevendorproduct /dev/ttyUSB4

  • basename /dev/ttyUSB4

  • devname=ttyUSB4

  • readlink -f /sys/class/tty/ttyUSB4/device

  • devpath=/sys/devices/platform/1e1c0000.xhci/usb1/1-2/1-2:1.3/ttyUSB4

  • T=/sys/devices/platform/1e1c0000.xhci/usb1/1-2

  • cat /sys/devices/platform/1e1c0000.xhci/usb1/1-2/idVendor

  • cat /sys/devices/platform/1e1c0000.xhci/usb1/1-2/idProduct

  • echo usb/2c7c0306

  • VIDPID=usb/2c7c0306

  • '[' -e /usr/share/3ginfo-lite/modem/usb/2c7c0306 ]

  • cat /tmp/sysinfo/board_name

  • . /usr/share/3ginfo-lite/modem/usb/2c7c0306

  • sms_tool -d /dev/ttyUSB4 at at+qtemp

  • O='at+qtemp

+QTEMP: 35,33,33

'

  • echo 'at+qtemp

+QTEMP: 35,33,33

'

  • awk '-F[,:]' '/^+QTEMP/ {t=$21;if($31>t)t=$31;if($41>t)t=$4*1;printf "%d", t}'
  • T=35
  • '[' -n 35 ]
  • TEMP='35 °C'
  • sms_tool -d /dev/ttyUSB4 at 'at+qnwinfo;+qeng="servingcell";+qspn'
  • O='at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

    • awkxargs '-F[,:]'
      '/^+QNWINFO/ {print $2"/"$4}'
  • T='FDD LTE/LTE BAND 7'
  • '[' -n 'FDD LTE/LTE BAND 7' ]
  • '[' x7 '=' x7 ]
  • echo FDD LTE/LTE BAND 7
  • sed 's/.LTE BAND (.)/\1/'
  • B=7
  • band4g 7
  • echo -n B7
  • echo ' (2600 MHz)'
  • MODE='LTE B7 (2600 MHz)'
  • band4g 7
  • echo -n B7
  • echo ' (2600 MHz)'
  • MAINCUT='B7 (2600 MHz)'
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

    • xargsawk
      '-F[,:]' '/^+QENG:/ {print $4}'
  • T=LTE
  • '[' xLTE '=' xLTE ]
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $14}'
  • T=3AC9
  • printf '%d' 0x3AC9
  • T_DEC=15049
  • T_HEX=3AC9
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $12}'
  • T=5
  • T1=20
  • ULBW='UL: @20 MHz'
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $13}'
  • T=5
  • T1=20
  • DLBW='DL: @20 MHz'
  • PBAND='B7 (2600 MHz) DL: @20 MHz UL: @20 MHz'
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $9}'
  • T=20
  • PCI=20
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $10}'
  • T=3350
  • EARFCN=3350
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $17}'
  • T=-52
  • RSSI=-52
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $15}'
  • T=-86
  • RSRP=-86
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '-F[,:]' '/^+QENG:/ {print $16}'
  • T=-13
  • RSRQ=-13
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

  • awk '{printf "%.1f\n", $1*0.2-20}'+
    awk '-F[,:]' '/^+QENG:/ {print $18}'
  • T=-17.0
  • SINR=-17.0
  • echo 'at+qnwinfo;+qeng="servingcell";+qspn

+QNWINFO: "FDD LTE","22288","LTE BAND 7",3350

+QENG: "servingcell","NOCONN","LTE","FDD",222,88,243800E,20,3350,7,5,5,3AC9,-86,-13,-52,15,-

+QSPN: "spusu","spusu","spusu",0,"22288"

'

    • awkxargs '-F[,:]'
      '/^+QSPN/ {print $2}'
  • T=spusu
  • '[' -n spusu ]
  • '[' -z ]
  • COPS=spusu
  • '[' x7 '=' x7 ]
  • sms_tool -d /dev/ttyUSB4 at AT+QCAINFO
  • O='AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

    • xargsawk
      '-F[,]' '/^+QCAINFO: "scc"/{print $4}'
  • T='LTE BAND 3'
  • '[' -n 'LTE BAND 3' ]
  • echo LTE BAND 3
  • sed 's/.LTE BAND (.)/\1/'
  • B=3
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $4}'
  • T=100
  • T1=20
  • band4g 3
  • echo -n B3
  • echo ' (1800 MHz)'
  • MODE='LTE_A B7 (2600 MHz) / B3 (1800 MHz)'
  • band4g 3
  • echo -n B3
  • echo ' (1800 MHz)'
  • S1BAND='B3 (1800 MHz) @20 MHz'
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $7}'
  • T=201
  • S1PCI=201
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $3}'
  • T=1650
  • S1EARFCN=1650
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $10}'
  • T=-59
  • RSSI=-59
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $8}'
  • T=-81
  • RSRP=-81
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $9}'
  • T=-13
  • RSRQ=-13
  • echo 'AT+QCAINFO

+QCAINFO: "pcc",3350,100,"LTE BAND 7",1,20,-86,-12,-56,15
+QCAINFO: "scc",1650,100,"LTE BAND 3",1,201,-81,-13,-59,0

'

  • awk '{printf "%.1f\n", $1*0.2-20}'
  • awk '-F[,:]' '/^+QCAINFO: "scc"/ {print $11}'
  • T=-20.0
  • SINR=-20.0
  • echo LTE_A B7 '(2600' 'MHz)' / B3 '(1800' 'MHz)'
  • sed s,/,+,
  • sed 's/LTE_A/LTE-A | /g'
  • MODE='LTE-A | B7 (2600 MHz) + B3 (1800 MHz)'
  • sms_tool -d /dev/ttyUSB4 at ati
  • OF='ati

Quectel
EP06
Revision: EP06ELAR03A08M4G

'

  • echo 'ati

' 'Quectel
' 'EP06
' Revision: 'EP06ELAR03A08M4G
' '
'

  • tr -s '\n'
  • xargs
  • DEVV='ati Quectel EP06 Revision: EP06ELAR03A08M4G'
  • echo ati Quectel EP06 Revision: EP06ELAR03A08M4G
  • awk -F Revision: '{print $2}'
  • xargs
  • FW=EP06ELAR03A08M4G
  • echo ati Quectel EP06 Revision: EP06ELAR03A08M4G
  • awk -F 'ati|Revision:' '{print $1}'
  • xargs
  • MODEL=
  • '[' -z ]
  • echo ati Quectel EP06 Revision: EP06ELAR03A08M4G
  • awk -F 'ati|Revision:' '{print $2}'
  • xargs
  • MODEL='Quectel EP06'
  • sms_tool -d /dev/ttyUSB4 at AT+GSN
  • xargs
  • O='AT+GSN xxxxx'
  • echo 'AT+GSN xxxxx'
  • cut -c 8-
  • NR_I=xxxxx
  • '[' -n xxxxx ]
  • NR_IMEI=xxxxx
  • sms_tool -d /dev/ttyUSB4 at AT+CIMI
  • xargs
  • O='AT+CIMI xxxxx'
  • echo 'AT+CIMI xxxxx'
  • cut -c 9-
  • NR_C=xxxxx
  • '[' -n xxxxx ]
  • NR_IMSI=xxxxx
  • sms_tool -d /dev/ttyUSB4 at AT+QCCID
  • O='AT+QCCID

+QCCID: xxxxx

'

  • echo 'AT+QCCID

+QCCID: 8939560000000806706F

'

  • awk -F '[:]' '/^+QCCID/{print $2}'+
    xargs
  • NR_D=8939560000000806706F
  • '[' -n 8939560000000806706F ]
  • NR_ICCID=8939560000000806706F
  • cat /sys/kernel/debug/usb/devices
  • PV='
    T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
    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= 6.06
    S: Manufacturer=Linux 6.6.67 xhci-hcd
    S: Product=xHCI Host Controller
    S: SerialNumber=1e1c0000.xhci
    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=12 MxCh= 0
D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=1a86 ProdID=7523 Rev=82.33
S: Product=USB Serial
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=102mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=02 Driver=ch341
E: Ad=82(I) Atr=02(Bulk) MxPS= 32 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 32 Ivl=0ms
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=1ms

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=2c7c ProdID=0306 Rev= 3.10
S: Manufacturer=Quectel
S: Product=EP06-E
S: SerialNumber=0123456789ABCDEF
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 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#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E: Ad=89(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
E: Ad=88(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=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= 6.06
S: Manufacturer=Linux 6.6.67 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1e1c0000.xhci
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=2c7c ProdID=0306' '{print $2}'

  • cut -c-1220

  • echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'MxCh=' 2 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=' 6.06 S: 'Manufacturer=Linux' 6.6.67 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' '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=12' 'MxCh=' 0 D: 'Ver=' 1.10 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' 'MxPS=' 8 '#Cfgs=' 1 P: 'Vendor=1a86' 'ProdID=7523' 'Rev=82.33' S: 'Product=USB' Serial 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=80' 'MxPwr=102mA' 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=01' 'Prot=02' 'Driver=ch341' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=' 32 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02(Bulk)' 'MxPS=' 32 'Ivl=0ms' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 8 'Ivl=1ms' T: 'Bus=01' 'Lev=01' 'Prnt=01' 'Port=01' 'Cnt=02' 'Dev#=' 4 'Spd=480' 'MxCh=' 0 D: 'Ver=' 2.00 'Cls=ef(misc' ')' 'Sub=02' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=2c7c' 'ProdID=0306' 'Rev=' 3.10 S: 'Manufacturer=Quectel' S: 'Product=EP06-E' S: 'SerialNumber=0123456789ABCDEF' 'C:' '#Ifs=' 5 'Cfg#=' 1 'Atr=a0' 'MxPwr=500mA' 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=option' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:' 'If#=' 1 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' '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#=' 2 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' 'Driver=option' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' 'Driver=option' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' E: 'Ad=04(O)' 'Atr=02(Bulk)' 'MxPS=' 512 'Ivl=0ms' 'I:' 'If#=' 4 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qmi_wwan' E: 'Ad=89(I)' 'Atr=03(Int.)' 'MxPS=' 8 'Ivl=32ms' E: 'Ad=88(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=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=' 6.06 S: 'Manufacturer=Linux' 6.6.67 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' '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= 3.10 S: Manufacturer=Quectel S: Product=EP06-E S: SerialNumber=0123456789ABCDEF C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 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#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan E: Ad=89(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=88(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=5000 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=0'

    • echogrep -q ' Rev= 3.10 S: Manufacturer=Quectel S: Product=EP06-E S: SerialNumber=0123456789ABCDEF C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 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#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan E: Ad=89(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=88(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=5000 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=0' 'Driver=qmi_wwan'
  • PROTO=qmi

  • cat

  • exit 0
    `

@giorez giorez changed the title Cell id null Cell id is null Jan 2, 2025
@giorez giorez changed the title Cell id is null Cell ID is null Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant