Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果不使用USB-TTL,直接用杜邦线连UART,需要如何配置 #187

Open
github4529 opened this issue Jul 17, 2024 · 3 comments
Open

Comments

@github4529
Copy link

在hal_uart.h文件中有这个配置

#define LINUX_UART_DEV1    "/dev/ttyUSB0"
#define LINUX_UART_DEV2    "/dev/ttyACM0"

如果不使用USB-TTL,直接用杜邦线连UART,需要如何配置
如果UART对应是/dev/ttyS0,将LINUX_UART_DEV1配置为/dev/ttyS0就行吗
LINUX_UART_DEV2需要如何配置呢
硬件:
rk3588,M350

@dji-dev
Copy link
Contributor

dji-dev commented Jul 17, 2024

Agent comment from Leon in Zendesk ticket #112160:

尊敬的开发者,

您好,感谢您联系DJI 大疆创新。

使用杜邦线连接也是需要查看ls /dev/tty*的端口是否有新增,通过这个来配置DEV1,M350机型不需要配置DEV2。
PSDK各机型连接(M350/M300/M30/M30T/M3E/M3T/M3D/M3TD)

感谢您对大疆产品的支持!祝您一切顺利!

Best Regards,
DJI 大疆创新SDK技术支持

°°°

@github4529
Copy link
Author

EPort开发者套件的串口是TTL电平吗

@dji-dev
Copy link
Contributor

dji-dev commented Jul 17, 2024

Agent comment from Leon in Zendesk ticket #112160:

尊敬的开发者,

您好,感谢您联系DJI 大疆创新。

E-Port Uart需遵循 3.3V TTL 协议。接入RX TX GND即可。关于使用板载串口通信,您可能要查阅下相关的产品手册看怎么使能板载串口,并且需与/dev/tty* 的端口对应上。例如GPIO2 GPIO3 对应端口/dev/ttyAMA1这样的对应关系要确定。

感谢您对大疆产品的支持!祝您一切顺利!

Best Regards,
DJI 大疆创新SDK技术支持
image.png

°°°

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants