We are integrating the PCIe quectel modem in Xilinx zcu106 now we have booted successfully, and the enumeration is successful. We are facing some problems,
I have given an external supply to the modem and tried to change the mode from USB mode to PCIE mode with AT commands in Minicom. These are the parts we are using,
a.HIGHTECH GLOBAL PCIE ADAPTER
b.ABLECONN MPEX-134B MINI PCIE ADAPTER STARTTECH.COM
c.PCI EXPRESS TO MINI PCI EXPRESS CARD ADAPTER
d.QUECTEL RM502 MODEM
The commands we used here are
sudo atcom AT+QCFG="data_interface",1,0
sudo atcom AT+QCFG="pcie/mode",1
sudo atcom AT+CFUN=1,1
After changing the mode we are connected to the Xilinx board. After booting the enumeration is not happening PCIE is checking for the endpoint.
Is there anything to change back to a normal state?
After booting in Xilinx board we have integrated the quectel mhi driver we can able to detect the node while running minicom for the mhi_DUN node we cannot able to type anything is there any driver or configurations to be used for that.
Please help us with that also,
I have solved the first issue. But in the second issue, after debugging more things on the driver side, we have two boards: Raspberry Pi and Xilinx.
In raspberry pi all working fine. When I connect the same PCIe to the Xilinx zcu106 eval board with an FMC connector we are not able to execute AT commands,
Here we are using Quectel_Linux_PCIE_MHI_Driver_V1.3.5.zip Working logs from Raspberry PI
I][mhi0][__mhi_prepare_channel] Entered: preparing channel:32
[ 570.828102] [I][mhi0][mhi_dump_tre] carl_ev evt_cmd_comp code=1, type=33
[ 570.828168] [I][mhi0][__mhi_prepare_channel] Chan:32 successfully moved to start state[ 570.828176] [I][mhi0][__mhi_prepare_channel] Entered: preparing channel:33
[ 570.836595] [I][mhi0][mhi_dump_tre] carl_ev evt_cmd_comp code=1, type=33
[ 570.836641] [I][mhi0][__mhi_prepare_channel] Chan:33 successfully moved to start state
[ 572.394556] [I][mhi0][mhi_dtr_dl_xfer_cb] preamble:0x4354524c msg_id:17 dest_id:33 msg:0x8
From Raspberry Pi, we can see that when I try to open the minicom the preamble,msg_id,dest_id and msg are receiving correctly.
From Xilinx, we can see that when I try to open the minicom the preamble,msg_id,dest_id and msg are sending to the modem correctly but the modem is sending as like raspberry Pi it is different preamble:0x0 msg_id:0 dest_id:296222720 msg:0x5000
So because of it we can’t able to do anything in minicom.
I have solved the first issue. But in the second issue, after debugging more things on the driver side, we have two boards: Raspberry Pi and Xilinx.
In raspberry pi all working fine. When I connect the same PCIe to the Xilinx zcu106 eval board with an FMC connector we are not able to execute AT commands,
Here we are using Quectel_Linux_PCIE_MHI_Driver_V1.3.5.zip Working logs from Raspberry PI
I][mhi0][__mhi_prepare_channel] Entered: preparing channel:32
[ 570.828102] [I][mhi0][mhi_dump_tre] carl_ev evt_cmd_comp code=1, type=33
[ 570.828168] [I][mhi0][__mhi_prepare_channel] Chan:32 successfully moved to start state[ 570.828176] [I][mhi0][__mhi_prepare_channel] Entered: preparing channel:33
[ 570.836595] [I][mhi0][mhi_dump_tre] carl_ev evt_cmd_comp code=1, type=33
[ 570.836641] [I][mhi0][__mhi_prepare_channel] Chan:33 successfully moved to start state
[ 572.394556] [I][mhi0][mhi_dtr_dl_xfer_cb] preamble:0x4354524c msg_id:17 dest_id:33 msg:0x8
From Raspberry Pi, we can see that when I try to open the minicom the preamble,msg_id,dest_id and msg are receiving correctly.
From Xilinx, we can see that when I try to open the minicom the preamble,msg_id,dest_id and msg are sending to the modem correctly but the modem is sending as like raspberry Pi it is different preamble:0x0 msg_id:0 dest_id:296222720 msg:0x5000
So because of it we can’t able to do anything in minicom.
Dear @Ranjithkumar_Rajendh
[ 115.031013] [I][mhi0][mhi_dtr_tiocmset] preamble [1280463939] msgId[16] destId [32] DTR:0 RTS:1
=>It seems the module reset, could you confirm the power supply?
We have tried giving an external supply from FMC to the PCIe modem. From the modem, we are getting four USBs from which we can perform AT commands from the minicom.
When we have connected to the Xilinx zcu106 board from FMC to PCIe.While accessing the modem we are getting this problem
The RM502Q seems link up successful.
Could you provide the host side log first.
dmesg
cat /sys/kernel/debug/mhi_q//states
cat /sys/kernel/debug/mhi_q//chan
cat /sys/kernel/debug/mhi_q//events
cat /sys/kernel/debug/mhi_q/mhi_netdev//states
cat /proc/interrupts
We don’t have these files
cat /sys/kernel/debug/mhi_q/states
cat /sys/kernel/debug/mhi_q/chan
cat /sys/kernel/debug/mhi_q/events
cat /sys/kernel/debug/mhi_q/mhi_netdev/states