- Prolific PL2303, Linux Mint и minicom (любой терминал в принципе)
- How do I connect to a serial device using a USB-to-Serial Convertor in Linux ?
- Steps
- Prolific usb to serial comm port linux
- ОБОРУДОВАНИЕ ТЕХНОЛОГИИ РАЗРАБОТКИ
- Блог технической поддержки моих разработок
- Установка драйвера моста USB-UART PL2303.
- USB-Serial Port adapter (RS-232) in Ubuntu Linux
- USB to RS 232 driver Linux
- Other Issues:
Prolific PL2303, Linux Mint и minicom (любой терминал в принципе)
Имеется usb ttl переходник от фирмы cablexpert, и он категорически не хочет работать (в шЫнде хоть эхо дает, но потом вешает наглухо гипертерминал и putty). Вроде адекватно определяется:
возьми лупу и пройдись зорким глазом по дорожкам и пайке. у меня такой сх340 приехал, неделю с китайцем бодался на замену. а причина после вскрытия термоусадки оказалась банальной — со стороны юсб припоя практически нет, зато со стороны контактов — сопля через все контакты
если визуально все ок — попробуй пропаять ноги кварца, не перегрей только
Корпус монолитный пластик к сожалению — если начать разбирать, то догробится, плюс не моя железка, взял на выезд у знакомого. А что за ошибки то лезут, вот в чем вопрос.
А нет, не монолит — вскрыл таки, вот только провода пропаяны, но на плате из корпуса с надписью cablexpert вышла плата с маркировкой gembird)
[288088.946594] pl2303 5-2:1.0: pl2303_vendor_write — failed to write [0008]: -71
Error codes like -EPROTO, -EILSEQ and -EOVERFLOW normally indicate hardware problems such as bad devices (including firmware) or cables.
А в итоге то как лечить? Кстати в форточке поднялся, работает. Под пингвином продолжает тупить.
В арче (4.15.12-1-zen) работает:
Новых сообщений в dmesg не появляется. Сейчас ещё в мяту загружусь и проверю.
В мяте (18.2 ядро 4.11.0-14-generic) точно также работает
И нового ничего не появляется при работе minicom’а.
p.s.: а, ну, единственное в арче пользователь в группе uucp, а под мятой — нет. Там запускал от рута, иначе не могло получить доступ к ttyUSB0
везде работает, только у него контроллер скорей всего другой ревизии
Дак при втыкании (читай внимательно начало темы) выдает так же все, при попытке работать терминалом через него, тогда и сыпет в dmesg. У тебя в минте ядро обновленное? У этого пк еще микрокоды на интел подключены.
Новых сообщений в dmesg не появляется.
И нового ничего не появляется при работе minicom’а.
читай внимательно
Версии ядер есть в сообщениях.
У этого пк еще микрокоды на интел подключены.
Вряд ли влияет. Могу проверить в арче на kaby lake с обновлениями, но что-то мне подсказывает, что будет работать без проблем.
У меня китайский адаптер. Есть ещё на ch341, тоже вроде работает. Пробуй в другой комп воткнуть, если уж даже в винде у тебя не пашет.
Источник
How do I connect to a serial device using a USB-to-Serial Convertor in Linux ?
For years, I had ran my Prolific USB to Serial cable from my Windows 32bit laptop without any issues.
Unfortunately, life when running Windows is never easy. After upgrading Windows 7 to 64bit I tried to install the drivers from CNET downloads.
This was a HUGE mistake. Even though the CNET downloader told me it was downloading at 28K in the background it was installing 8 (yes 8 plugins and other useless crap) onto all my browsers. Finally after cleaning up my machine and finding the drivers from a source not intent in filling my machine full of rubbish I discovered that the drivers fail to work correctly for Windows 7 64bit based platforms. Back to square 1.
After wasting 2 hours trying to get this working in Windows I powered up Linux Mint. Loaded the necessary kernel module and tested. Success ! All in all 20 minutes taken. So high five to Linux and I certainly wont be using CNET downloads again !
So what are the steps ?
Steps
Connect the cable via USB.
Then load the kernel module via the following command. Note : To ensure this survives a reboot append this line to ‘/etc/modules’
You should now see that it is now showing as attached by running ‘dmesg’.
Finally, you will need to connect through to serial device /dev/ttyUSB0. This easiest way to do this is via ‘minicom’. Once you have issued the following command it will present you with a menu. Change (within the ‘serial port setup’ option) the service device to /dev/ttyUSB0 and any other settings i.e baud rate etc. Then select the exit option and you be connected to your serial device.
Источник
Prolific usb to serial comm port linux
System Requirement:
. USB 1.1/2.0/3.0 Host Controller
. Device using PL2303HXA/XA/HXD/EA/RA/SA/TA/TB version chips
. Supports the following Windows OS Family:
— Windows 2000 SP4
— Windows XP SP2 and above (32 & 64 bit)
— Windows Server 2003 (32 & 64 bit)
— Windows Vista (32 & 64 bit)
— Windows 7 (32 & 64 bit)
— Windows Server 2008 / 2008 R2 (32 & 64 bit)
— Windows 8 (32 & 64 bit)
— Windows 8.1 (32 & 64 bit)
— Windows Server 2012
NOTE:
— Windows 8 and above OS are NOT supported in PL2303HXA/XA EOL chip versions (discontinued).
— Download latest PL2303 CheckChipVersion tool program to check chip version in Windows 7.
— Windows 98 and ME driver support are discontinued.
Supported device ID and product strings: . VID_067B&PID_2303 for ‘Prolific USB-to-Serial Comm Port’ (PL2303 series) . VID_067B&PID_2304 for ‘Prolific USB-to-Serial Comm Port’ (PL2303TB chip)
Driver Versions: ——————- — Windows 2000/XP/Server2003 (32 & 64-bit) WDM WHQL Driver: v2.1.51.238 (10/22/2013) — Windows Vista/7/Server2008 (32 & 64-bit) WDF WHQL Driver: v3.4.62.293 (10/17/2013)
Release Notes: ————— PL2303 Driver Installer v1.9.0 Installer & Build date: 1.9.0 (2013-10-25) GUID:ECC3713C-08A4-40E3-95F1-7D0704F1CE5E
Submitted By: Fdrsoft (admin) File Size: 2.20Mo Downloads: 9451 File Version: Version 1.9.0 File Author: Fdrsoft Submitted On: 17 Mar 2014 Rating:
Источник
ОБОРУДОВАНИЕ
ТЕХНОЛОГИИ
РАЗРАБОТКИ
Блог технической поддержки моих разработок
Установка драйвера моста USB-UART PL2303.
Микросхема PL2303 компании Prolific Technology это преобразователь интерфейса USB в UART. Используется для подключения устройств с интерфейсами UART, RS232, COM к интерфейсу USB. На базе этой микросхемы выпускают модули PL2303 USB UART Board.
Модули крайне удобные в применении. Разъем USB модуля подключается через стандартный кабель к USB интерфейсу компьютера. А к 4х контактному штыревому разъему подсоединяется UART устройство.
На компьютер необходимо установить драйвер. После этого, при каждом подключении модуля PL2303 к компьютеру, будет формироваться виртуальный COM порт.
Теперь любая программа для управления устройством через COM работает с виртуальным портом, не подозревая об этом. Т.е. в системе появляется COM порт, физически размещенный вне компьютера!
Я часто использую модули PL2303 для подключения микроконтроллеров не только к персональным компьютерам, но и к Андроид совместимым планшетам и сотовым телефонам.
Для пользователей моих разработок привожу подробную инструкцию по установке драйвера PL2303 USB.
Установка драйвера для модуля PL2303 под Windows 7.
На этом этапе установки не подключайте модуль к компьютеру!
Разработчики обещают, что он поддерживает:
- Windows XP SP2 and above (32 bit)
- Windows Vista (32 & 64 bit)
- Windows 7 (32 & 64 bit)
- Windows 8/8.1/10 (32 & 64 bit).
Для установки надо запустить программу инсталляции драйвера. Запустить можно непосредственно отсюда, или предварительно скопировав файл на компьютер.
Откроется мастер установки драйвера.
Нажимаете Next.
Принимаете лицензионное соглашение. Next.
Давите Finish.
Теперь подключите кабель модуля к USB интерфейсу.
Система обнаруживает новое устройство. Появляется сообщение.
Щелкните по сообщению мышью.
Пропустить загрузку драйвера из центра обновления Windows. Все равно ничего не найдет.
Давите Да.
Проверка установки драйвера.
Теперь необходимо проверить, правильно ли установился драйвер и, при необходимости, поменять номер порта.
Пуск → Панель управления → Система → Диспетчер устройств
Два щелчка правой кнопки мыши по Порты (COM и LPT)
Появилась строчка Prolific USB-to-Serial Comm Port (COM3). Это и есть наш виртуальный порт с номером 3.
Если в этом есть необходимость, номер можно поменять.
Два щелчка правой кнопкой мыши по Prolific USB-to-Serial Comm Port (COM3).
Параметры порта.
Дополнительно.
Выбираем через поле Номер COM порта.
Необходимо помнить, что если к компьютеру будет подключен другой модуль или тот же модуль будет подключен к другому USB порту, система может определить виртуальный порт с другим номером. В этом случае обязательно дождитесь установки нового виртуального COM.
Где купить модуль PL2303?
У меня однозначное мнение – в этом интернет магазине. Не потому, что это моя партнерская программа. Просто таких цен я не видел нигде.
В августе 2016 года:
- Модуль PL2303 USB-UART стоит 80 руб.!
- Мост USB-UART на микросхеме CH340 по цене 90 руб.!
- Цена модулей на микросхеме CP2102 180 руб!
- Есть вариант преобразователя USB-UART PL2303 встроенного в кабель. Цена 170 руб.!
Источник
USB-Serial Port adapter (RS-232) in Ubuntu Linux
There are two other articles on a serial port adapter for Windows. Below is the instructions for Linux and how to connect your serial adapter while using Linux. This should work for most people using Linux and a serial adapter or usb to rs232 driver which is being discussed.
USB to RS 232 driver Linux
1. Log into Linux under the root account;
2. Plug the USB-Serial adapter into the computer;
3. Give it a minute to discover the USB-Serial adpater;
4. Type in this command dmesg
5. The dmesg command will echo back the most recent few lines of the system message console, and you should see something like this:
- usb 2.0: new full speed USB device using uhci and address 2
- usb 2.0: configuration #1 chosen from 1 choice
6. Unplug the USB-Serial adapter to see a list of USB devices without it being plugged in.
7. Type this command to list the USB devices: lsusb
8. You should see a list of USB devices that looks like this:
- Bus 001 Device 001: ID 0000:0000
- Bus 002 Device 007: ID 03f0:4f11 Hewlett-Packard
- Bus 002 Device 006: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
- Bus 002 Device 004: ID 15d9:0a33 Logitec-mouse
9. Then plug the USB into our device Then use the lsusb command again and observe the changes
- Bus 001 Device 001: ID 0000:0000
- Bus 002 Device 007: ID 03f0:4f11 Hewlett-Packard
- Bus 002 Device 003: ID 018a:3754 Unknown device
- Bus 002 Device 006: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
- Bus 002 Device 004: ID 15d9:0a33 Logitec-mouse
10. Determine the vendor ID and the product ID by inspecting this additional line. In this example they are 018a and 3754. For a Trip•Lite USB-Serial adapter, they are 2303 and 067B. In this example it is a Minicom USB-Serial device. The first numbers identifies the vendor and the second numbers identifies the product.
11. Now use the following command to load the kernel module called usb serial and pass the vendor and product ID values to it. The driver can then associate itself with the correct hardware device on the USB bus.
- sudo modprobe usbserial vendor=018a product=3754
12. Now c heck whether the new Serial Port device is available
- sudo dmesg | grep ttyUSB
13. You should now see something like this
- usbserial_generic 1-1:1.0: generic converter detected
- usb 1-1: generic converter now attached to ttyUSB0
- usbcore: registered new interface driver usbserial_generic
14. This tells you that the serial device has now been mapped to the /dev/ttyUSBO serial port
15. Now we want to list the devices under the /dev/ path to see if the interface is visible with this command:
18. Instruct Ubuntu to load this module automatically by including the following line in the /etc/modules file. Substitute your own vendor and product ID if they are different.
- usbserial vendor=018a product=3754
That should be about it however if you have not installed the driver then you would have to install it now. If you are installing a Minicom serial device then you would do the following:
- sudo apt-get install minicom
- sudo minicom -s
Press A and then edit to / dev / ttyUSB 0 ( this value, see dmesg | grep ttyUSB )
Press E and then edit to 9600 8N1
Press F and the value will change from Yes to No
Once set up and finish off mode serial port setup.
Save setup as df1 finished off. Settings by Exit from Minicom
Other Issues:
This is for Ubuntu Linux for Red Hat the drivers should be in your OS however TrippLite does have Red Hat drivers on their website if you do not have them on your system.
If you are trying to connect a Zigbee through this serial port you can do the following:
Make a symbolic link between ttyUSB0 and com2 by typing in terminal: (assuming you are using com2)
- ln -s /dev/ttyUSB0 /home/your_home/.wine/dosdevices/com2
Источник