mirror of
https://github.com/4IceG/luci-app-modemband.git
synced 2026-04-26 03:15:57 +03:00
[GH-ISSUE #15] Fibocom L860-GL TypeError modem is undefined #15
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-modemband#15
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 @GektorUA on GitHub (Oct 4, 2023).
Original GitHub issue: https://github.com/4IceG/luci-app-modemband/issues/15
Can't open main modemband page for selecting bands on Fibocom L860-GL, always get this:

Have try different ports by changing it in config file:

but nothing helps, USB modem info:
T: Bus=02 Lev=01 Prnt=01 Port=02 Cnt=03 Dev#= 4 Spd=5000 MxCh= 0
D: Ver= 3.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1
P: Vendor=8087 ProdID=095a Rev= 3.50
S: Manufacturer=Intel Corp.
S: Product=MODEM + 2 CDC-ACM + 3 CDC-NCM + SS
S: SerialNumber=004999010640000:004999010640000:004999010640000:004999010640000
C:* #Ifs=13 Cfg#= 1 Atr=e0 MxPwr=400mA
A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01
A: FirstIf#= 2 IfCount= 2 Cls=02(comm.) Sub=02 Prot=00
A: FirstIf#= 4 IfCount= 2 Cls=02(comm.) Sub=02 Prot=00
A: FirstIf#= 6 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00
A: FirstIf#= 8 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00
A: FirstIf#=10 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm
E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=1ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=02 Prot=00 Driver=cdc_acm
E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=00 Driver=cdc_acm
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=1ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=02 Prot=00 Driver=cdc_acm
E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=00 Driver=cdc_acm
E: Ad=85(I) Atr=03(Int.) MxPS= 64 Ivl=1ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=02 Prot=00 Driver=cdc_acm
E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm
E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=1ms
I: If#= 7 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
I:* If#= 7 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
E: Ad=88(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=08(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 8 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm
E: Ad=89(I) Atr=03(Int.) MxPS= 64 Ivl=1ms
I: If#= 9 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
I:* If#= 9 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
E: Ad=8a(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=0a(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#=10 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm
E: Ad=8b(I) Atr=03(Int.) MxPS= 64 Ivl=1ms
I: If#=11 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
I:* If#=11 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm
E: Ad=8c(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=0c(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#=12 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=01 Prot=00 Driver=(none)
E: Ad=8d(I) Atr=03(Int.) MxPS= 4 Ivl=125us
@4IceG commented on GitHub (Oct 4, 2023):
Hi @GektorUA ,
Configuring/reading bands from the console works OK?
Everything should work for the "/dev/ttyACM2" port, from the error I can see that there is a problem with recognizing the modem.
Show result of the command:
sh -x /usr/bin/modemband.sh getinfo@GektorUA commented on GitHub (Oct 12, 2023):
I have re-flash firmware of modem, seems now i can get it load, but sometimes page still did not open, and same with 3ginfo, it's refresh by themselves and did not show any info, need to press F5 few times and wait, then it show few seconds and refresh themselves again and info disappear. I can send video of that.
sh -x /usr/bin/modemband.sh getinfo@4IceG commented on GitHub (Oct 13, 2023):
Hi @GektorUA,
The latest package updates I've done should eliminate errors in the modem's bandwidth reading problem. Replace TypeErrors with messages for user. They did not improve communication with the modem in any way.
@obsy Cezary mógłbyś zerknąć. Testowałem to u siebie wiadomo na innym modemie, ale u mnie po podaniu zmiennej "_DEVICE" dostaję:
Przykład wyżej wygląda tak jakby skrypt nie wykrywał modemu.
@obsy commented on GitHub (Oct 13, 2023):
@GektorUA could you show us:
@GektorUA commented on GitHub (Oct 14, 2023):
It's sometimes out:
and sometimes:
I have try different two COM ports (ttyACM0 and ttyACM2), both are not busy.
@obsy commented on GitHub (Oct 14, 2023):
So the problem here is that sometimes you can't get a read from the port. Either you have this port occupied by another process (like smstools3, 3ginfo etc), or the modem is hanging and there is not much you can do about it.
@GektorUA commented on GitHub (Oct 14, 2023):
I have 3 modems (Fibocom L860) in one system, all of them working identically with modemband and 3ginfo.
I am not using smstools or modemmanager, 3ginfo page not opened in same time with modembands page, i have run minicom and check - there is no output and i can run commands without interrupts, so - COM ports are not busy.
@obsy commented on GitHub (Oct 14, 2023):
Run this via ssh:
@GektorUA commented on GitHub (Oct 14, 2023):
There is much output, where i can send it?
@obsy commented on GitHub (Oct 14, 2023):
No need, just check that each line is correct.
@GektorUA commented on GitHub (Oct 14, 2023):
for i in $(seq 0 1000); do echo "$i" && sms_tool -d /dev/ttyACM2 at "at+xact?"; donemainly, it same at each line:
@obsy commented on GitHub (Oct 14, 2023):
Reading line by line works. I have no idea why reading sometimes fails.
@GektorUA commented on GitHub (Oct 14, 2023):
I think it's something related to frontend with backend synchronization...
Because, with 3ginfo i have issues too.
@4IceG commented on GitHub (Oct 15, 2023):
Something must be absorbing the modem if it doesn't want to respond to at commands.
I have a Quectel modem and it doesn't always respond right away, but it does in 98% of cases.
@GektorUA commented on GitHub (Oct 17, 2023):
I have switch to modeminfo, there is no issues with Fibocom at all.
@obsy commented on GitHub (Oct 18, 2023):
Run again:
if there is still no data, do this:
And show us
run it several times if necessary, I am interested in knowing what the modem returns when there is no data.
@GektorUA commented on GitHub (Oct 18, 2023):
i have run
sh -x /usr/bin/modemband.shfew times, and sometimes output is different:
Another time:
@obsy commented on GitHub (Oct 18, 2023):
Change to /dev/ttyACM2, not ACM3.
This is strange, because you did the commands a thousand times and it returned fine. Now at some point it only returns "ok" without the command result.
@GektorUA commented on GitHub (Oct 18, 2023):
I have 3 modems in my system, ttyACM3 is first port of second modem.
@obsy commented on GitHub (Oct 18, 2023):
You previously tested /dev/ttyACM2, so what you showed now comes from a different modem, right?
Ehh, so retest all command on the same modem...