[GH-ISSUE #37] Obsługa modemu DW5811e Snapdragon™ X7 LTE #159

Open
opened 2026-03-13 13:18:48 +03:00 by kerem · 40 comments
Owner

Originally created by @przemekp1 on GitHub (Jan 29, 2023).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/37

Cześć,
czy ten pakiet obsługuje modem Dell DW5811e
Pracuję nim od dwóch lat, działkiem całkiem nieźle - poprzez adpter

https://allegro.pl/oferta/adapter-usb-modemu-lte-ngff-m-2-sim-2x-antena-9278038018

cat /sys/kernel/debug/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.10
S: Manufacturer=Linux 5.10.161 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1e1c0000.xhci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.10
S: Manufacturer=Linux 5.10.161 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1e1c0000.xhci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=413c ProdID=81b6 Rev= 0.06
S: Manufacturer=Sierra Wireless, Incorporated
S: Product=DW5811e Snapdragon™ X7 LTE
S: SerialNumber=LF61544850011013
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=504mA
A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00
I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim
E: Ad=82(I) Atr=03(Int.) MxPS= 64 Ivl=32ms
I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

Originally created by @przemekp1 on GitHub (Jan 29, 2023). Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/37 Cześć, czy ten pakiet obsługuje modem Dell DW5811e Pracuję nim od dwóch lat, działkiem całkiem nieźle - poprzez adpter https://allegro.pl/oferta/adapter-usb-modemu-lte-ngff-m-2-sim-2x-antena-9278038018 cat /sys/kernel/debug/usb/devices T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1d6b ProdID=0002 Rev= 5.10 S: Manufacturer=Linux 5.10.161 xhci-hcd S: Product=xHCI Host Controller S: SerialNumber=1e1c0000.xhci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1 P: Vendor=1d6b ProdID=0003 Rev= 5.10 S: Manufacturer=Linux 5.10.161 xhci-hcd S: Product=xHCI Host Controller S: SerialNumber=1e1c0000.xhci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0 D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1 P: Vendor=413c ProdID=81b6 Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF61544850011013 C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=82(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
Author
Owner

@4IceG commented on GitHub (Jan 30, 2023):

Siema, z tego co widze to 3ginfo-lite coś by pokazało, ale niewiele więc modem jest do dodania/uzupełnienia o brakujace dane.

<!-- gh-comment-id:1408040373 --> @4IceG commented on GitHub (Jan 30, 2023): Siema, z tego co widze to 3ginfo-lite coś by pokazało, ale niewiele więc modem jest do dodania/uzupełnienia o brakujace dane.
Author
Owner

@4IceG commented on GitHub (Feb 5, 2023):

Cześć @przemekp1 , będę chciał w tym tygodniu zrobić aktualizację pakietu.

Jak możesz to podeślij mi wynik tych poleceń (nie wszystkie mogą działać):

AT+TEMP?
AT^TEMP?
AT+CGMI
AT+CGMM
AT+CGMR
AT+ICCID
AT+CGSN
AT+CIMI 

to uzupełnię brakujące rzeczy dla tego modemu.

<!-- gh-comment-id:1418240322 --> @4IceG commented on GitHub (Feb 5, 2023): Cześć @przemekp1 , będę chciał w tym tygodniu zrobić aktualizację pakietu. Jak możesz to podeślij mi wynik tych poleceń (nie wszystkie mogą działać): ``` AT+TEMP? AT^TEMP? AT+CGMI AT+CGMM AT+CGMR AT+ICCID AT+CGSN AT+CIMI ``` to uzupełnię brakujące rzeczy dla tego modemu.
Author
Owner

@przemekp1 commented on GitHub (Mar 4, 2023):

nie potrafię tego wywołać przy mbim
ale znalazłe stronę grze to wszystko jest - opsiany ten modem
ja go używam dokładnie przez taki adapter kupiony na Aliexpress
USB To NGFF M.2 Key B Adapter Enclosure With SIM Card Slot
https://github.com/danielewood/sierra-wireless-modems

<!-- gh-comment-id:1454928213 --> @przemekp1 commented on GitHub (Mar 4, 2023): nie potrafię tego wywołać przy mbim ale znalazłe stronę grze to wszystko jest - opsiany ten modem ja go używam dokładnie przez taki adapter kupiony na Aliexpress USB To NGFF M.2 Key B Adapter Enclosure With SIM Card Slot https://github.com/danielewood/sierra-wireless-modems
Author
Owner

@4IceG commented on GitHub (Mar 5, 2023):

Siema @przemekp1
Ja tą stronę znam i nie ma tam tych danych, o które prosiłem, więc takie odsyłanie mnie do internetów stawia sprawę w miejscu.
Ty masz modem i możesz z nim gadać, a wysłanie tych poleceń i podesłanie mi pełnej odpowiedzi, tak abym widział całą składnię to nie wiem czy 5 minut roboty, tym bardziej, że pakietów od poleceń at nie brakuje.

<!-- gh-comment-id:1455187071 --> @4IceG commented on GitHub (Mar 5, 2023): Siema @przemekp1 Ja tą stronę znam i nie ma tam tych danych, o które prosiłem, więc takie odsyłanie mnie do internetów stawia sprawę w miejscu. Ty masz modem i możesz z nim gadać, a wysłanie tych poleceń i podesłanie mi pełnej odpowiedzi, tak abym widział całą składnię to nie wiem czy 5 minut roboty, tym bardziej, że pakietów od poleceń at nie brakuje.
Author
Owner

@przemekp1 commented on GitHub (Mar 20, 2023):

jak mi prześlesz na priv swoje dane to wyślę Ci na mój koszt cały zestaw - modem i adapter do testowaia :)
potem możesz odesłać również na mój koszt
to będzie chyba najlepsze rozwiązanie, nie ma sensu abym irytował Ciebie

<!-- gh-comment-id:1476980095 --> @przemekp1 commented on GitHub (Mar 20, 2023): jak mi prześlesz na priv swoje dane to wyślę Ci na mój koszt cały zestaw - modem i adapter do testowaia :) potem możesz odesłać również na mój koszt to będzie chyba najlepsze rozwiązanie, nie ma sensu abym irytował Ciebie
Author
Owner

@obsy commented on GitHub (Mar 21, 2023):

Przy takim ustawieniu modemu nie masz interfejsów szeregowych żeby odpytać modem, a przez mbim praktycznie nie ma żadnych użytecznych danych.
Jak byś przełączył modem w inny tryb który udostępnia np. mbim + serial bo by było jak spytać o dane, bo 3giinfo już potrafi ten modem odpytać i wyświetlić dane.

<!-- gh-comment-id:1478574648 --> @obsy commented on GitHub (Mar 21, 2023): Przy takim ustawieniu modemu nie masz interfejsów szeregowych żeby odpytać modem, a przez mbim praktycznie nie ma żadnych użytecznych danych. Jak byś przełączył modem w inny tryb który udostępnia np. mbim + serial bo by było jak spytać o dane, bo 3giinfo już potrafi ten modem odpytać i wyświetlić dane.
Author
Owner

@jfrogg commented on GitHub (Mar 25, 2023):

@przemekp1, DW5811e is a Dell branded version of Sierra EM7455, this modem is already supported.
What you need to do:

  • switch it to another composition where it will have MBIM (or QMI) and a number of serial interfaces
  • de-brand it or make it generic
  • upgrade the modem firmware

As already noted, 3ginfo needs a serial interface (/dev/ttyUSBx) to communicate with the modem.

<!-- gh-comment-id:1483857997 --> @jfrogg commented on GitHub (Mar 25, 2023): @przemekp1, DW5811e is a Dell branded version of Sierra EM7455, this modem is already supported. What you need to do: - switch it to another composition where it will have MBIM (or QMI) and a number of serial interfaces - de-brand it or make it generic - upgrade the modem firmware As already noted, 3ginfo needs a serial interface (/dev/ttyUSBx) to communicate with the modem.
Author
Owner

@przemekp1 commented on GitHub (Jul 4, 2023):

ok, ale jak zrobić aby ten modem przełączyć ten port z „cdc-wdm0” na „ttyUSB0” ?
może ktoś mi podać komendy - jak dla laika

<!-- gh-comment-id:1620762797 --> @przemekp1 commented on GitHub (Jul 4, 2023): ok, ale jak zrobić aby ten modem przełączyć ten port z „cdc-wdm0” na „ttyUSB0” ? może ktoś mi podać komendy - jak dla laika
Author
Owner

@obsy commented on GitHub (Jul 5, 2023):

Dla samego mbim nie będziesz miał portów szeregowych. Przełącz go w inny tryb to się pojawią - służy do tego np. swi_usbcomp.pl a opis masz np. tutaj: https://zukota.com/posts/sierra-wireless-em7455-how-to-enable-com-ports/

<!-- gh-comment-id:1621005083 --> @obsy commented on GitHub (Jul 5, 2023): Dla samego mbim nie będziesz miał portów szeregowych. Przełącz go w inny tryb to się pojawią - służy do tego np. swi_usbcomp.pl a opis masz np. tutaj: https://zukota.com/posts/sierra-wireless-em7455-how-to-enable-com-ports/
Author
Owner

@przemekp1 commented on GitHub (Jul 5, 2023):

zmiana tego parametru
Current USB composition: 8
nie pomogła

Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.515727] usbcore: registered new interface driver cdc_wdm
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.530032] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.545039] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.583746] usbcore: registered new interface driver cdc_ether
Wed Jul 5 20:12:07 2023 kern.notice kernel: [ 13.595006] random: crng init done
Wed Jul 5 20:12:07 2023 kern.notice kernel: [ 13.602232] random: 31 urandom warning(s) missed due to ratelimiting
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.617818] usbcore: registered new interface driver cdc_ncm
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.830321] pci 0000:00:00.0: enabling device (0000 -> 0003)
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.841655] mt7615e 0000:01:00.0: enabling device (0000 -> 0002)
Wed Jul 5 20:12:07 2023 kern.debug kernel: [ 13.867941] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.872830] pci 0000:00:01.0: enabling device (0000 -> 0003)
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.884284] mt7615e 0000:02:00.0: enabling device (0000 -> 0002)
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.884400] mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.884400]
Wed Jul 5 20:12:07 2023 kern.debug kernel: [ 13.911420] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
Wed Jul 5 20:12:07 2023 kern.debug kernel: [ 13.915473] ieee80211 phy1: copying sband (band 1) due to VHT EXT NSS BW flag
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.933153] mt7615e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.933153]
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.973812] PPP generic driver version 2.4.2
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.984429] NET: Registered PF_PPPOX protocol family
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.044645] usbcore: registered new interface driver qmi_wwan
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.061416] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.077113] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld Jason@zx2c4.com. All Rights Reserved.
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.113941] cdc_mbim 2-1:1.12: cdc-wdm0: USB WDM device
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.125961] cdc_mbim 2-1:1.12 wwan0: register 'cdc_mbim' at usb-1e1c0000.xhci-1, CDC MBIM, c6:df:d2:86:5b:e9
Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.146271] usbcore: registered new interface driver cdc_mbim

[ 13.515727] usbcore: registered new interface driver cdc_wdm
[ 13.530032] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
[ 13.545039] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[ 13.583746] usbcore: registered new interface driver cdc_ether

<!-- gh-comment-id:1622270903 --> @przemekp1 commented on GitHub (Jul 5, 2023): zmiana tego parametru Current USB composition: 8 nie pomogła Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.515727] usbcore: registered new interface driver cdc_wdm Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.530032] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.545039] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36 Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.583746] usbcore: registered new interface driver cdc_ether Wed Jul 5 20:12:07 2023 kern.notice kernel: [ 13.595006] random: crng init done Wed Jul 5 20:12:07 2023 kern.notice kernel: [ 13.602232] random: 31 urandom warning(s) missed due to ratelimiting Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.617818] usbcore: registered new interface driver cdc_ncm Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.830321] pci 0000:00:00.0: enabling device (0000 -> 0003) Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.841655] mt7615e 0000:01:00.0: enabling device (0000 -> 0002) Wed Jul 5 20:12:07 2023 kern.debug kernel: [ 13.867941] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.872830] pci 0000:00:01.0: enabling device (0000 -> 0003) Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.884284] mt7615e 0000:02:00.0: enabling device (0000 -> 0002) Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.884400] mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.884400] Wed Jul 5 20:12:07 2023 kern.debug kernel: [ 13.911420] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht' Wed Jul 5 20:12:07 2023 kern.debug kernel: [ 13.915473] ieee80211 phy1: copying sband (band 1) due to VHT EXT NSS BW flag Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.933153] mt7615e 0000:02:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.933153] Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.973812] PPP generic driver version 2.4.2 Wed Jul 5 20:12:07 2023 kern.info kernel: [ 13.984429] NET: Registered PF_PPPOX protocol family Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.044645] usbcore: registered new interface driver qmi_wwan Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.061416] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information. Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.077113] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.113941] cdc_mbim 2-1:1.12: cdc-wdm0: USB WDM device Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.125961] cdc_mbim 2-1:1.12 wwan0: register 'cdc_mbim' at usb-1e1c0000.xhci-1, CDC MBIM, c6:df:d2:86:5b:e9 Wed Jul 5 20:12:07 2023 kern.info kernel: [ 14.146271] usbcore: registered new interface driver cdc_mbim [ 13.515727] usbcore: registered new interface driver cdc_wdm [ 13.530032] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b [ 13.545039] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36 [ 13.583746] usbcore: registered new interface driver cdc_ether
Author
Owner

@przemekp1 commented on GitHub (Jul 5, 2023):

katalog /dev/
bus/ mtd3 ppp ttyS2
cdc-wdm0 mtd3ro ptmx ttyS3
console mtd4 pts/ ttyS4
cpu_dma_latency mtd4ro random ttyS5
full mtd5 shm/ ttyS6
gpiochip0 mtd5ro stderr ttyS7
gpiochip1 mtd6 stdin ttyS8
gpiochip2 mtd6ro stdout ttyS9
hwrng mtdblock0 tty ubi0
kmsg mtdblock1 ttyS0 ubi0_0
log mtdblock2 ttyS1 ubi0_1
mtd0 mtdblock3 ttyS10 ubi_ctrl
mtd0ro mtdblock4 ttyS11 ubiblock0_0
mtd1 mtdblock5 ttyS12 urandom
mtd1ro mtdblock6 ttyS13 watchdog
mtd2 null ttyS14 watchdog0
mtd2ro port ttyS15 zero

<!-- gh-comment-id:1622278095 --> @przemekp1 commented on GitHub (Jul 5, 2023): katalog /dev/ bus/ mtd3 ppp ttyS2 cdc-wdm0 mtd3ro ptmx ttyS3 console mtd4 pts/ ttyS4 cpu_dma_latency mtd4ro random ttyS5 full mtd5 shm/ ttyS6 gpiochip0 mtd5ro stderr ttyS7 gpiochip1 mtd6 stdin ttyS8 gpiochip2 mtd6ro stdout ttyS9 hwrng mtdblock0 tty ubi0 kmsg mtdblock1 ttyS0 ubi0_0 log mtdblock2 ttyS1 ubi0_1 mtd0 mtdblock3 ttyS10 ubi_ctrl mtd0ro mtdblock4 ttyS11 ubiblock0_0 mtd1 mtdblock5 ttyS12 urandom mtd1ro mtdblock6 ttyS13 watchdog mtd2 null ttyS14 watchdog0 mtd2ro port ttyS15 zero
Author
Owner

@obsy commented on GitHub (Jul 5, 2023):

I pokaż teraz wynik

cat /sys/kernel/debug/usb/devices
<!-- gh-comment-id:1622296013 --> @obsy commented on GitHub (Jul 5, 2023): I pokaż teraz wynik ``` cat /sys/kernel/debug/usb/devices ```
Author
Owner

@przemekp1 commented on GitHub (Jul 5, 2023):

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.15
S: Manufacturer=Linux 5.15.118 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1e1c0000.xhci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.15
S: Manufacturer=Linux 5.15.118 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1e1c0000.xhci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=413c ProdID=81b6 Rev= 0.06
S: Manufacturer=Sierra Wireless, Incorporated
S: Product=DW5811e Snapdragon™ X7 LTE
S: SerialNumber=LF61544850011013
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA
A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim
E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms
I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

<!-- gh-comment-id:1622470961 --> @przemekp1 commented on GitHub (Jul 5, 2023): T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1d6b ProdID=0002 Rev= 5.15 S: Manufacturer=Linux 5.15.118 xhci-hcd S: Product=xHCI Host Controller S: SerialNumber=1e1c0000.xhci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1 P: Vendor=1d6b ProdID=0003 Rev= 5.15 S: Manufacturer=Linux 5.15.118 xhci-hcd S: Product=xHCI Host Controller S: SerialNumber=1e1c0000.xhci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0 D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1 P: Vendor=413c ProdID=81b6 Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF61544850011013 C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
Author
Owner

@obsy commented on GitHub (Jul 5, 2023):

Wiec pomogło, nie to co napisałeś wczesniej. Tylko nie masz zainstalowanych sterowników, zainstaluj sobie kmod-usb-serial* i zobacz który z nich to złapie.

<!-- gh-comment-id:1622487040 --> @obsy commented on GitHub (Jul 5, 2023): Wiec pomogło, nie to co napisałeś wczesniej. Tylko nie masz zainstalowanych sterowników, zainstaluj sobie kmod-usb-serial* i zobacz który z nich to złapie.
Author
Owner

@przemekp1 commented on GitHub (Jul 5, 2023):

po doinstalowaniu sterowników

Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.448231] usbserial: USB Serial support registered for GSM modem (1-port)
Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.467338] usbcore: registered new interface driver qcserial
Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.479188] usbserial: USB Serial support registered for Qualcomm USB modem
Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.494150] qcserial 2-1:1.0: Qualcomm USB modem converter detected
Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.507240] usb 2-1: Qualcomm USB modem converter now attached to ttyUSB0
Wed Jul 5 23:56:19 2023 kern.err kernel: [ 14.521497] xhci-mtk 1e1c0000.xhci: drop_ep_quirk super-speed ep3in intr, mpkt:10, interval:9/32ms
Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.540463] qcserial 2-1:1.2: Qualcomm USB modem converter detected
Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.553643] usb 2-1: Qualcomm USB modem converter now attached to ttyUSB1
Wed Jul 5 23:56:19 2023 kern.err kernel: [ 14.567941] xhci-mtk 1e1c0000.xhci: drop_ep_quirk super-speed ep5in intr, mpkt:10, interval:9/32ms
Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.586726] qcserial 2-1:1.3: Qualcomm USB modem converter detected
Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.599739] usb 2-1: Qualcomm USB modem converter now attached to ttyUSB2
Wed Jul 5 23:56:19 2023 user.info kernel: [ 14.614306] kmodloader: done loading kernel modules from /etc/modules.d/*

ale luci nadal nie widzi portów usb, np przy konfiguracji interfejsu QMI - nadal tylko /dev/cdc-wdm0

<!-- gh-comment-id:1622614413 --> @przemekp1 commented on GitHub (Jul 5, 2023): po doinstalowaniu sterowników Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.448231] usbserial: USB Serial support registered for GSM modem (1-port) Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.467338] usbcore: registered new interface driver qcserial Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.479188] usbserial: USB Serial support registered for Qualcomm USB modem Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.494150] qcserial 2-1:1.0: Qualcomm USB modem converter detected Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.507240] usb 2-1: Qualcomm USB modem converter now attached to ttyUSB0 Wed Jul 5 23:56:19 2023 kern.err kernel: [ 14.521497] xhci-mtk 1e1c0000.xhci: drop_ep_quirk super-speed ep3in intr, mpkt:10, interval:9/32ms Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.540463] qcserial 2-1:1.2: Qualcomm USB modem converter detected Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.553643] usb 2-1: Qualcomm USB modem converter now attached to ttyUSB1 Wed Jul 5 23:56:19 2023 kern.err kernel: [ 14.567941] xhci-mtk 1e1c0000.xhci: drop_ep_quirk super-speed ep5in intr, mpkt:10, interval:9/32ms Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.586726] qcserial 2-1:1.3: Qualcomm USB modem converter detected Wed Jul 5 23:56:19 2023 kern.info kernel: [ 14.599739] usb 2-1: Qualcomm USB modem converter now attached to ttyUSB2 Wed Jul 5 23:56:19 2023 user.info kernel: [ 14.614306] kmodloader: done loading kernel modules from /etc/modules.d/* ale luci nadal nie widzi portów usb, np przy konfiguracji interfejsu QMI - nadal tylko /dev/cdc-wdm0
Author
Owner

@obsy commented on GitHub (Jul 6, 2023):

Do qmi używa właśnie interfejsów /dev/cdc* a nie /dev/ttyUSB*

Masz interfejsy, więc teraz możesz używać 3ginfo do wizualizacji parametrów. Wątek można zamykać.

<!-- gh-comment-id:1622958019 --> @obsy commented on GitHub (Jul 6, 2023): Do qmi używa właśnie interfejsów /dev/cdc* a nie /dev/ttyUSB* Masz interfejsy, więc teraz możesz używać 3ginfo do wizualizacji parametrów. Wątek można zamykać.
Author
Owner

@przemekp1 commented on GitHub (Aug 2, 2023):

poszło /dev/ttyUSB2
nie pokazuje tylko danych z pól

<html>

Modem type |
Revision / Firmware

obraz

a w zakładce Configuration muszę mieć takie ustawienie bo w innych przypasdach wywala mi błąd

obraz
modem pracuje na takich ustawieniach
obraz

obraz

<!-- gh-comment-id:1662970140 --> @przemekp1 commented on GitHub (Aug 2, 2023): poszło /dev/ttyUSB2 nie pokazuje tylko danych z pól <html><body> <!--StartFragment--> Modem type | Revision / Firmware ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/2739364d-cebd-4c32-a5ac-4e90db25e672) a w zakładce Configuration muszę mieć takie ustawienie bo w innych przypasdach wywala mi błąd ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/f032103c-e9d8-4723-b7e0-d2e2b11d41c1) modem pracuje na takich ustawieniach ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/b61e777d-0b94-40eb-9886-c635067b58d6) ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/d997442e-b901-4b17-a223-87c9458470b6)
Author
Owner

@przemekp1 commented on GitHub (Aug 2, 2023):

zakładka USB Debug

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.15
S: Manufacturer=Linux 5.15.120 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1e1c0000.xhci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.15
S: Manufacturer=Linux 5.15.120 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1e1c0000.xhci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=413c ProdID=81b6 Rev= 0.06
S: Manufacturer=Sierra Wireless, Incorporated
S: Product=DW5811e Snapdragon™ X7 LTE
S: SerialNumber=LF61544850011013
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA
A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial
E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial
E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim
E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms
I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

<!-- gh-comment-id:1662970963 --> @przemekp1 commented on GitHub (Aug 2, 2023): zakładka USB Debug T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1d6b ProdID=0002 Rev= 5.15 S: Manufacturer=Linux 5.15.120 xhci-hcd S: Product=xHCI Host Controller S: SerialNumber=1e1c0000.xhci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1 P: Vendor=1d6b ProdID=0003 Rev= 5.15 S: Manufacturer=Linux 5.15.120 xhci-hcd S: Product=xHCI Host Controller S: SerialNumber=1e1c0000.xhci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0 D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1 P: Vendor=413c ProdID=81b6 Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF61544850011013 C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
Author
Owner

@4IceG commented on GitHub (Aug 3, 2023):

Pięknie, czyli coś się ruszyło. Jest komunikacja z modemem więc podeślij mi wynik tych poleceń at:

AT+CGMI
AT+CGMM
AT+CGMR
AT+ICCID
AT+CGSN
AT+CIMI
<!-- gh-comment-id:1663244768 --> @4IceG commented on GitHub (Aug 3, 2023): Pięknie, czyli coś się ruszyło. Jest komunikacja z modemem więc podeślij mi wynik tych poleceń at: ``` AT+CGMI AT+CGMM AT+CGMR AT+ICCID AT+CGSN AT+CIMI ```
Author
Owner

@przemekp1 commented on GitHub (Aug 3, 2023):

dobrze to robię? bo nic mi się nie wyświetla
root@OpenWrt:~# socat - /dev/ttyUSB2
AT+CGMI
AT+CGMI

<!-- gh-comment-id:1664637407 --> @przemekp1 commented on GitHub (Aug 3, 2023): dobrze to robię? bo nic mi się nie wyświetla root@OpenWrt:~# socat - /dev/ttyUSB2 AT+CGMI AT+CGMI
Author
Owner

@4IceG commented on GitHub (Aug 3, 2023):

@przemekp1 nie wiem po co instalowałeś dodatkowo socat, polecenia możesz wysłać za pomocą sms_tool
sms_tool -d /dev/ttyUSB2 at "AT+CGMI"

Nie powiedziane, że uzyskasz na nie odpowiedź, dlatego chciałem abyś posprawdzał co działa i na co odpowie modem.

<!-- gh-comment-id:1664648786 --> @4IceG commented on GitHub (Aug 3, 2023): @przemekp1 nie wiem po co instalowałeś dodatkowo socat, polecenia możesz wysłać za pomocą sms_tool `sms_tool -d /dev/ttyUSB2 at "AT+CGMI"` Nie powiedziane, że uzyskasz na nie odpowiedź, dlatego chciałem abyś posprawdzał co działa i na co odpowie modem.
Author
Owner

@przemekp1 commented on GitHub (Aug 3, 2023):

a nie wiedziałem tego :)

AT+CGMI
Sierra Wireless, Incorporated

AT+CGMM
EM7455B

AT+CGMR
SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09

AT+ICCID
ICCID: 8948032026463302116
AT+CGSN
353990070926303
AT+CIMI
260036446330211

<!-- gh-comment-id:1664657771 --> @przemekp1 commented on GitHub (Aug 3, 2023): a nie wiedziałem tego :) AT+CGMI Sierra Wireless, Incorporated AT+CGMM EM7455B AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09 AT+ICCID ICCID: 8948032026463302116 AT+CGSN 353990070926303 AT+CIMI 260036446330211
Author
Owner

@4IceG commented on GitHub (Aug 5, 2023):

@przemekp1
Rozpakuj archiwum test.zip i skopiuj plik na router do tej lokalizacji usr/share/3ginfo-lite/modem/

Jeżeli brakujące dane uzupełnią się poprawnie to przygotuję aktualizację pakietu (koło niedzieli jak dobrze pójdzie).

<!-- gh-comment-id:1666376996 --> @4IceG commented on GitHub (Aug 5, 2023): @przemekp1 Rozpakuj archiwum [test.zip](https://github.com/4IceG/luci-app-3ginfo-lite/files/12266030/test.zip) i skopiuj plik na router do tej lokalizacji `usr/share/3ginfo-lite/modem/` Jeżeli brakujące dane uzupełnią się poprawnie to przygotuję aktualizację pakietu (koło niedzieli jak dobrze pójdzie).
Author
Owner

@przemekp1 commented on GitHub (Aug 5, 2023):

jest problem po podmiance
obraz

<!-- gh-comment-id:1666430711 --> @przemekp1 commented on GitHub (Aug 5, 2023): jest problem po podmiance ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/853a2945-cb85-4b66-bf36-087b27de87c4)
Author
Owner

@4IceG commented on GitHub (Aug 5, 2023):

Ok, czyli coś pomerdałem. Pokaz wynik polecenia:
sh -x /usr/share/3ginfo-lite/3ginfo.sh

<!-- gh-comment-id:1666432662 --> @4IceG commented on GitHub (Aug 5, 2023): Ok, czyli coś pomerdałem. Pokaz wynik polecenia: sh -x /usr/share/3ginfo-lite/3ginfo.sh
Author
Owner

@przemekp1 commented on GitHub (Aug 5, 2023):

root@OpenWrt:~# sh -x /usr/share/3ginfo-lite/3ginfo.sh

  • RES=/usr/share/3ginfo-lite
  • /usr/share/3ginfo-lite/detect.sh
  • DEVICE=/dev/ttyUSB2
  • '[' -z /dev/ttyUSB2 ]
  • O=
  • '[' -e /usr/bin/sms_tool ]
  • sms_tool -D -d /dev/ttyUSB2 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS ?;+CREG=2;+CREG?'
  • O='AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 19,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • uci -q get '3ginfo.@3ginfo[0].network'
  • SECT=wan
  • SUB=@
  • '[[' wan '==' '@' ]]
  • uci -q get '3ginfo.@3ginfo[0].network'
  • SEC=wan
  • '[' -z wan ]
  • CONN_TIME=-
  • RX=-
  • TX=-
  • ifstatus wan
  • grep '"up": true'
  • NETUP=
  • '[' -n ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 19,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F[, ]' '/^+CSQ/ {print $2}'
  • CSQ=19
  • '[' x19 '=' x ]
  • '[' 19 -ge 0 -a 19 -le 31 ]
  • CSQ_PER=61
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 19,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F["]' '/^+COPS: .,2/ {print $2}'
  • COPS_NUM=26003
  • '[' x26003 '=' x ]
  • COPS_MCC=260
  • COPS_MNC=03
  • awk '-F[;]' '/26003/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat
  • COPS=Orange
  • '[' xOrange '=' x ]
  • '[' -z ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 19,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F["]' '/^+COPS: .,0/ {print $2}'
  • T='Orange nju'
  • '[' 'xOrange nju' '!=' x ]
  • COPS='Orange nju'
  • echo Orange nju
  • sed ':s;s/(<\S*>)(.*)<\1>/\1\2/g;ts'
  • COPZ='Orange nju'
  • echo Orange nju
  • awk '{for(i=1;i<=NF;i++){ $i=toupper(substr($i,1,1)) substr($i,2) }}1'
  • COPS='Orange Nju'
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 19,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F[, ]' '/^+CPIN:/ {print $0;exit}'+ xargs

  • T='+CPIN: READY'

  • '[' -n '+CPIN: READY' ]

  • '[' '+CPIN: READY' '=' '+CPIN: READY' ]

  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 19,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F[, ]' '/^+CME ERROR:/ {print $0;exit}'
  • T=
  • '[' -n ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 19,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F[,]' '/^+CREG/ {gsub(/[[:space:]"]+/,"");printf "T="%d";LAC_HEX="%X ";CID_HEX="%X";LAC_DEC="%d";CID_DEC="%d";MODE_NUM="%d"", $2, "0x"$3, "0 x"$4, "0x"$3, "0x"$4, $5}'
  • eval 'T="1";LAC_HEX="FFFE";CID_HEX="23E3E34";LAC_DEC="65534";CID_DEC="37633588 ";MODE_NUM="7"'
  • T=1
  • LAC_HEX=FFFE
  • CID_HEX=23E3E34
  • LAC_DEC=65534
  • CID_DEC=37633588
  • MODE_NUM=7
  • REG=1
  • '[' -z 7 ]
  • '[' x7 '=' x0 ]
  • MODE=LTE
  • sms_tool -d /dev/ttyUSB2 at at+cereg
    ' OTX='at+cereg
    ' echo 'at+cereg
  • awk '-F[,]' '/^+CEREG/ {printf "%s", toupper($3)}'
  • sed 's/[^A-F0-9]//g'
  • TAC=
  • '[' x '!=' x ]
  • TAC=-
  • TAC_HEX=-
  • uci -q get '3ginfo.@3ginfo[0].device'
  • CONF_DEVICE=/dev/ttyUSB2
  • echo x/dev/ttyUSB2
  • grep -q 192.168.
  • '[' -e /usr/bin/sms_tool ]
  • REGOK=0
  • '[' x1 '=' x1 ]
  • REGOK=1
  • getdevicevendorproduct /dev/ttyUSB2
  • basename /dev/ttyUSB2
  • devname=ttyUSB2
  • readlink -f /sys/class/tty/ttyUSB2/device
  • devpath=/sys/devices/platform/1e1c0000.xhci/usb2/2-1/2-1:1.3/ttyUSB2
  • T=/sys/devices/platform/1e1c0000.xhci/usb2/2-1
  • cat /sys/devices/platform/1e1c0000.xhci/usb2/2-1/idVendor
  • cat /sys/devices/platform/1e1c0000.xhci/usb2/2-1/idProduct
  • echo 413c81b6
  • VIDPID=413c81b6
  • '[' -e /usr/share/3ginfo-lite/modem/413c81b6 ]
  • cat /tmp/sysinfo/board_name
  • . /usr/share/3ginfo-lite/modem/413c81b6
  • sms_tool -d /dev/ttyUSB2 at 'at!gstatus?'
  • O='at!gstatus?
    !GSTATUS:
    Current Time: 638610 Temperature: 36
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -117
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.6

'

  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 638610 Temperature: 36
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -117
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.6

'

  • awk -F: '/Temperature:/ {print $3}'
    ' T=' 36
    ' ][' -n ' 36
    °C' 36
  • '[' x7 '=' x7 ]
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 638610 Temperature: 36
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -117
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.6

'

  • awk '/.*TAC:/ {print $5}'
  • T=D5AC
  • '[' -n D5AC ]
  • printf '%d' 0xD5AC
  • T_DEC=54700
  • T_HEX=D5AC
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 638610 Temperature: 36
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -117
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.6

'

  • awk '/^PCC.*RSSI/ {print $4}'
  • xargs
  • T='-74 -74'
  • '[' -n '-74 -74' ]
  • RSSI=-74/-74
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 638610 Temperature: 36
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -117
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.6

'

  • awk '/^PCC.*RSRP/ {print $7}'+ xargs

  • T='-109 -117'

  • '[' -n '-109 -117' ]

  • RSRP=-109/-117

  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 638610 Temperature: 36
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -117
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.6

'+ awk '/^RSRQ/ {print $3}'

  • T=-17.4
  • '[' -n -17.4 ]
  • RSRQ=-17.4
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 638610 Temperature: 36
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -117
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.6

'

  • awk '/^SINR/ {print $3}'
  • T=-2.6
  • '[' -n -2.6 ]
  • SINR=-2.6
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 638610 Temperature: 36
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -117
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.6

'+ awk '/^LTE band:/ {print $3}'

  • T=B3
  • '[' -n B3 ]
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 638610 Temperature: 36
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -117
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.6

'

  • awk '/^LTE band:/ {print $6}'
  • T1=10
  • band 3
  • echo -n B3
  • echo ' (1800 MHz)'
  • PBAND='B3 (1800 MHz) @10 MHz'
  • band 3
  • echo -n B3
  • echo ' (1800 MHz)'
  • MODE='LTE B3 (1800 MHz)'
    • awk -F: '/^LTE CA state:.*ACTIVE/ {print $3}'
      echo 'at!gstatus?
      !GSTATUS:
      Current Time: 638610 Temperature: 36
      Reset Counter: 1 Mode: ONLINE
      System mode: LTE PS state: Attached
      LTE band: B3 LTE bw: 10 MHz
      LTE Rx chan: 1749 LTE Tx chan: 19749
      LTE CA state: NOT ASSIGNED
      EMM state: Registered Normal Service
      RRC state: RRC Connected
      IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -117
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.6

'

  • T=

  • '[' -n ]

  • echo LTE B3 '(1800' 'MHz)'

  • sed 's/LTE_A/LTE-A |/g'

  • sed s,/,+,

  • MODE='LTE B3 (1800 MHz)'

  • sms_tool -d /dev/ttyUSB2 at AT+CGMR

  • tr -s '\n'

  • xargs

  • FWA='AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09'

  • echo AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09

  • sed 's/AT+GMR //'

  • FW='AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09'

  • sms_tool -d /dev/ttyUSB2 at AT+CGMM

  • tr -s '\n'

  • xargs

  • MODELA='AT+CGMM EM7455B'

  • sms_tool -d /dev/ttyUSB2 at AT+CGMI

  • tr -s '\n'

  • xargs

  • MODELB='AT+CGMI Sierra Wireless, Incorporated'

  • echo AT+CGMM EM7455B

  • sed 's/AT+CGMM //'

  • MODELACUT=EM7455B

  • echo AT+CGMI Sierra Wireless, Incorporated

  • sed 's/AT+CGMI //'

  • cut -f1 -d,

  • MODELBCUT='Sierra Wireless'

  • MODEL='Sierra Wireless EM7455B'

  • sms_tool -d /dev/ttyUSB2 at AT+CGSN

  • xargs

  • O='AT+CGSN 353990070926303'

  • echo 'AT+CGSN 353990070926303'

  • sed 's/AT+GSN //'

  • NR_I='AT+CGSN 353990070926303'

  • '[' -n 'AT+CGSN 353990070926303' ]

  • NR_IMEI='AT+CGSN 353990070926303'

  • sms_tool -d /dev/ttyUSB2 at AT+CIMI

  • xargs

  • O='AT+CIMI 260036446330211'

  • echo 'AT+CIMI 260036446330211'

  • sed 's/AT+CIMI //'

  • NR_C=260036446330211

  • '[' -n 260036446330211 ]

  • NR_IMSI=260036446330211

  • sms_tool -d /dev/ttyUSB2 at AT+ICCID

  • O='AT+ICCID
    ICCID: 8948032026463302116
    '

  • echo 'AT+ICCID
    ICCID: 8948032026463302116
    '

    • awk '-F[,:]'xargs '/^ICCID: /{print $2}'
  • NR_D=8948032026463302116

  • '[' -n 8948032026463302116 ]

  • NR_ICCID=8948032026463302116

  • cat /sys/kernel/debug/usb/devices

  • PV='
    T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
    B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
    D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
    P: Vendor=1d6b ProdID=0002 Rev= 5.15
    S: Manufacturer=Linux 5.15.120 xhci-hcd
    S: Product=xHCI Host Controller
    S: SerialNumber=1e1c0000.xhci
    C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
    I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
    E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.15
S: Manufacturer=Linux 5.15.120 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1e1c0000.xhci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=413c ProdID=81b6 Rev= 0.06
S: Manufacturer=Sierra Wireless, Incorporated
S: Product=DW5811e Snapdragon™ X7 LTE
S: SerialNumber=LF61544850011013
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA
A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial
E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial
E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim
E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms
I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms'

  • awk -F 'Vendor=413c ProdID=81b6' '{print $2}'
  • cut -c-1290
  • echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'Mx Ch=' 2 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 2.00 'Cls= 09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=000 2' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'M xPwr=' 0mA 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Le v=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 1 B: 'Alloc=' 0/ 800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Ma nufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'Serial Number=1e1c0000.xhci' 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:' 'If# =' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad= 81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Lev=01' 'Prnt=01' 'Port =00' 'Cnt=01' 'Dev#=' 2 'Spd=5000' 'MxCh=' 0 D: 'Ver=' 3.00 'Cls=00(>ifc' ')' 'S ub=00' 'Prot=00' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=413c' 'ProdID=81b6' 'Rev=' 0.06 S: 'Manufacturer=Sierra' Wireless, Incorporated S: 'Product=DW5811e' 'Snapdrago n™' X7 LTE S: 'SerialNumber=LF61544850011013' 'C:' '#Ifs=' 5 'Cfg#=' 1 'Atr=a0' 'MxPwr=504mA' A: 'FirstIf#=12' 'IfCount=' 2 'Cls=02(comm.)' 'Sub=0e' 'Prot=00' 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qcs erial' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=' 2 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=83(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=12' 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' ' Sub=0e' 'Prot=00' 'Driver=cdc_mbim' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 64 'Ivl =32ms' I: 'If#=13' 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=02' 'Driv er=cdc_mbim' 'I:' 'If#=13' 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot= 02' 'Driver=cdc_mbim' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad= 04(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms'
  • PVCUT=' Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5 811e Snapdragon™ X7 LTE S: SerialNumber=LF61544850011013 C:* #Ifs= 5 Cfg#= 1 Atr =a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02 (Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 A lt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(In t.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr =02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot= 00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02 (Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 A lt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(In t.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driv er=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mb im E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms'
  • awk -F 'Vendor=413c ProdID=81b1' '{print $2}'
  • cut -c-1290
  • echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'Mx Ch=' 2 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 2.00 'Cls= 09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=000 2' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'M xPwr=' 0mA 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Le v=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 1 B: 'Alloc=' 0/ 800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Ma nufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'Serial Number=1e1c0000.xhci' 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:' 'If# =' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad= 81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Lev=01' 'Prnt=01' 'Port =00' 'Cnt=01' 'Dev#=' 2 'Spd=5000' 'MxCh=' 0 D: 'Ver=' 3.00 'Cls=00(>ifc' ')' 'S ub=00' 'Prot=00' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=413c' 'ProdID=81b6' 'Rev=' 0.06 S: 'Manufacturer=Sierra' Wireless, Incorporated S: 'Product=DW5811e' 'Snapdrago n™' X7 LTE S: 'SerialNumber=LF61544850011013' 'C:' '#Ifs=' 5 'Cfg#=' 1 'Atr=a0' 'MxPwr=504mA' A: 'FirstIf#=12' 'IfCount=' 2 'Cls=02(comm.)' 'Sub=0e' 'Prot=00' 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qcs erial' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=' 2 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=83(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=12' 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' ' Sub=0e' 'Prot=00' 'Driver=cdc_mbim' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 64 'Ivl =32ms' I: 'If#=13' 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=02' 'Driv er=cdc_mbim' 'I:' 'If#=13' 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot= 02' 'Driver=cdc_mbim' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad= 04(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms'
  • PVCUT=
  • awk -F 'Vendor=1199 ProdID=9071' '{print $2}'
  • cut -c-1290
  • echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'Mx Ch=' 2 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 2.00 'Cls= 09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=000 2' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'M xPwr=' 0mA 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Le v=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 1 B: 'Alloc=' 0/ 800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Ma nufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'Serial Number=1e1c0000.xhci' 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:' 'If# =' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad= 81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Lev=01' 'Prnt=01' 'Port =00' 'Cnt=01' 'Dev#=' 2 'Spd=5000' 'MxCh=' 0 D: 'Ver=' 3.00 'Cls=00(>ifc' ')' 'S ub=00' 'Prot=00' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=413c' 'ProdID=81b6' 'Rev=' 0.06 S: 'Manufacturer=Sierra' Wireless, Incorporated S: 'Product=DW5811e' 'Snapdrago n™' X7 LTE S: 'SerialNumber=LF61544850011013' 'C:' '#Ifs=' 5 'Cfg#=' 1 'Atr=a0' 'MxPwr=504mA' A: 'FirstIf#=12' 'IfCount=' 2 'Cls=02(comm.)' 'Sub=0e' 'Prot=00' 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qcs erial' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=' 2 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=83(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=12' 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' ' Sub=0e' 'Prot=00' 'Driver=cdc_mbim' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 64 'Ivl =32ms' I: 'If#=13' 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=02' 'Driv er=cdc_mbim' 'I:' 'If#=13' 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot= 02' 'Driver=cdc_mbim' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad= 04(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms'
  • PVCUT=
  • echo
  • grep -q 'Driver=qmi_wwan'
  • echo
  • grep -q 'Driver=cdc_mbim'
  • echo
  • grep -q 'Driver=cdc_ether'
  • cat
    {
    "connt":"-",
    "conntx":"-",
    "connrx":"-",
    "modem":"Sierra Wireless EM7455B",
    °C", 36
    "firmware":"AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23: 09",
    "cport":"/dev/ttyUSB2",
    "protocol":"",
    "csq":"19",
    "signal":"61",
    "operator_name":"Orange Nju",
    "operator_mcc":"260",
    "operator_mnc":"03",
    "mode":"LTE B3 (1800 MHz)",
    "registration":"1",
    "simslot":"",
    "imei":"AT+CGSN 353990070926303",
    "imsi":"260036446330211",
    "iccid":"8948032026463302116",
    "lac_dec":"65534",
    "lac_hex":"FFFE",
    "tac_dec":"",
    "tac_hex":"-",
    "tac_h":"D5AC",
    "tac_d":"54700",
    "cid_dec":"37633588",
    "cid_hex":"23E3E34",
    "pci":"",
    "earfcn":"",
    "pband":"B3 (1800 MHz) @10 MHz",
    "s1band":"",
    "s1pci":"",
    "s1earfcn":"",
    "s2band":"",
    "s2pci":"",
    "s2earfcn":"",
    "s3band":"",
    "s3pci":"",
    "s3earfcn":"",
    "s4band":"",
    "s4pci":"",
    "s4earfcn":"",
    "rsrp":"-109/-117",
    "rsrq":"-17.4",
    "rssi":"-74/-74",
    "sinr":"-2.6"
    }
  • exit 0
<!-- gh-comment-id:1666439385 --> @przemekp1 commented on GitHub (Aug 5, 2023): root@OpenWrt:~# sh -x /usr/share/3ginfo-lite/3ginfo.sh + RES=/usr/share/3ginfo-lite + /usr/share/3ginfo-lite/detect.sh + DEVICE=/dev/ttyUSB2 + '[' -z /dev/ttyUSB2 ] + O= + '[' -e /usr/bin/sms_tool ] + sms_tool -D -d /dev/ttyUSB2 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS ?;+CREG=2;+CREG?' + O='AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 19,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + uci -q get '3ginfo.@3ginfo[0].network' + SECT=wan + SUB=@ + '[[' wan '==' '*@*' ]] + uci -q get '3ginfo.@3ginfo[0].network' + SEC=wan + '[' -z wan ] + CONN_TIME=- + RX=- + TX=- + ifstatus wan + grep '"up": true' + NETUP= + '[' -n ] + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 19,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F[, ]' '/^\+CSQ/ {print $2}' + CSQ=19 + '[' x19 '=' x ] + '[' 19 -ge 0 -a 19 -le 31 ] + CSQ_PER=61 + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 19,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F["]' '/^\+COPS: .,2/ {print $2}' + COPS_NUM=26003 + '[' x26003 '=' x ] + COPS_MCC=260 + COPS_MNC=03 + awk '-F[;]' '/26003/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat + COPS=Orange + '[' xOrange '=' x ] + '[' -z ] + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 19,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F["]' '/^\+COPS: .,0/ {print $2}' + T='Orange nju' + '[' 'xOrange nju' '!=' x ] + COPS='Orange nju' + echo Orange nju + sed ':s;s/\(\<\S*\>\)\(.*\)\<\1\>/\1\2/g;ts' + COPZ='Orange nju' + echo Orange nju + awk '{for(i=1;i<=NF;i++){ $i=toupper(substr($i,1,1)) substr($i,2) }}1' + COPS='Orange Nju' + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 19,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F[, ]' '/^\+CPIN:/ {print $0;exit}'+ xargs + T='+CPIN: READY' + '[' -n '+CPIN: READY' ] + '[' '+CPIN: READY' '=' '+CPIN: READY' ] + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 19,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F[, ]' '/^\+CME ERROR:/ {print $0;exit}' + T= + '[' -n ] + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 19,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F[,]' '/^\+CREG/ {gsub(/[[:space:]"]+/,"");printf "T=\"%d\";LAC_HEX=\"%X \";CID_HEX=\"%X\";LAC_DEC=\"%d\";CID_DEC=\"%d\";MODE_NUM=\"%d\"", $2, "0x"$3, "0 x"$4, "0x"$3, "0x"$4, $5}' + eval 'T="1";LAC_HEX="FFFE";CID_HEX="23E3E34";LAC_DEC="65534";CID_DEC="37633588 ";MODE_NUM="7"' + T=1 + LAC_HEX=FFFE + CID_HEX=23E3E34 + LAC_DEC=65534 + CID_DEC=37633588 + MODE_NUM=7 + REG=1 + '[' -z 7 ] + '[' x7 '=' x0 ] + MODE=LTE + sms_tool -d /dev/ttyUSB2 at at+cereg ' OTX='at+cereg ' echo 'at+cereg + awk '-F[,]' '/^\+CEREG/ {printf "%s", toupper($3)}' + sed 's/[^A-F0-9]//g' + TAC= + '[' x '!=' x ] + TAC=- + TAC_HEX=- + uci -q get '3ginfo.@3ginfo[0].device' + CONF_DEVICE=/dev/ttyUSB2 + echo x/dev/ttyUSB2 + grep -q 192.168. + '[' -e /usr/bin/sms_tool ] + REGOK=0 + '[' x1 '=' x1 ] + REGOK=1 + getdevicevendorproduct /dev/ttyUSB2 + basename /dev/ttyUSB2 + devname=ttyUSB2 + readlink -f /sys/class/tty/ttyUSB2/device + devpath=/sys/devices/platform/1e1c0000.xhci/usb2/2-1/2-1:1.3/ttyUSB2 + T=/sys/devices/platform/1e1c0000.xhci/usb2/2-1 + cat /sys/devices/platform/1e1c0000.xhci/usb2/2-1/idVendor + cat /sys/devices/platform/1e1c0000.xhci/usb2/2-1/idProduct + echo 413c81b6 + VIDPID=413c81b6 + '[' -e /usr/share/3ginfo-lite/modem/413c81b6 ] + cat /tmp/sysinfo/board_name + . /usr/share/3ginfo-lite/modem/413c81b6 + sms_tool -d /dev/ttyUSB2 at 'at!gstatus?' + O='at!gstatus? !GSTATUS: Current Time: 638610 Temperature: 36 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -117 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588) SINR (dB): -2.6 ' + echo 'at!gstatus? !GSTATUS: Current Time: 638610 Temperature: 36 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -117 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588) SINR (dB): -2.6 ' + awk -F: '/Temperature:/ {print $3}' ' T=' 36 ' ][' -n ' 36 &deg;C' 36 + '[' x7 '=' x7 ] + echo 'at!gstatus? !GSTATUS: Current Time: 638610 Temperature: 36 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -117 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588) SINR (dB): -2.6 ' + awk '/.*TAC:/ {print $5}' + T=D5AC + '[' -n D5AC ] + printf '%d' 0xD5AC + T_DEC=54700 + T_HEX=D5AC + echo 'at!gstatus? !GSTATUS: Current Time: 638610 Temperature: 36 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -117 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588) SINR (dB): -2.6 ' + awk '/^PCC.*RSSI/ {print $4}' + xargs + T='-74 -74' + '[' -n '-74 -74' ] + RSSI=-74/-74 + echo 'at!gstatus? !GSTATUS: Current Time: 638610 Temperature: 36 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -117 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588) SINR (dB): -2.6 ' + awk '/^PCC.*RSRP/ {print $7}'+ xargs + T='-109 -117' + '[' -n '-109 -117' ] + RSRP=-109/-117 + echo 'at!gstatus? !GSTATUS: Current Time: 638610 Temperature: 36 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -117 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588) SINR (dB): -2.6 '+ awk '/^RSRQ/ {print $3}' + T=-17.4 + '[' -n -17.4 ] + RSRQ=-17.4 + echo 'at!gstatus? !GSTATUS: Current Time: 638610 Temperature: 36 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -117 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588) SINR (dB): -2.6 ' + awk '/^SINR/ {print $3}' + T=-2.6 + '[' -n -2.6 ] + SINR=-2.6 + echo 'at!gstatus? !GSTATUS: Current Time: 638610 Temperature: 36 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -117 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588) SINR (dB): -2.6 '+ awk '/^LTE band:/ {print $3}' + T=B3 + '[' -n B3 ] + echo 'at!gstatus? !GSTATUS: Current Time: 638610 Temperature: 36 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -117 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588) SINR (dB): -2.6 ' + awk '/^LTE band:/ {print $6}' + T1=10 + band 3 + echo -n B3 + echo ' (1800 MHz)' + PBAND='B3 (1800 MHz) @10 MHz' + band 3 + echo -n B3 + echo ' (1800 MHz)' + MODE='LTE B3 (1800 MHz)' + + awk -F: '/^LTE CA state:.*ACTIVE/ {print $3}' echo 'at!gstatus? !GSTATUS: Current Time: 638610 Temperature: 36 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -117 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.4 Cell ID: 023E3E34 (37633588) SINR (dB): -2.6 ' + T= + '[' -n ] + echo LTE B3 '(1800' 'MHz)' + sed 's/LTE_A/LTE-A |/g' + sed s,/,+, + MODE='LTE B3 (1800 MHz)' + sms_tool -d /dev/ttyUSB2 at AT+CGMR + tr -s '\n' + xargs + FWA='AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09' + echo AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09 + sed 's/AT+GMR //' + FW='AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09' + sms_tool -d /dev/ttyUSB2 at AT+CGMM + tr -s '\n' + xargs + MODELA='AT+CGMM EM7455B' + sms_tool -d /dev/ttyUSB2 at AT+CGMI + tr -s '\n' + xargs + MODELB='AT+CGMI Sierra Wireless, Incorporated' + echo AT+CGMM EM7455B + sed 's/AT+CGMM //' + MODELACUT=EM7455B + echo AT+CGMI Sierra Wireless, Incorporated + sed 's/AT+CGMI //' + cut -f1 -d, + MODELBCUT='Sierra Wireless' + MODEL='Sierra Wireless EM7455B' + sms_tool -d /dev/ttyUSB2 at AT+CGSN + xargs + O='AT+CGSN 353990070926303' + echo 'AT+CGSN 353990070926303' + sed 's/AT+GSN //' + NR_I='AT+CGSN 353990070926303' + '[' -n 'AT+CGSN 353990070926303' ] + NR_IMEI='AT+CGSN 353990070926303' + sms_tool -d /dev/ttyUSB2 at AT+CIMI + xargs + O='AT+CIMI 260036446330211' + echo 'AT+CIMI 260036446330211' + sed 's/AT+CIMI //' + NR_C=260036446330211 + '[' -n 260036446330211 ] + NR_IMSI=260036446330211 + sms_tool -d /dev/ttyUSB2 at AT+ICCID + O='AT+ICCID ICCID: 8948032026463302116 ' + echo 'AT+ICCID ICCID: 8948032026463302116 ' + + awk '-F[,:]'xargs '/^ICCID: /{print $2}' + NR_D=8948032026463302116 + '[' -n 8948032026463302116 ] + NR_ICCID=8948032026463302116 + cat /sys/kernel/debug/usb/devices + PV=' T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1d6b ProdID=0002 Rev= 5.15 S: Manufacturer=Linux 5.15.120 xhci-hcd S: Product=xHCI Host Controller S: SerialNumber=1e1c0000.xhci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1 P: Vendor=1d6b ProdID=0003 Rev= 5.15 S: Manufacturer=Linux 5.15.120 xhci-hcd S: Product=xHCI Host Controller S: SerialNumber=1e1c0000.xhci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0 D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1 P: Vendor=413c ProdID=81b6 Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF61544850011013 C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms' + awk -F 'Vendor=413c ProdID=81b6' '{print $2}' + cut -c-1290 + echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'Mx Ch=' 2 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 2.00 'Cls= 09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=000 2' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' 'C:*' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'M xPwr=' 0mA 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Le v=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 1 B: 'Alloc=' 0/ 800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Ma nufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'Serial Number=1e1c0000.xhci' 'C:*' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:*' 'If# =' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad= 81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Lev=01' 'Prnt=01' 'Port =00' 'Cnt=01' 'Dev#=' 2 'Spd=5000' 'MxCh=' 0 D: 'Ver=' 3.00 'Cls=00(>ifc' ')' 'S ub=00' 'Prot=00' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=413c' 'ProdID=81b6' 'Rev=' 0.06 S: 'Manufacturer=Sierra' Wireless, Incorporated S: 'Product=DW5811e' 'Snapdrago n™' X7 LTE S: 'SerialNumber=LF61544850011013' 'C:*' '#Ifs=' 5 'Cfg#=' 1 'Atr=a0' 'MxPwr=504mA' A: 'FirstIf#=12' 'IfCount=' 2 'Cls=02(comm.)' 'Sub=0e' 'Prot=00' 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qcs erial' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 2 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=83(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=12' 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' ' Sub=0e' 'Prot=00' 'Driver=cdc_mbim' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 64 'Ivl =32ms' I: 'If#=13' 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=02' 'Driv er=cdc_mbim' 'I:*' 'If#=13' 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot= 02' 'Driver=cdc_mbim' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad= 04(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' + PVCUT=' Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5 811e Snapdragon™ X7 LTE S: SerialNumber=LF61544850011013 C:* #Ifs= 5 Cfg#= 1 Atr =a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02 (Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 A lt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(In t.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr =02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot= 00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02 (Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 A lt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(In t.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driv er=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mb im E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms' + awk -F 'Vendor=413c ProdID=81b1' '{print $2}' + cut -c-1290 + echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'Mx Ch=' 2 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 2.00 'Cls= 09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=000 2' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' 'C:*' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'M xPwr=' 0mA 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Le v=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 1 B: 'Alloc=' 0/ 800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Ma nufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'Serial Number=1e1c0000.xhci' 'C:*' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:*' 'If# =' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad= 81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Lev=01' 'Prnt=01' 'Port =00' 'Cnt=01' 'Dev#=' 2 'Spd=5000' 'MxCh=' 0 D: 'Ver=' 3.00 'Cls=00(>ifc' ')' 'S ub=00' 'Prot=00' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=413c' 'ProdID=81b6' 'Rev=' 0.06 S: 'Manufacturer=Sierra' Wireless, Incorporated S: 'Product=DW5811e' 'Snapdrago n™' X7 LTE S: 'SerialNumber=LF61544850011013' 'C:*' '#Ifs=' 5 'Cfg#=' 1 'Atr=a0' 'MxPwr=504mA' A: 'FirstIf#=12' 'IfCount=' 2 'Cls=02(comm.)' 'Sub=0e' 'Prot=00' 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qcs erial' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 2 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=83(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=12' 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' ' Sub=0e' 'Prot=00' 'Driver=cdc_mbim' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 64 'Ivl =32ms' I: 'If#=13' 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=02' 'Driv er=cdc_mbim' 'I:*' 'If#=13' 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot= 02' 'Driver=cdc_mbim' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad= 04(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' + PVCUT= + awk -F 'Vendor=1199 ProdID=9071' '{print $2}' + cut -c-1290 + echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'Mx Ch=' 2 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 2.00 'Cls= 09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=000 2' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' 'C:*' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'M xPwr=' 0mA 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Le v=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 1 B: 'Alloc=' 0/ 800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Ma nufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'Serial Number=1e1c0000.xhci' 'C:*' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:*' 'If# =' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad= 81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Lev=01' 'Prnt=01' 'Port =00' 'Cnt=01' 'Dev#=' 2 'Spd=5000' 'MxCh=' 0 D: 'Ver=' 3.00 'Cls=00(>ifc' ')' 'S ub=00' 'Prot=00' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=413c' 'ProdID=81b6' 'Rev=' 0.06 S: 'Manufacturer=Sierra' Wireless, Incorporated S: 'Product=DW5811e' 'Snapdrago n™' X7 LTE S: 'SerialNumber=LF61544850011013' 'C:*' '#Ifs=' 5 'Cfg#=' 1 'Atr=a0' 'MxPwr=504mA' A: 'FirstIf#=12' 'IfCount=' 2 'Cls=02(comm.)' 'Sub=0e' 'Prot=00' 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qcs erial' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 2 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=83(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' ' Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl =32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02( Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=12' 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' ' Sub=0e' 'Prot=00' 'Driver=cdc_mbim' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 64 'Ivl =32ms' I: 'If#=13' 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=02' 'Driv er=cdc_mbim' 'I:*' 'If#=13' 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot= 02' 'Driver=cdc_mbim' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad= 04(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' + PVCUT= + echo + grep -q 'Driver=qmi_wwan' + echo + grep -q 'Driver=cdc_mbim' + echo + grep -q 'Driver=cdc_ether' + cat { "connt":"-", "conntx":"-", "connrx":"-", "modem":"Sierra Wireless EM7455B", &deg;C", 36 "firmware":"AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23: 09", "cport":"/dev/ttyUSB2", "protocol":"", "csq":"19", "signal":"61", "operator_name":"Orange Nju", "operator_mcc":"260", "operator_mnc":"03", "mode":"LTE B3 (1800 MHz)", "registration":"1", "simslot":"", "imei":"AT+CGSN 353990070926303", "imsi":"260036446330211", "iccid":"8948032026463302116", "lac_dec":"65534", "lac_hex":"FFFE", "tac_dec":"", "tac_hex":"-", "tac_h":"D5AC", "tac_d":"54700", "cid_dec":"37633588", "cid_hex":"23E3E34", "pci":"", "earfcn":"", "pband":"B3 (1800 MHz) @10 MHz", "s1band":"", "s1pci":"", "s1earfcn":"", "s2band":"", "s2pci":"", "s2earfcn":"", "s3band":"", "s3pci":"", "s3earfcn":"", "s4band":"", "s4pci":"", "s4earfcn":"", "rsrp":"-109/-117", "rsrq":"-17.4", "rssi":"-74/-74", "sinr":"-2.6" } + exit 0
Author
Owner

@4IceG commented on GitHub (Aug 5, 2023):

Ok, podejście nr 2.
test2.zip

<!-- gh-comment-id:1666455546 --> @4IceG commented on GitHub (Aug 5, 2023): Ok, podejście nr 2. [test2.zip](https://github.com/4IceG/luci-app-3ginfo-lite/files/12266756/test2.zip)
Author
Owner

@przemekp1 commented on GitHub (Aug 5, 2023):

obraz

<!-- gh-comment-id:1666469932 --> @przemekp1 commented on GitHub (Aug 5, 2023): ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/a3a0bba0-57dd-4ab3-9978-3b1c009d1eab)
Author
Owner

@przemekp1 commented on GitHub (Aug 5, 2023):

sms_tool -d /dev/ttyUSB2 at "at!gstatus?"
at!gstatus?
!GSTATUS:
Current Time: 647519 Temperature: 37
Reset Counter: 1 Mode: ONLINE
System mode: LTE PS state: Attached
LTE band: B3 LTE bw: 10 MHz
LTE Rx chan: 1749 LTE Tx chan: 19749
LTE CA state: NOT ASSIGNED
EMM state: Registered Normal Service
RRC state: RRC Connected
IMS reg state: No Srv

PCC RxM RSSI: -75 RSRP (dBm): -109
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -17.2 Cell ID: 023E3E34 (37633588)
SINR (dB): -2.8

<!-- gh-comment-id:1666470962 --> @przemekp1 commented on GitHub (Aug 5, 2023): sms_tool -d /dev/ttyUSB2 at "at!gstatus?" at!gstatus? !GSTATUS: Current Time: 647519 Temperature: 37 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -75 RSRP (dBm): -109 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -17.2 Cell ID: 023E3E34 (37633588) SINR (dB): -2.8
Author
Owner

@4IceG commented on GitHub (Aug 5, 2023):

Czyli bawimy się dalej. Później jeszcze na to zerkne.

<!-- gh-comment-id:1666474792 --> @4IceG commented on GitHub (Aug 5, 2023): Czyli bawimy się dalej. Później jeszcze na to zerkne.
Author
Owner

@4IceG commented on GitHub (Aug 6, 2023):

Odpalam u siebie te skrypty i błędu nie mam, więc ten modem coś jeszcze zwraca co rozwala system.

Ok.. wróciłem do tej pierwszej wersji skryptów bo one pokazywały najwięcej, poprawiłem to co rzuciło mi się w oczy i tyle. Jak dalej będzie zonk to nic tylko znów pozostaje szukać co może być nie halo.

413c81b6.zip

@przemekp1 jak wrzucisz tą wersję to pokaż wynik polecenia
/usr/share/3ginfo-lite/3ginfo.sh

<!-- gh-comment-id:1666873017 --> @4IceG commented on GitHub (Aug 6, 2023): Odpalam u siebie te skrypty i błędu nie mam, więc ten modem coś jeszcze zwraca co rozwala system. Ok.. wróciłem do tej pierwszej wersji skryptów bo one pokazywały najwięcej, poprawiłem to co rzuciło mi się w oczy i tyle. Jak dalej będzie zonk to nic tylko znów pozostaje szukać co może być nie halo. [413c81b6.zip](https://github.com/4IceG/luci-app-3ginfo-lite/files/12269751/413c81b6.zip) @przemekp1 jak wrzucisz tą wersję to pokaż wynik polecenia `/usr/share/3ginfo-lite/3ginfo.sh`
Author
Owner

@przemekp1 commented on GitHub (Aug 6, 2023):

nadal te same komunikaty
obraz

root@OpenWrt:~# /usr/share/3ginfo-lite/3ginfo.sh
/usr/share/3ginfo-lite/3ginfo.sh: line 193: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
{
"connt":"0d, 03:05:52",
"conntx":"25.0 MiB",
"connrx":"769.2 MiB",
"modem":"Sierra Wireless EM7455B",
°C", 37
"firmware":"SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09",
"cport":"/dev/ttyUSB2",
"protocol":"mbim",
"csq":"16",
"signal":"51",
"operator_name":"Orange Nju",
"operator_mcc":"260",
"operator_mnc":"03",
"mode":"UMTS",
"registration":"1",
"simslot":"",
"imei":"353990070926303",
"imsi":"260036446330211",
"iccid":"8948032026463302116",
"lac_dec":"54700",
"lac_hex":"D5AC",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"",
"tac_d":"",
"cid_dec":"54415928",
"cid_hex":"33E5238",
"pci":"",
"earfcn":"",
"pband":"",
"s1band":"",
"s1pci":"",
"s1earfcn":"",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"",
"rsrq":"",
"rssi":"",
"sinr":""
}

<!-- gh-comment-id:1666882018 --> @przemekp1 commented on GitHub (Aug 6, 2023): nadal te same komunikaty ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/e5b4dfe4-228c-4e12-882c-4f3733c7da24) root@OpenWrt:~# /usr/share/3ginfo-lite/3ginfo.sh /usr/share/3ginfo-lite/3ginfo.sh: line 193: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found { "connt":"0d, 03:05:52", "conntx":"25.0 MiB", "connrx":"769.2 MiB", "modem":"Sierra Wireless EM7455B", &deg;C", 37 "firmware":"SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09", "cport":"/dev/ttyUSB2", "protocol":"mbim", "csq":"16", "signal":"51", "operator_name":"Orange Nju", "operator_mcc":"260", "operator_mnc":"03", "mode":"UMTS", "registration":"1", "simslot":"", "imei":"353990070926303", "imsi":"260036446330211", "iccid":"8948032026463302116", "lac_dec":"54700", "lac_hex":"D5AC", "tac_dec":"", "tac_hex":"-", "tac_h":"", "tac_d":"", "cid_dec":"54415928", "cid_hex":"33E5238", "pci":"", "earfcn":"", "pband":"", "s1band":"", "s1pci":"", "s1earfcn":"", "s2band":"", "s2pci":"", "s2earfcn":"", "s3band":"", "s3pci":"", "s3earfcn":"", "s4band":"", "s4pci":"", "s4earfcn":"", "rsrp":"", "rsrq":"", "rssi":"", "sinr":"" }
Author
Owner

@4IceG commented on GitHub (Aug 6, 2023):

@przemekp1 masz mozliwosc zmienić, poprawic lokalizacje routera? Skrypty operuja na danych z polaczenia lte / lte-a a u Ciebie widze UMTS, pewnie skladnia wyglada wtedy inaczej i rozwala to cale dane wyjsciowe.

Ogolnie skrypty dane zczytuja, to czego brakowalo wczesniej jest uzupelnione. Wypadaloby złapać wynik polecenia przy UMTS i porównać ze skladnia dla lte, pewnie by się doszlo co rozwala json-a.

<!-- gh-comment-id:1666889409 --> @4IceG commented on GitHub (Aug 6, 2023): @przemekp1 masz mozliwosc zmienić, poprawic lokalizacje routera? Skrypty operuja na danych z polaczenia lte / lte-a a u Ciebie widze UMTS, pewnie skladnia wyglada wtedy inaczej i rozwala to cale dane wyjsciowe. Ogolnie skrypty dane zczytuja, to czego brakowalo wczesniej jest uzupelnione. Wypadaloby złapać wynik polecenia przy UMTS i porównać ze skladnia dla lte, pewnie by się doszlo co rozwala json-a.
Author
Owner

@przemekp1 commented on GitHub (Aug 6, 2023):

a teraz jest w LTE

/usr/share/3ginfo-lite/3ginfo.sh
/usr/share/3ginfo-lite/3ginfo.sh: line 193: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
/usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
{
"connt":"0d, 00:01:10",
"conntx":"159.6 KiB",
"connrx":"4.1 MiB",
"modem":"Sierra Wireless EM7455B",
°C", 35
"firmware":"SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09",
"cport":"/dev/ttyUSB2",
"protocol":"mbim",
"csq":"18",
"signal":"58",
"operator_name":"Orange Nju",
"operator_mcc":"260",
"operator_mnc":"03",
"mode":"LTE B3 (1800 MHz)",
"registration":"1",
"simslot":"",
"imei":"353990073024155",
"imsi":"260036446330211",
"iccid":"8948032026463302116",
"lac_dec":"65534",
"lac_hex":"FFFE",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"D5AC",
"tac_d":"54700",
"cid_dec":"37633588",
"cid_hex":"23E3E34",
"pci":"",
"earfcn":"",
"pband":"B3 (1800 MHz) @10 MHz",
"s1band":"",
"s1pci":"",
"s1earfcn":"",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"-113",
"rsrq":"-19.3",
"rssi":"-79",
"sinr":"-5.8"
}

<!-- gh-comment-id:1666911886 --> @przemekp1 commented on GitHub (Aug 6, 2023): a teraz jest w LTE /usr/share/3ginfo-lite/3ginfo.sh /usr/share/3ginfo-lite/3ginfo.sh: line 193: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found { "connt":"0d, 00:01:10", "conntx":"159.6 KiB", "connrx":"4.1 MiB", "modem":"Sierra Wireless EM7455B", &deg;C", 35 "firmware":"SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09", "cport":"/dev/ttyUSB2", "protocol":"mbim", "csq":"18", "signal":"58", "operator_name":"Orange Nju", "operator_mcc":"260", "operator_mnc":"03", "mode":"LTE B3 (1800 MHz)", "registration":"1", "simslot":"", "imei":"353990073024155", "imsi":"260036446330211", "iccid":"8948032026463302116", "lac_dec":"65534", "lac_hex":"FFFE", "tac_dec":"", "tac_hex":"-", "tac_h":"D5AC", "tac_d":"54700", "cid_dec":"37633588", "cid_hex":"23E3E34", "pci":"", "earfcn":"", "pband":"B3 (1800 MHz) @10 MHz", "s1band":"", "s1pci":"", "s1earfcn":"", "s2band":"", "s2pci":"", "s2earfcn":"", "s3band":"", "s3pci":"", "s3earfcn":"", "s4band":"", "s4pci":"", "s4earfcn":"", "rsrp":"-113", "rsrq":"-19.3", "rssi":"-79", "sinr":"-5.8" }
Author
Owner

@4IceG commented on GitHub (Aug 6, 2023):

Ok, poleciała kolejna poprawka.
413c81b6v2.zip

Jeżeli dalej będzie miał problem z danymi to poproszę o wynik:
sh -x /usr/share/3ginfo-lite/3ginfo.sh

@przemekp1 ustaw też (jeżeli dalej nie będzie działać po podmianie pliku) w konfiguracji port do komunikacji z modemem /dev/ttyUSB2 bo widzę, że to go też boli choć nie powinno.

<!-- gh-comment-id:1666919222 --> @4IceG commented on GitHub (Aug 6, 2023): Ok, poleciała kolejna poprawka. [413c81b6v2.zip](https://github.com/4IceG/luci-app-3ginfo-lite/files/12270038/413c81b6v2.zip) Jeżeli dalej będzie miał problem z danymi to poproszę o wynik: `sh -x /usr/share/3ginfo-lite/3ginfo.sh` @przemekp1 ustaw też (jeżeli dalej nie będzie działać po podmianie pliku) w konfiguracji port do komunikacji z modemem `/dev/ttyUSB2` bo widzę, że to go też boli choć nie powinno.
Author
Owner

@przemekp1 commented on GitHub (Aug 6, 2023):

👍działa

obraz
obraz

<!-- gh-comment-id:1666925273 --> @przemekp1 commented on GitHub (Aug 6, 2023): 👍działa ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/39c80fc5-6048-4a36-acae-a4e04b59aad9) ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/47d74f34-e391-4e8e-b591-f3ed2bfd7c19)
Author
Owner

@przemekp1 commented on GitHub (Aug 6, 2023):

root@OpenWrt:~# sh -x /usr/share/3ginfo-lite/3ginfo.sh

  • RES=/usr/share/3ginfo-lite
  • /usr/share/3ginfo-lite/detect.sh
  • DEVICE=/dev/ttyUSB2
  • '[' -z /dev/ttyUSB2 ]
  • O=
  • '[' -e /usr/bin/sms_tool ]
  • sms_tool -D -d /dev/ttyUSB2 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?'
  • O='AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 20,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • uci -q get '3ginfo.@3ginfo[0].network'
  • SECT=
  • SUB=@
  • '[[' '==' '@' ]]
  • uci -q get '3ginfo.@3ginfo[0].network'
  • SEC=
  • '[' -z ]
  • getpath /dev/ttyUSB2
    /usr/share/3ginfo-lite/3ginfo.sh: line 193: getpath: not found
  • PORIG=
  • getpath /dev/console
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/console
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ptmx
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ptmx
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/tty
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/tty
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS0
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS0
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS1
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS1
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS10
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep+ cut -f2 -d.
    /dev/ttyS10
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS11
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS11
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS12
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • cut -f2 -d.
  • grep /dev/ttyS12
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS13
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS13
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS14
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS14
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS15
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS15
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS2
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS2
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS3
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS3
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS4
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS4
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS5
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS5
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS6
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS6
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS7
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS7
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS8
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyS8
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyS9
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep+ cut -f2 -d.
    /dev/ttyS9
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyUSB0
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci+ grep /dev/ttyUSB0
    show network
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyUSB1
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyUSB1
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/ttyUSB2
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/ttyUSB2
  • cut -f2 -d.
  • SEC=
  • '[' -n ]
  • getpath /dev/cdc-wdm0
    /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found
  • '[' x '=' x ]
  • uci show network
  • grep /dev/cdc-wdm0
  • cut -f2 -d.
  • SEC=LTE
  • '[' -n LTE ]
  • break
  • CONN_TIME=-
  • RX=-
  • TX=-
  • ifstatus LTE
  • grep '"up": true'
  • NETUP=' "up": true,'
  • '[' -n ' "up": true,' ]
  • uci -q -P /var/state/ get network.LTE.connect_time
  • CT=
  • '[' -z ]
  • ifstatus LTE
    • awk '-F[:,]' '/uptime/ {print $2}'
      xargs
  • CT=646
  • '[' '!' -z 646 ]
  • expr 646 / 60 / 60 / 24
  • D=0
  • expr 646 / 60 / 60 '%' 24
  • H=0
  • expr 646 / 60 '%' 60
  • M=10
  • expr 646 '%' 60
  • S=46
  • printf '%dd, %02d:%02d:%02d' 0 0 10 46
  • CONN_TIME='0d, 00:10:46'
  • ifstatus LTE
  • awk '-F"' '/l3_device/ {print $4}'
  • IFACE=wwan0
  • '[' -n wwan0 ]
  • ifconfig wwan0
  • awk '-F[()]' '/bytes/ {printf "%s",$2}'
  • RX='9.2 MiB'
  • ifconfig wwan0
  • awk '-F[()]' '/bytes/ {printf "%s",$4}'
  • TX='917.0 KiB'
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 20,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F[, ]' '/^+CSQ/ {print $2}'
  • CSQ=20
  • '[' x20 '=' x ]
  • '[' 20 -ge 0 -a 20 -le 31 ]
  • CSQ_PER=64
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 20,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F["]' '/^+COPS: .,2/ {print $2}'
  • COPS_NUM=26003
  • '[' x26003 '=' x ]
  • COPS_MCC=260
  • COPS_MNC=03
  • awk '-F[;]' '/26003/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat
  • COPS=Orange
  • '[' xOrange '=' x ]
  • '[' -z ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 20,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F["]' '/^+COPS: .,0/ {print $2}'
  • T='Orange nju'
  • '[' 'xOrange nju' '!=' x ]
  • COPS='Orange nju'
  • echo Orange nju
  • sed ':s;s/(<\S*>)(.*)<\1>/\1\2/g;ts'
  • COPZ='Orange nju'
  • echo Orange nju
  • awk '{for(i=1;i<=NF;i++){ $i=toupper(substr($i,1,1)) substr($i,2) }}1'
  • COPS='Orange Nju'
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 20,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F[, ]' '/^+CPIN:/ {print $0;exit}'
  • xargs
  • T='+CPIN: READY'
  • '[' -n '+CPIN: READY' ]
  • '[' '+CPIN: READY' '=' '+CPIN: READY' ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 20,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F[, ]' '/^+CME ERROR:/ {print $0;exit}'
  • T=
  • '[' -n ]
  • echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?
    +CPIN: READY

+CSQ: 20,99

+COPS: 0,0,"Orange nju",7

+COPS: 0,2,"26003",7

+CREG: 2,1,"FFFE","23E3E34",7

'K

  • awk '-F[,]' '/^+CREG/ {gsub(/[[:space:]"]+/,"");printf "T="%d";LAC_HEX="%X";CID_HEX="%X";LAC_DEC="%d";CID_DEC="%d";MODE_NUM="%d"", $2, "0x"$3, "0x"$4, "0x"$3, "0x"$4, $5}'

  • eval 'T="1";LAC_HEX="FFFE";CID_HEX="23E3E34";LAC_DEC="65534";CID_DEC="37633588";MODE_NUM="7"'

  • T=1

  • LAC_HEX=FFFE

  • CID_HEX=23E3E34

  • LAC_DEC=65534

  • CID_DEC=37633588

  • MODE_NUM=7

  • REG=1

  • '[' -z 7 ]

  • '[' x7 '=' x0 ]

  • MODE=LTE

  • sms_tool -d /dev/ttyUSB2 at at+cereg
    ' OTX='at+cereg
    ' echo 'at+cereg

  • sed 's/[^A-F0-9]//g'+ awk '-F[,]' '/^+CEREG/ {printf "%s", toupper($3)}'

  • TAC=

  • '[' x '!=' x ]

  • TAC=-

  • TAC_HEX=-

  • uci -q get '3ginfo.@3ginfo[0].device'

  • CONF_DEVICE=

  • echo x

  • grep -q 192.168.

  • '[' -e /usr/bin/sms_tool ]

  • REGOK=0

  • '[' x1 '=' x1 ]

  • REGOK=1

  • getdevicevendorproduct /dev/ttyUSB2

  • basename /dev/ttyUSB2

  • devname=ttyUSB2

  • readlink -f /sys/class/tty/ttyUSB2/device

  • devpath=/sys/devices/platform/1e1c0000.xhci/usb2/2-1/2-1:1.3/ttyUSB2

  • T=/sys/devices/platform/1e1c0000.xhci/usb2/2-1

  • cat /sys/devices/platform/1e1c0000.xhci/usb2/2-1/idVendor

  • cat /sys/devices/platform/1e1c0000.xhci/usb2/2-1/idProduct

  • echo 413c81b6

  • VIDPID=413c81b6

  • '[' -e /usr/share/3ginfo-lite/modem/413c81b6 ]

  • cat /tmp/sysinfo/board_name

  • . /usr/share/3ginfo-lite/modem/413c81b6

  • sms_tool -d /dev/ttyUSB2 at 'at!gstatus?'

  • O='at!gstatus?
    !GSTATUS:
    Current Time: 670 Temperature: 40
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -112
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588)
SINR (dB): -6.4

'

  • '[' x7 '=' x7 ]
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 670 Temperature: 40
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -112
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588)
SINR (dB): -6.4

'

  • awk '/.*TAC:/ {print $5}'
  • T=D5AC
  • '[' -n D5AC ]
  • printf '%d' 0xD5AC
  • T_DEC=54700
  • T_HEX=D5AC
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 670 Temperature: 40
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -112
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588)
SINR (dB): -6.4

'

  • awk '/^PCC.*RSSI/ {print $4}'

  • xargs

  • T='-74 -74'

  • '[' -n '-74 -74' ]

  • echo+ -74/-74sed 's,/.*,,'

  • RSSI=-74

  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 670 Temperature: 40
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -112
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588)
SINR (dB): -6.4

'

  • awk '/^PCC.*RSRP/ {print $7}'
  • xargs
  • T='-112 -118'
  • '[' -n '-112 -118' ]
  • echo -112/-118
  • sed 's,/.*,,'
  • RSRP=-112
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 670 Temperature: 40
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -112
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588)
SINR (dB): -6.4

'

  • awk '/^RSRQ/ {print $3}'
  • T=-20.0
  • '[' -n -20.0 ]
  • RSRQ=-20.0
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 670 Temperature: 40
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -112
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588)
SINR (dB): -6.4

'

  • awk '/^SINR/ {print $3}'
  • T=-6.4
  • '[' -n -6.4 ]
  • SINR=-6.4
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 670 Temperature: 40
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -112
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588)
SINR (dB): -6.4

'

  • awk '/^LTE band:/ {print $3}'
  • T=B3
  • '[' -n B3 ]
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 670 Temperature: 40
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -112
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588)
SINR (dB): -6.4

'

  • awk '/^LTE band:/ {print $6}'
  • T1=10
  • band 3
  • echo -n B3
  • echo ' (1800 MHz)'
  • PBAND='B3 (1800 MHz) @10 MHz'
  • band 3
  • echo -n B3
  • echo ' (1800 MHz)'
  • MODE='LTE B3 (1800 MHz)'
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 670 Temperature: 40
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -112
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588)
SINR (dB): -6.4

'

  • awk -F: '/^LTE CA state:.*ACTIVE/ {print $3}'
  • T=
  • '[' -n ]
  • echo 'at!gstatus?
    !GSTATUS:
    Current Time: 670 Temperature: 40
    Reset Counter: 1 Mode: ONLINE
    System mode: LTE PS state: Attached
    LTE band: B3 LTE bw: 10 MHz
    LTE Rx chan: 1749 LTE Tx chan: 19749
    LTE CA state: NOT ASSIGNED
    EMM state: Registered Normal Service
    RRC state: RRC Connected
    IMS reg state: No Srv

PCC RxM RSSI: -74 RSRP (dBm): -112
PCC RxD RSSI: -74 RSRP (dBm): -118
Tx Power: 0 TAC: D5AC (54700)
RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588)
SINR (dB): -6.4

'

  • awk -F: '/Temperature:/ {print $3}'
  • xargs
  • T=40
  • '[' -n 40 ]
  • TEMP='40 °C'
  • echo LTE B3 '(1800' 'MHz)'
  • sed 's/LTE_A/LTE-A |/g'
  • sed s,/,+,
  • MODE='LTE B3 (1800 MHz)'
  • sms_tool -d /dev/ttyUSB2 at AT+CGMR
  • tr -s '\n'
  • xargs
  • FWA='AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09'
  • echo AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09
  • sed 's/AT+CGMR //'
  • FW='SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09'
  • sms_tool -d /dev/ttyUSB2 at AT+CGMM
  • tr -s '\n'
  • xargs
  • MODELA='AT+CGMM EM7455B'
  • sms_tool -d /dev/ttyUSB2 at AT+CGMI
  • tr -s '\n'
  • xargs
  • MODELB='AT+CGMI Sierra Wireless, Incorporated'
  • echo AT+CGMM EM7455B
  • sed 's/AT+CGMM //'
  • MODELACUT=EM7455B
  • echo AT+CGMI Sierra Wireless, Incorporated
  • sed 's/AT+CGMI //'
  • cut -f1 -d,
  • MODELBCUT='Sierra Wireless'
  • MODEL='Sierra Wireless EM7455B'
  • sms_tool -d /dev/ttyUSB2 at AT+CGSN
  • xargs
  • O='AT+CGSN 353990073024155'
  • echo 'AT+CGSN 353990073024155'
  • sed 's/AT+CGSN //'
  • NR_I=353990073024155
  • '[' -n 353990073024155 ]
  • NR_IMEI=353990073024155
  • sms_tool -d /dev/ttyUSB2 at AT+CIMI
  • xargs
  • O='AT+CIMI 260036446330211'
  • echo 'AT+CIMI 260036446330211'
  • sed 's/AT+CIMI //'
  • NR_C=260036446330211
  • '[' -n 260036446330211 ]
  • NR_IMSI=260036446330211
  • sms_tool -d /dev/ttyUSB2 at AT+ICCID
  • O='AT+ICCID
    ICCID: 8948032026463302116
    '
  • echo 'AT+ICCID
    ICCID: 8948032026463302116
    '
    • xargsawk
      '-F[,:]' '/^ICCID: /{print $2}'
  • NR_D=8948032026463302116
  • '[' -n 8948032026463302116 ]
  • NR_ICCID=8948032026463302116
  • cat /sys/kernel/debug/usb/devices
  • PV='
    T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2
    B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
    D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
    P: Vendor=1d6b ProdID=0002 Rev= 5.15
    S: Manufacturer=Linux 5.15.120 xhci-hcd
    S: Product=xHCI Host Controller
    S: SerialNumber=1e1c0000.xhci
    C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
    I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
    E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1
P: Vendor=1d6b ProdID=0003 Rev= 5.15
S: Manufacturer=Linux 5.15.120 xhci-hcd
S: Product=xHCI Host Controller
S: SerialNumber=1e1c0000.xhci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=413c ProdID=81b6 Rev= 0.06
S: Manufacturer=Sierra Wireless, Incorporated
S: Product=DW5811e Snapdragon™ X7 LTE
S: SerialNumber=LF63571514041014
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA
A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial
E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial
E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial
E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim
E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms
I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms'

  • awk -F+ cut -c-1290
  • echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'MxCh=' 2 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 2.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0002' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 1 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' 'C:' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Lev=01' 'Prnt=01' 'Port=00' 'Cnt=01' 'Dev#=' 3 'Spd=5000' 'MxCh=' 0 D: 'Ver=' 3.00 'Cls=00(>ifc' ')' 'Sub=00' 'Prot=00' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=413c' 'ProdID=81b6' 'Rev=' 0.06 S: 'Manufacturer=Sierra' Wireless, Incorporated S: 'Product=DW5811e' 'Snapdragon™' X7 LTE S: 'SerialNumber=LF63571514041014' 'C:' '#Ifs=' 5 'Cfg#=' 1 'Atr=a0' 'MxPwr=504mA' A: 'FirstIf#=12' 'IfCount=' 2 'Cls=02(comm.)' 'Sub=0e' 'Prot=00' 'I:' 'If#=' 0 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qcserial' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=' 2 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=83(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:' 'If#=12' 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' 'Sub=0e' 'Prot=00' 'Driver=cdc_mbim' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 64 'Ivl=32ms' I: 'If#=13' 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=02' 'Driver=cdc_mbim' 'I:' 'If#=13' 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=02' 'Driver=cdc_mbim' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=04(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms'
    'Vendor=413c ProdID=81b6' '{print $2}'
  • PVCUT=' Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF63571514041014 C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms'
  • echo ' Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF63571514041014 C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms'+ grep
    -q 'Driver=qmi_wwan'
  • echo+ ' Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF63571514041014 C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms'
    grep -q 'Driver=cdc_mbim'
  • PROTO=mbim
  • cat
    {
    "connt":"0d, 00:10:46",
    "conntx":"917.0 KiB",
    "connrx":"9.2 MiB",
    "modem":"Sierra Wireless EM7455B",
    "mtemp":"40 °C",
    "firmware":"SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09",
    "cport":"/dev/ttyUSB2",
    "protocol":"mbim",
    "csq":"20",
    "signal":"64",
    "operator_name":"Orange Nju",
    "operator_mcc":"260",
    "operator_mnc":"03",
    "mode":"LTE B3 (1800 MHz)",
    "registration":"1",
    "simslot":"",
    "imei":"353990073024155",
    "imsi":"260036446330211",
    "iccid":"8948032026463302116",
    "lac_dec":"65534",
    "lac_hex":"FFFE",
    "tac_dec":"",
    "tac_hex":"-",
    "tac_h":"D5AC",
    "tac_d":"54700",
    "cid_dec":"37633588",
    "cid_hex":"23E3E34",
    "pci":"",
    "earfcn":"",
    "pband":"B3 (1800 MHz) @10 MHz",
    "s1band":"",
    "s1pci":"",
    "s1earfcn":"",
    "s2band":"",
    "s2pci":"",
    "s2earfcn":"",
    "s3band":"",
    "s3pci":"",
    "s3earfcn":"",
    "s4band":"",
    "s4pci":"",
    "s4earfcn":"",
    "rsrp":"-112",
    "rsrq":"-20.0",
    "rssi":"-74",
    "sinr":"-6.4"
    }
  • exit 0
<!-- gh-comment-id:1666926849 --> @przemekp1 commented on GitHub (Aug 6, 2023): root@OpenWrt:~# sh -x /usr/share/3ginfo-lite/3ginfo.sh + RES=/usr/share/3ginfo-lite + /usr/share/3ginfo-lite/detect.sh + DEVICE=/dev/ttyUSB2 + '[' -z /dev/ttyUSB2 ] + O= + '[' -e /usr/bin/sms_tool ] + sms_tool -D -d /dev/ttyUSB2 at 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG?' + O='AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 20,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + uci -q get '3ginfo.@3ginfo[0].network' + SECT= + SUB=@ + '[[' '==' '*@*' ]] + uci -q get '3ginfo.@3ginfo[0].network' + SEC= + '[' -z ] + getpath /dev/ttyUSB2 /usr/share/3ginfo-lite/3ginfo.sh: line 193: getpath: not found + PORIG= + getpath /dev/console /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/console + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ptmx /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ptmx + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/tty /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/tty + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS0 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS0 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS1 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS1 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS10 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep+ cut -f2 -d. /dev/ttyS10 + SEC= + '[' -n ] + getpath /dev/ttyS11 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS11 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS12 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + cut -f2 -d. + grep /dev/ttyS12 + SEC= + '[' -n ] + getpath /dev/ttyS13 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS13 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS14 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS14 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS15 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS15 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS2 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS2 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS3 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS3 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS4 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS4 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS5 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS5 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS6 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS6 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS7 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS7 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS8 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyS8 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyS9 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep+ cut -f2 -d. /dev/ttyS9 + SEC= + '[' -n ] + getpath /dev/ttyUSB0 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci+ grep /dev/ttyUSB0 show network + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyUSB1 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyUSB1 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/ttyUSB2 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/ttyUSB2 + cut -f2 -d. + SEC= + '[' -n ] + getpath /dev/cdc-wdm0 /usr/share/3ginfo-lite/3ginfo.sh: line 196: getpath: not found + '[' x '=' x ] + uci show network + grep /dev/cdc-wdm0 + cut -f2 -d. + SEC=LTE + '[' -n LTE ] + break + CONN_TIME=- + RX=- + TX=- + ifstatus LTE + grep '"up": true' + NETUP=' "up": true,' + '[' -n ' "up": true,' ] + uci -q -P /var/state/ get network.LTE.connect_time + CT= + '[' -z ] + ifstatus LTE + + awk '-F[:,]' '/uptime/ {print $2}' xargs + CT=646 + '[' '!' -z 646 ] + expr 646 / 60 / 60 / 24 + D=0 + expr 646 / 60 / 60 '%' 24 + H=0 + expr 646 / 60 '%' 60 + M=10 + expr 646 '%' 60 + S=46 + printf '%dd, %02d:%02d:%02d' 0 0 10 46 + CONN_TIME='0d, 00:10:46' + ifstatus LTE + awk '-F"' '/l3_device/ {print $4}' + IFACE=wwan0 + '[' -n wwan0 ] + ifconfig wwan0 + awk '-F[()]' '/bytes/ {printf "%s",$2}' + RX='9.2 MiB' + ifconfig wwan0 + awk '-F[()]' '/bytes/ {printf "%s",$4}' + TX='917.0 KiB' + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 20,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F[, ]' '/^\+CSQ/ {print $2}' + CSQ=20 + '[' x20 '=' x ] + '[' 20 -ge 0 -a 20 -le 31 ] + CSQ_PER=64 + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 20,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F["]' '/^\+COPS: .,2/ {print $2}' + COPS_NUM=26003 + '[' x26003 '=' x ] + COPS_MCC=260 + COPS_MNC=03 + awk '-F[;]' '/26003/ {print $2}' /usr/share/3ginfo-lite/mccmnc.dat + COPS=Orange + '[' xOrange '=' x ] + '[' -z ] + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 20,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F["]' '/^\+COPS: .,0/ {print $2}' + T='Orange nju' + '[' 'xOrange nju' '!=' x ] + COPS='Orange nju' + echo Orange nju + sed ':s;s/\(\<\S*\>\)\(.*\)\<\1\>/\1\2/g;ts' + COPZ='Orange nju' + echo Orange nju + awk '{for(i=1;i<=NF;i++){ $i=toupper(substr($i,1,1)) substr($i,2) }}1' + COPS='Orange Nju' + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 20,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F[, ]' '/^\+CPIN:/ {print $0;exit}' + xargs + T='+CPIN: READY' + '[' -n '+CPIN: READY' ] + '[' '+CPIN: READY' '=' '+CPIN: READY' ] + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 20,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F[, ]' '/^\+CME ERROR:/ {print $0;exit}' + T= + '[' -n ] + echo 'AT+CPIN?;+CSQ;+COPS=3,0;+COPS?;+COPS=3,2;+COPS?;+CREG=2;+CREG? +CPIN: READY +CSQ: 20,99 +COPS: 0,0,"Orange nju",7 +COPS: 0,2,"26003",7 +CREG: 2,1,"FFFE","23E3E34",7 'K + awk '-F[,]' '/^\+CREG/ {gsub(/[[:space:]"]+/,"");printf "T=\"%d\";LAC_HEX=\"%X\";CID_HEX=\"%X\";LAC_DEC=\"%d\";CID_DEC=\"%d\";MODE_NUM=\"%d\"", $2, "0x"$3, "0x"$4, "0x"$3, "0x"$4, $5}' + eval 'T="1";LAC_HEX="FFFE";CID_HEX="23E3E34";LAC_DEC="65534";CID_DEC="37633588";MODE_NUM="7"' + T=1 + LAC_HEX=FFFE + CID_HEX=23E3E34 + LAC_DEC=65534 + CID_DEC=37633588 + MODE_NUM=7 + REG=1 + '[' -z 7 ] + '[' x7 '=' x0 ] + MODE=LTE + sms_tool -d /dev/ttyUSB2 at at+cereg ' OTX='at+cereg ' echo 'at+cereg + sed 's/[^A-F0-9]//g'+ awk '-F[,]' '/^\+CEREG/ {printf "%s", toupper($3)}' + TAC= + '[' x '!=' x ] + TAC=- + TAC_HEX=- + uci -q get '3ginfo.@3ginfo[0].device' + CONF_DEVICE= + echo x + grep -q 192.168. + '[' -e /usr/bin/sms_tool ] + REGOK=0 + '[' x1 '=' x1 ] + REGOK=1 + getdevicevendorproduct /dev/ttyUSB2 + basename /dev/ttyUSB2 + devname=ttyUSB2 + readlink -f /sys/class/tty/ttyUSB2/device + devpath=/sys/devices/platform/1e1c0000.xhci/usb2/2-1/2-1:1.3/ttyUSB2 + T=/sys/devices/platform/1e1c0000.xhci/usb2/2-1 + cat /sys/devices/platform/1e1c0000.xhci/usb2/2-1/idVendor + cat /sys/devices/platform/1e1c0000.xhci/usb2/2-1/idProduct + echo 413c81b6 + VIDPID=413c81b6 + '[' -e /usr/share/3ginfo-lite/modem/413c81b6 ] + cat /tmp/sysinfo/board_name + . /usr/share/3ginfo-lite/modem/413c81b6 + sms_tool -d /dev/ttyUSB2 at 'at!gstatus?' + O='at!gstatus? !GSTATUS: Current Time: 670 Temperature: 40 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -112 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588) SINR (dB): -6.4 ' + '[' x7 '=' x7 ] + echo 'at!gstatus? !GSTATUS: Current Time: 670 Temperature: 40 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -112 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588) SINR (dB): -6.4 ' + awk '/.*TAC:/ {print $5}' + T=D5AC + '[' -n D5AC ] + printf '%d' 0xD5AC + T_DEC=54700 + T_HEX=D5AC + echo 'at!gstatus? !GSTATUS: Current Time: 670 Temperature: 40 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -112 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588) SINR (dB): -6.4 ' + awk '/^PCC.*RSSI/ {print $4}' + xargs + T='-74 -74' + '[' -n '-74 -74' ] + echo+ -74/-74sed 's,/.*,,' + RSSI=-74 + echo 'at!gstatus? !GSTATUS: Current Time: 670 Temperature: 40 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -112 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588) SINR (dB): -6.4 ' + awk '/^PCC.*RSRP/ {print $7}' + xargs + T='-112 -118' + '[' -n '-112 -118' ] + echo -112/-118 + sed 's,/.*,,' + RSRP=-112 + echo 'at!gstatus? !GSTATUS: Current Time: 670 Temperature: 40 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -112 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588) SINR (dB): -6.4 ' + awk '/^RSRQ/ {print $3}' + T=-20.0 + '[' -n -20.0 ] + RSRQ=-20.0 + echo 'at!gstatus? !GSTATUS: Current Time: 670 Temperature: 40 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -112 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588) SINR (dB): -6.4 ' + awk '/^SINR/ {print $3}' + T=-6.4 + '[' -n -6.4 ] + SINR=-6.4 + echo 'at!gstatus? !GSTATUS: Current Time: 670 Temperature: 40 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -112 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588) SINR (dB): -6.4 ' + awk '/^LTE band:/ {print $3}' + T=B3 + '[' -n B3 ] + echo 'at!gstatus? !GSTATUS: Current Time: 670 Temperature: 40 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -112 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588) SINR (dB): -6.4 ' + awk '/^LTE band:/ {print $6}' + T1=10 + band 3 + echo -n B3 + echo ' (1800 MHz)' + PBAND='B3 (1800 MHz) @10 MHz' + band 3 + echo -n B3 + echo ' (1800 MHz)' + MODE='LTE B3 (1800 MHz)' + echo 'at!gstatus? !GSTATUS: Current Time: 670 Temperature: 40 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -112 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588) SINR (dB): -6.4 ' + awk -F: '/^LTE CA state:.*ACTIVE/ {print $3}' + T= + '[' -n ] + echo 'at!gstatus? !GSTATUS: Current Time: 670 Temperature: 40 Reset Counter: 1 Mode: ONLINE System mode: LTE PS state: Attached LTE band: B3 LTE bw: 10 MHz LTE Rx chan: 1749 LTE Tx chan: 19749 LTE CA state: NOT ASSIGNED EMM state: Registered Normal Service RRC state: RRC Connected IMS reg state: No Srv PCC RxM RSSI: -74 RSRP (dBm): -112 PCC RxD RSSI: -74 RSRP (dBm): -118 Tx Power: 0 TAC: D5AC (54700) RSRQ (dB): -20.0 Cell ID: 023E3E34 (37633588) SINR (dB): -6.4 ' + awk -F: '/Temperature:/ {print $3}' + xargs + T=40 + '[' -n 40 ] + TEMP='40 &deg;C' + echo LTE B3 '(1800' 'MHz)' + sed 's/LTE_A/LTE-A |/g' + sed s,/,+, + MODE='LTE B3 (1800 MHz)' + sms_tool -d /dev/ttyUSB2 at AT+CGMR + tr -s '\n' + xargs + FWA='AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09' + echo AT+CGMR SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09 + sed 's/AT+CGMR //' + FW='SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09' + sms_tool -d /dev/ttyUSB2 at AT+CGMM + tr -s '\n' + xargs + MODELA='AT+CGMM EM7455B' + sms_tool -d /dev/ttyUSB2 at AT+CGMI + tr -s '\n' + xargs + MODELB='AT+CGMI Sierra Wireless, Incorporated' + echo AT+CGMM EM7455B + sed 's/AT+CGMM //' + MODELACUT=EM7455B + echo AT+CGMI Sierra Wireless, Incorporated + sed 's/AT+CGMI //' + cut -f1 -d, + MODELBCUT='Sierra Wireless' + MODEL='Sierra Wireless EM7455B' + sms_tool -d /dev/ttyUSB2 at AT+CGSN + xargs + O='AT+CGSN 353990073024155' + echo 'AT+CGSN 353990073024155' + sed 's/AT+CGSN //' + NR_I=353990073024155 + '[' -n 353990073024155 ] + NR_IMEI=353990073024155 + sms_tool -d /dev/ttyUSB2 at AT+CIMI + xargs + O='AT+CIMI 260036446330211' + echo 'AT+CIMI 260036446330211' + sed 's/AT+CIMI //' + NR_C=260036446330211 + '[' -n 260036446330211 ] + NR_IMSI=260036446330211 + sms_tool -d /dev/ttyUSB2 at AT+ICCID + O='AT+ICCID ICCID: 8948032026463302116 ' + echo 'AT+ICCID ICCID: 8948032026463302116 ' + + xargsawk '-F[,:]' '/^ICCID: /{print $2}' + NR_D=8948032026463302116 + '[' -n 8948032026463302116 ] + NR_ICCID=8948032026463302116 + cat /sys/kernel/debug/usb/devices + PV=' T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 2 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1d6b ProdID=0002 Rev= 5.15 S: Manufacturer=Linux 5.15.120 xhci-hcd S: Product=xHCI Host Controller S: SerialNumber=1e1c0000.xhci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 3.00 Cls=09(hub ) Sub=00 Prot=03 MxPS= 9 #Cfgs= 1 P: Vendor=1d6b ProdID=0003 Rev= 5.15 S: Manufacturer=Linux 5.15.120 xhci-hcd S: Product=xHCI Host Controller S: SerialNumber=1e1c0000.xhci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=5000 MxCh= 0 D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1 P: Vendor=413c ProdID=81b6 Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF63571514041014 C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms' + awk -F+ cut -c-1290 + echo T: 'Bus=01' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=480' 'MxCh=' 2 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 2.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=01' 'MxPS=64' '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0002' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' 'C:*' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Lev=00' 'Prnt=00' 'Port=00' 'Cnt=00' 'Dev#=' 1 'Spd=5000' 'MxCh=' 1 B: 'Alloc=' 0/800 us '(' '0%),' '#Int=' 0, '#Iso=' 0 D: 'Ver=' 3.00 'Cls=09(hub' ')' 'Sub=00' 'Prot=03' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=1d6b' 'ProdID=0003' 'Rev=' 5.15 S: 'Manufacturer=Linux' 5.15.120 xhci-hcd S: 'Product=xHCI' Host Controller S: 'SerialNumber=1e1c0000.xhci' 'C:*' '#Ifs=' 1 'Cfg#=' 1 'Atr=e0' 'MxPwr=' 0mA 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 1 'Cls=09(hub' ')' 'Sub=00' 'Prot=00' 'Driver=hub' E: 'Ad=81(I)' 'Atr=03(Int.)' 'MxPS=' 4 'Ivl=256ms' T: 'Bus=02' 'Lev=01' 'Prnt=01' 'Port=00' 'Cnt=01' 'Dev#=' 3 'Spd=5000' 'MxCh=' 0 D: 'Ver=' 3.00 'Cls=00(>ifc' ')' 'Sub=00' 'Prot=00' 'MxPS=' 9 '#Cfgs=' 1 P: 'Vendor=413c' 'ProdID=81b6' 'Rev=' 0.06 S: 'Manufacturer=Sierra' Wireless, Incorporated S: 'Product=DW5811e' 'Snapdragon™' X7 LTE S: 'SerialNumber=LF63571514041014' 'C:*' '#Ifs=' 5 'Cfg#=' 1 'Atr=a0' 'MxPwr=504mA' A: 'FirstIf#=12' 'IfCount=' 2 'Cls=02(comm.)' 'Sub=0e' 'Prot=00' 'I:*' 'If#=' 0 'Alt=' 0 '#EPs=' 2 'Cls=ff(vend.)' 'Sub=ff' 'Prot=ff' 'Driver=qcserial' E: 'Ad=81(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=01(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 2 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=83(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=82(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=02(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=' 3 'Alt=' 0 '#EPs=' 3 'Cls=ff(vend.)' 'Sub=00' 'Prot=00' 'Driver=qcserial' E: 'Ad=85(I)' 'Atr=03(Int.)' 'MxPS=' 10 'Ivl=32ms' E: 'Ad=84(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=03(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'I:*' 'If#=12' 'Alt=' 0 '#EPs=' 1 'Cls=02(comm.)' 'Sub=0e' 'Prot=00' 'Driver=cdc_mbim' E: 'Ad=87(I)' 'Atr=03(Int.)' 'MxPS=' 64 'Ivl=32ms' I: 'If#=13' 'Alt=' 0 '#EPs=' 0 'Cls=0a(data' ')' 'Sub=00' 'Prot=02' 'Driver=cdc_mbim' 'I:*' 'If#=13' 'Alt=' 1 '#EPs=' 2 'Cls=0a(data' ')' 'Sub=00' 'Prot=02' 'Driver=cdc_mbim' E: 'Ad=86(I)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' E: 'Ad=04(O)' 'Atr=02(Bulk)' 'MxPS=1024' 'Ivl=0ms' 'Vendor=413c ProdID=81b6' '{print $2}' + PVCUT=' Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF63571514041014 C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms' + echo ' Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF63571514041014 C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms'+ grep -q 'Driver=qmi_wwan' + echo+ ' Rev= 0.06 S: Manufacturer=Sierra Wireless, Incorporated S: Product=DW5811e Snapdragon™ X7 LTE S: SerialNumber=LF63571514041014 C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=504mA A: FirstIf#=12 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=qcserial E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms I:* If#=12 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=32ms I: If#=13 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I:* If#=13 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms' grep -q 'Driver=cdc_mbim' + PROTO=mbim + cat { "connt":"0d, 00:10:46", "conntx":"917.0 KiB", "connrx":"9.2 MiB", "modem":"Sierra Wireless EM7455B", "mtemp":"40 &deg;C", "firmware":"SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 06:23:09", "cport":"/dev/ttyUSB2", "protocol":"mbim", "csq":"20", "signal":"64", "operator_name":"Orange Nju", "operator_mcc":"260", "operator_mnc":"03", "mode":"LTE B3 (1800 MHz)", "registration":"1", "simslot":"", "imei":"353990073024155", "imsi":"260036446330211", "iccid":"8948032026463302116", "lac_dec":"65534", "lac_hex":"FFFE", "tac_dec":"", "tac_hex":"-", "tac_h":"D5AC", "tac_d":"54700", "cid_dec":"37633588", "cid_hex":"23E3E34", "pci":"", "earfcn":"", "pband":"B3 (1800 MHz) @10 MHz", "s1band":"", "s1pci":"", "s1earfcn":"", "s2band":"", "s2pci":"", "s2earfcn":"", "s3band":"", "s3pci":"", "s3earfcn":"", "s4band":"", "s4pci":"", "s4earfcn":"", "rsrp":"-112", "rsrq":"-20.0", "rssi":"-74", "sinr":"-6.4" } + exit 0
Author
Owner

@przemekp1 commented on GitHub (Aug 6, 2023):

przy tych ustawieniach
obraz

obraz

a jak jest tam pustka
obraz

to dane pojawiają się
obraz

<!-- gh-comment-id:1666928264 --> @przemekp1 commented on GitHub (Aug 6, 2023): przy tych ustawieniach ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/49a20a04-0654-4836-aa81-58c3d03689ab) ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/5344af4f-aadb-457c-8bf7-de1b4231e4ca) a jak jest tam pustka ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/1c04ce5e-2b50-4cf1-9f14-74313e712e9d) to dane pojawiają się ![obraz](https://github.com/4IceG/luci-app-3ginfo-lite/assets/16675642/33fd3803-2543-4f15-8da9-2a4138573cbb)
Author
Owner

@przemekp1 commented on GitHub (Aug 6, 2023):

w takiej konfiguracji pokazuje ok - bez portu wan
config 3ginfo
option website 'http://www.btsearch.pl/szukaj.php?mode=std&search='

option device '/dev/ttyUSB2'
<!-- gh-comment-id:1666929308 --> @przemekp1 commented on GitHub (Aug 6, 2023): w takiej konfiguracji pokazuje ok - bez portu wan config 3ginfo option website 'http://www.btsearch.pl/szukaj.php?mode=std&search=' option device '/dev/ttyUSB2'
Author
Owner

@bademux commented on GitHub (Feb 1, 2026):

notatka
jeśli w trybie qmi (USB_COMP=6) (qmicli -p -d /dev/cdc-wdm0 --dms-swi-get-usb-composition) nie ma ttyUSB*
trzeba dinstalować apk add kmod-usb-serial-qualcomm (modprobe qcserial ma zadziłać)

<!-- gh-comment-id:3831539330 --> @bademux commented on GitHub (Feb 1, 2026): notatka jeśli w trybie qmi (USB_COMP=6) (`qmicli -p -d /dev/cdc-wdm0 --dms-swi-get-usb-composition`) nie ma ttyUSB* trzeba dinstalować `apk add kmod-usb-serial-qualcomm` (`modprobe qcserial` ma zadziłać)
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/luci-app-3ginfo-lite#159
No description provided.