Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request add support modem #2

Closed
lrdrdn opened this issue Mar 8, 2022 · 37 comments
Closed

Request add support modem #2

lrdrdn opened this issue Mar 8, 2022 · 37 comments

Comments

@lrdrdn
Copy link

lrdrdn commented Mar 8, 2022

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
Copy link
Author

lrdrdn commented Mar 8, 2022

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
Copy link
Owner

4IceG commented Mar 8, 2022 via email

@lrdrdn
Copy link
Author

lrdrdn commented Mar 8, 2022

where I cand find the attachment?

@4IceG
Copy link
Owner

4IceG commented Mar 8, 2022 via email

@lrdrdn
Copy link
Author

lrdrdn commented Mar 8, 2022

no I can't find anywhere

@4IceG
Copy link
Owner

4IceG commented Mar 8, 2022 via email

@4IceG
Copy link
Owner

4IceG commented Mar 8, 2022

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
Copy link
Author

lrdrdn commented Mar 9, 2022

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
Copy link
Owner

4IceG commented Mar 9, 2022

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

@lrdrdn
Copy link
Author

lrdrdn commented Mar 9, 2022

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
Copy link
Author

lrdrdn commented Mar 9, 2022

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
Copy link
Owner

4IceG commented Mar 10, 2022

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

@lrdrdn
Copy link
Author

lrdrdn commented Mar 10, 2022

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
Copy link
Owner

4IceG commented Mar 10, 2022

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
Copy link
Author

lrdrdn commented Mar 10, 2022

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
Copy link
Owner

4IceG commented Mar 10, 2022

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

@lrdrdn
Copy link
Author

lrdrdn commented Mar 10, 2022

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

foxconn cannot getbands

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

image

@4IceG
Copy link
Owner

4IceG commented Mar 10, 2022 via email

@4IceG
Copy link
Owner

4IceG commented Mar 10, 2022

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

@4IceG 4IceG closed this as completed Mar 11, 2022
@lrdrdn
Copy link
Author

lrdrdn commented Mar 11, 2022

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
Copy link
Owner

4IceG commented Mar 11, 2022 via email

@lrdrdn
Copy link
Author

lrdrdn commented Mar 31, 2022

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
Copy link
Owner

4IceG commented Mar 31, 2022

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
Copy link
Owner

4IceG commented Mar 31, 2022

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
Copy link
Author

lrdrdn commented Mar 31, 2022

yes I tested it with Foxconn3.zip.

@4IceG
Copy link
Owner

4IceG commented Mar 31, 2022

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
Copy link
Owner

4IceG commented Mar 31, 2022

@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
Copy link
Owner

4IceG commented Apr 1, 2022

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
Copy link
Author

lrdrdn commented Apr 2, 2022

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
Copy link
Owner

4IceG commented Apr 3, 2022

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
Copy link
Author

lrdrdn commented Apr 3, 2022

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
Copy link
Owner

4IceG commented Apr 3, 2022

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

@lrdrdn
Copy link
Author

lrdrdn commented Apr 4, 2022

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
Copy link
Owner

4IceG commented Apr 4, 2022 via email

@lrdrdn
Copy link
Author

lrdrdn commented Apr 4, 2022

ok its fix now. works fine

@4IceG
Copy link
Owner

4IceG commented Apr 4, 2022

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

@4IceG
Copy link
Owner

4IceG commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants