4IceG / luci-app-3ginfo-lite

Graphic visualization of the mPCI-E / M.2 and USB 3G / LTE / LTE-A / 5G modem connection status. (LuCI JS) | OpenWrt >= 21.02
90 stars 35 forks source link

Telit LN940 incorrect data #51

Closed jfrogg closed 9 months ago

jfrogg commented 9 months ago

Using Telit LN940 (1bc7:1900), but the same is applicable to 1bc7:1901, 03f0:0857, 03f0:0a57. The app shows this: "Technology B2 (1900 MHz)" but it should be like this: "Technology LTE | B3 (1800 MHz)"

"LTE | " is missing and "B2" comes from a typo here: https://github.com/4IceG/luci-app-3ginfo-lite/blob/main/luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/modem/1bc71900#L23 and also in 1bc71901, 03f00857, 03f00a57

SIM information also wrong/incomplete:

"imei":"AT+GSN xxxxxxxxxxxxxxxx",
"imsi":"AT+CIMI xxxxxxxxxxxxxxxx",
"iccid":"",

Thank you

jfrogg commented 9 months ago

SIM info and band fixed, "LTE | " is still missing in Technology. 1bc71900.zip

4IceG commented 9 months ago

hi @jfrogg , Replace this file and see if "LTE/LTE-A" will be visible.

1bc71900_LTEFix.zip

jfrogg commented 9 months ago

Thank you, but it looks a bit weird now: "LTE-A | -A | + B1 (2100 MHz)" appears initially and in a moment it gets replaced with "B3 (1800 MHz)".

4IceG commented 9 months ago

Ok, so I added the MODE="LTE-A |" line unnecessarily, the problem was only with LTE itself. Delete this line from the file and it should be fine.

jfrogg commented 9 months ago

Now it is either "B3 (1800 MHz) + B1 (2100 MHz)" or "B3 (1800 MHz)" without any indication of LTE or LTE-A.

4IceG commented 9 months ago

Ok, show me the output of the AT^CA_INFO? command. I will correct the scripts in the evening.

jfrogg commented 9 months ago

Here it is:

# sms_tool -d /dev/ttyUSB2 at "AT^CA_INFO?"
AT^CA_INFO?
PCC info: Band is LTE_B3, Band_width is 15.0 MHz

# sms_tool -d /dev/ttyUSB2 at "AT^CA_INFO?"
AT^CA_INFO?
PCC info: Band is LTE_B3, Band_width is 15.0 MHz
SCC1 info: Band is LTE_B1, Band_width is 10.0 MHz

Today I had more time than yesterday, so below is fixed and slightly optimised version. 1bc71900.zip

4IceG commented 9 months ago

I quickly checked @jfrogg your script and I would replace this line 21 MODE="$MODE | $(band $PC "LTE ")" for this version MODE="LTE | $(band $PC)"

jfrogg commented 9 months ago

That works, thank you. I tried to stay close to the original ) 1bc71900.zip