Driver for RM520N-GL and quectel-cm app

Hi

We are using RM520N-GL 5G module in USB interface in kernel 4.14.206. We have added the VID and PID of the module in the qmi_wwan_q.c driver referring the “LTE&5G_Linux_USB_Driver_User_Guide_V2.0” document.

We can get the cdc-wdm0 device node and wwan0 network adapter.

[   56.590236] usb 2-1.1: new SuperSpeed USB device number 3 using xhci-hcd
[   56.612037] usb 2-1.1: LPM exit latency is zeroed, disabling LPM.
[   56.612810] usb 2-1.1: New USB device found, idVendor=2c7c, idProduct=0801
[   56.612817] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   56.612822] usb 2-1.1: Product: RM520N-GL
[   56.612827] usb 2-1.1: Manufacturer: Quectel
[   56.612831] usb 2-1.1: SerialNumber: d3896b12
[   56.662436] qmi_wwan_q 2-1.1:1.4: cdc-wdm0: USB WDM device
[   56.662452] qmi_wwan_q 2-1.1:1.4: Quectel EC25&EC21&EG91&EG95&EG06&EP06&EM06&EG12&EP12&EM12&EG16&EG18&BG96&AG35 work on RawIP mode
[   56.662587] qmi_wwan_q 2-1.1:1.4: rx_urb_size = 32768
[   56.663951] qmi_wwan_q 2-1.1:1.4 wwan0: register 'qmi_wwan_q' at usb-xhci-hcd.0.auto-1.1, WWAN/QMI device, 1a:1d:63:83:96:30

But, We are unable to connect to the internet using quectel-cm application and get the below error message

[01-01_00:01:43:714] Quectel_QConnectManager_Linux_V1.5
[01-01_00:01:43:719] Find /sys/bus/usb/devices/2-1.1 idVendor=0x2c7c idProduct=0x801
[01-01_00:01:43:720] Auto find qmichannel = /dev/cdc-wdm0
[01-01_00:01:43:720] Auto find usbnet_adapter = wwan0
[01-01_00:01:43:721] qmap_mode = 1, muxid = 0x81, qmap_netcard = wwan0
[01-01_00:01:43:721] Modem works in QMI mode
[01-01_00:01:43:725] qmap_mode = 1, muxid = 0x81, qmap_netcard = wwan0
[01-01_00:01:43:770] cdc_wdm_fd = 7
[01-01_00:01:44:773] QmiThreadSendQMITimeout pthread_cond_timeout_np timeout
[01-01_00:01:46:060] Get clientWDS = 14
[01-01_00:01:46:093] Get clientDMS = 1
[01-01_00:01:46:126] Get clientNAS = 3
[01-01_00:01:46:157] Get clientUIM = 2
[01-01_00:01:46:189] Get clientWDA = 1
[01-01_00:01:46:222] requestBaseBandVersion RM520NGLAAR01A08M4G
[01-01_00:01:46:253] qmap_settings.rx_urb_size = 31744
[01-01_00:01:46:382] requestGetSIMStatus SIMStatus: SIM_READY
[01-01_00:01:46:382] requestSetProfile[1] jionet///0
[01-01_00:01:46:446] requestGetProfile[1] jionet///0
[01-01_00:01:46:477] requestRegistrationState2 MCC: 405, MNC: 869, PS: Detached, DataCap: UNKNOW
[01-01_00:01:46:510] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
[01-01_00:01:46:511] ifconfig wwan0 down
[01-01_00:01:46:531] ifconfig wwan0 0.0.0.0
^C[01-01_00:02:04:528] QmiWwanThread exit
[01-01_00:02:04:529] qmi_main exit

Some forum threads tell us the latest quectel-cm application.

Can you please confirm whether adding the VID,PID of the module in qmi_wwan_q.c driver is enough and also share us the latest driver and quectel-cm application source.

FYR:
quectel-cm version : WCDMA&LTE_QConnectManager_Linux&Android_V1.2.1
qmi_wwan_q.c version: Quectel_Linux&Android_QMI_WWAN_Driver_V1.1

Thanks.

I will send the lastest quectel-CM.

Does Jionet only support IPv6?

RE: Driver for RM520N-GL and quectel-cm app - Quectel Forums

Using the latest quectel-cm application we can detect signal (both LTE and 5G_SA) and PS attach but unable to generate ip and access internet.

FYI jionet only uses IPV6.

Firmware version in the 5G module:

RM520NGLAAR01A08M4G_01.200.01.200

Attaching the log below,

/ # ./quectel-CM -s jionet -6
[01-01_00:09:23:384] QConnectManager_Linux_V1.6.5
[01-01_00:09:23:391] Find /sys/bus/usb/devices/2-1.1 idVendor=0x2c7c idProduct=0x801, bus=0x002, dev=0x004
[01-01_00:09:23:393] Auto find qmichannel = /dev/cdc-wdm0
[01-01_00:09:23:393] Auto find usbnet_adapter = wwan0
[01-01_00:09:23:394] netcard driver = qmi_wwan_q, driver version = 22-Aug-2005
[01-01_00:09:23:395] qmap_mode = 1, qmap_version = 5, qmap_size = 16384, muxid = 0x81, qmap_netcard = wwan0
[01-01_00:09:23:396] Modem works in QMI mode
[01-01_00:09:23:425] cdc_wdm_fd = 7
[01-01_00:09:23:505] Get clientWDS = 14
[01-01_00:09:23:537] Get clientWDS = 15
[01-01_00:09:23:569] Get clientDMS = 1
[01-01_00:09:23:601] Get clientNAS = 2
[01-01_00:09:23:633] Get clientUIM = 2
[01-01_00:09:23:664] Get clientWDA = 1
[01-01_00:09:23:696] requestBaseBandVersion RM520NGLAAR01A08M4G
[01-01_00:09:23:729] qmap_settings.rx_urb_size = 16384
[01-01_00:09:23:729] qmap_settings.ul_data_aggregation_max_datagrams  = 11
[01-01_00:09:23:729] qmap_settings.ul_data_aggregation_max_size       = 8192
[01-01_00:09:23:729] qmap_settings.dl_minimum_padding                 = 0
[01-01_00:09:23:730] ioctl(0x89f2, qmap_settings) failed: No such file or directory, rc=-1
[01-01_00:09:23:856] requestGetSIMStatus SIMStatus: SIM_READY
[01-01_00:09:23:921] requestGetProfile[pdp:1 index:1] jionet///0/IPV4
[01-01_00:09:23:921] requestSetProfile[pdp:1 index:1] jionet///0/IPV6
[01-01_00:09:23:984] requestRegistrationState2 MCC: 405, MNC: 869, PS: Attached, DataCap: 5G_SA
[01-01_00:09:24:017] requestQueryDataCall IPv6ConnectionStatus: DISCONNECTED
[01-01_00:09:24:018] ip addr flush dev wwan0
[01-01_00:09:24:035] ip link set dev wwan0 down
[01-01_00:09:24:689] requestSetupDataCall WdsConnectionIPv6Handle: 0xf2b291a0
[01-01_00:09:24:786] ip link set dev wwan0 up
[01-01_00:09:24:807] ip -6 address flush dev wwan0
[01-01_00:09:24:823] ip -6 address add 2409:40f4:3c:50bd:c98c:11d3:6264:3441/64 dev wwan0
[01-01_00:09:24:839] ip -6 route add default dev wwan0
RTNETLINK answers: File exists

Please share your thoughts on resolving this.

Thanks.

It only support ipv6 and from the log of the quectel-CM, the wwan0 already got the ipv6 address.

But we are not able to connect to the internet.

Do we need to update the driver or firmware?

You can check wether you can ping the Google IPV6 DNS.

2001:4860:4860::8888
2001:4860:4860::8844

ping -6 2001:4860:4860::8888

I think it works.

You can try enable the clat by

AT+QCFG=“clat”,1

and test it again.