Prolific technology inc pl2303 serial port linux

Linux Mint Forums

Configuration of Prolific PL2303 USB — Serial adapter

Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Configuration of Prolific PL2303 USB — Serial adapter

Post by ki7ay » Thu Oct 08, 2015 10:55 pm

I have a Prolific USB to Serial adaptor and would like to be able to read and/or set the serial parameters. I have added the line to /etc/modules so the drivers load and the device is assigned to /ttyUSB0, but I’ve no clue how to read the settings. Also added myself to the dialup group.

Thanks guys. I want to use the adaptor for CAT and PTT on an FT-817nd radio so I can control it from FL-Digi (Hamspeak, sorry).

Thanks! Jim Darrough
Springfield OR
KI7AY

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

kukamuumuka Level 16
Posts: 6705 Joined: Tue Sep 03, 2013 4:51 am Location: Finland Contact:

Re: Configuration of Prolific PL2303 USB — Serial adapter

Post by kukamuumuka » Fri Oct 09, 2015 2:04 pm

Open source drivers are included in Linux kernels 2.6.11 and later. These have support for the Prolific 2303 chipset, and recognize the plug and play IDs of the Plugable adapter.

setserial is a program designed to set and/or report the configuration information associated with a serial port. This information includes what I/O port and IRQ a particular serial port is using, and whether or not the break key should be interpreted as the Secure Attention Key, and so on.

Источник

USB-to-UART PL2303HX. Установка драйверов на Linux, Windows, Mac OS

Большинство отладочных плат Arduino имеют встроенный USB-to-Serial преобразователь. Но как запрограммировать Arduino pro mini, Arduino pro и другие отладочные платы, которые не оснащены USB-to-Serial конверторами? Тут нам поможет USB-to-UART преобразователь на микросхеме PL2303HX.

Читайте также:  Изменить время создания папки linux

 USB-to-UART преобразователь на микросхеме PL2303HX

PL2303HX – это небольшой USB-Serial конвертер со встроенным приемопередатчиком RS232 (интерфейс UART). Микросхема создает на компьютере виртуальный COM — порт, через который можно прошить микроконтроллеры, а так же восстанавливать роутеры, приставки.

PL2303HX – это небольшой USB-Serial конвертер со встроенным приемопередатчиком RS232

Технические параметры

  • Напряжение питания: 5В (от USB)
  • Интерфейс 1: USB
  • Интерфейс 2: TTL (от 0 до 5, Rx и Tx)
  • Выходное напряжение, В: 3.3 и 5 (отдельные выводы)
  • Размеры: 50мм x 15мм x 8мм
  • Поддержка операционных систем: Linux, Mac OS, Windows XP / 7 / 8 / 8.1 / 10.

Назначение светодиодов:

  • P (Power) — питание (горит постоянно).
  • R (RxD) — принимаемые данные.
  • T (TxD) — передаваемые данные.

Из электрической схемы видно, что питание на вывод +5В идёт напрямую с USB порта, без защитных элементов, а питание на вывод +3.3 В. идёт с внутреннего стабилизатора PL-2303

Из электрической схемы видно, что питание на вывод +5В идёт напрямую с USB порта, без защитных элементов, а питание на вывод +3.3 В. идёт с внутреннего стабилизатора PL-2303, который может выдержать ток до 150 мА.

Установка драйверов USB-to-UART TTL на PL2303HX.

При работе в операционной системе Linux Mint все работало без установки и дополнительной настройки. По моему опыту работать с Микроконтроллерами лучше в операционной системе Linux, но это мое мнение.

Установка драйверов PL2303HX на Windows 7, 8 и 10.

Фирма Prolific в октябре 2012 года, прекратила производство и поддержку микросхем UART PL2303X (Chip Rev A) и PL2303X HX (Chip Rev A), взамен начала производить микросхемы PL2303TA. Но и сейчас, можно купить преобразователь на микросхеме PL-2303HX (с поддельным чипом). При использовании ОС Windows 7 / 8 / 8.1 /10, для подключенного устройства автоматически скачивается последняя версия драйвера, в которой нет поддержки этих чипов, а в диспетчере устройств будет показан желтый знак с кодом ошибки 10.

При использовании ОС Windows 7 / 8 / 8.1 /10

Методом проб и ошибок выяснил, чтобы преобразователь полноценно работал в Windows 7 / 8 / 8.1 /10 необходимо установить старый драйвер v. 1.5.0 (10.21.2011). Скачать драйвер можно внизу статьи в разделе «Файлы для скачивания».

И так, приступим к установке драйвера. Для этого зайдем в «Диспетчер задач». Как видим, устройство отображается с ошибкой. И версия драйвера 17.10.2013.

приступим к установке драйвера

Для устранения данной ошибки достаточно установить драйвер v. 1.5.0, скачать который можно внизу статьи в разделе «Файлы для скачивания».

Для устранения данной ошибки достаточно установить драйвер v. 1.5.0

После установки нажимаем на устройство правой кнопкой мыши и выбираем пункт меню «Обновить драйвер».

При использовании ОС Windows 7 / 8 / 8.1 /10

Затем выбираем «Выбрать драйвер из доступных драйверов на компьютере».

Затем выбираем «Выбрать драйвер из доступных драйверов на компьютере».

Откроется список доступных драйверов.

Откроется список доступных драйверов.

Как видно из списка, установлены драйвера более ранней версии, но положительного результата это не принесло. Поэтому выбираем из списка драйвер v. 1.5.0 (10.21.2011).

Читайте также:  Red hat enterprise linux сертификат

После данных манипуляций вы увидите, что ошибки в диспетчере устройств больше нет.

Можно прошивать Arduino или другое устройство.

Можно прошивать Arduino или другое устройство.

Установка драйвера PL2303HX на Mac OS.

Mac OS не пользуюсь, поэтому рассказать, как установить не смогу. Но есть инструкция на английском языке. Драйвер и инструкцию можете скачать в разделе «Файлы для скачивания».

Понравилась статья USB-to-UART TTL на PL2303HX. Установка драйверов на Linux, Windows 8/10, Mac OS? Не забудь поделиться с друзьями в соц. сетях.

А также подписаться на наш канал на YouTube, вступить в группу Вконтакте, в группу на Facebook.

Спасибо за внимание!

Технологии начинаются с простого!

Источник

PL2303/PL2303X USB-Serial driver

OS: Linux Mint 19 Tara (also tested on Ubuntu 18.04 LTS and Ubuntu 14.04 LTS) Kernel: 4.15.0-20-generic I have a USB-Serial adapter with the PL2303X chip to connect hardware to a Linux host. The device appears connected via lsusb , however I cannot send and receive data. I’ve tried sending/receiving data using moserial and putty ; when attempting to send commands, no response data is returned and I notice no changes in dmesg or /var/log/syslog . The same USB-Serial adapter connects and works on the same Dell laptop model with Windows 10; on Windows it can receive commands and return data configured with the port settings below. I’d like to use the following port settings, though I’ve tried variations of the following to no avail using moserial and putty (i.e. no parity, different baud rates, hardware/software handshaking, etc.):

Device: /dev/ttyUSB0 (permissions 666, $USER added to `dialout` group) Baud rate: 9600 Data bits: 8 Stop bits: 1 Parity: Even Handshake: none Access mode: read and write 

Windows also works with changing the above settings (i.e. no parity, 7 data bits, lower/higher baud rate, etc.). I need to be able to send commands and receive data similar to how the device works using Windows, preferably with the above port settings. Any ideas on how to fix or debug this? I appreciate it. More info: lsusb output identifies the device as Bus 001 Device 016: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Based on

$ lsusb -v -d 067b:2303 bMaxPacketSize0 64 

I believe the adapter has the PL2303X chip instead of PL2303 (source: PL2303 & Pl2303x usb serial device). I notice messages «not an MTP device» and «unhandled action ‘bind'» in /var/log/syslog :

kernel: [ 7436.378438] usb 1-2: new full-speed USB device number 18 using xhci_hcd kernel: [ 7436.528244] usb 1-2: New USB device found, idVendor=067b, idProduct=2303 kernel: [ 7436.528250] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 kernel: [ 7436.528253] usb 1-2: Product: USB-Serial Controller kernel: [ 7436.528256] usb 1-2: Manufacturer: Prolific Technology Inc. kernel: [ 7436.529219] pl2303 1-2:1.0: pl2303 converter detected kernel: [ 7436.530024] usb 1-2: pl2303 converter now attached to ttyUSB0 mtp-probe: checking bus 1, device 18: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" mtp-probe: bus: 1, device: 18 was not an MTP device upowerd[1238]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0 upowerd[1238]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2 

I found an old patch in Linux kernel module patch for Prolific PL-2303X USB-serial adapter, though it mentions the main kernel tree includes PL-2303X support starting from 2.6.8.

$ lsusb -v -d 067b:2303 Bus 001 Device 018: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x067b Prolific Technology, Inc. idProduct 0x2303 PL2303 Serial Port bcdDevice 3.00 iManufacturer 1 iProduct 2 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 39 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x000a 1x 10 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 
[ 7436.378438] usb 1-2: new full-speed USB device number 18 using xhci_hcd [ 7436.528244] usb 1-2: New USB device found, idVendor=067b, idProduct=2303 [ 7436.528250] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 7436.528253] usb 1-2: Product: USB-Serial Controller [ 7436.528256] usb 1-2: Manufacturer: Prolific Technology Inc. [ 7436.529219] pl2303 1-2:1.0: pl2303 converter detected [ 7436.530024] usb 1-2: pl2303 converter now attached to ttyUSB0 
[ 1382.828306] usb 1-2: new full-speed USB device number 6 using xhci_hcd [ 1382.977353] usb 1-2: New USB device found, idVendor=067b, idProduct=2303 [ 1382.977357] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1382.977360] usb 1-2: Product: USB-Serial Controller [ 1382.977363] usb 1-2: Manufacturer: Prolific Technology Inc. [ 1382.978125] pl2303 1-2:1.0: pl2303 converter detected [ 1382.978753] usb 1-2: pl2303 converter now attached to ttyUSB0 [ 1481.678435] usb 1-2: USB disconnect, device number 6 [ 1481.678645] pl2303 ttyUSB0: error sending break = -19 [ 1481.678821] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0 [ 1481.678859] pl2303 1-2:1.0: device disconnected 

Источник

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