en:bpi-r3:lte
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:bpi-r3:lte [2022/09/27 17:39] – [first Test] frank | en:bpi-r3:lte [2023/06/08 17:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 13: | Line 13: | ||
CONFIG_USB_NET_QMI_WWAN=m | CONFIG_USB_NET_QMI_WWAN=m | ||
</ | </ | ||
+ | |||
+ | Needed tools: | ||
+ | |||
+ | root@bpi-r3: | ||
i'm using a Congstar-SIM | i'm using a Congstar-SIM | ||
Line 18: | Line 22: | ||
APN-settings: | APN-settings: | ||
+ | Some information of different interface modes and which modules are required on Openwrt: | ||
+ | https:// | ||
+ | |||
+ | |||
+ | Openwrt: | ||
+ | |||
+ | luci-proto-qmi (recommended) or even luci-proto-modemmanager | ||
===== QMI-Mode ===== | ===== QMI-Mode ===== | ||
Line 23: | Line 34: | ||
https:// | https:// | ||
+ | |||
+ | < | ||
+ | root@bpi-r3: | ||
+ | 802-3 | ||
+ | root@bpi-r3: | ||
+ | [/ | ||
+ | QoS flow header: no | ||
+ | Link layer protocol: ' | ||
+ | Uplink data aggregation protocol: ' | ||
+ | Downlink data aggregation protocol: ' | ||
+ | NDP signature: ' | ||
+ | Downlink data aggregation max datagrams: ' | ||
+ | Downlink data aggregation max size: ' | ||
+ | root@bpi-r3: | ||
+ | root@bpi-r3: | ||
+ | root@bpi-r3: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | root@bpi-r3: | ||
+ | [/ | ||
+ | |||
+ | root@bpi-r3: | ||
+ | [/ | ||
+ | Provisioning applications: | ||
+ | Primary GW: slot ' | ||
+ | Primary 1X: | ||
+ | Secondary GW: session doesn' | ||
+ | Secondary 1X: session doesn' | ||
+ | Slot [1]: | ||
+ | Card state: ' | ||
+ | UPIN state: ' | ||
+ | UPIN retries: ' | ||
+ | UPUK retries: ' | ||
+ | Application [1]: | ||
+ | Application type: 'usim (2)' | ||
+ | Application state: ' | ||
+ | Application ID: | ||
+ | A0: | ||
+ | Personalization state: ' | ||
+ | UPIN replaces PIN1: ' | ||
+ | PIN1 state: ' | ||
+ | PIN1 retries: ' | ||
+ | PUK1 retries: ' | ||
+ | PIN2 state: ' | ||
+ | PIN2 retries: ' | ||
+ | PUK2 retries: ' | ||
+ | root@bpi-r3: | ||
+ | |||
+ | qmicli -p -v -d / | ||
+ | qmicli -v -p --device=/ | ||
+ | qmicli -d / | ||
+ | qmicli -d / | ||
+ | qmicli -d / | ||
+ | qmicli -d / | ||
+ | </ | ||
+ | |||
+ | |||
===== MBIM-Mode ===== | ===== MBIM-Mode ===== | ||
https:// | https:// | ||
+ | |||
+ | < | ||
+ | qmicli -d / | ||
+ | mbimcli --device=/ | ||
+ | mbim-network / | ||
+ | mbimcli -d / | ||
+ | ip addr add 10.22.186.x/ | ||
+ | ip link set wwan0 up | ||
+ | ip route add default via 10.22.186.y | ||
+ | ping 8.8.8.8 | ||
+ | mbim-network / | ||
+ | </ | ||
==== first Test ==== | ==== first Test ==== | ||
Line 116: | Line 199: | ||
</ | </ | ||
+ | got a connection in MBIM-Mode: | ||
+ | < | ||
+ | root@bpi-r3: | ||
+ | [/ | ||
+ | root@bpi-r3: | ||
+ | [/ | ||
+ | |||
+ | [/ | ||
+ | PIN state: ' | ||
+ | PIN type: ' | ||
+ | Remaining attempts: ' | ||
+ | root@bpi-r3: | ||
+ | Loading profile at / | ||
+ | APN: internet.telekom | ||
+ | APN auth protocol: PAP | ||
+ | APN user: congstar | ||
+ | APN password: cs | ||
+ | mbim-proxy: yes | ||
+ | Querying subscriber ready status ' | ||
+ | [/ | ||
+ | Saving state at / | ||
+ | Querying registration state ' | ||
+ | [/ | ||
+ | Saving state at / | ||
+ | Attaching to packet service with ' | ||
+ | Saving state at / | ||
+ | Starting network with ' | ||
+ | Network started successfully | ||
+ | Saving state at / | ||
+ | root@bpi-r3: | ||
+ | 11: wwan0: < | ||
+ | link/ether 3e: | ||
+ | root@bpi-r3: | ||
+ | |||
+ | [/ | ||
+ | IP [0]: ' | ||
+ | Gateway: ' | ||
+ | DNS [0]: ' | ||
+ | DNS [1]: ' | ||
+ | MTU: ' | ||
+ | |||
+ | [/ | ||
+ | IP [0]: ' | ||
+ | Gateway: ' | ||
+ | DNS [0]: ' | ||
+ | DNS [1]: ' | ||
+ | MTU: ' | ||
+ | root@bpi-r3: | ||
+ | 11: wwan0: < | ||
+ | link/ether 3e: | ||
+ | root@bpi-r3: | ||
+ | root@bpi-r3: | ||
+ | [ 357.976946] 8021q: adding VLAN 0 to HW filter on device wwan0 | ||
+ | root@bpi-r3: | ||
+ | root@bpi-r3: | ||
+ | default via 10.153.121.gw dev wwan0 | ||
+ | 10.153.121.net/ | ||
+ | root@bpi-r3: | ||
+ | PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. | ||
+ | 64 bytes from 8.8.8.8: icmp_seq=1 ttl=113 time=210 ms | ||
+ | 64 bytes from 8.8.8.8: icmp_seq=2 ttl=113 time=30.6 ms | ||
+ | 64 bytes from 8.8.8.8: icmp_seq=3 ttl=113 time=83.7 ms | ||
+ | ^C | ||
+ | --- 8.8.8.8 ping statistics --- | ||
+ | 3 packets transmitted, | ||
+ | rtt min/ | ||
+ | root@bpi-r3: | ||
+ | </ | ||
===== change Mode ===== | ===== change Mode ===== | ||
Caution this may break functionality! | Caution this may break functionality! | ||
+ | |||
+ | Make sure all known modules are loaded: | ||
+ | < | ||
+ | root@bpi-r3: | ||
+ | root@bpi-r3: | ||
+ | root@bpi-r3: | ||
+ | </ | ||
+ | |||
+ | Get and switch mode (device open param should match your current Mode): | ||
+ | |||
< | < | ||
root@bpi-r3: | root@bpi-r3: | ||
Line 124: | Line 285: | ||
USB composition 6: DM, NMEA, AT, QMI | USB composition 6: DM, NMEA, AT, QMI | ||
[*] USB composition 8: DM, NMEA, AT, MBIM | [*] USB composition 8: DM, NMEA, AT, MBIM | ||
+ | USB composition 9: MBIM | ||
+ | |||
+ | root@bpi-r3: | ||
+ | [/ | ||
+ | [*] USB composition 6: DM, NMEA, AT, QMI | ||
+ | USB composition 8: DM, NMEA, AT, MBIM | ||
USB composition 9: MBIM | USB composition 9: MBIM | ||
root@bpi-r3: | root@bpi-r3: | ||
+ | root@bpi-r3: | ||
</ | </ | ||
- | now no device is recognized by driver (no serial ttyUSBx too) and i saw in dmesg only this (also after cold-reset): | + | After that you will be prompted to set device offline and do reset. |
+ | |||
+ | qmicli ... --dms-set-operating-mode=offline | ||
+ | qmicli ... --dms-set-operating-mode=reset | ||
+ | |||
+ | and you should see unregister of current devices and register of new, here switch from QMI to MBIM: | ||
+ | |||
+ | < | ||
+ | [ 435.846807] usb 1-1.1: USB disconnect, device number 4 | ||
+ | [ 435.852478] qcserial ttyUSB0: Qualcomm USB modem converter | ||
+ | [ 435.860767] qcserial 1-1.1:1.0: device disconnected | ||
+ | [ 435.866377] qcserial ttyUSB1: Qualcomm USB modem converter now disconnected from ttyUSB1 | ||
+ | [ 435.874650] qcserial 1-1.1:1.2: device disconnected | ||
+ | [ 435.880265] qcserial ttyUSB2: Qualcomm USB modem converter now disconnected from ttyUSB2 | ||
+ | [ 435.888540] qcserial 1-1.1:1.3: device disconnected | ||
+ | [ 435.893721] qmi_wwan 1-1.1:1.8 wwx269b6469dbbd: | ||
+ | [ 443.533425] usb 1-1.1: new high-speed USB device number 5 using xhci-mtk | ||
+ | [ 443.763963] usb 1-1.1: config 1 has an invalid interface number: 12 but max is 4 | ||
+ | [ 443.771366] usb 1-1.1: config 1 has an invalid interface number: 13 but max is 4 | ||
+ | [ 443.778764] usb 1-1.1: config 1 has an invalid interface number: 13 but max is 4 | ||
+ | [ 443.786158] usb 1-1.1: config 1 has no interface number 1 | ||
+ | [ 443.791544] usb 1-1.1: config 1 has no interface number 4 | ||
+ | [ 443.799669] qcserial 1-1.1:1.0: Qualcomm USB modem converter detected | ||
+ | [ 443.806455] usb 1-1.1: Qualcomm USB modem converter now attached to ttyUSB0 | ||
+ | [ 443.814219] qcserial 1-1.1:1.2: Qualcomm USB modem converter detected | ||
+ | [ 443.820906] usb 1-1.1: Qualcomm USB modem converter now attached to ttyUSB1 | ||
+ | [ 443.828921] qcserial 1-1.1:1.3: Qualcomm USB modem converter detected | ||
+ | [ 443.835728] usb 1-1.1: Qualcomm USB modem converter now attached to ttyUSB2 | ||
+ | [ 443.898553] usbcore: registered new interface driver cdc_ether | ||
+ | [ 443.964054] usbcore: registered new interface driver cdc_ncm | ||
+ | [ 444.034077] cdc_mbim 1-1.1:1.12: cdc-wdm0: USB WDM device | ||
+ | [ 444.040007] cdc_mbim 1-1.1:1.12 wwan0: register ' | ||
+ | [ 444.050308] usbcore: registered new interface driver cdc_mbim | ||
+ | </ | ||
+ | ==== troubleshooting ==== | ||
+ | |||
+ | In my case no device is recognized by driver (no serial ttyUSBx too). Fixed this by adding usb-id in qcserial | ||
+ | |||
+ | But before i tried these steps: | ||
+ | |||
+ | i saw in dmesg only this (also after cold-reset): | ||
< | < | ||
[ 3.592655] usb 1-1.1: new high-speed USB device number 4 using xhci-mtk | [ 3.592655] usb 1-1.1: new high-speed USB device number 4 using xhci-mtk | ||
Line 136: | Line 344: | ||
</ | </ | ||
- | i loaded all known modules: | ||
- | < | ||
- | root@bpi-r3: | ||
- | root@bpi-r3: | ||
- | root@bpi-r3: | ||
- | </ | ||
with this i have got access to the AT-Interface: | with this i have got access to the AT-Interface: | ||
en/bpi-r3/lte.txt · Last modified: 2023/06/08 17:06 by 127.0.0.1