[GH-ISSUE #106] error parsing fibocom fm350 data #216

Open
opened 2026-03-13 13:52:19 +03:00 by kerem · 6 comments
Owner

Originally created by @SuperKali on GitHub (Nov 22, 2024).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/106

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

Originally created by @SuperKali on GitHub (Nov 22, 2024). Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/106 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: ```json "csq":"-", "signal":"0", ``` ```bash + awk '-F[, ]' '/^\+CSQ/ {print $2}' + CSQ=99 + '[' x99 '=' x ] + '[' 99 -ge 0 -a 99 -le 31 ] + CSQ=- + CSQ_PER=0 + '[' -z - ] + '[' -z 0 ] ``` <img width="1152" alt="image" src="https://github.com/user-attachments/assets/0c2c5f7f-059e-4d2e-a224-b25379874c8d"> Is there a way to solve it? Thank you
Author
Owner

@4IceG commented on GitHub (Nov 22, 2024):

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.

<!-- gh-comment-id:2494837366 --> @4IceG commented on GitHub (Nov 22, 2024): 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.
Author
Owner

@SuperKali commented on GitHub (Nov 23, 2024):

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

<!-- gh-comment-id:2495421498 --> @SuperKali commented on GitHub (Nov 23, 2024): > 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
Author
Owner

@greg33331 commented on GitHub (Jan 2, 2025):

Same,
with Fibocom FM350-GL module sporadically the connection is interrupted and it is not possible to view the metrics.
Instead through AT commands it is possible to request the information continuously.
It is possible to fix the problem?
Thanks!

<!-- gh-comment-id:2568523819 --> @greg33331 commented on GitHub (Jan 2, 2025): Same, with Fibocom FM350-GL module sporadically the connection is interrupted and it is not possible to view the metrics. Instead through AT commands it is possible to request the information continuously. It is possible to fix the problem? Thanks!
Author
Owner

@sjjcyn commented on GitHub (Jan 4, 2025):

原因是fm350的at命令无法获取csq的值,只要修改一下/usr/share/3ginfo-lite/3ginfo.sh这个脚本就可以使用。
3ginfo.sh.txt

<!-- gh-comment-id:2570019213 --> @sjjcyn commented on GitHub (Jan 4, 2025): 原因是fm350的at命令无法获取csq的值,只要修改一下/usr/share/3ginfo-lite/3ginfo.sh这个脚本就可以使用。 [3ginfo.sh.txt](https://github.com/user-attachments/files/18305271/3ginfo.sh.txt)
Author
Owner

@sjjcyn commented on GitHub (Jan 4, 2025):

原因是fm350的at命令无法获取csq的值,只要修改一下/usr/share/3ginfo-lite/3ginfo.sh这个脚本就可以使用。 3ginfo.sh.txt

openwrt 需要安装bc软件包 opkg install bc

<!-- gh-comment-id:2570019969 --> @sjjcyn commented on GitHub (Jan 4, 2025): > 原因是fm350的at命令无法获取csq的值,只要修改一下/usr/share/3ginfo-lite/3ginfo.sh这个脚本就可以使用。 [3ginfo.sh.txt](https://github.com/user-attachments/files/18305271/3ginfo.sh.txt) openwrt 需要安装bc软件包 opkg install bc
Author
Owner

@kowi4 commented on GitHub (Feb 28, 2025):

I also got this one with my modem. I quickly fixed that by putting 1 if CSQ is out of range. I think the proper fix would be to allow undefined value and just let the user see all the rest of parameters even if signal is empty.

<!-- gh-comment-id:2691697757 --> @kowi4 commented on GitHub (Feb 28, 2025): I also got this one with my modem. I quickly fixed that by putting 1 if CSQ is out of range. I think the proper fix would be to allow undefined value and just let the user see all the rest of parameters even if signal is empty.
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#216
No description provided.