mirror of
https://github.com/4IceG/luci-app-3ginfo-lite.git
synced 2026-04-25 19:35:53 +03:00
[GH-ISSUE #39] Fibocom L860-GL modem support #25
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#25
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 @newdanceradio on GitHub (Feb 13, 2023).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/39
Hello dear 4IceG
Is it possible to add support for modem L860-GL
I have one, what information I need to send to add support for this modem ?
@4IceG commented on GitHub (Feb 13, 2023):
Hi @newdanceradio , if you have a modem it's easier to add support. Now we just need good documentation, examples of at commands and time to adapt the data read from the modem to my package.
Show command result:
@newdanceradio commented on GitHub (Feb 14, 2023):
Thank you @4IceG for your reply.
Please, here will be output from AT commands
@4IceG commented on GitHub (Feb 14, 2023):
Hi @newdanceradio , thanks for sending commands. If the flu doesn't break me down more, I'll send you a version of the package with this modem on Monday (to test if it works properly).
We don't have an answer to all commands. I'll think what to do with it.
Regards.
@newdanceradio commented on GitHub (Feb 15, 2023):
Dear @4IceG, what exactly is missing, what kind of answers are not there? maybe on this modem i can see the necessary information using other commands?
when I entered the above commands, the modem was in aggregation of 3 direct channels, B1 (2100 Mhz, 20 Mhz bandwidth), B3 (1800 Mhz, 20 Mhz bandwidth), B20 (800 Mhz, 10 Mhz bandwidth)
@4IceG commented on GitHub (Feb 15, 2023):
Hi @newdanceradio ,
The command below returned nothing:
AT+RSCP?this may mean that the value is shown in some other command.
It's nothing to worry about.
@4IceG commented on GitHub (Feb 20, 2023):
Hi @newdanceradio
Please install the package from my repository (I haven't updated anything, it's still in an older version, but it's OK for testing).
After installation, copy to the router the two files that I sent to the folder
/usr/share/3ginfo-lite/3ginfo-addon/l860gl.zip
@newdanceradio commented on GitHub (Feb 20, 2023):
Thank you @4IceG.

I have copied files, but after that, i have an error
@4IceG commented on GitHub (Feb 20, 2023):
Well, it would be too nice if it worked right away..
@newdanceradio show the result of the commands
We'll see where the script has a problem.
@newdanceradio commented on GitHub (Feb 20, 2023):
@4IceG commented on GitHub (Feb 20, 2023):
Ok, I found two bugs. I corrected the file for replacement.
808707f9.zip
@newdanceradio commented on GitHub (Feb 20, 2023):
Replaced the file, but, error is the same.
@4IceG commented on GitHub (Feb 20, 2023):
The script shows more and now there is another error, but unfortunately it's still an error and has a problem showing the data. I'll check it.
@4IceG commented on GitHub (Feb 20, 2023):
Ok, It should work now.
808707f9.zip
@newdanceradio commented on GitHub (Feb 20, 2023):
Thank you @4IceG, almost done.
here is visible at commands

Also i don't have band B2

I have band B20 (800 Mhz)
@newdanceradio commented on GitHub (Feb 20, 2023):
Also here is visible at command

And there is no firmware version
also protocol is missing
@4IceG commented on GitHub (Feb 20, 2023):
You must have sent me inaccurate command outputs in the beginning, because I wrote data slicing scripts for them.
OK, show me the result of the commands, I'll fix it to this output.
@newdanceradio commented on GitHub (Feb 20, 2023):
Here is 3ginfo.sh output:
Here will be output from devices modem section
@4IceG commented on GitHub (Feb 20, 2023):
OK thanks. I have one more question. This modem now works on the ncm protocol?
I'll fix it tonight.
@obsy commented on GitHub (Feb 20, 2023):
elif [ $1 -ge 6150 ] && [ $1 -le 6449 ]; then
newband=2
should be 20.
@4IceG commented on GitHub (Feb 20, 2023):
Ok fixed, just testing.
808707f9.zip
@4IceG commented on GitHub (Feb 21, 2023):
@newdanceradio did you test the latest version, is everything ok now?
@newdanceradio commented on GitHub (Feb 21, 2023):
Oh, I'm sorry @4IceG, i didn't have enough time to test, was busy with other things. I'll test later today and let you know.
I also have a question, will 3ginfo-lite will work with modemmanager ?
I have a problem with get my modem work correctly without modemmanager
@4IceG commented on GitHub (Feb 21, 2023):
Ok, no rush, you'll test it when you have time.
My packages are not compatible with MM, it makes it very difficult for other programs/packages to access the modem.
MM is good because it takes control over the operation of the modem, monitors the connection and allows you to read data from the modem. It would be best to create dedicated packages for LuCI to MM so that it does not clash with other packages.
@newdanceradio commented on GitHub (May 23, 2023):
Hello dear @4IceG.
Sorry for big delay from my side about testing modem.
Now i have successfully working L860-GL modem with my OpenWRT router without modemmanager.
I have small questions.
Script is successfully reading data from modem, except Connection statistics and i don't know why it is showing blue rectangle with second information
Also, it isn't showing protocol

Here will be information about USB devices and drivers
Also, i don't know why, but it's showing incorrect RSSI signal

@4IceG commented on GitHub (May 23, 2023):
Hi @newdanceradio , the package shows the user what needs to be corrected/changed in the configuration. If it can't show connection data, you need to change the name of the interface on which the modem works when connecting to the Internet.
As for the missing protocol, the modem is running as ncm?
@newdanceradio commented on GitHub (May 23, 2023):
Yes, the modem is running as ncm
@newdanceradio commented on GitHub (May 23, 2023):
Sorry, forgot about that, changed interface and now all is good
@4IceG commented on GitHub (May 23, 2023):
One more thing, you wrote above about rssi. Why do you think rssi is wrong?
@4IceG commented on GitHub (May 23, 2023):
The protocol should also be read correctly, in the evening I will check the script why has a problem and it does not show anything.
@newdanceradio commented on GitHub (May 23, 2023):
I have one more router Keenetic, when my L860-GL modem is connected to Keenetic router, it is showing stronger RSSI signal
from "-64" to "-59".
Also i have one more modem status script installed on my OpenWrt router and it is showing different result.
@4IceG commented on GitHub (May 23, 2023):
I understand, but in the example shown you have 80% of the signal, and with my package you have 38%, you should compare the indications in the same modem operating conditions.
If you have another script, you can show me how it reads this value, maybe my script is doing it wrong.
@newdanceradio commented on GitHub (May 23, 2023):
Sorry @4IceG, i'm not a big professional in these things, but i think it's here
https://github.com/koshev-msk/modemfeed/blob/master/packages/net/modeminfo/root/usr/share/modeminfo/scripts/INTEL
Something like this i think..., or maybe i'm wrong.
@newdanceradio commented on GitHub (May 23, 2023):
Conditions are the same, because i have one external antenna to which modem L860-GL is connected, i just switching usb from one router to another.
@4IceG commented on GitHub (May 23, 2023):
The values should be the same, my script:
RSSI=$((2 * CSQ - 113))
your code:
CSQ_RSSI=$((2 * CSQ - 113)
From what I see, the CSQ value is also calculated, and I don't do it additionally.
@newdanceradio commented on GitHub (May 23, 2023):
Hmm, very interesting, but why it can be, that it is showing different results ?
@obsy commented on GitHub (May 23, 2023):
Not the same. CSQ from koshev's repository was calculated from RSRP, not taken from AT+CSQ
@4IceG commented on GitHub (May 24, 2023):
Hi @newdanceradio , check if it already shows the protocol correctly. I didn't change anything in CSQ since it reads values normally.
luci-app-3ginfo-lite_1.0.47-20230524_all.zip
@newdanceradio commented on GitHub (May 25, 2023):
Yes, now all is good.
Thank you @4IceG
@newdanceradio commented on GitHub (May 26, 2023):
I'm really sorry to bother you again, i found one more thing that isn't showing with L860 modem.
This is PCI and EARFCN
It should be like this
But with L860 modem it looks like this
This information could be read by the following command: AT+RSRP?

Real output from modem is:
@newdanceradio commented on GitHub (May 26, 2023):
About RSSI.

Here is LTE RSRP, RSRQ, RSSI calculator.
https://arimas.com/2017/11/06/lte-rsrp-rsrq-rssi-calculator/
I made some calculation, and there are discrepancies here.
If we calculate, that i have RSSI -89 and bandwidth of B3 i have 20MHz
then my RSRP signal should be -119, but in reality i have RSRP: -89
It turns out that the RSSI calculation is not correct.
If i have RSRP -89, than RSSI should be -59
Here is one more link about RSSI calculation
https://www.cablefree.net/wirelesstechnology/4glte/rsrp-rsrq-measurement-lte/#:~:text=RSSI%20%3D%20wideband%20power%20%3D%20noise%20%2B%20serving%20cell%20power%20%2B%20interference%20power
@4IceG commented on GitHub (May 26, 2023):
Hi @newdanceradio , Ok I can add PCI and EARFCN if these are the indicated values, I will do it over the weekend when I find a quiet/free moment.
As for the value, I'm stupid, I don't know which value to take for granted and to relate to it.
I'm not sure but the AT+XCESQ? command it can also read RSRP or RSSI 🤔
@newdanceradio commented on GitHub (May 26, 2023):
Yes, shure @4IceG no problem.
Yes, this values are indicated by command AT+RSRP?
Here is live example from modem L860
Explaining about example above
marked with bold is PCI
502,1820,-89.00,502,6200,-90.00,502,300,-95.00,494,1820,-103.00
marked with bold is EARFCN
502,1820,-89.00,502,6200,-90.00,502,300,-95.00,494,1820,-103.00
Next, about correct calculation of RSSI
Here we get bandwidth of primary band, let's say, first band B3 have a 20MHz bandwidth
+XLEC: 0,3,5,3,5,BAND_LTE_3,20,1,0,0 - in this example it will be 5
1) Step
so $BWDL will be 100
Here we do first calculation
2) Step
Here we do the second calculation
3) Step
===================================================================================
So, let's try to calculate live example

I have these signals
From screenshot we can see, that i have Primary Band B3 with bandwidth 20MHz
On 1) Step we will have digit 100
On 2) Step after calculation (values of variables: $RSRP=-89; $NP=100) we will have digit 27
On 3) Step we make calculation 2*27-113=-59 (RSSI)
let's compare result -59 with screenshot, and we see that everything matches, on screenshot there is RSSI -59 and from our calculation we also got -59
Sorry, described how I could.
@4IceG commented on GitHub (May 29, 2023):
Hi @newdanceradio ,
Today I found a moment to work on the update.
Let me know if it's ok 😄 now.
luci-app-3ginfo-lite_1.0.47-20230529_all.zip
Cool, thanks for your help, it's nice that We modem users help each other.
@newdanceradio commented on GitHub (May 29, 2023):
Hi @4IceG ,

All is good now.
RSSI is calculated correctly!
Also PCI and EARFCN is showing now!
Brilliant !
I would like to tell thank you @4IceG
@4IceG commented on GitHub (May 29, 2023):
Great 👍🏻 , I'm glad that everything works and the data shown is correct.
@newdanceradio commented on GitHub (Jun 19, 2024):
Hello @4IceG.


I have upgraded package and now something strange is going on
it doesn't show SINR anymore
and about bands also it showing strange things
It is showing twice band B1
but in reality output from modem is:
AT+XLEC?
+XLEC: 0,3,5,3,5,BAND_LTE_3,20,1,0,0
@4IceG commented on GitHub (Jun 19, 2024):
Hi,
@newdanceradio Unpack archive fix_test.zip and replace the files. File path \usr\share\3ginfo-lite\modem\usb.
Too many modems, I don't remember all the changes in scripts.
@newdanceradio commented on GitHub (Jun 19, 2024):
Thank you, BAND's looks fine now, also SINR is showing, but there is something with SINR calculation.

Sometime it is showing
@4IceG commented on GitHub (Jun 19, 2024):
fix2_test.zip
@newdanceradio Is it OK now?
@newdanceradio commented on GitHub (Jun 19, 2024):
Yeah, now all is good, seems everything is correct, thank you very much.
I would like to ask one more thing, in modemdefine Fibocom L860 is showing as

@4IceG commented on GitHub (Jun 19, 2024):
@newdanceradio In the
Manufacturer / Productfield you can enter the corrected name of modem (manually).Data is taken from command result
cat /sys/kernel/debug/usb/devices, sometimes they show stupid things there.@newdanceradio commented on GitHub (Jun 19, 2024):
Heh, right, didn't noticed right away.
Entered manufacturer and product manually.
Thank you @4IceG as always.
@4IceG commented on GitHub (Jun 19, 2024):
Super! The OpenWrt community should help each other 💪🏻 😃.
@PovilasID commented on GitHub (Jan 2, 2025):
For me SIM seams to be connected but no data is transferred. (▼ 0.0 B ▲ 0.0 B) How do I debug? Can I use any AT commands that would check connection.