Skip to content

Commit 6019f1d

Browse files
updated drivers and README
1 parent b5adc65 commit 6019f1d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2360
-1405
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/arduino-usb-drivers.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Arduino USB Drivers
1+
# Arduino USB Drivers for CH340 & CH341
22
<!-- vscode-markdown-toc -->
33
* [Summary](#Summary)
44
* [Sources](#Sources)
@@ -11,14 +11,14 @@
1111

1212
## <a name='Summary'></a>Summary
1313

14-
The CH340 and CH341 USB controllers are commonly found on 3rd party Arduinos. To use them with the Arduino IDE or CLI, you need to install extra drivers.
14+
The CH340 and CH341 USB controllers are commonly found on 3rd party Arduinos. To use them with the Arduino IDE or CLI, you need to install these drivers.
1515

16-
This repo contains the drivers for Linux, macOS, and Windows. Download the repo and follow the instructions in the corresponding folder. If you have a previously installed a version of these drivers, you will likely need to uninstall them before installing the new drivers.
16+
Download the repo and follow the instructions in the appropriate folder. If you have a previously installed a version of these drivers, you'll likely need to uninstall them before installing the new drivers.
1717

1818
## <a name='Sources'></a>Sources
1919

20-
| OS | Source URL |
21-
|---------|-----------------------------------------------------|
22-
| Linux | http://www.wch.cn/downloads/CH341SER_LINUX_ZIP.html |
23-
| macOS | http://www.wch.cn/downloads/CH341SER_MAC_ZIP.html |
24-
| Windows | http://www.wch.cn/download/CH341SER_EXE.html |
20+
| OS | Source URL |
21+
|---------|-----------------------------------------------------------|
22+
| Linux | https://www.wch-ic.com/downloads/CH341SER_LINUX_ZIP.html |
23+
| macOS | https://www.wch-ic.com/downloads/CH341SER_MAC_ZIP.html |
24+
| Windows | https://www.wch-ic.com/downloads/CH341SER_ZIP.html |

linux/Makefile

Lines changed: 0 additions & 15 deletions
This file was deleted.

linux/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# ch341 linux serial driver
2+
## Description
3+
4+
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 to use this driver.
5+
6+
1. Open "Terminal"
7+
2. Switch to "driver" directory
8+
3. Compile the driver using "make", you will see the module "ch341.ko" if successful
9+
4. Type "sudo make load" or "sudo insmod ch341.ko" to load the driver dynamically
10+
5. Type "sudo make unload" or "sudo rmmod ch341.ko" to unload the driver
11+
6. Type "sudo make install" to make the driver work permanently
12+
7. Type "sudo make uninstall" to remove the driver
13+
8. You can refer to the link below to acquire uart application, you can use gcc or Cross-compile with cross-gcc
14+
https://github.com/WCHSoftGroup/tty_uart
15+
16+
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".
17+
18+
If the device works well, the driver will created tty devices named "ttyCH341USBx" in /dev directory.
19+
20+
## Note
21+
22+
Any question, you can send feedback to mail: tech@wch.cn

linux/README.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)