RM500U-CN - Switch back from PCIe EP mode to PCIe RC mode without PCIe access (only USB)? Factory reset?

Dear Quectel team,

during testing a RM500U-CN module in a prototype board I accidentally switched it into PCIe EP mode (AT+QCFG=“pcie/mode”,0). How can I switch it back to PCIe RP mode without being able to connect it to a PCIe bus directly? My development board does not support this.

Is there a way to factory reset it without having software access to it?

Many thanks & Best,
Mark

Dear @vaenner.net
Did you try to configure AT+QCFG=“pcie/mode”,1 and try again?

Thanks for your reply!

I do not get any ttyUSB* devices anymore. My evaluation board does not connect the modules PCIe lanes (only USB and Ethernet; sadly also no UART).

Could you please provide me the Quectel_Linux&Android_SPRD_PCIE_Driver? I will order an PCIe Connection board for testing. Many thanks!

Dear @vaenner.net
Did you install the USB driver on your side?
The latest PCIe driver is Quectel_Linux_PCIE_MHI_Driver_V1.3.6 , I will sent it to you via Message, please check.

Thanks! I downloaded the PCIe driver.

The USB driver is built into the kernel (Debian 6.1.52-1). I was able to connect to the ttyUSB2 device before I accidentally switched to PCIe mode. Now the modem is not found any more by this built in driver.

Or do I miss something?

Dear @vaenner.net
Actually, AT+QCFG=“pcie/mode”,0 is USB mode. You can try to install USB driver again.

Could you please send me the the most recent USB driver? Thanks!

Also, could please send me the latest firmware for a RM500U-CN and the Quectel_RGx00U&RM500U_Series_AT_Commands_Manual?

I only received this AT commands PDF: “Quectel_RG50xQ&RM5xxQ_Series_AT_Commands_Manual_V1.1.1_Preliminary_20201009”

Again, many thanks!

Dear silvia
Could you please send me the latest Quectel_Linux_PCIE_MHI_Driver?

Dear @lodyly

Please contact with your provider firstly next time, they have access to get the driver.
Thanks for your understanding.

1 Like

Hi Team,

I’m encountering a similar issue where I accidentally switched my RM500U-CN modem to PCIe RC mode. As a result, I’ve lost access to the USB interface (previously appearing as usb0) and all ttyUSBx ports. While the modem is now visible on the PCIe lane, no serial ports are available.

I also tried using pci_mhi, but it didn’t yield any serial ports or the mhi_DUN port. In contrast, my other module, RM520N, works perfectly on the PCIe lane and provides the mhi_DUN port for communication.

Unfortunately, I don’t have an EVB kit. Could you please advise how I can reset the RM500U-CN module? Would reflashing the module be a viable option in this case?


root@OpenWrt:~# lspci
01:00.0 Class 0d80: 16c3:abcd
00:00.0 Class 0604: 1912:002b

I would appreciate your guidance.

Thank you,

Please try the sprd_pcie driver.

1 Like

I hope that you can use the SPRD_PCIE in the Linux.
And if it works you can send the AT command via

/dev/stty_nr31

Othewise if you want to reset the modem to USB mode, you need login the modem via the debug uart of the modem.

1 Like

Please set the sprd_pcie built-in the boot.img or vmlinux. Do not build it as kernel module.
And please do not reply the message.
Message only works for send files.

@Bean.Wang-Q
okay i will build it in the boot.img.

Thanks

Thanks .
I have a custom board which does not have debug support for the modem. Is there another way of doing it ?

Do you mean that you cannot build the kernel driver for it?

I tried building the sprd_pcie built-in image. I have found an entry of quectel_sprd in /etc/modules.d/

root@OpenWrt:~# ls /etc/modules.d/50-quectel-sprd-pcie
/etc/modules.d/50-quectel-sprd-pcie

but lsmod gives nothing
root@OpenWrt:~# lsmod | grep sprd
root@OpenWrt:~#

i did got the kmod package for the same when i build inside image
image

i even tried installing it again via
root@OpenWrt:~# opkg install kmod-quectel-sprd-pcie_1.1.8-1_aarch64_generic.ipk
Package kmod-quectel-sprd-pcie_1.1.8-1 installed in root is up to date.

but cant find /dev/stty_nr31.

If you build the sprd_pcie, it should be kernel module.
If you install the ipk, and could you show me the dmesg log.

Same boat now. Obviously one won’t be able to talk to the device anymore because it can’t join the PCI bus anymore. Is there a hardware way to reset the settings? Is there a manual to access the UART on the device? (RM520N-GL w/o USB in my case) Would it be possible to undo RC mode via UART?