If you encounter:
Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error.
You can refer to the connection method first: PSDK connection for each model
PSDK connection of various aircraft models
This error indicates that PSDK cannot find the port to communicate with the drone. At this time, you can check the following aspects:
1. In the hal_uart.h file, whether the configured LINUX_UART_DEV1 port exists or corresponds to the actual port, you can confirm it by plugging and unplugging and ls /dev/tty* to see which serial port node appears and disappears with the plugging and unplugging.
2. Check whether the RX TX pins of the serial port are reversed. If you are not sure, you can swap the connection of the RX TX pins and run the PSDK program to try.
3. Switch the baud rate. In dji_sdk_app_info.h, you can configure the communication baud rate between PSDK and the drone. You can switch to different baud rates to try.
4. If you are using the E-Port development kit, you can check whether the power light of the E-Port kit is on. Normally, as long as the hardware connection is correct, the power light of the E-Port expansion board will light up (green). If it does not light up, please follow the link above to check your hardware connection. (Friends using the M3E/T model should be careful not to hot-plug the E-Port during the debugging phase. There will be a 15-second detection of PSDK access and countdown mechanism. It is recommended to plug in the E-Port kit first and then turn on the aircraft. Mechanism description: For Mavic 3E/3T models, when the aircraft is not turned on and the PSDK payload has been connected, the PSDK payload and the aircraft will be powered on at the same time, and the E-Port interface can be powered normally. When the aircraft is turned on, when hot-plugging or manually connecting the PSDK payload, if the PSDK program does not start normally within 15 seconds, the E-Port interface will automatically power off.)
5. If none of the above works, you can use USB-TTL (FT232 model) for connection. The onboard serial port may have compatibility issues or frequency deviation issues, resulting in the inability to use the PSDK serial port function normally.
Comments
0 comments
Article is closed for comments.