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

EP06-E json issue #40

Closed GektorUA closed 1 year ago

GektorUA commented 1 year ago

image

4IceG commented 1 year ago

Hi @GektorUA , thanks for reporting. Extract and replace this file in a folder /usr/share/3ginfo-lite/3ginfo-addon/ It should be ok now. 2c7c0306.zip

GektorUA commented 1 year ago

No, same error.

4IceG commented 1 year ago

I checked the scripts on the EM160R-GL and it was ok, so the modem must be returning something unusual.

@GektorUA show the result of the command sh -x /usr/share/3ginfo-lite/3ginfo.sh

GektorUA commented 1 year ago

Send to you by email

4IceG commented 1 year ago

You sent me the result without errors (you can see it at the end of the file). I changed the way of reading the modem name and temperature (these data were missing). It is possible that an error occurs when reading aggregation data.

2c7c0306.zip

GektorUA commented 1 year ago

image

GektorUA commented 1 year ago

There is Operator name unusual: "lifecell\0D" Maybe it' a point?

4IceG commented 1 year ago

It's possible this is causing the error. Probably the modem is roaming and the commands return unusual data.

GektorUA commented 1 year ago

Provider name in normal data, but Quectel represents it incorrectly. Can it be fixed?

4IceG commented 1 year ago

It's hard for me to say now, it could probably be fixed.

We need the result of the scripts at the time of the error. A terribly problematic modem, constantly need to fix something in the scripts.

The package is simple, it sends at commands to the modem and cuts the necessary data giving the result in the form of json. It is enough that the modem returns something that is not described and the json structure is damaged = errors in LuCI.

GektorUA commented 1 year ago

Modem is very stable, it one of the best modems for industrial segment. It's just unusual operator name, i have same issues with this, just cut special characters from name and it's resolve my issues.

GektorUA commented 1 year ago

One more thing - on older version of package (luci-app-3ginfo-lite 1.0.31-20221121) it's works.

4IceG commented 1 year ago

Modem is very stable, it one of the best modems for industrial segment.

I didn't write that the modem is bad. I meant it just requires more patience 😉. Ok, so I'll go back to the version you provided.