WCHSoftGroup / ch9344ser_linux

29 stars 13 forks source link

ch9344 linux serial driver

Description

This driver supports USB to quad serial ports chip ch9344 and USB to octal serial ports chip ch348.

  1. Open "Terminal"
  2. Switch to "driver" directory
  3. Compile the driver using "make", you will see the module "ch9344.ko" if successful
  4. Type "sudo make load" or "sudo insmod ch9344.ko" to load the driver dynamically
  5. Type "sudo make unload" or "sudo rmmod ch9344.ko" to unload the driver
  6. Type "sudo make install" to make the driver work permanently
  7. Type "sudo make uninstall" to remove the driver
  8. You can refer to the link below to acquire uart application, you can use gcc or Cross-compile with cross-gcc https://github.com/WCHSoftGroup/tty_uart

Before the driver works, you should make sure that the usb device has been plugged in and is working properly, you can use shell command "lsusb" or "dmesg" to confirm that, USB VID of these devices are [1A86], you can view all IDs from the id table which defined in "ch9344.c".

If the device works well, the driver will created tty devices named "ttyCH9344USBx" in /dev directory.

Note

Any question, you can send feedback to mail: tech@wch.cn