Skip to content

与电机通讯的程序在ubuntu中强制每次发送延时至少1ms #18

@15210579725

Description

@15210579725

用windows上的宇树官方调试助手一个串口可以达到6k,但是ubuntu上只有1k
有没有什么办法取消串口的1ms延时,让通信频率提高

引用网上的介绍:
“对于usb转串口设备,它硬件上一般有一个叫做latency_timer的定时器,当这个值设为lt时,表示数据会在设备上至少暂存lt 毫秒后再发送,只有在设备缓存写满的情况下才会忽略这个值而立即发送。latency_timer的取值范围一般为1到255之间,一般由设备驱动设置默认值。
ftdi芯片的串口设备,一般默认值会是16毫秒,这在高实时性的场景是无法忍受的,具体详情请阅读这篇帖子

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions