mirror of
https://github.com/4IceG/luci-app-3ginfo-lite.git
synced 2026-04-26 03:45:55 +03:00
[GH-ISSUE #68] An error when opening information #187
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#187
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 @prusa-dev on GitHub (Apr 12, 2024).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/68
An error when opening information.
I found that mccmnc.dat line ending is windows rather then unix.
Console log:
JSON:
@4IceG commented on GitHub (Apr 13, 2024):
Hi,
This modem is weird. It doesn't show much. You can try replacing the 3ginfo.sh file
/usr/share/3ginfo-lite.3ginfo.zip
@prusa-dev commented on GitHub (Apr 14, 2024):
Hi
This is FM350 modem.
I'm trying to update 3ginfo for fm350. Last release 1.0.65 has broken operator name.
here is logs:
yours_3ginfo_sh.log
my_modified_3ginfo_sh.log
@4IceG commented on GitHub (Apr 14, 2024):
Hi,
@prusa-dev Check these at commands to see if you get a modem response:
@prusa-dev commented on GitHub (Apr 15, 2024):
This is not problem of FM350,
I think problem here https://github.com/4IceG/luci-app-3ginfo-lite/blob/main/luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/3ginfo.sh#L306
Maybe there should be $COPS_NUM variable instead of $COPS
@prusa-dev commented on GitHub (Apr 15, 2024):
@4IceG
Adding xargs solve problem with line ending
@4IceG commented on GitHub (Apr 15, 2024):
@prusa-dev Is the operator name shown after recent script corrections?
I don't know if I found it right, but I think these at commands
+GTCURCAR?orAT+COPNorAT+COPN=?it also allows to show the operator.or read from a mccmnc.dat file.
@prusa-dev commented on GitHub (Apr 16, 2024):
No operator name is not shown.
Here is my COPS response:
Please look at the 3ginfo.sh log:
As you can see
COPSvariable isMTS RUS, and later script compareispwithCOPSthat contain non numeric operator name.I don't understand, why there
ispisp_numisp_numwscode block?@4IceG commented on GitHub (Apr 16, 2024):
This means that part of the script with
ispisp_numisp_numwsneeds to be corrected. This part of the code was supposed to read the operator name and its location in case COPS appeared as the MCCMNC value. This needs to be changed so that only numerical values are checked.@4IceG commented on GitHub (Apr 17, 2024):
Hi, @prusa-dev Replace file 3ginfo.sh and check if error with the operator name has disappeared.
3ginfo.zip
@prusa-dev commented on GitHub (Apr 18, 2024):
Hi @4IceG
The error is gone, and the operator's name is displayed correctly.
Thank you!