Linux ch340 driver install

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

A One-Stop driver repo for the popular serial chip used on cheap Chinese Arduino clones.

License

DecaturMakers/CH340_drivers-Linux-Mac-Windows

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

CH340 serial chip Drivers for Linux, Mac, and Windows all in one place

A One-Stop driver repo for the popular serial chip used on cheap Chinese Arduino clones.

The CH340G chip is a very popular USB to Serial chip used in Arduino clones because of its low cost. The OEM of this chip is Jiangsu Qinheng Co., Ltd. in the Nanjing Software Valley of China according to SparkFun who builds products that incorporate it.

Читайте также:  Linux ubuntu удалить пакет

SparkFun Serial Basic

Unfortunately, their website, being entirely in Chinese, makes many people nervous. For this reason, there have been many people who have tried to be helpful by hosting a copy of the drivers on a more inviting site. However, that is a dangerous thing to be comfortable with. As a Maker Space that regularly teaches microprocessor hacking to beginners, Decatur Makers has decided to host yet another copy of these drivers. You may or may not trust us as a source, but we didn’t feel safe sending our students elsewhere. We have done (and continue to do) everything in our power to verify and maintain the content of this repo.

The driver for this chip has been in the Linux Kernel for a long time. (Introduced in commit 6ce76104 that was released in Linux Kernel v2.6.24 Jan 24 2008) If your Kernel does not support this chip, you are probably very out of date and have severe vulnerabilities to worry about.

Even though Linux users should never need this, we’re going to put the information here.

  1. Download the zip of this repo and unzip it
  2. Change into the directory that was created
cd CH340_drivers-Linux-Mac-Windows/drivers/linux/ 
  • Source:
    • http://www.wch.cn/download/CH341SER_LINUX_ZIP.html
    • 5ba92d25345872b3aa72321b8b3bff0067b318a7b630087abb4b762e18df9624 ch34x.c
    • a47d44ae25907741a6f4a9b4e5fefd4f522f91159fe418de125b6eee05200681 CH341SER_LINUX.ZIP

    Warning: Installation for macOS is [now] very simple. The internet is littered with links to unsigned drivers and out of date instructions telling you how to [recklessly] disable macOS security features that are in place to protect you from these kinds of things. Do not follow them! (If you have done this in the past, undo it.)

    I really suggest you install using homebrew. If you do not have brew installed, you should install it. It is the most common way to install things on a Mac that don’t come from Apple’s App Store.

    1. Open the Terminal (use Spotlight to find it if you must)
    2. If you do not have homebrew, install it.
    /usr/bin/ruby -e "$(curl -fsSL https://github.com/Homebrew/install/raw/master/install)" 
    brew tap DecaturMakers/CH340_drivers-Linux-Mac-Windows https://github.com/DecaturMakers/CH340_drivers-Linux-Mac-Windows brew cask install wch-ch34x-usb-serial-driver 
    1. Download the zip of this repo and unzip it
    2. In Finder, navigate to CH340_drivers-Linux-Mac-Windows-master/drivers/macos
    3. Open the file CH34x_Install_V1.4.pkg
    4. Follow the instructions in the installer
    • Source:
      • http://www.wch.cn/download/CH341SER_MAC_ZIP.html
      • 032e85afc2dfeaba6e77637718749e3af381892305c2c02c12d1cd2bb3585bc3 CH34x_Install_V1.4.pkg
      • b190f612b833727b2006f362a835f7e97177b580e45cef253e164202106c48eb CH341SER_MAC.ZIP
      1. Download the zip of this repo and unzip it
      2. In Windows Explorer, navigate to CH340_drivers-Linux-Mac-Windows-master/drivers/windows
      3. Run either the 64bit or 32bit SETUP application
      • Source:
        • http://www.wch.cn/download/CH341SER_ZIP.html
        • 543426ce41c8d5fa42aaa9885f8cd6c1132245a9552ee0e842b2993bae6ed224 CH341SER.ZIP

        About

        A One-Stop driver repo for the popular serial chip used on cheap Chinese Arduino clones.

        Источник

        Установка драйверов

        В набор входит “китайская” Ардуино-совместимая плата, у которой для подключения по USB используется контроллер CH340/CH341. Чтобы он распознавался компьютером, нужно установить драйвер.

        Скачать драйвер можно по ссылке:

        Запускаем и в появившемся окошке нажимаем INSTALL. Готово!

        Если во время установки Arduino IDE вы по какой-то причине пропустили установку драйверов, то их можно установить вручную из папки с программой, расположенной по пути

        • C/Program Files/Arduino/drivers (для 32-х разрядной системы)
        • C/Program Files (x86)/Arduino/drivers (для 64-х разрядной системы).
        • dpinst-x86.exe (для 32-х разрядной системы)
        • dpinst-amd64.exe (для 64-х разрядной системы)

        Драйвер CH341 для Mac можно скачать по ссылке с моего сайта , либо со страницы источника . Если у вас будут какие-то проблемы с OSX Sierra и выше, читайте вот эту статью .

        Рекомендация от подписчика – устанавливать версию драйвера v1.4 вот отсюда

        В Linux уже встроен необходимый драйвер, но Arduino IDE может отказаться с ним работать: Linux определяет ардуинку как устройство ttyUSB*, обычно это ttyUSB0 (это можно узнать командой dmesg в терминале), то есть в системе появляется интерфейс /dev/ttyUSB0. Чтобы с ним работать, нужны права доступа. Читать и писать на устройство /dev/ttyUSB0 имеет пользователь root и пользователи группы dialout. Работы с правами суперпользователя лучше избегать, поэтому следует занести своего пользователя в группу dialout. Это можно сделать следующей командой (обратите внимание, команда whoami в обратных кавычках)

        sudo usermod -a -G dialout `whoami`

        После этого нужно перелогиниться. Дальше запускаем Arduino IDE и в меню «Инструменты/Порт» ставим галочку напротив /dev/ttyUSB0.

        Вся информация по работе с IDE на данной ОСи есть вот в этой статье

        Драйвер FT232

        На Wemos Mini в некоторых партиях (003) стоит преобразователь FT232. Для него нужен отдельный драйвер:

        Скачать, распаковать архив и установить. Wemos отобразится как USB Serial Converter

        Источник

        Saved searches

        Use saved searches to filter your results more quickly

        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

        CH340/CH341 Driver for Linux

        gorgiaxx/CH34x-Driver-Linux

        This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

        Name already in use

        A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

        Sign In Required

        Please sign in to use Codespaces.

        Launching GitHub Desktop

        If nothing happens, download GitHub Desktop and try again.

        Launching GitHub Desktop

        If nothing happens, download GitHub Desktop and try again.

        Launching Xcode

        If nothing happens, download Xcode and try again.

        Launching Visual Studio Code

        Your codespace will open once ready.

        There was a problem preparing your codespace, please try again.

        Latest commit

        Git stats

        Files

        Failed to load latest commit information.

        README.md

        • Please run followed executable programs as root privilege
        • Current Driver support versions of linux kernel range from 2.6.25 to 4.13.x
        • Current Driver support 32-bits and 64-bits linux systems
        • 1.1 modified to solve transmition between ch341 and ch341
        • 1.2 Support high Linux kernel
        • 1.3 Fix gibberish bug
        • 1.4 Support high Linux kernel

        Build CH34x driver module

        load or unload linux driver of CH34x

        Check the usbserial modules your system loaded.

        > lsmod | grep ch34 ch341 16384 0 ch34x 20480 0 usbserial 53248 2 ch34x,ch341 usbcore 282624 12 uvcvideo,usbhid,usb_storage,ehci_hcd,usbserial,ch34x,xhci_pci,btusb,uas,ch341,xhci_hcd,ehci_pci

        Remove the old version CH341 module. And reconnect the CH341 UART Convertor to your PC.

        Источник

Оцените статью
Adblock
detector