Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Commit

Permalink
Update Linux Driver
Browse files Browse the repository at this point in the history
  • Loading branch information
JacquesVonHamsterviel committed Nov 10, 2022
1 parent 962cf3e commit 8fe9b36
Show file tree
Hide file tree
Showing 8 changed files with 1,914 additions and 1,372 deletions.
Binary file removed drivers/CH341SER_LINUX.zip
Binary file not shown.
15 changes: 0 additions & 15 deletions drivers/CH341SER_LINUX/Makefile

This file was deleted.

22 changes: 22 additions & 0 deletions drivers/CH341SER_LINUX/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# ch341 linux serial driver
## Description

​ USB serial driver for USB to UART chip ch340, ch341, etc. In fact Linux mainline kernels have built-in ch341 serial driver since kernel version 2.6.24. The location is: drivers/usb/serial/ch341.c, it's a pity that the built-in driver cannot be kept up to date. We suggest our customers use this driver.

1. Open "Terminal"
2. Switch to "driver" directory
3. Compile the driver using "make", you will see the module "ch341.ko" if successful
4. Type "sudo make load" or "sudo insmod ch341.ko" to load the driver dynamically
5. Type "sudo make unload" or "sudo rmmod ch341.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 "ch341.c".

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

## Note

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

0 comments on commit 8fe9b36

Please sign in to comment.