RG255G-CL driver request for Raspberry Pi 4 OS 64-bit

Hello,

I have RG255G-CL mounted on Waveshare 5G QHAT / Raspberry Pi 4 devices. Those are not recognized by the Raspi OS so I guess I need the corresponding drivers. Could you please send them to me with the installation documentation (email: turletti@gmail.com) ? Thank you
Regards
Thierry

Please just check whether the RPI recognize the RG255C with the command “lsusb”.

For the Linux kernel driver you need add the below for the Linux kernel

qmi_wwan.c

{QMI_QUIRK_SET_DTR(0x2c7c, 0x0316, 3)}, /* Quectel X35 */

option.c 

{ USB_DEVICE_INTERFACE_CLASS(QUECTEL_VENDOR_ID, 0x0316, 0xff),
.driver_info = RSVD(3) },

Thank you for your answer.

I confirm that the RPI recognizes the RG255C

I patched the 2 files and recompiled the raspi 64-bit OS with the attached config file but still, no USB tty appear.
I followed https://www.raspberrypi.com/documentation/computers/linux_kernel.html tuto but maybe I missed something…

dot-config.zip (53.7 KB)

You might have not patched it. Or what you patch does not take effect.
Please check

lsusb
and
lsusb -t

ls /sys/bus/usb/drivers/

Unfortunately, I won’t be able to test again until Jan 6. I’ll let you know.

Best wishes

Merry Christmas and Happy New Year !!!

Indeed, the patch didn’t take effect, I rebuilt the kernel and now the drivers are there. However, I have an issue with MBIM signature…

root@qhat20:/usr/local/bin# lsusb
Bus 002 Device 003: ID 0951:16b0 Kingston Technology Dell USB
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 008: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse
Bus 001 Device 009: ID 413c:2010 Dell Computer Corp. Keyboard
Bus 001 Device 007: ID 413c:1003 Dell Computer Corp. Keyboard Hub
Bus 001 Device 010: ID 2c7c:0316 Quectel Wireless Solutions Co., Ltd. RG255C-GL
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@qhat20:/usr/local/bin# ls -l /dev/ttyU* /dev/cdc*
crw------- 1 root root 180, 176 Jan 7 15:32 /dev/cdc-wdm0
crw-rw---- 1 root dialout 188, 0 Jan 7 15:33 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Jan 7 15:33 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Jan 7 15:50 /dev/ttyUSB2

root@qhat20:/usr/local/bin# mbimcli --version
mbimcli 1.28.2

root@qhat20:/usr/local/bin# mbimcli -p -d /dev/cdc-wdm0 --set-radio-state=on
[07 Jan 2025, 15:51:25] -Warning ** [/dev/cdc-wdm0] couldn’t find MBIM signature in descriptors file
error: couldn’t open the MbimDevice: Transaction timed out

Any ideas? Many thanks again and Happy New Year !
Thierry

as complementary info:

root@qhat20:/usr/local/bin# uname -a
Linux qhat20 6.6.66-v8-RG255C-GL+ #4 SMP PREEMPT Tue Jan 7 12:20:43 CET 2025 aarch64 GNU/Linux

root@qhat20:/usr/local/bin# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 10, If 2, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 1: Dev 10, If 0, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 1: Dev 10, If 3, Class=Vendor Specific Class, Driver=qmi_wwan_q, 480M
|__ Port 1: Dev 10, If 1, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 3: Dev 7, If 0, Class=Hub, Driver=hub/3p, 12M
|__ Port 1: Dev 9, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 1: Dev 9, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 8, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M

  1. It is in RMNET mode and you cannot use the mbimcli and you should try the qmicli.
    2.You should try the native driver qmi_wwan but not the qmi_wwan_q from Quectel.

I’d prefer using the MBIM mode like for my other RM 500Q-GL devices. Do you mean MBIM mode is not compatible with RG255G-CL devices ?

I think I have both qmi_wan and qmi_wwan_q drivers installed. What’s the procedure to select qmi_wwan ? A link to a specific documentation would be great.

many thanks again
Thierry

RG255C is not fully support the MBIM.
The customer should buy the MBIM comercial license.
It is recommended to try RMNET、ECM、RNDIS.

Ok I will try.

Btw, where can I find the latest QConnectManager software ?

thanks

You don’t really need any additional software.
Just switch your modem to ECM mode and configure DHCP interface in Linux.