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
110 stars 43 forks source link

error parsing fibocom fm350 data #106

Open SuperKali opened 4 days ago

SuperKali commented 4 days ago

Hi,

I noticed that very often the fibocom returns as CSQ value 99, 99, this problem implies the entire dashboard of 3ginfo not showing the data:

"csq":"-",
"signal":"0",
+ awk '-F[, ]' '/^\+CSQ/ {print $2}'
+ CSQ=99
+ '[' x99 '=' x ]
+ '[' 99 -ge 0 -a 99 -le 31 ]
+ CSQ=-
+ CSQ_PER=0
+ '[' -z - ]
+ '[' -z 0 ]
image

Is there a way to solve it?

Thank you

4IceG commented 3 days ago

Hi, How to fix this? Find another command to get CSQ from when the modem shows "unusual value". I'm almost afraid to look at the manual for this modem.

SuperKali commented 3 days ago

Find another command to get CSQ

The problem that there is no other way to get the data, the only way is via AT commands, which is causing this problem, I had to put the value 1 on both variables to keep it from looping, this however will report 1% signal when the value is invalid, but it doesn't trigger the 3ginfo interface loop. I don't understand if it's a module problem or a firmware problem, I updated it but nothing changed