mirror of
https://github.com/4IceG/luci-app-3ginfo-lite.git
synced 2026-04-25 11:25:50 +03:00
[GH-ISSUE #95] 从调制解调器读取数据时出现问题 #73
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/luci-app-3ginfo-lite#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @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:
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":""
}
+CPIN: READY
+CSQ: 99,99
+COPS: 0,0,"CHINA MOBILE",11
+COPS: 0,2,"46000",11
+CREG: 2,0
OK
'
+CPIN: READY
+CSQ: 99,99
+COPS: 0,0,"CHINA MOBILE",11
+COPS: 0,2,"46000",11
+CREG: 2,0
OK
'
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:
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
@obsy commented on GitHub (Sep 8, 2024):
Show us
@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写道:
@obsy commented on GitHub (Sep 8, 2024):
@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写道:
@obsy commented on GitHub (Sep 9, 2024):
Very strange. Again
@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写道:
@jmyh88 commented on GitHub (Sep 9, 2024):
杰 @.***> 于2024年9月9日周一 14:16写道:
@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
@jmyh88 commented on GitHub (Sep 12, 2024):
感谢回复,我需要怎么做了,下载替换文件吗?
Cezary Jackiewicz @.***>于2024年9月12日 周四13:20写道:
@jmyh88 commented on GitHub (Sep 12, 2024):
Thanks for your reply, what should I do to download 2cb70104
Replace the file?
@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: @.***>
@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写道:
@4IceG commented on GitHub (Sep 12, 2024):
@obsy Dzięki Cezary za info, wieczorem sprobuje to dodać.
@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.@jmyh88 commented on GitHub (Sep 12, 2024):
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
@jmyh88 commented on GitHub (Sep 12, 2024):
This is the ssh result after replacing the file

@jmyh88 commented on GitHub (Sep 12, 2024):
root@LibWrt:~# sh -x /usr/share/3ginfo-lite/3ginfo.sh
uci: Entry not found
+CPIN: READY
+CSQ: 26,99
+COPS: 0,0,"CHINA MOBILE",7
+COPS: 0,2,"46000",7
+CREG: 2,0
'K
uci: Entry not found
+CPIN: READY
+CSQ: 26,99
+COPS: 0,0,"CHINA MOBILE",7
+COPS: 0,2,"46000",7
+CREG: 2,0
'K
+CPIN: READY
+CSQ: 26,99
+COPS: 0,0,"CHINA MOBILE",7
+COPS: 0,2,"46000",7
+CREG: 2,0
'K
+CPIN: READY
+CSQ: 26,99
+COPS: 0,0,"CHINA MOBILE",7
+COPS: 0,2,"46000",7
+CREG: 2,0
'K
sh: MOBILE: unknown operand
sh: MOBILE: unknown operand
+CPIN: READY
+CSQ: 26,99
+COPS: 0,0,"CHINA MOBILE",7
+COPS: 0,2,"46000",7
+CREG: 2,0
'K
+CPIN: READY
+CSQ: 26,99
+COPS: 0,0,"CHINA MOBILE",7
+COPS: 0,2,"46000",7
+CREG: 2,0
'K
+CPIN: READY
+CSQ: 26,99
+COPS: 0,0,"CHINA MOBILE",7
+COPS: 0,2,"46000",7
+CREG: 2,0
'K
+CPIN: READY
+CSQ: 26,99
+COPS: 0,0,"CHINA MOBILE",7
+COPS: 0,2,"46000",7
+CREG: 2,0
'K
' MODE_NUM='7
' OTX='
' echo '
+CGMM: "FM150-AE","FM150"
'
+CGMM: "FM150-AE","FM150"
'
' '
: not found3ginfo-lite/3ginfo.sh: /usr/share/3ginfo-lite/modem/usb/2cb70104.fm150: line 2:
+MTSM: 37.5
'
+MTSM: 37.5
'
' 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:~#