4IceG / luci-app-modemband

User interface for the modemband package. Program to set LTE/5G bands for selected 4G/5G modems. (LuCI JS) | OpenWrt >= 21.02
102 stars 37 forks source link

Request add support modem #2

Closed lrdrdn closed 2 years ago

lrdrdn commented 2 years ago

Fibocom L850-GL

at+gmm
L850 LTE Module

OK

Firmware version

AT+GTPKGVER?
+GTPKGVER: "18500.5001.00.05.27.16_5001.05.001.033"

OK

vid & pid

8087:095a (NCM) 2cb7:0007 (MBIM)

Serial port

/dev/ttyACM0 & /dev/ttyACM2

All band supported

3G: 1,2,4,5,8 4G: 1,2,3,4,5,7,8,11,12,13,17,18,19,20,21,26,28,29,30,38,39,40,41,66

Read active band

at+xact?
+XACT: 4,2,1,1,2,4,5,8,101,102,103,104,105,107,108,111,112,113,117,118,119,120,121,126,128,129,130,138,139,140,141,166

OK

Lock 4g only B1

AT+XACT=2,,,101

OK
at+xact?
+XACT: 2,2,,1,2,4,5,8,101

OK

Lock 4g only B1 & B3

AT+XACT=2,,,101,103

OK
at+xact?
+XACT: 2,2,,1,2,4,5,8,101,103

OK

Lock All 4g Band

AT+XACT=2,,,0

OK
at+xact?
+XACT: 2,2,,1,2,4,5,8,101,102,103,104,105,107,108,112,113,114,117,118,119,120,125,126,128,129,130,132,138,139,140,141,142,146,166

OK

Auto All band

AT+XACT=4,,,0

OK
at+xact?
+XACT: 4,2,1,1,2,4,5,8,101,102,103,104,105,107,108,112,113,114,117,118,119,120,125,126,128,129,130,132,138,139,140,141,142,146,166

OK
lrdrdn commented 2 years ago

Fibocom L860-GL

Basicaly same as fibocom L850-GL

at+gmm
L860 LTE Module

OK

Firmware version

AT+GTPKGVER?
+GTPKGVER: "18600.5001.00.35.01.57_5026.01.001.005"

OK

vid & pid

8087:095a

Serial port

/dev/ttyACM0 & /dev/ttyACM2

All band supported

3G: 1,2,4,5,8 4G: 1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,38,39,40,41,42,46,66

at+xact?
+XACT: 4,2,1,1,2,4,5,8,101,102,103,104,105,107,108,112,113,114,117,118,119,120,125,126,128,129,130,132,138,139,140,141,142,146,166

OK
4IceG commented 2 years ago

Hi, Install the package / packages and copy the file from the attachment to "/ usr / share / modemband" and see if everything works.

If you are in mbim mode then of course rename the file.

wt., 8 mar 2022, 08:44 użytkownik lrdrdn @.***> napisał:

Fibocom L860-GL

Basicaly same as fibocom L850-GL

at+gmm L860 LTE Module

OK

Firmware version

AT+GTPKGVER? +GTPKGVER: "18600.5001.00.35.01.57_5026.01.001.005"

OK

vid & pid

8087:095a Serial port

/dev/ttyACM0 & /dev/ttyACM2 All band supported

3G: 1,2,4,5,8 4G: 1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,38,39,40,41,42,46,66

at+xact? +XACT: 4,2,1,1,2,4,5,8,101,102,103,104,105,107,108,112,113,114,117,118,119,120,125,126,128,129,130,132,138,139,140,141,142,146,166

OK

— Reply to this email directly, view it on GitHub https://github.com/4IceG/luci-app-modemband/issues/2#issuecomment-1061495706, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOFSKBP3X4MD7EWSZUUGDU64AOXANCNFSM5QFQZ3RA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

lrdrdn commented 2 years ago

where I cand find the attachment?

4IceG commented 2 years ago

Did you get a file called 8087095a?

wt., 8 mar 2022, 13:25 użytkownik lrdrdn @.***> napisał:

Hi, Install the package / packages and copy the file from the attachment to "/ usr / share / modemband" and see if everything works. If you are in mbim mode then of course rename the file. wt., 8 mar 2022, 08:44 użytkownik lrdrdn @.

> napisał: … <#m2306611317709480779> Fibocom L860-GL Basicaly same as fibocom L850-GL at+gmm L860 LTE Module OK Firmware version AT+GTPKGVER? +GTPKGVER: "18600.5001.00.35.01.57_5026.01.001.005" OK vid & pid 8087:095a Serial port /dev/ttyACM0 & /dev/ttyACM2 All band supported 3G: 1,2,4,5,8 4G: 1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,38,39,40,41,42,46,66 at+xact? +XACT: 4,2,1,1,2,4,5,8,101,102,103,104,105,107,108,112,113,114,117,118,119,120,125,126,128,129,130,132,138,139,140,141,142,146,166 OK — Reply to this email directly, view it on GitHub <#2 (comment) https://github.com/4IceG/luci-app-modemband/issues/2#issuecomment-1061495706>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOFSKBP3X4MD7EWSZUUGDU64AOXANCNFSM5QFQZ3RA https://github.com/notifications/unsubscribe-auth/AOIOFSKBP3X4MD7EWSZUUGDU64AOXANCNFSM5QFQZ3RA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.>

where I cand find the attachment?

— Reply to this email directly, view it on GitHub https://github.com/4IceG/luci-app-modemband/issues/2#issuecomment-1061723705, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOFSML65T25OAMBWDPQJ3U65BKPANCNFSM5QFQZ3RA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

lrdrdn commented 2 years ago

no I can't find anywhere

4IceG commented 2 years ago

Oh, I see that it cuts off everything that I added by mail, I can't see the file, link to the file :|, I will send the file in the evening normally via github, you will check it tomorrow.

wt., 8 mar 2022, 19:13 użytkownik lrdrdn @.***> napisał:

no I can't find anywhere

— Reply to this email directly, view it on GitHub https://github.com/4IceG/luci-app-modemband/issues/2#issuecomment-1062065759, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOFSJP4TBL7JEEQ2DWC5DU66KGJANCNFSM5QFQZ3RA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

4IceG commented 2 years ago

OK, Install the package modemband / packages and copy the files from the attachment to "/usr/share/modemband" and see if everything works test.zip .

lrdrdn commented 2 years ago

Fibocom L860 & L850 it's work. I have more several modem wants to be added.

Foxconn T77W968

It has more than 1 vid:pid

413c:81d7 (Dell dw5821e) 1bc7:1910 (Telit ln960) 1bc7:1910 (Android)

With command ATI

ati
Manufacturer: DELL
Model: 4116
Revision: T77W968.F1.0.0.5.2.GC.013  1  [May 21 2020 04:00:00]
SVN: 03
IMEI: xxx
+GCAP: +CGSM
MPN: 06

OK

ati
Manufacturer: Telit
Model: 4116
Revision: T77W968.F1.0.0.5.2.GC.013  1  [May 21 2020 04:00:00]
SVN: 03
IMEI: xxx
+GCAP: +CGSM,+DS,+ES
MPN: 06

OK

ati
Manufacturer: QUALCOMM
Model: 4116
Revision: T77W968.F1.0.0.5.2.GC.013  1  [May 21 2020 04:00:00]
SVN: 03
IMEI: xxx
+GCAP: +CGSM,+DS,+ES
MPN: 06

OK

cat /sys/kernel/debug/usb/devices

    T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 11 Spd=480 MxCh= 0    
    D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 2  
    P: Vendor=413c ProdID=81d7 Rev= 3.18    
    S: Manufacturer=Dell Inc.   
    S: Product=DW5821e Snapdragon X20 LTE   
    S: SerialNumber=0123456789ABCDEF

    T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 7 Spd=480 MxCh= 0     
    D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 2  
    P: Vendor=1bc7 ProdID=1910 Rev= 3.18    
    S: Manufacturer=Telit   
    S: Product=Telit LN960 Mobile Broadband     
    S: SerialNumber=0123456789ABCDEF    

    T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 9 Spd=480 MxCh= 0     
    D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 2  
    P: Vendor=1bc7 ProdID=1910 Rev= 3.18    
    S: Manufacturer=Android     
    S: Product=Android  
    S: SerialNumber=0123456789ABCDEF    

Supported Bands 3G: 1,2,4,5,6,8,9,19 4G:1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,38,39,40,41,42,43,46,66

Serial Port /dev/ttyUSB0 & /dev/ttyUSB1

Check prefered mode

at^slmode?
^SLMODE:1,35-WCDMA And LTE Only
OK

Lte Only

at^slmode=1,30
OK
at^slmode?
^SLMODE:1,30-LTE Only

OK

Reset to Auto

at^slmode
OK
at^slmode?
^SLMODE:1,35-WCDMA And LTE Only

OK

Read active band

at^slband?
^SLBAND: WCDMA,Enabled,1,2,4,5,6,8,9,19
^SLBAND: LTE,Enabled,1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,38,39,40,41,42,43,46,66

OK

Lock 4G B1

at^slband=lte,2,1
^SLBAND: Set Selected Band Succeed!
OK
at^slband?
^SLBAND: WCDMA,Enabled,1,2,4,5,6,8,9,19
^SLBAND: LTE,Enabled,1

OK

Lock 4G B1 & B3

at^slband=lte,2,1,3
^SLBAND: Set Selected Band Succeed!
OK
at^slband?
^SLBAND: WCDMA,Enabled,1,2,4,5,6,8,9,19
^SLBAND: LTE,Enabled,1,3

OK

Reset Bands

at^slband
OK
at^slband?
^SLBAND: WCDMA,Enabled,1,2,4,5,6,8,9,19
^SLBAND: LTE,Enabled,1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,38,39,40,41,42,43,46,66

OK
4IceG commented 2 years ago

OK, copy the files from the attachment to "/usr/share/modemband" and see if everything works. test2.zip

lrdrdn commented 2 years ago

Foxconn T77W968 works fine. Another Foxconn modem

Foxconn T77W676

vid & pid, It has 2 brand vendor HP & Telit

03f0:0a57 (HP lt4220 MBIM)
03f0:0857 (HP lt4220 QMI)
1bc7:1901 (Telit Ln940 MBIM)
1bc7:1900 (Telit Ln940 QMI) 

ATI

ati
Manufacturer: QUALCOMM INCORPORATED
Model: 4105
Revision: T77W676.F0.0.0.4.7.GC.017  1  [Jul 11 2018 00:00:00]
SVN: 03
IMEI: xxx
+GCAP: +CGSM,+DS,+ES

cat /sys/kernel/debug/usb/devices

    T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 7 Spd=480 MxCh= 0     
    D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 3  
    P: Vendor=03f0 ProdID=0857 Rev= 3.10    
    S: Manufacturer=Qualcomm    
    S: Product=Snapdragon(TM) X12 LTE-A     
    S: SerialNumber=0123456789ABCDEF

    T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0     
    D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1  
    P: Vendor=1bc7 ProdID=1900 Rev= 3.10    
    S: Manufacturer=Telit   
    S: Product=Telit LN940 Mobile Broadband     
    S: SerialNumber=0123456789ABCDEF

Serial port

/dev/ttyUSB1 & /dev/ttyUSB2

All band supported 4G: 1,2,3,4,5,7,8,12,13,17,18,19,20,21,25,26,28,29,30,38,39,40,41,66

For lock band slightly different from Dw5821e, this modem without "2" after lte

Lock B1

at^slband=lte,1
OK
at^slband?
^SLBAND: WCDMA,1,2,4,5,6,8,19
^SLBAND: LTE,1

OK

Lock B1 & B3

at^slband=lte,1,3
OK
at^slband?
^SLBAND: WCDMA,1,2,4,5,6,8,19
^SLBAND: LTE,1,3

OK

Reset to Auto

at^slband
OK
at^slband?
^SLBAND: WCDMA,1,2,4,5,6,8,19
^SLBAND: LTE,1,2,3,4,5,7,8,12,13,17,18,19,20,21,25,26,28,29,30,38,39,40,41,66

OK
lrdrdn commented 2 years ago

Huawei Me909s-821

vid & pid

12d1:15c1
12d1:1f1a

Serial port

/dev/ttyUSB0 & /dev/ttyUSB1
ati
Manufacturer: Huawei Technologies Co., Ltd.
Model: ME909s-821
Revision: 11.617.00.00.00
IMEI: xxx
+GCAP: +CGSM,+DS,+ES

Supported bands 4G: B1, B3, B8, B38, B40, B41

For lock band with bitmask

7FFFFFFFFFFFFFFF (CM_BAND_PREF_ANY) All bands
1 (CM_BAND_PREF_LTE_EUTRAN_BAND1) LTE BC1
2 (CM_BAND_PREF_LTE_EUTRAN_BAND2) LTE BC2
4 (CM_BAND_PREF_LTE_EUTRAN_BAND3) LTE BC3
8 (CM_BAND_PREF_LTE_EUTRAN_BAND4) LTE BC4
10 (CM_BAND_PREF_LTE_EUTRAN_BAND5) LTE BC5
20 (CM_BAND_PREF_LTE_EUTRAN_BAND6) LTE BC6
40 (CM_BAND_PREF_LTE_EUTRAN_BAND7) LTE BC7
80 (CM_BAND_PREF_LTE_EUTRAN_BAND8) LTE BC8
100 (CM_BAND_PREF_LTE_EUTRAN_BAND9) LTE BC9
200 (CM_BAND_PREF_LTE_EUTRAN_BAND10) LTE BC10
400 (CM_BAND_PREF_LTE_EUTRAN_BAND11) LTE BC11
800 (CM_BAND_PREF_LTE_EUTRAN_BAND12) LTE BC12
1000 (CM_BAND_PREF_LTE_EUTRAN_BAND13) LTE BC13
2000 (CM_BAND_PREF_LTE_EUTRAN_BAND14) LTE BC14
10000 (CM_BAND_PREF_LTE_EUTRAN_BAND17) LTE BC17
20000 (CM_BAND_PREF_LTE_EUTRAN_BAND18) LTE BC18
40000 (CM_BAND_PRE_LTE_EUTRAN_BAND19) LTE BC19
80000 (CM_BAND_PREF_LTE_EUTRAN_BAND20) LTE BC20
100000 (CM_BAND_PREF_LTE_EUTRAN_BAND21) LTE BC21
1000000 (CM_BAND_PREF_LTE_EUTRAN_BAND25) LTE BC25
2000000 (CM_BAND_PREF_LTE_EUTRAN_BAND26) LTE BC26
8000000 (CM_BAND_PREF_LTE_EUTRAN_BAND28) LTE BC28
100000000 (CM_BAND_PREF_LTE_EUTRAN_BAND33) LTE BC33
200000000 (CM_BAND_PREF_LTE_EUTRAN_BAND34) LTE BC34
400000000 (CM_BAND_PREF_LTE_EUTRAN_BAND35) LTE BC35
800000000 (CM_BAND_PREF_LTE_EUTRAN_BAND36) LTE BC36
1000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND37) LTE BC37
2000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND38) LTE BC38
4000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND39) LTE BC39
8000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND40) LTE BC40
10000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND41) LTE BC41
20000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND42) LTE BC42
40000000000 (CM_BAND_PREF_LTE_EUTRAN_BAND43) LTE BC43
40000000 (CM_BAND_PREF_NO_CHANGE) No band change

Lock 4G B1

AT^SYSCFGEX="03",3FFFFFFF,0,2,1,,
OK
AT^SYSCFGEX?
^SYSCFGEX: "03",3FFFFFFF,0,2,1

OK

Lock 4G B3

AT^SYSCFGEX="03",3FFFFFFF,0,2,4,,
OK
AT^SYSCFGEX?
^SYSCFGEX: "03",3FFFFFFF,0,2,4

OK

Lock 4G B1 & B3

AT^SYSCFGEX="03",3FFFFFFF,0,2,5,,
OK
AT^SYSCFGEX?
^SYSCFGEX: "03",3FFFFFFF,0,2,5

OK

All Band 4G

AT^SYSCFGEX="03",3FFFFFFF,0,2,7FFFFFFFFFFFFFFF,,
OK
AT^SYSCFGEX?
^SYSCFGEX: "03",3FFFFFFF,0,2,7FFFFFFFFFFFFFFF

OK

Auto All band

AT^SYSCFGEX="00",3FFFFFFF,0,2,7FFFFFFFFFFFFFFF,,
OK
AT^SYSCFGEX?
^SYSCFGEX: "00",3FFFFFFF,0,2,7FFFFFFFFFFFFFFF

OK
4IceG commented 2 years ago

OK, copy the files from the attachment to "/usr/share/modemband" and see if everything works. Huawei.zip Foxconn.zip

lrdrdn commented 2 years ago

I copied all files to /usr/share/modemband

03f0:0a57 (HP lt4220 MBIM)  OK
03f0:0857 (HP lt4220 QMI)   not detected
1bc7:1901 (Telit Ln940 MBIM)    OK
1bc7:1900 (Telit Ln940 QMI)     not detected

03f0:0857 & 1bc7:1900, if I replace file from 0a57/1901 it will work

and LTE band there is B0 value detected like this

B0 B1 B2 B3 B4 B5 B7 B8 B12 B13 B17 B18 B19 B20 B21 B25 B26 B28 B29 B30 B38 B39 B40 B41 B66 
4IceG commented 2 years ago

OK, copy the files and see if anything has improved. Foxconn2.zip

Show me what the command returns: modemband.sh getbands modemband.sh getsupportedbands

lrdrdn commented 2 years ago
root@ROOter:~# modemband.sh getbands
LTE 1 2 3 4 5 7 8 12 13 17 18 19 20 21 25 26 28 29 30 38 39 40 41 66
root@ROOter:~# modemband.sh getsupportedbands
1 2 3 4 5 7 8 12 13 17 18 19 20 21 25 26 28 29 30 38 39 40 41 66

everything works, but still displaying B0

modemband

For Huawei Me909s it's like before. 12d1:1f1a modem not detected

4IceG commented 2 years ago

OK, copy the files and see if anything has improved Huawei2.zip Foxconn3.zip .

lrdrdn commented 2 years ago

Huawei 12d1:15c1 use /dev/ttyUSB2 not USB1

foxconn cannot getbands

root@ROOter:~#  modemband.sh getbands
tr: STRING2 cannot be empty

image

4IceG commented 2 years ago

You yourself mentioned above that Huawei is dev/ttyUSB0 & /dev/ttyUSB1, but ok, I assume that apart from the wrong port it works.

As for foxconn, tomorrow I will be over this session because the script returns the data correctly, but then something else comes out for you.

Do this command to read the bands again and send me the result.

czw., 10 mar 2022, 12:37 użytkownik lrdrdn @.***> napisał:

Huawei 12d1:15c1 use /dev/ttyUSB2 not USB1

foxconn cannot getbands

@.***:~# modemband.sh getbands tr: STRING2 cannot be empty

[image: image] https://user-images.githubusercontent.com/93698387/157653936-11272ac8-1963-4a3c-81e9-292e3c46c199.png

— Reply to this email directly, view it on GitHub https://github.com/4IceG/luci-app-modemband/issues/2#issuecomment-1063963488, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOFSM3UHYJ3NR5KN7JMMLU7HNILANCNFSM5QFQZ3RA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

4IceG commented 2 years ago

OK, copy the files and see if anything has improved. Foxconn3.zip

Huawei Me909s-821 have these both /dev/ttyUSB2? In the end, I didn't know if they were different or the same and made two versions. 12d1:15c1 ---> /dev/ttyUSB2 12d1:1f1a ---> /dev/ttyUSB1 or 12d1:15c1 ---> /dev/ttyUSB2 12d1:1f1a ---> /dev/ttyUSB2 Huawei1xttyUSB2.zip Huawei2xttyUSB2.zip

lrdrdn commented 2 years ago

sorry I cannot test the modem now. may be tommorow or 2/3 days later. I think serial port on huawei determined by usb compossstion. It has 3 cfg if I plug in on openwrt detected cdc_ether. but if I plug in to rooter detected cdc_mbim

4IceG commented 2 years ago

No problem, you check when you can.

There is an update to the modemband package, so do the update before testing.

I know that the user can switch ports on the modem, so I added the port selection options in the application. There are too many modems, it's hard to make a super universal application.

pt., 11 mar 2022, 11:15 użytkownik lrdrdn @.***> napisał:

sorry I cannot test the modem now. may be tommorow or 2/3 days later. I think serial port on huawei determined by usb compossstion. It has 3 cfg if I plug in on openwrt detected cdc_ether. but if I plug in to rooter detected cdc_mbim

— Reply to this email directly, view it on GitHub https://github.com/4IceG/luci-app-modemband/issues/2#issuecomment-1064969855, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOFSP5KACYPIR6ZWIF563U7MMKLANCNFSM5QFQZ3RA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you modified the open/close state.Message ID: @.***>

lrdrdn commented 2 years ago

Sorry for late repply. Hp lt4220/t77w676 work perfectly. For huawei me909s-821s I think default port should set to /dev/ttyUSB2 because USB1 only for rooter.

4IceG commented 2 years ago

Nothing happened :) , I understand that @lrdrdn you downloaded the latest packages versions (https://github.com/4IceG/luci-app-modemband/releases/latest) and tested.

I would not change the port settings, recently we also had a user on the forum who had a supported modem but he changed the ports in the modem and "scandal" because it does not work... There is an option to set the port, so "feel free to set it".

4IceG commented 2 years ago

Because I don't remember if I added Foxconn T77W676

03f0:0a57 (HP lt4220 MBIM) 03f0:0857 (HP lt4220 QMI) 1bc7:1901 (Telit Ln940 MBIM) 1bc7:1900 (Telit Ln940 QMI)

I probably didn't add, I was waiting for confirmation that it works (update from Foxconn3.zip file).

lrdrdn commented 2 years ago

yes I tested it with Foxconn3.zip.

4IceG commented 2 years ago

Ok, so I sent the updates to Cezary. Now all we have to do is wait for the modemband package to be updated. After the upgrade, I will compile a new package.

4IceG commented 2 years ago

@lrdrdn Can you check again what I sent you (this Foxconn3.zip)?

Cezary found some other commands for this Ln940 and we would like to confirm that this code what I posted works at 200% for these modems.

4IceG commented 2 years ago

Hi, I compiled a new modemband package but before publishing I wanted you @lrdrdn to test it to see if it works with all/any of your modems. Thanks :)

toTEST.zip

lrdrdn commented 2 years ago

Ln940 with toTEST.zip lock band & restore work fine, but B0 still visible

image

but if I replace with Foxconn3.zip like this

image

4IceG commented 2 years ago

Hi, @lrdrdn can you show me the result of the command: sh -x /usr/bin/modemband.sh getbands

The error occurs for a modem with what vid & pid?

lrdrdn commented 2 years ago

1bc7:1900 1bc7:1901 03f0:0857 03f0:0a57

root@OpenWrt:~# sh -x /usr/bin/modemband.sh getbands
+ _DEVICE=
+ _DEFAULT_LTE_BANDS=
+ RES=/usr/share/modemband
+ awk '{gsub("="," ");
if ($0 ~ /Bus.*Lev.*Prnt.*Port.*/) {T=$0}
if ($0 ~ /Vendor.*ProdID/) {idvendor[T]=$3; idproduct[T]=$5}
if ($0 ~ /Product/) {product[T]=$3}}
END {for (idx in idvendor) {printf "%s%s\n%s%s%s\n", idvendor[idx], idproduct[idx], idvendor[idx], idproduct[idx], product[idx]}}' /sys/kernel/debug/usb/devices
+ _DEVS='0bda8153
0bda8153USB
1d6b0002
1d6b0002xHCI
1bc71900
1bc71900Telit
1d6b0002
1d6b0002EHCI
1d6b0003
1d6b0003xHCI
1d6b0001
1d6b0001Generic'
+ '[' -e /usr/share/modemband/0bda8153 ]
+ '[' -e /usr/share/modemband/0bda8153USB ]
+ '[' -e /usr/share/modemband/1d6b0002 ]
+ '[' -e /usr/share/modemband/1d6b0002xHCI ]
+ '[' -e /usr/share/modemband/1bc71900 ]
+ . /usr/share/modemband/1bc71900
+ _DEVICE=/dev/ttyUSB1
+ _DEFAULT_LTE_BANDS='1 2 3 4 5 7 8 12 13 17 18 19 20 21 25 26 28 29 30 38 39 40 41 66'
+ . /usr/share/modemband/_foxconn_common2
+ break
+ '[' -z /dev/ttyUSB1 ]
+ uci -q get 'modemband.@modemband[0].set_port'
+ _DEVICE1=
+ '[' -n  ]
+ '[' '!' -e /dev/ttyUSB1 ]
+ getbands
+ sms_tool -d /dev/ttyUSB1 at 'at^slband?'
+ O='
^SLBAND: WCDMA,1,2,4,5,6,8,19
^SLBAND: LTE,1,3,8,40
'
+ echo '
^SLBAND: WCDMA,1,2,4,5,6,8,19
^SLBAND: LTE,1,3,8,40
'
+ awk -F: '/LTE/{gsub("LTE,Enabled,","");gsub(","," ");print $2}'
+ xargs
LTE 1 3 8 40
+ exit 0
4IceG commented 2 years ago

An update has come out, this version of the package should be working properly now :).

lrdrdn commented 2 years ago

its broken

image

root@OpenWrt:~# modemband.sh
Modem: Telit LN940 Mobile Broadband
Supported LTE bands: 1 2 3 4 5 7 8 12 13 17 18 19 20 21 25 26 28 29 30 38 39 40 41 66
LTE bands: awk: cmd. line:1: Unexpected token

 1: FDD 2100 MHz
 2: FDD 1900 MHz
 3: FDD 1800 MHz
 4: FDD 1700 MHz
 5: FDD  850 MHz
 7: FDD 2600 MHz
 8: FDD  900 MHz
12: FDD  700 MHz
13: FDD  700 MHz
17: FDD  700 MHz
18: FDD  850 MHz
19: FDD  850 MHz
20: FDD  800 MHz
21: FDD 1500 MHz
25: FDD 1900 MHz
26: FDD  850 MHz
28: FDD  700 MHz
29: SDL  700 MHz
30: FDD 2300 MHz
38: TDD 2600 MHz
39: TDD 1900 MHz
40: TDD 2300 MHz
41: TDD 2500 MHz
66: FDD 1700 MHz
root@OpenWrt:~# sh -x /usr/bin/modemband.sh getbands
+ _DEVICE=
+ _DEFAULT_LTE_BANDS=
+ RES=/usr/share/modemband
+ awk '{gsub("="," ");
if ($0 ~ /Bus.*Lev.*Prnt.*Port.*/) {T=$0}
if ($0 ~ /Vendor.*ProdID/) {idvendor[T]=$3; idproduct[T]=$5}
if ($0 ~ /Product/) {product[T]=$3}}
END {for (idx in idvendor) {printf "%s%s\n%s%s%s\n", idvendor[idx], idproduct[idx], idvendor[idx], idproduct[idx], product[idx]}}' /sys/kernel/debug/usb/devices
+ _DEVS='0bda8153
0bda8153USB
1d6b0002
1d6b0002xHCI
1d6b0002
1d6b0002EHCI
1d6b0003
1d6b0003xHCI
1bc71900
1bc71900Telit
1d6b0001
1d6b0001Generic'
+ '[' -e /usr/share/modemband/0bda8153 ]
+ '[' -e /usr/share/modemband/0bda8153USB ]
+ '[' -e /usr/share/modemband/1d6b0002 ]
+ '[' -e /usr/share/modemband/1d6b0002xHCI ]
+ '[' -e /usr/share/modemband/1d6b0002 ]
+ '[' -e /usr/share/modemband/1d6b0002EHCI ]
+ '[' -e /usr/share/modemband/1d6b0003 ]
+ '[' -e /usr/share/modemband/1d6b0003xHCI ]
+ '[' -e /usr/share/modemband/1bc71900 ]
+ . /usr/share/modemband/1bc71900
+ _DEVICE=/dev/ttyUSB1
+ _DEFAULT_LTE_BANDS='1 2 3 4 5 7 8 12 13 17 18 19 20 21 25 26 28 29 30 38 39 40 41 66'
+ . /usr/share/modemband/_foxconn_common2
+ break
+ '[' -z /dev/ttyUSB1 ]
+ uci -q get 'modemband.@modemband[0].set_port'
+ _DEVICE1=
+ '[' -n  ]
+ '[' '!' -e /dev/ttyUSB1 ]
+ getbands
+ sms_tool -d /dev/ttyUSB1 at 'at^slband?'
+ O='
^SLBAND: WCDMA,1,2,4,5,6,8,19
^SLBAND: LTE,1,3,8,40
'
+ echo '
^SLBAND: WCDMA,1,2,4,5,6,8,19
^SLBAND: LTE,1,3,8,40
'
+ awk -F: '^\^SLBAND:.*LTE,/{gsub("LTE,","");gsub(","," ");print $2}'
+ xargs
awk: cmd. line:1: Unexpected token

+ exit 0
4IceG commented 2 years ago

Ok in file /usr/share/modemband/_foxconn_common2 replace line

echo "$O" | awk -F: '^\^SLBAND:.*LTE,/{gsub("LTE,","");gsub(","," ");print $2}' | xargs

to

echo "$O" | awk -F: '/^\^SLBAND:.*LTE,/{gsub("LTE,","");gsub(","," ");print $2}' | xargs

pon., 4 kwi 2022, 07:03 użytkownik lrdrdn @.***> napisał:

its broken

[image: image] https://user-images.githubusercontent.com/93698387/161477091-d3165906-9a6a-47c7-8597-f24b09b16284.png

@.***:~# modemband.sh Modem: Telit LN940 Mobile Broadband Supported LTE bands: 1 2 3 4 5 7 8 12 13 17 18 19 20 21 25 26 28 29 30 38 39 40 41 66 LTE bands: awk: cmd. line:1: Unexpected token

1: FDD 2100 MHz 2: FDD 1900 MHz 3: FDD 1800 MHz 4: FDD 1700 MHz 5: FDD 850 MHz 7: FDD 2600 MHz 8: FDD 900 MHz 12: FDD 700 MHz 13: FDD 700 MHz 17: FDD 700 MHz 18: FDD 850 MHz 19: FDD 850 MHz 20: FDD 800 MHz 21: FDD 1500 MHz 25: FDD 1900 MHz 26: FDD 850 MHz 28: FDD 700 MHz 29: SDL 700 MHz 30: FDD 2300 MHz 38: TDD 2600 MHz 39: TDD 1900 MHz 40: TDD 2300 MHz 41: TDD 2500 MHz 66: FDD 1700 MHz

@.***:~# sh -x /usr/bin/modemband.sh getbands

  • _DEVICE=

  • _DEFAULT_LTE_BANDS=

  • RES=/usr/share/modemband

  • awk '{gsub("="," "); if ($0 ~ /Bus.Lev.Prnt.Port./) {T=$0} if ($0 ~ /Vendor.*ProdID/) {idvendor[T]=$3; idproduct[T]=$5} if ($0 ~ /Product/) {product[T]=$3}} END {for (idx in idvendor) {printf "%s%s\n%s%s%s\n", idvendor[idx], idproduct[idx], idvendor[idx], idproduct[idx], product[idx]}}' /sys/kernel/debug/usb/devices

  • _DEVS='0bda8153 0bda8153USB 1d6b0002 1d6b0002xHCI 1d6b0002 1d6b0002EHCI 1d6b0003 1d6b0003xHCI 1bc71900 1bc71900Telit 1d6b0001 1d6b0001Generic'

  • '[' -e /usr/share/modemband/0bda8153 ]

  • '[' -e /usr/share/modemband/0bda8153USB ]

  • '[' -e /usr/share/modemband/1d6b0002 ]

  • '[' -e /usr/share/modemband/1d6b0002xHCI ]

  • '[' -e /usr/share/modemband/1d6b0002 ]

  • '[' -e /usr/share/modemband/1d6b0002EHCI ]

  • '[' -e /usr/share/modemband/1d6b0003 ]

  • '[' -e /usr/share/modemband/1d6b0003xHCI ]

  • '[' -e /usr/share/modemband/1bc71900 ]

  • . /usr/share/modemband/1bc71900

  • _DEVICE=/dev/ttyUSB1

  • _DEFAULT_LTE_BANDS='1 2 3 4 5 7 8 12 13 17 18 19 20 21 25 26 28 29 30 38 39 40 41 66'

  • . /usr/share/modemband/_foxconn_common2

  • break

  • '[' -z /dev/ttyUSB1 ]

  • uci -q get @.***[0].set_port'

  • _DEVICE1=

  • '[' -n ]

  • '[' '!' -e /dev/ttyUSB1 ]

  • getbands

  • sms_tool -d /dev/ttyUSB1 at 'at^slband?'

  • O=' ^SLBAND: WCDMA,1,2,4,5,6,8,19 ^SLBAND: LTE,1,3,8,40 '

  • echo ' ^SLBAND: WCDMA,1,2,4,5,6,8,19 ^SLBAND: LTE,1,3,8,40 '

  • awk -F: '^\^SLBAND:.*LTE,/{gsub("LTE,","");gsub(","," ");print $2}'

  • xargs awk: cmd. line:1: Unexpected token

  • exit 0

— Reply to this email directly, view it on GitHub https://github.com/4IceG/luci-app-modemband/issues/2#issuecomment-1087118730, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOFSLFK653IOMKZ6W66PLVDJZ3TANCNFSM5QFQZ3RA . You are receiving this because you modified the open/close state.Message ID: @.***>

lrdrdn commented 2 years ago

ok its fix now. works fine

4IceG commented 2 years ago

@lrdrdn I have compiled a new package with the fix, I hope that now everything will work properly for all modems.

4IceG commented 2 years ago

I am sending a link to the file https://www56.zippyshare.com/v/l9BuZI8M/file.html

wt., 8 mar 2022, 13:46 użytkownik Rafał @.***> napisał:

Did you get a file called 8087095a?

wt., 8 mar 2022, 13:25 użytkownik lrdrdn @.***> napisał:

Hi, Install the package / packages and copy the file from the attachment to "/ usr / share / modemband" and see if everything works. If you are in mbim mode then of course rename the file. wt., 8 mar 2022, 08:44 użytkownik lrdrdn @.

> napisał: … <#m_-7084110729105757198_m2306611317709480779> Fibocom L860-GL Basicaly same as fibocom L850-GL at+gmm L860 LTE Module OK Firmware version AT+GTPKGVER? +GTPKGVER: "18600.5001.00.35.01.57_5026.01.001.005" OK vid & pid 8087:095a Serial port /dev/ttyACM0 & /dev/ttyACM2 All band supported 3G: 1,2,4,5,8 4G: 1,2,3,4,5,7,8,12,13,14,17,18,19,20,25,26,28,29,30,32,38,39,40,41,42,46,66 at+xact? +XACT: 4,2,1,1,2,4,5,8,101,102,103,104,105,107,108,112,113,114,117,118,119,120,125,126,128,129,130,132,138,139,140,141,142,146,166 OK — Reply to this email directly, view it on GitHub <#2 (comment) https://github.com/4IceG/luci-app-modemband/issues/2#issuecomment-1061495706>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOFSKBP3X4MD7EWSZUUGDU64AOXANCNFSM5QFQZ3RA https://github.com/notifications/unsubscribe-auth/AOIOFSKBP3X4MD7EWSZUUGDU64AOXANCNFSM5QFQZ3RA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.>

where I cand find the attachment?

— Reply to this email directly, view it on GitHub https://github.com/4IceG/luci-app-modemband/issues/2#issuecomment-1061723705, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOIOFSML65T25OAMBWDPQJ3U65BKPANCNFSM5QFQZ3RA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>