Hi
We have a BananaPi board connected to an EC25 module, running Linux kernel v3.4.85 with Busybox v1.20.2.
We have used the qmi_wwan.c driver
Our module works fine with Ubuntu 12.4 on the laptop, but it fails on the embedded board. Both kernels and Busybox versions are the same (Laptop vs. Embedded Board).
udhcpc (DHCP Client) cannot set the IP address. More specifically it hangs up when it gets to “send discover”.
It does not proceed to take the IP address, so we cannot connect to the internet.
We have done as below:
1- Add VID and PID
2- Add Support for Raw IP Mode
3- Modify Kernel Configuration
4- Connecting to Modem: For connecting to the internet we use the quectel-CM
Then it loads the modem driver as follows:
usb 1-1: new high-speed USB device number 2 using usb-host
usb 1-1: New USB device found, idVendor=2c7c, idProduct=0125
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: Android
usb 1-1: Manufacturer: Android
qmi_wwan 1-1:1.0: not on our whitelist - ignored
qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
qmi_wwan 1-1:1.4: Quectel EC25&EC21&EC20R2.0&EG91&EG95&EG06&EP06&EM06&BG96 work on RawIP mode
qmi_wwan 1-1:1.4: wwan0: register ‘qmi_wwan’ at usb-Anyka usb host controller-1, Qualcomm WWAN/QMI device, 3a:cf:cf:6c:02:64
==================================================================
But it fails to get IP:
==================================================================
[root@Lamobo-D1 /mnt]$ ./quectel-CM
[01-01_08:01:19:469] Quectel_Linux_ConnectManager_SR01A01V23
[01-01_08:01:19:475] ./quectel-CM profile[1] = (null)/(null)/(null)/0, pincode = (null)
[01-01_08:01:19:478] Find qmichannel = /dev/cdc-wdm0
[01-01_08:01:19:479] Find usbnet_adapter = wwan0
[01-01_08:01:19:519] cdc_wdm_fd = 7
[01-01_08:01:20:531] QmiThreadSendQMITimeout pthread_cond_timeout_np=110, errno: 22 (Invalid argument)
[01-01_08:01:21:633] Get clientWDS = 19
[01-01_08:01:21:665] Get clientDMS = 1
[01-01_08:01:21:698] Get clientNAS = 3
[01-01_08:01:21:728] Get clientUIM = 1
[01-01_08:01:21:761] Get clientWDA = 1
[01-01_08:01:21:793] requestBaseBandVersion EC25EFAR02A03M4G 1 [Aug 05 2016 04:00:00]
[01-01_08:01:21:858] requestGetSIMStatus SIMStatus: SIM_READY
[01-01_08:01:21:889] requestGetProfile[1] mcinet///0
[01-01_08:01:21:923] requestRegistrationState2 MCC: 432, MNC: 11, PS: Attached, DataCap: LTE
[01-01_08:01:21:952] requestQueryDataCall ConnectionStatus: DISCONNECTED
[01-01_08:01:22:017] requestRegistrationState2 MCC: 432, MNC: 11, PS: Attached, DataCap: LTE
[01-01_08:01:22:049] requestSetupDataCall WdsConnectionIPv4Handle: 0x87990170
[01-01_08:01:22:144] requestQueryDataCall ConnectionStatus: CONNECTED
[01-01_08:01:22:309] udhcpc (v1.20.2) started
[01-01_08:01:22:414] Sending discover…
[01-01_08:01:25:423] Sending discover…
[01-01_08:01:28:435] Sending discover…
[01-01_08:01:31:443] Sending discover…
[01-01_08:01:34:453] Sending discover…
[01-01_08:01:37:474] requestQueryDataCall ConnectionStatus: DISCONNECTED
[01-01_08:01:37:505] requestRegistrationState2 MCC: 432, MNC: 11, PS: Attached, DataCap: LTE
[01-01_08:01:37:536] requestSetupDataCall WdsConnectionIPv4Handle: 0x87990170
[01-01_08:01:37:541] /usr/share/udhcpc/default.script: Lease failed:
[01-01_08:01:37:549] No lease, failing
[01-01_08:01:37:611] requestQueryDataCall ConnectionStatus: CONNECTED
[01-01_08:01:37:730] udhcpc (v1.20.2) started
[01-01_08:01:37:827] Sending discover…
[01-01_08:01:40:833] Sending discover…
[01-01_08:01:43:851] Sending discover…
========================================================
What could we do?