BPI-4G LTE module is unstable on R2 board

Hi All, I am trying to use BPI-4G LTE module with BPI-R2 board and sending some sensor’s datas into cloud server continuously. However, I am facing the problem of connection issues on the 4G module after one/two days.

I am using 14 pin header method to connected 4G module with R2 board. The module is working fine once the R2 board booted and able to use the internet facility without any issues. However, The wwan0 automatically disconnected and modem devices (ttyUSB*) are disappeared after one or two days. Though the board was soft rebooted, the same issue persisted and the wwan0 is enabled. At this stage, the commands, mt_gpio.sh 34 dir out and mt_gpio.sh 34 val 1 are useless until I hard reset the BPI-R2 board.

The entire above issues solved and the module started working only after the BPI-R2 board was completely rebooted by hard switch.

Can someone help me on this strange issue, why the 4G module devices(ttyUSB*) are automatically disappeared after few days?. Also like to know if there is any way to reset the 4G module to initiate it as like hard reboot of R2 board. Kindly note that the entire device will be installed at a remote place and we cant always reset the device by manually.

Its looks like the 4G module firmware is crashed and wont work until the entire BPI-R2 boot hard reset.

TIA.

hello,could you please do “dmesg” and show me the kernel print log?

Hi. I will share the dmesg log once the 4G is down. BTW, May I know if there is any way to reset/restart the 4G module from the software when it is disappear?. I just like to remount the 4G module from the software instead of doing it manually.

TIA.

Hello, if you connect 4G module by 14pin header, you could power on/off 4G module by GPIO(PCIE2_CLKREQ_N).

image

@Jackzeng Kindly find the log message during the wwan0 down.

Sep 24 04:43:05 bpi-iot-ros-ai kernel: [  129.515326] option 3-1:1.0: GSM modem (1-port) converter detected
Sep 24 04:43:05 bpi-iot-ros-ai kernel: [  129.515755] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB3
Sep 24 04:43:05 bpi-iot-ros-ai kernel: [  129.515923] option 3-1:1.1: GSM modem (1-port) converter detected
Sep 24 04:43:05 bpi-iot-ros-ai kernel: [  129.516257] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB4
Sep 24 04:43:05 bpi-iot-ros-ai kernel: [  129.516409] option 3-1:1.2: GSM modem (1-port) converter detected
Sep 24 04:43:05 bpi-iot-ros-ai kernel: [  129.516712] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB5
Sep 24 04:43:05 bpi-iot-ros-ai kernel: [  129.516860] option 3-1:1.3: GSM modem (1-port) converter detected
Sep 24 04:43:05 bpi-iot-ros-ai kernel: [  129.517161] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB6
Sep 24 04:43:11 bpi-iot-ros-ai kernel: [  135.216244] [MTK-WIFI] WIFI_write: WIFI_write A
Sep 24 04:43:11 bpi-iot-ros-ai kernel: [  135.216244] 
Sep 24 04:43:11 bpi-iot-ros-ai kernel: [  135.219518] [MTK-WIFI] WIFI_write: Set wlan mode 0 --> 1
Sep 24 04:43:11 bpi-iot-ros-ai kernel: [  135.234430] [MTK-WIFI] WIFI_close: WIFI_close: major 155 minor 0 (pid 1370)
Sep 24 04:43:13 bpi-iot-ros-ai kernel: [  137.350024] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
Sep 24 04:43:23 bpi-iot-ros-ai kernel: [  146.998554] cfg80211: Regulatory domain changed to country: US
Sep 24 04:43:23 bpi-iot-ros-ai kernel: [  146.998586] cfg80211:  DFS Master region: FCC
Sep 24 04:43:23 bpi-iot-ros-ai kernel: [  146.998597] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Sep 24 04:43:23 bpi-iot-ros-ai kernel: [  146.998616] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
Sep 24 04:43:23 bpi-iot-ros-ai kernel: [  146.998634] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (N/A)
Sep 24 04:43:23 bpi-iot-ros-ai kernel: [  146.998651] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s)
Sep 24 04:43:23 bpi-iot-ros-ai kernel: [  146.998667] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2300 mBm), (0 s)
Sep 24 04:43:23 bpi-iot-ros-ai kernel: [  146.998682] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.444227] xhci-mtk 1a240000.usb: xHCI host not responding to stop endpoint command.
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.444308] xhci-mtk 1a240000.usb: Assuming host is dying, halting host.
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.444639] option1 ttyUSB3: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.444736] option1 ttyUSB3: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.444817] option1 ttyUSB3: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.444894] option1 ttyUSB3: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.445055] option1 ttyUSB4: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.445152] option1 ttyUSB4: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.445227] option1 ttyUSB4: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.445303] option1 ttyUSB4: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.445507] option1 ttyUSB5: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.445589] option1 ttyUSB5: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.445668] qmi_wwan 3-1:1.4: Tx URB error: -22
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.445686] option1 ttyUSB5: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.445765] option1 ttyUSB5: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.446117] option1 ttyUSB6: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.446195] qmi_wwan 3-1:1.4: Tx URB error: -22
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.446229] option1 ttyUSB6: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.446297] option1 ttyUSB6: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.446351] option1 ttyUSB6: usb_wwan_indat_callback: resubmit read urb failed. (-22)
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.446699] qmi_wwan 3-1:1.4: Tx URB error: -22
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.447077] qmi_wwan 3-1:1.4: Tx URB error: -22
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.447210] xhci-mtk 1a240000.usb: HC died; cleaning up
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.447437] qmi_wwan 3-1:1.4: Tx URB error: -19
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.447723] usb 3-1: USB disconnect, device number 2
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.448650] qmi_wwan 3-1:1.4: Tx URB error: -19
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.451791] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.452048] option 3-1:1.0: device disconnected
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.454940] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.455009] option 3-1:1.1: device disconnected
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.455735] option1 ttyUSB6: usb_wwan_open: submit int urb failed: -19
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.455753] option1 ttyUSB6: usb_wwan_open: submit read urb 0 failed: -19
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.455761] option1 ttyUSB6: usb_wwan_open: submit read urb 1 failed: -19
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.455769] option1 ttyUSB6: usb_wwan_open: submit read urb 2 failed: -19
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.455777] option1 ttyUSB6: usb_wwan_open: submit read urb 3 failed: -19
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.455908] option1 ttyUSB5: GSM modem (1-port) converter now disconnected from ttyUSB5
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.455974] option 3-1:1.2: device disconnected
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.456784] option1 ttyUSB6: GSM modem (1-port) converter now disconnected from ttyUSB6
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.456830] option 3-1:1.3: device disconnected
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.457062] qmi_wwan 3-1:1.4 wwan0: unregister 'qmi_wwan' usb-1a240000.usb-1, WWAN/QMI device
Sep 24 04:43:38 bpi-iot-ros-ai kernel: [  162.467074] qmi_wwan 3-1:1.4: Tx URB error: -19

@Jackzeng I am able to on/off the module by 4th pin PCIE2_PERST_N, not by PCIE2_CLKREQ_N. However, we can able on/off it only when the module is working. The same functionality not working when the 4G module disconnected by the above issue.

Hello,this pin PCIE2_CLKREQ_N is the power gpio of 4G module,so you could power on/off by control this pin.

I will check your log soon.

xhci set watchdog for each usb endpoint, this because xhci endpoint watch dog was called:

the usb host is probably dead.

image