USB转串口CH343驱动
  gcIluVlGdpHJ 2023年11月15日 24 0


背景

在网上用9.9淘的一块ESP32-C3(RISC-V)的小开发板上,用的CH343的USB转串口。
最近打算学习用Rust开发ESP32-C3,在Ubuntu上搭建开发环境的时候发现,Ubuntu20.04上默认使用的是 CDC-ACM 驱动,即生成的节点为/dev/ttyACM0,但是用Rust开发ESP32-C3,需要使用 VCP 驱动,于是在网上找到了官方(WCH-南京沁恒)的一份Linux驱动源码:

里面的文档也说明了使用 CDC-ACM 驱动的一些局限性:

The CDC-ACM driver has limited capabilities to control specific devices. This generic driver does not have any knowledge about specific device protocols. Because of this, device manufacturers can create an alternate, or custom driver that is capable of accessing the device specific function sets, such as hardware flow control or GPIO functions.

到目前为止,这份驱动支持的USB转串口的芯片,挺全挺新的,感觉官方一直在维护:

This driver and application support USB to single serial port chip ch343/ch347/ch9101/ch9102, USB to dual serial ports chip ch342/ch347/ch9103, USB to quad serial ports chip ch344, etc.

。。。。。。 


【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月15日 0

暂无评论

推荐阅读
  qn1eRyGNKz7T   2024年02月27日   162   0   0 Rust
  qn1eRyGNKz7T   2024年02月29日   140   0   0 Rust
  qn1eRyGNKz7T   2024年03月07日   108   0   0 Rust
  qn1eRyGNKz7T   2024年03月19日   205   0   0 Rust
  qn1eRyGNKz7T   2024年02月29日   124   0   0 Rust
  qn1eRyGNKz7T   2024年03月25日   128   0   0 Rust
  qn1eRyGNKz7T   2024年04月01日   269   0   0 Rust
  qn1eRyGNKz7T   2024年03月13日   161   0   0 Rust
  YqbaJkf98QJO   2024年02月20日   85   0   0 Rust
  3Vc6H13Lg7Nk   2024年04月28日   56   0   0 Rust
  qn1eRyGNKz7T   2024年02月23日   124   0   0 Rust
gcIluVlGdpHJ