5G modem RG255C-GL support

Please also add

{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RG255C_GL, 0xff, 0xff, 0x30) },
{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RG255C_GL, 0xff, 0xff, 0x40) },

Hi.

I have trouble to get the RG255C-GL to work. Patching the option and qmi_wwan drivers went well, and I got the kernel to recognize the modem like this:

lsusb -t

/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=ci_hdrc/1p, 480M
|__ Port 001: Dev 002, If 0, Class=[unknown], Driver=hub/4p, 480M
|__ Port 004: Dev 005, If 0, Class=[unknown], Driver=option, 480M
|__ Port 004: Dev 005, If 1, Class=[unknown], Driver=option, 480M
|__ Port 004: Dev 005, If 2, Class=[unknown], Driver=option, 480M
|__ Port 004: Dev 005, If 3, Class=[unknown], Driver=qmi_wwan, 480M

I can connect to the AT command port, and verify that the modem can connect to the cellular network (using 4G LTE, so far) Like this:

ati
Quectel
RG255C-GL
Revision: RG255CGLABR01A02M4G

at+cops?
+COPS: 0,0,“DNA”,7

Activating the network connection seems to work just fine:

qmi-network /dev/cdc-wdm0 start

Loading profile at /etc/qmi-network.conf…
APN: internet
APN user: unset
APN password: unset
qmi-proxy: no
IP_TYPE: 4
PROFILE: unset
Checking data format with 'qmicli -d /dev/cdc-wdm0 --wda-get-data-format '…
Device link layer protocol retrieved: raw-ip
Getting expected data format with ‘qmicli -d /dev/cdc-wdm0 --get-expected-data-format’…
Expected link layer protocol retrieved: raw-ip
Device and kernel link layer protocol match: raw-ip
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network=apn=‘internet’,ip-type=‘4’ --client-no-release-cid '…
Saving state at /tmp/qmi-network-state-cdc-wdm0… (CID: 9)
Saving state at /tmp/qmi-network-state-cdc-wdm0… (PDH: 3768081200)
Network started successfully

Trying to request an IP address with “udhcpc -i wwan0” does nothing, and the network interface does not get a valid IP address. There are some packets sent out, but nothing comes in return, like this:

ifconfig wwan0

wwan0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: fe80::6529:1942:924a:bba3/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:4976 (4.8 KiB)

The same method works just fine with both EC25 and EM060K-GL modems, but not with the new RG255C-GL modem. I use linux kernel version 6.2.16, qmicli version 1.32.2. The modem is configured to Rmnet (qmi) mode, and raw-ip framing.

Regards. Jorgen Pihlflyckt

It is not the way you tried wrong.
Actually the RG255C do not support DHCP. If you want to obtain IP address for wwan0 you need get the IP with QMI first and the ifconfig wwan0 xx.xx.xx.xx.

1 Like

Or you can just try the QuectelConnectManager(quectel-CM).

Really!
I have successfully used dhcp to get the ip address in EC20, EC25 and EM060K modems for quite some time, and I find it strange that this is no longer supported in the RG255C. I shall test how it works with the connect manager.

The X35 cannot support DHCP. It is determinted by Qualcomm.

good day sir,

with the rg255c modem, communication via the serial port is not possible, I cannot create a ppp connection… the signal on the Rx pin is visible on the oscilloscope … can You help

Dear @ssss
Please check lsusb and lsusb -t .
Mark sure you install corresponding driver.

I don’t use a USB port but a classic serial port RxTx and I don’t have any drivers installed, but communication started when I canceled cts/rts.