M300 PSDK UART Connect and Camera Payload Error
I am trying to run the PSDK application example in a Jetson Nano connected to the drone M300 RTK using a DIY OSDK port as shown here: https://forum.dji.com/thread-219723-1-1.html It worked once and the baudrate was changed to 230400. I ran some examples like retrieving FPV , telemetry, etc. However, when I connected my Zenmuse H20, it won’t initialize.
I don’t know if it is right but I was suspecting that the baud rates of the port change and won’t properly communicate with the camera. So, I tried running the examples at different baud rates but I am now getting “Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error”.
The measures I attempted to do to fix the error:
1. Enabled API control. Ensured that the baud rate in the PSDK code is the same as the baud rate of OSDK in DJI Assistant 2.
2. Inverted TX and RX pins.
3. I am now using the DJI E Port development Kit but still getting the same issues. For now, I am just using the port to get serial data. I am not using USB bulk config and no dev/ttyACM
4. Replaced FT232 and ensured it can support 3.3v logic. Measured the voltages of the TX and RX pin. TX remained at 0V while RX is at 3.3V.
5. Updated drone firmware to the latest and now using PSDK 3.9.2
How do I fix this error?
And if there really is a hardware error for the serial port, would resetting the drone to factory settings reset the baud rates in the PSDK ports (assuming what I suspect is right that the baud rates don’t match) and make the drone connect to the camera at least?
-
Hello, thank you for your patience. First of all, the baud rate set for the Payload port or the E-Port will not affect the initialization of the DJI official payload. From your description, the hardware connection is correct and the voltage is normal. In your case, you can try to solve it by downgrading or upgrading the firmware. If it is convenient, please provide a physical picture of the hardware connection so that we can better confirm it for you. -
Thank you for responding.
"First of all, the baud rate set for the Payload port or the E-Port will not affect the initialization of the DJI official payload." So, is the UART initialization error mutually exclusive from the Zenmuse error?"From your description, the hardware connection is correct and the voltage is normal." Is it normal if Tx is at 0v even if the drone is on and connected to Jetson?
"In your case, you can try to solve it by downgrading or upgrading the firmware." I haven't mentioned earlier but I just uploaded the M300 firmware to the latest version and before, I used PSDK 3.9.1 (when it worked) but now I am using PSDK 3.9.2.
Here are the images of my connection to the drone. I don't know if it matters but I am not using the voltage outputs from the dev kit as supply for Jetson. -
Hello, thank you for your patience. 1. The device on the E-Port port will not have any relationship with your H20 camera, for example. You can mount the H20 camera and check whether the H20 device can be recognized on the remote controller. 2. Under normal circumstances, RX TX is 3.3V. We noticed that the power switch of the E-Port in your physical picture is not turned on (the dip switch is not turned to the ON side). You need to turn it on. 3. In addition, whether you are connected as ONLY_UART, you need to connect the USB cable. Because the M300 drone is special, it will use some channels in the USB link as UART for data transmission and reception.
请先登录再写评论。
评论
3 条评论