[GH-ISSUE #95] 从调制解调器读取数据时出现问题 #73

Open
opened 2026-03-04 11:58:25 +03:00 by kerem · 17 comments
Owner

Originally created by @jmyh88 on GitHub (Sep 4, 2024).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/95

Hello, after compiling the firmware, I enter 3ginfo-lite and it says There is a problem reading data from the modem.
The 5G module is FM150-AE-01。not displayed

Please check:

  1. Modem availability in the system.
  2. The correct installation of the SIM card in the modem.
  3. Port for communication with the modem.
    Network diagnostics

USB debugging information
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= 6.06
S: Manufacturer=Linux 6.6.48 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=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=2cb7 ProdID=0104 Rev= 4.14
S: Manufacturer=Fibocom
S: Product=Fibocom Modem_SN:A43BD
S: SerialNumber=a43bdfcc
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 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=88(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
E: Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0f(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.48 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

检查 3ginfo 脚本读取的数据
{
"conn_time":"0d, 00:09:29",
"conn_time_sec":"569",
"conn_time_since":"20240819",
"rx":"420.7 KiB",
"tx":"41.7",
"modem":"Fibocom FM150-AE",
"mtemp":"41.7 °C",
"firmware":"89602.1000.00.03.07.17",
"cport":"/dev/ttyUSB1",
"protocol":"qmi",
"csq":"",
"signal":"",
"operator_name":"CHINA MOBILE",
"operator_mcc":"460",
"operator_mnc":"00",
"location":"China",
"mode":"-",
"registration":"0",
"simslot":"",
"imei":"8656972645",
"imsi":"46007438756",
"iccid":"89860023811",
"lac_dec":"0",
"lac_hex":"0",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"",
"tac_d":"",
"cid_dec":"0",
"cid_hex":"0",
"pci":"",
"earfcn":"",
"pband":"",
"s1band":"",
"s1pci":"",
"s1earfcn":"",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"",
"rsrq":"",
"rssi":"",
"sinr":""
}

  • RES=/usr/share/3ginfo-lite
  • /usr/share/3ginfo-lite/detect.sh
  • DEVICE=/dev/ttyUSB1
  • '[' -z /dev/ttyUSB1 ]
  • O=
  • '[' -e /usr/bin/sms_tool ]
  • sms_tool -D -d /dev/ttyUSB1 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: 99,99

+COPS: 0,0,"CHINA MOBILE",11

+COPS: 0,2,"46000",11

+CREG: 2,0

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=' "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=569
  • '[' '!' -z 569 ]
  • expr 569 / 60 / 60 / 24
  • D=0
  • expr 569 / 60 / 60 '%' 24
  • H=0
  • expr 569 / 60 '%' 60
  • M=9
  • expr 569 '%' 60
  • S=29
  • printf '%dd, %02d:%02d:%02d' 0 0 9 29
  • CONN_TIME='0d, 00:09:29'
  • date '+%s'
  • date '+%Y%m%d%H%M%S' -d @1725491899
  • CONN_TIME_SINCE=20240905071819
  • ifstatus wan
  • awk '-F"' '/l3_device/ {print $4}'
  • IFACE=wwan0
  • '[' -n wwan0 ]
  • ifconfig wwan0
  • awk '-F[()]' '/bytes/ {printf "%s",$2}'
  • RX='420.7 KiB'
  • ifconfig wwan0
  • awk '-F[()]' '/bytes/ {printf "%s",$4}'
  • TX='2.0 MiB'
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?

+CPIN: READY

+CSQ: 99,99

+COPS: 0,0,"CHINA MOBILE",11

+COPS: 0,2,"46000",11

+CREG: 2,0

OK
'

  • awk '-F[, ]' '/^+CSQ/ {print $2}'
  • CSQ=99
  • '[' x99 '==' x ]
  • '[' 99 -ge 0 -a 99 -le 31 ]
  • CSQ=
  • C
    auto_awesome
    源语言: 英语
    5,000 / 5,000
    Hello, after compiling the firmware, I enter 3ginfo-lite and it says There is a problem reading data from the modem.

Please check:

  1. Modem availability in the system.
  2. The correct installation of the SIM card in the modem.
  3. Port for communication with the modem.
    Network diagnostics

USB debugging information
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= 6.06
S: Manufacturer=Linux 6.6.48 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=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=2cb7 ProdID=0104 Rev= 4.14 S: Manufacturer=Fibocom S: Product=Fibocom Modem_SN:A43BDFCC S: SerialNumber=a43bdfcc C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 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=8 5(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=88(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=0f(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.48 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

Originally created by @jmyh88 on GitHub (Sep 4, 2024). Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/95 Hello, after compiling the firmware, I enter 3ginfo-lite and it says There is a problem reading data from the modem. The 5G module is FM150-AE-01。not displayed Please check: 1. Modem availability in the system. 2. The correct installation of the SIM card in the modem. 3. Port for communication with the modem. Network diagnostics USB debugging information 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= 6.06 S: Manufacturer=Linux 6.6.48 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=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=2cb7 ProdID=0104 Rev= 4.14 S: Manufacturer=Fibocom S: Product=Fibocom Modem_SN:A43BD S: SerialNumber=a43bdfcc C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 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=88(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=0f(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.48 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 检查 3ginfo 脚本读取的数据 { "conn_time":"0d, 00:09:29", "conn_time_sec":"569", "conn_time_since":"20240819", "rx":"420.7 KiB", "tx":"41.7", "modem":"Fibocom FM150-AE", "mtemp":"41.7 °C", "firmware":"89602.1000.00.03.07.17", "cport":"/dev/ttyUSB1", "protocol":"qmi", "csq":"", "signal":"", "operator_name":"CHINA MOBILE", "operator_mcc":"460", "operator_mnc":"00", "location":"China", "mode":"-", "registration":"0", "simslot":"", "imei":"8656972645", "imsi":"46007438756", "iccid":"89860023811", "lac_dec":"0", "lac_hex":"0", "tac_dec":"", "tac_hex":"-", "tac_h":"", "tac_d":"", "cid_dec":"0", "cid_hex":"0", "pci":"", "earfcn":"", "pband":"", "s1band":"", "s1pci":"", "s1earfcn":"", "s2band":"", "s2pci":"", "s2earfcn":"", "s3band":"", "s3pci":"", "s3earfcn":"", "s4band":"", "s4pci":"", "s4earfcn":"", "rsrp":"", "rsrq":"", "rssi":"", "sinr":"" } + RES=/usr/share/3ginfo-lite + /usr/share/3ginfo-lite/detect.sh + DEVICE=/dev/ttyUSB1 + '[' -z /dev/ttyUSB1 ] + O= + '[' -e /usr/bin/sms_tool ] + sms_tool -D -d /dev/ttyUSB1 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: 99,99 +COPS: 0,0,"CHINA MOBILE",11 +COPS: 0,2,"46000",11 +CREG: 2,0 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=' "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=569 + '[' '!' -z 569 ] + expr 569 / 60 / 60 / 24 + D=0 + expr 569 / 60 / 60 '%' 24 + H=0 + expr 569 / 60 '%' 60 + M=9 + expr 569 '%' 60 + S=29 + printf '%dd, %02d:%02d:%02d' 0 0 9 29 + CONN_TIME='0d, 00:09:29' + date '+%s' + date '+%Y%m%d%H%M%S' -d @1725491899 + CONN_TIME_SINCE=20240905071819 + ifstatus wan + awk '-F"' '/l3_device/ {print $4}' + IFACE=wwan0 + '[' -n wwan0 ] + ifconfig wwan0 + awk '-F[()]' '/bytes/ {printf "%s",$2}' + RX='420.7 KiB' + ifconfig wwan0 + awk '-F[()]' '/bytes/ {printf "%s",$4}' + TX='2.0 MiB' + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 99,99 +COPS: 0,0,"CHINA MOBILE",11 +COPS: 0,2,"46000",11 +CREG: 2,0 OK ' + awk '-F[, ]' '/^\+CSQ/ {print $2}' + CSQ=99 + '[' x99 '==' x ] + '[' 99 -ge 0 -a 99 -le 31 ] + CSQ= + C auto_awesome 源语言: 英语 5,000 / 5,000 Hello, after compiling the firmware, I enter 3ginfo-lite and it says There is a problem reading data from the modem. Please check: 1. Modem availability in the system. 2. The correct installation of the SIM card in the modem. 3. Port for communication with the modem. Network diagnostics USB debugging information 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= 6.06 S: Manufacturer=Linux 6.6.48 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=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=2cb7 ProdID=0104 Rev= 4.14 S: Manufacturer=Fibocom S: Product=Fibocom Modem_SN:A43BDFCC S: SerialNumber=a43bdfcc C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 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=8 5(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=88(I) Atr=03(Int.) MxPS= 8 Ivl=32ms E: Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=0f(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.48 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
Author
Owner

@obsy commented on GitHub (Sep 8, 2024):

Show us

sms_tool -d /dev/ttyUSB1 at "AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?"
sms_tool -d /dev/ttyUSB1 at "AT+GTCCINFO?;+GTCAINFO?"
<!-- gh-comment-id:2336724303 --> @obsy commented on GitHub (Sep 8, 2024): Show us ``` sms_tool -d /dev/ttyUSB1 at "AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?" sms_tool -d /dev/ttyUSB1 at "AT+GTCCINFO?;+GTCAINFO?" ```
Author
Owner

@jmyh88 commented on GitHub (Sep 8, 2024):

@.***:~# sms_tool -d /dev/ttyUSB1 at
"AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?"

+CPIN: READY

+CSQ: 99,99

+COPS: 0,0,"CHINA MOBILE",11

+COPS: 0,2,"46000",11

+CREG: 2,0

@.***:~# sms_tool -d /dev/ttyUSB1 at "AT+GTCCINFO?;+GTCAINFO?"

+GTCCINFO:
NR service cell:
1,9,460,00,14702C,,7B49E,35C,5041,100,111,71,71,65

Cezary Jackiewicz @.***> 于2024年9月8日周日 23:21写道:

Show us

sms_tool -d /dev/ttyUSB1 at "AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?"
sms_tool -d /dev/ttyUSB1 at "AT+GTCCINFO?;+GTCAINFO?"


Reply to this email directly, view it on GitHub
https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2336724303,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ7NPNZZ6KHWA2RN7ZTJ2YDZVRTQDAVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWG4ZDIMZQGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2336803242 --> @jmyh88 commented on GitHub (Sep 8, 2024): ***@***.***:~# sms_tool -d /dev/ttyUSB1 at "AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?" +CPIN: READY +CSQ: 99,99 +COPS: 0,0,"CHINA MOBILE",11 +COPS: 0,2,"46000",11 +CREG: 2,0 ***@***.***:~# sms_tool -d /dev/ttyUSB1 at "AT+GTCCINFO?;+GTCAINFO?" +GTCCINFO: NR service cell: 1,9,460,00,14702C,,7B49E,35C,5041,100,111,71,71,65 Cezary Jackiewicz ***@***.***> 于2024年9月8日周日 23:21写道: > Show us > > sms_tool -d /dev/ttyUSB1 at "AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?" > sms_tool -d /dev/ttyUSB1 at "AT+GTCCINFO?;+GTCAINFO?" > > — > Reply to this email directly, view it on GitHub > <https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2336724303>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AJ7NPNZZ6KHWA2RN7ZTJ2YDZVRTQDAVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWG4ZDIMZQGM> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@obsy commented on GitHub (Sep 8, 2024):

sms_tool -d /dev/ttyUSB1 at "at+C5GREG?"
<!-- gh-comment-id:2336814839 --> @obsy commented on GitHub (Sep 8, 2024): ``` sms_tool -d /dev/ttyUSB1 at "at+C5GREG?" ```
Author
Owner

@jmyh88 commented on GitHub (Sep 9, 2024):

@.***:~# sms_tool -d /dev/ttyUSB1 at "at+C5GREG?"
+C5GREG: 0,1

Cezary Jackiewicz @.***>于2024年9月9日 周一04:28写道:

sms_tool -d /dev/ttyUSB1 at "at+C5GREG?"


Reply to this email directly, view it on GitHub
https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2336814839,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ7NPN6QZ4VHSZTJIVXZQD3ZVSXN5AVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWHAYTIOBTHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2336949392 --> @jmyh88 commented on GitHub (Sep 9, 2024): ***@***.***:~# sms_tool -d /dev/ttyUSB1 at "at+C5GREG?" +C5GREG: 0,1 Cezary Jackiewicz ***@***.***>于2024年9月9日 周一04:28写道: > sms_tool -d /dev/ttyUSB1 at "at+C5GREG?" > > — > Reply to this email directly, view it on GitHub > <https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2336814839>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AJ7NPN6QZ4VHSZTJIVXZQD3ZVSXN5AVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWHAYTIOBTHE> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@obsy commented on GitHub (Sep 9, 2024):

Very strange. Again

sms_tool -d /dev/ttyUSB1 at "at+C5GREG=2;+C5GREG?"
<!-- gh-comment-id:2337137018 --> @obsy commented on GitHub (Sep 9, 2024): Very strange. Again ``` sms_tool -d /dev/ttyUSB1 at "at+C5GREG=2;+C5GREG?" ```
Author
Owner

@jmyh88 commented on GitHub (Sep 9, 2024):

@.***:~# sms_tool -d /dev/ttyUSB1 at "at+C5GREG=2;+C5GREG?"

+C5GREG: 2,1,"14702C","71B3009",11,1,"01"

Cezary Jackiewicz @.***> 于2024年9月9日周一 13:12写道:

Very strange. Again

sms_tool -d /dev/ttyUSB1 at "at+C5GREG=2;+C5GREG?"


Reply to this email directly, view it on GitHub
https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2337137018,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ7NPNZR7MQXINFOK2FIG7TZVUU4DAVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZXGEZTOMBRHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2337216629 --> @jmyh88 commented on GitHub (Sep 9, 2024): ***@***.***:~# sms_tool -d /dev/ttyUSB1 at "at+C5GREG=2;+C5GREG?" +C5GREG: 2,1,"14702C","71B3009",11,1,"01" Cezary Jackiewicz ***@***.***> 于2024年9月9日周一 13:12写道: > Very strange. Again > > sms_tool -d /dev/ttyUSB1 at "at+C5GREG=2;+C5GREG?" > > — > Reply to this email directly, view it on GitHub > <https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2337137018>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AJ7NPNZR7MQXINFOK2FIG7TZVUU4DAVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZXGEZTOMBRHA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@jmyh88 commented on GitHub (Sep 9, 2024):

@.***> 于2024年9月9日周一 14:16写道:

@.***:~# sms_tool -d /dev/ttyUSB1 at "at+C5GREG=2;+C5GREG?"

+C5GREG: 2,1,"14702C","71B3009",11,1,"01"

Cezary Jackiewicz @.***> 于2024年9月9日周一 13:12写道:

Very strange. Again

sms_tool -d /dev/ttyUSB1 at "at+C5GREG=2;+C5GREG?"


Reply to this email directly, view it on GitHub
https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2337137018,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ7NPNZR7MQXINFOK2FIG7TZVUU4DAVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZXGEZTOMBRHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2337223834 --> @jmyh88 commented on GitHub (Sep 9, 2024): 杰 ***@***.***> 于2024年9月9日周一 14:16写道: > ***@***.***:~# sms_tool -d /dev/ttyUSB1 at "at+C5GREG=2;+C5GREG?" > > +C5GREG: 2,1,"14702C","71B3009",11,1,"01" > > Cezary Jackiewicz ***@***.***> 于2024年9月9日周一 13:12写道: > >> Very strange. Again >> >> sms_tool -d /dev/ttyUSB1 at "at+C5GREG=2;+C5GREG?" >> >> — >> Reply to this email directly, view it on GitHub >> <https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2337137018>, >> or unsubscribe >> <https://github.com/notifications/unsubscribe-auth/AJ7NPNZR7MQXINFOK2FIG7TZVUU4DAVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZXGEZTOMBRHA> >> . >> You are receiving this because you authored the thread.Message ID: >> ***@***.***> >> >
Author
Owner

@obsy commented on GitHub (Sep 12, 2024):

Update script: github.com/obsy/packages@6e46db60d6
@4IceG: please adapt it to your project

For 5G SA in FM150 RSSI is not displayed, only RSRP

<!-- gh-comment-id:2345297016 --> @obsy commented on GitHub (Sep 12, 2024): Update script: https://github.com/obsy/packages/commit/6e46db60d611026129f7019b655702d700dd471d @4IceG: please adapt it to your project For 5G SA in FM150 RSSI is not displayed, only RSRP
Author
Owner

@jmyh88 commented on GitHub (Sep 12, 2024):

感谢回复,我需要怎么做了,下载替换文件吗?

Cezary Jackiewicz @.***>于2024年9月12日 周四13:20写道:

Update script: @.***
https://github.com/obsy/packages/commit/6e46db60d611026129f7019b655702d700dd471d
@4IceG https://github.com/4IceG: please adapt it to your project

For 5G SA in FM150 RSSI is not displayed, only RSRP


Reply to this email directly, view it on GitHub
https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2345297016,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ7NPN7H76PBJMNFXSYL2HTZWEQDVAVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBVGI4TOMBRGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2345385768 --> @jmyh88 commented on GitHub (Sep 12, 2024): 感谢回复,我需要怎么做了,下载替换文件吗? Cezary Jackiewicz ***@***.***>于2024年9月12日 周四13:20写道: > Update script: ***@***.*** > <https://github.com/obsy/packages/commit/6e46db60d611026129f7019b655702d700dd471d> > @4IceG <https://github.com/4IceG>: please adapt it to your project > > For 5G SA in FM150 RSSI is not displayed, only RSRP > > — > Reply to this email directly, view it on GitHub > <https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2345297016>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AJ7NPN7H76PBJMNFXSYL2HTZWEQDVAVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBVGI4TOMBRGY> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@jmyh88 commented on GitHub (Sep 12, 2024):

更新脚本:obsy/packages@ 6e46db6 @4IceG:请根据您的项目进行调整

对于 FM150 中的 5G SA,不显示 RSSI,仅显示 RSRP

Thanks for your reply, what should I do to download 2cb70104
Replace the file?

<!-- gh-comment-id:2345397657 --> @jmyh88 commented on GitHub (Sep 12, 2024): > 更新脚本:[obsy/packages@ 6e46db6](https://github.com/obsy/packages/commit/6e46db60d611026129f7019b655702d700dd471d) @4IceG:请根据您的项目进行调整 > > 对于 FM150 中的 5G SA,不显示 RSSI,仅显示 RSRP Thanks for your reply, what should I do to download 2cb70104 Replace the file?
Author
Owner

@obsy commented on GitHub (Sep 12, 2024):

No, it has to be rewritten for this specific project. Mine is different (not for luci)12 wrz 2024 08:42 寂寞烟花 @.***> napisał(a):

更新脚本:obsy/packages@ 6e46db6 @4IceG:请根据您的项目进行调整
对于 FM150 中的 5G SA,不显示 RSSI,仅显示 RSRP

Thanks for your reply, what should I do to download 2cb70104
Replace the file?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

<!-- gh-comment-id:2345456329 --> @obsy commented on GitHub (Sep 12, 2024): No, it has to be rewritten for this specific project. Mine is different (not for luci)12 wrz 2024 08:42 寂寞烟花 ***@***.***> napisał(a): 更新脚本:obsy/packages@ 6e46db6 @4IceG:请根据您的项目进行调整 对于 FM150 中的 5G SA,不显示 RSSI,仅显示 RSRP Thanks for your reply, what should I do to download 2cb70104 Replace the file? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
Author
Owner

@jmyh88 commented on GitHub (Sep 12, 2024):

I don't quite understand how to operate it, or can you help compile the ipk
file for me to install it, thanks

Cezary Jackiewicz @.***>于2024年9月12日 周四15:18写道:

No, it has to be rewritten for this specific project. Mine is different
(not for luci)12 wrz 2024 08:42 寂寞烟花 @.***> napisał(a):

更新脚本:obsy/packages@ 6e46db6 @4IceG:请根据您的项目进行调整
对于 FM150 中的 5G SA,不显示 RSSI,仅显示 RSRP

Thanks for your reply, what should I do to download 2cb70104
Replace the file?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are
receiving this because you commented.Message ID: @.***>


Reply to this email directly, view it on GitHub
https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2345456329,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ7NPN6AFW6EKP4OEXHHSYLZWE54TAVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBVGQ2TMMZSHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2345470006 --> @jmyh88 commented on GitHub (Sep 12, 2024): I don't quite understand how to operate it, or can you help compile the ipk file for me to install it, thanks Cezary Jackiewicz ***@***.***>于2024年9月12日 周四15:18写道: > No, it has to be rewritten for this specific project. Mine is different > (not for luci)12 wrz 2024 08:42 寂寞烟花 ***@***.***> napisał(a): > > 更新脚本:obsy/packages@ 6e46db6 @4IceG:请根据您的项目进行调整 > 对于 FM150 中的 5G SA,不显示 RSSI,仅显示 RSRP > > Thanks for your reply, what should I do to download 2cb70104 > Replace the file? > > —Reply to this email directly, view it on GitHub, or unsubscribe.You are > receiving this because you commented.Message ID: ***@***.***> > > — > Reply to this email directly, view it on GitHub > <https://github.com/4IceG/luci-app-3ginfo-lite/issues/95#issuecomment-2345456329>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AJ7NPN6AFW6EKP4OEXHHSYLZWE54TAVCNFSM6AAAAABNVJYAJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBVGQ2TMMZSHE> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@4IceG commented on GitHub (Sep 12, 2024):

@obsy Dzięki Cezary za info, wieczorem sprobuje to dodać.

<!-- gh-comment-id:2345558899 --> @4IceG commented on GitHub (Sep 12, 2024): @obsy Dzięki Cezary za info, wieczorem sprobuje to dodać.
Author
Owner

@4IceG commented on GitHub (Sep 12, 2024):

@jmyh88 I don't know if it will work, but you can check it out.

Unpack test.zip archive and copy files to usr/share/3ginfo-lite/modem/usb.

<!-- gh-comment-id:2346966679 --> @4IceG commented on GitHub (Sep 12, 2024): @jmyh88 I don't know if it will work, but you can check it out. Unpack [test.zip](https://github.com/user-attachments/files/16984043/test.zip) archive and copy files to `usr/share/3ginfo-lite/modem/usb`.
Author
Owner

@jmyh88 commented on GitHub (Sep 12, 2024):

@jmyh88我不知道它是否会起作用,但你可以检查一下。

解压test.zip档案并将文件复制到usr/share/3ginfo-lite/modem/usb

After replacing, the file permissions are 0664, restart openwrt, and enter 3ginfo-lite again
SyntaxError Unexpected end of JSON input
Error: Unexpected end of JSON input
截屏2024-09-13 05 54 33

<!-- gh-comment-id:2347316527 --> @jmyh88 commented on GitHub (Sep 12, 2024): > @jmyh88我不知道它是否会起作用,但你可以检查一下。 > > 解压[test.zip](https://github.com/user-attachments/files/16984043/test.zip)档案并将文件复制到`usr/share/3ginfo-lite/modem/usb`。 After replacing, the file permissions are 0664, restart openwrt, and enter 3ginfo-lite again SyntaxError Unexpected end of JSON input Error: Unexpected end of JSON input ![截屏2024-09-13 05 54 33](https://github.com/user-attachments/assets/7a00a1b9-7bb1-4c09-a769-6646064b9aec)
Author
Owner

@jmyh88 commented on GitHub (Sep 12, 2024):

sms_tool -d /dev/ttyUSB1 at "AT+GTCCINFO?;+GTCAINFO?"

This is the ssh result after replacing the file
截屏2024-09-13 06 00 46

<!-- gh-comment-id:2347322376 --> @jmyh88 commented on GitHub (Sep 12, 2024): > sms_tool -d /dev/ttyUSB1 at "AT+GTCCINFO?;+GTCAINFO?" This is the ssh result after replacing the file ![截屏2024-09-13 06 00 46](https://github.com/user-attachments/assets/1ce7da64-2c10-4b0e-9310-00714a549314)
Author
Owner

@jmyh88 commented on GitHub (Sep 12, 2024):

@jmyh88我不知道它是否会起作用,但你可以检查一下。

解压test.zip档案并将文件复制到usr/share/3ginfo-lite/modem/usb

root@LibWrt:~# sh -x /usr/share/3ginfo-lite/3ginfo.sh

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

+CSQ: 26,99

+COPS: 0,0,"CHINA MOBILE",7

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

+CREG: 2,0

'K

  • CONFIG=modemdefine
  • uci show modemdefine
  • grep -o '@modemdefine[[0-9]*].modem'
  • wc -l
  • xargs
    uci: Entry not found
  • MODEMZ=0
  • '' 0
  • uci -q get 'modemdefine.@general[0].main_network'
  • SEC=
  • '
  • uci -q get '3ginfo.@3ginfo[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=1520
  • '[' '!' -z 1520 ]
  • expr 1520 / 60 / 60 / 24
  • D=0
  • expr 1520 / 60 / 60 '%' 24
  • H=0
  • expr 1520 / 60 '%' 60
  • M=25
  • expr 1520 '%' 60
  • S=20
  • printf '%dd, %02d:%02d:%02d' 0 0 25 20
  • CONN_TIME='0d, 00:25:20'
  • date '+%s'
  • date '+%Y%m%d%H%M%S' -d @1726177608
  • CONN_TIME_SINCE=20240913054648
  • ifstatus wan
  • awk '-F"' '/l3_device/ {print $4}'
  • IFACE=wwan0
  • '[' -n wwan0 ]
  • ifconfig wwan0
  • awk '-F[()]' '/bytes/ {printf "%s",$2}'
  • RX='1.0 MiB'
  • ifconfig wwan0
  • awk '-F[()]' '/bytes/ {printf "%s",$4}'
  • TX='6.2 MiB'
  • echo '
    +CPIN: READY

+CSQ: 26,99

+COPS: 0,0,"CHINA MOBILE",7

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

+CREG: 2,0

'K

  • awk '-F[, ]' '/^+CSQ/ {print $2}'
  • CSQ=26
  • '[' x26 '=' x ]
  • '[' 26 -ge 0 -a 26 -le 31 ]
  • CSQ_PER=83
  • COPS=
  • COPS_MCC=
  • COPS_MNC=
  • echo '
    +CPIN: READY

+CSQ: 26,99

+COPS: 0,0,"CHINA MOBILE",7

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

+CREG: 2,0

'K

  • awk '-F["]' '/^+COPS:\s*.,2/ {print $2}'
  • COPS_NUM=46000
  • '[' -n 46000 ]
  • COPS_MCC=460
  • COPS_MNC=00
  • echo '
    +CPIN: READY

+CSQ: 26,99

+COPS: 0,0,"CHINA MOBILE",7

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

+CREG: 2,0

'K

  • awk '-F["]' '/^+COPS:\s*.,0/ {print $2}'
  • TCOPS='CHINA MOBILE'
  • '[' 'xCHINA MOBILE' '!=' x ]
  • COPS='CHINA MOBILE'
  • '[' -z 'CHINA MOBILE' ]
  • '[' -z 'CHINA MOBILE' ]
  • '
    sh: MOBILE: unknown operand
  • sms_tool -d /dev/ttyUSB1 at 'AT+COPS?'
  • sed -n 2p
  • cut -d '"' -f2
  • tr -d '\r'
  • isp=46000
  • isp_num='460 00'
  • isp_numws=46000
  • '
    sh: MOBILE: unknown operand
  • LOCATIONFILE=/tmp/location
  • '[' -e /tmp/location ]
  • touch /tmp/location
  • cat /tmp/location
  • LOC=China
  • '[' -n China ]
  • cat /tmp/location
  • LOC=China
  • '
  • awk '-F[;]' '/^46000;/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat
  • LOC=China
  • '[' -n China ]
  • echo China
  • echo '
    +CPIN: READY

+CSQ: 26,99

+COPS: 0,0,"CHINA MOBILE",7

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

+CREG: 2,0

'K

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

+CSQ: 26,99

+COPS: 0,0,"CHINA MOBILE",7

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

+CREG: 2,0

'K

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

+CSQ: 26,99

+COPS: 0,0,"CHINA MOBILE",7

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

+CREG: 2,0

'K

  • 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="0";LAC_HEX="0";CID_HEX="0";LAC_DEC="0";CID_DEC="0";MODE_NUM="0"'
  • T=0
  • LAC_HEX=0
  • CID_HEX=0
  • LAC_DEC=0
  • CID_DEC=0
  • MODE_NUM=0
  • REG=0
  • '[' -z 0 ]
  • '[' x0 '=' x0 ]
  • echo '
    +CPIN: READY

+CSQ: 26,99

+COPS: 0,0,"CHINA MOBILE",7

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

+CREG: 2,0

'K

  • awk '-F[,]' '/^+COPS/ {print $4;exit}'
    ' MODE_NUM='7
  • MODE=LTE
  • sms_tool -d /dev/ttyUSB1 at at+cereg
    ' 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/ttyUSB1
  • echo x/dev/ttyUSB1
  • grep -q 192.168.
  • '[' -e /usr/bin/sms_tool ]
  • REGOK=0
  • '[' x0 '=' x1 ]
  • '[' x0 '=' x5 ]
  • '[' x0 '=' x6 ]
  • '[' x0 '=' x7 ]
  • getdevicevendorproduct /dev/ttyUSB1
  • basename /dev/ttyUSB1
  • devname=ttyUSB1
  • readlink -f /sys/class/tty/ttyUSB1/device
  • devpath=/sys/devices/platform/soc@0/8af8800.usb/8a00000.usb/xhci-hcd.1.auto/usb1/1-1/1-1:1.1/ttyUSB1
  • T=/sys/devices/platform/soc@0/8af8800.usb/8a00000.usb/xhci-hcd.1.auto/usb1/1-1
  • cat /sys/devices/platform/soc@0/8af8800.usb/8a00000.usb/xhci-hcd.1.auto/usb1/1-1/idVendor
  • cat /sys/devices/platform/soc@0/8af8800.usb/8a00000.usb/xhci-hcd.1.auto/usb1/1-1/idProduct
  • echo usb/2cb70104
  • VIDPID=usb/2cb70104
  • '[' -e /usr/share/3ginfo-lite/modem/usb/2cb70104 ]
  • cat /tmp/sysinfo/board_name
  • . /usr/share/3ginfo-lite/modem/usb/2cb70104
  • sms_tool -d /dev/ttyUSB1 at 'AT+CGMM?'
  • O='
    +CGMM: "FM150-AE","FM150"
    '
  • echo '
    +CGMM: "FM150-AE","FM150"
    '
  • grep -q FM150
  • . /usr/share/3ginfo-lite/modem/usb/2cb70104.fm150
    ' '
    : not found3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/2cb70104.fm150: line 2:
  • sms_tool -d /dev/ttyUSB1 at 'AT+MTSM=1'
  • O='
    +MTSM: 37.5
    '
  • echo '
    +MTSM: 37.5
    '
  • awk '/+MTSM:/{print $2}'
    ' T='37.5
    ' ][' -n '37.5
    '°C'37.5
    ' '
    : not found3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/2cb70104.fm150: line 7:
    /usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/2cb70104.fm150: line 17: syntax error: unexpected word (expecting "in")
    root@LibWrt:~#
<!-- gh-comment-id:2347336844 --> @jmyh88 commented on GitHub (Sep 12, 2024): > @jmyh88我不知道它是否会起作用,但你可以检查一下。 > > 解压[test.zip](https://github.com/user-attachments/files/16984043/test.zip)档案并将文件复制到`usr/share/3ginfo-lite/modem/usb`。 root@LibWrt:~# sh -x /usr/share/3ginfo-lite/3ginfo.sh + RES=/usr/share/3ginfo-lite + /usr/share/3ginfo-lite/detect.sh uci: Entry not found + DEVICE=/dev/ttyUSB1 + '[' -z /dev/ttyUSB1 ] + O= + '[' -e /usr/bin/sms_tool ] + sms_tool -D -d /dev/ttyUSB1 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?' + O=' +CPIN: READY +CSQ: 26,99 +COPS: 0,0,"CHINA MOBILE",7 +COPS: 0,2,"46000",7 +CREG: 2,0 'K + CONFIG=modemdefine + uci show modemdefine + grep -o '@modemdefine\[[0-9]*\]\.modem' + wc -l + xargs uci: Entry not found + MODEMZ=0 + '[[' 0 ]] + uci -q get 'modemdefine.@general[0].main_network' + SEC= + '[[' 0 '=' 0 ]] + uci -q get '3ginfo.@3ginfo[0].network' + SEC=wan + '[[' 0 '=' 1 ]] + '[' -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=1520 + '[' '!' -z 1520 ] + expr 1520 / 60 / 60 / 24 + D=0 + expr 1520 / 60 / 60 '%' 24 + H=0 + expr 1520 / 60 '%' 60 + M=25 + expr 1520 '%' 60 + S=20 + printf '%dd, %02d:%02d:%02d' 0 0 25 20 + CONN_TIME='0d, 00:25:20' + date '+%s' + date '+%Y%m%d%H%M%S' -d @1726177608 + CONN_TIME_SINCE=20240913054648 + ifstatus wan + awk '-F"' '/l3_device/ {print $4}' + IFACE=wwan0 + '[' -n wwan0 ] + ifconfig wwan0 + awk '-F[()]' '/bytes/ {printf "%s",$2}' + RX='1.0 MiB' + ifconfig wwan0 + awk '-F[()]' '/bytes/ {printf "%s",$4}' + TX='6.2 MiB' + echo ' +CPIN: READY +CSQ: 26,99 +COPS: 0,0,"CHINA MOBILE",7 +COPS: 0,2,"46000",7 +CREG: 2,0 'K + awk '-F[, ]' '/^\+CSQ/ {print $2}' + CSQ=26 + '[' x26 '=' x ] + '[' 26 -ge 0 -a 26 -le 31 ] + CSQ_PER=83 + COPS= + COPS_MCC= + COPS_MNC= + echo ' +CPIN: READY +CSQ: 26,99 +COPS: 0,0,"CHINA MOBILE",7 +COPS: 0,2,"46000",7 +CREG: 2,0 'K + awk '-F["]' '/^\+COPS:\s*.,2/ {print $2}' + COPS_NUM=46000 + '[' -n 46000 ] + COPS_MCC=460 + COPS_MNC=00 + echo ' +CPIN: READY +CSQ: 26,99 +COPS: 0,0,"CHINA MOBILE",7 +COPS: 0,2,"46000",7 +CREG: 2,0 'K + awk '-F["]' '/^\+COPS:\s*.,0/ {print $2}' + TCOPS='CHINA MOBILE' + '[' 'xCHINA MOBILE' '!=' x ] + COPS='CHINA MOBILE' + '[' -z 'CHINA MOBILE' ] + '[' -z 'CHINA MOBILE' ] + '[[' CHINA MOBILE '=~' ' ' ]] sh: MOBILE: unknown operand + sms_tool -d /dev/ttyUSB1 at 'AT+COPS?' + sed -n 2p + cut -d '"' -f2 + tr -d '\r' + isp=46000 + isp_num='460 00' + isp_numws=46000 + '[[' CHINA MOBILE '=~' '^[0-9]+$' ]] sh: MOBILE: unknown operand + LOCATIONFILE=/tmp/location + '[' -e /tmp/location ] + touch /tmp/location + cat /tmp/location + LOC=China + '[' -n China ] + cat /tmp/location + LOC=China + '[[' China '==' - ]] + awk '-F[;]' '/^46000;/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat + LOC=China + '[' -n China ] + echo China + echo ' +CPIN: READY +CSQ: 26,99 +COPS: 0,0,"CHINA MOBILE",7 +COPS: 0,2,"46000",7 +CREG: 2,0 'K + awk '-F[, ]' '/^\+CPIN:/ {print $0;exit}' + xargs + T='+CPIN: READY' + '[' -n '+CPIN: READY' ] + '[' '+CPIN: READY' '=' '+CPIN: READY' ] + echo ' +CPIN: READY +CSQ: 26,99 +COPS: 0,0,"CHINA MOBILE",7 +COPS: 0,2,"46000",7 +CREG: 2,0 'K + awk '-F[, ]' '/^\+CME ERROR:/ {print $0;exit}' + T= + '[' -n ] + echo ' +CPIN: READY +CSQ: 26,99 +COPS: 0,0,"CHINA MOBILE",7 +COPS: 0,2,"46000",7 +CREG: 2,0 'K + 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="0";LAC_HEX="0";CID_HEX="0";LAC_DEC="0";CID_DEC="0";MODE_NUM="0"' + T=0 + LAC_HEX=0 + CID_HEX=0 + LAC_DEC=0 + CID_DEC=0 + MODE_NUM=0 + REG=0 + '[' -z 0 ] + '[' x0 '=' x0 ] + echo ' +CPIN: READY +CSQ: 26,99 +COPS: 0,0,"CHINA MOBILE",7 +COPS: 0,2,"46000",7 +CREG: 2,0 'K + awk '-F[,]' '/^\+COPS/ {print $4;exit}' ' MODE_NUM='7 + MODE=LTE + sms_tool -d /dev/ttyUSB1 at at+cereg ' 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/ttyUSB1 + echo x/dev/ttyUSB1 + grep -q 192.168. + '[' -e /usr/bin/sms_tool ] + REGOK=0 + '[' x0 '=' x1 ] + '[' x0 '=' x5 ] + '[' x0 '=' x6 ] + '[' x0 '=' x7 ] + getdevicevendorproduct /dev/ttyUSB1 + basename /dev/ttyUSB1 + devname=ttyUSB1 + readlink -f /sys/class/tty/ttyUSB1/device + devpath=/sys/devices/platform/soc@0/8af8800.usb/8a00000.usb/xhci-hcd.1.auto/usb1/1-1/1-1:1.1/ttyUSB1 + T=/sys/devices/platform/soc@0/8af8800.usb/8a00000.usb/xhci-hcd.1.auto/usb1/1-1 + cat /sys/devices/platform/soc@0/8af8800.usb/8a00000.usb/xhci-hcd.1.auto/usb1/1-1/idVendor + cat /sys/devices/platform/soc@0/8af8800.usb/8a00000.usb/xhci-hcd.1.auto/usb1/1-1/idProduct + echo usb/2cb70104 + VIDPID=usb/2cb70104 + '[' -e /usr/share/3ginfo-lite/modem/usb/2cb70104 ] + cat /tmp/sysinfo/board_name + . /usr/share/3ginfo-lite/modem/usb/2cb70104 + sms_tool -d /dev/ttyUSB1 at 'AT+CGMM?' + O=' +CGMM: "FM150-AE","FM150" ' + echo ' +CGMM: "FM150-AE","FM150" ' + grep -q FM150 + . /usr/share/3ginfo-lite/modem/usb/2cb70104.fm150 ' ' : not found3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/2cb70104.fm150: line 2: + sms_tool -d /dev/ttyUSB1 at 'AT+MTSM=1' + O=' +MTSM: 37.5 ' + echo ' +MTSM: 37.5 ' + awk '/\+MTSM:/{print $2}' ' T='37.5 ' ][' -n '37.5 '&deg;C'37.5 ' ' : not found3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/2cb70104.fm150: line 7: /usr/share/3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/2cb70104.fm150: line 17: syntax error: unexpected word (expecting "in") root@LibWrt:~#
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/luci-app-3ginfo-lite#73
No description provided.