Ver Feed RSS

ederamboni

Configurando Adaptador Usb x Serial Debian

Avalie este Post de Blog
Ola Pessoal, depois de muito tempo estou postando o procedimento para funcionar um adaptador USBxSerial(com) no meu linux(Debian serve para familia dos TU's, Ubuntu, Xubuntu, Kubuntu etc...).

Vamos ao procedimento.

primeiro localize as informações necessarias do dispositivo.

root@Ederson-Linux:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 002 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port

No meu caso a linha em vermelho
agora mude o seguinte parametro conforme as informações apresentadas no comando anterior

root@Ederson-Linux:~# modprobe usbserial vendor=0x067b product=0x2303

com o comando abaixo recebi as informações do meu adaptador, somente colei as informações necessarias mas ele apresenta de todo o hardware.

root@Ederson-Linux:~# dmesg

[ 822.392251] usb 2-1.2: new full speed USB device number 3 using ehci_hcd
[ 822.592530] usbcore: registered new interface driver usbserial
[ 822.592547] USB Serial support registered for generic
[ 822.592590] usbcore: registered new interface driver usbserial_generic
[ 822.592594] usbserial: USB Serial Driver core
[ 822.598615] USB Serial support registered for pl2303
[ 822.598656] pl2303 2-1.2:1.0: pl2303 converter detected
[ 822.600741] usb 2-1.2: pl2303 converter now attached to ttyUSB0
[ 822.600778] usbcore: registered new interface driver pl2303
[ 822.600784] pl2303: Prolific PL2303 USB to serial adaptor driver
[ 1019.729517] udevd[3157]: starting version 173
[ 1175.602788] usb 2-1.2: USB disconnect, device number 3
[ 1175.603122] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 1175.603155] pl2303 2-1.2:1.0: device disconnected
[ 1178.202805] usb 1-1.1: new full speed USB device number 4 using ehci_hcd
[ 1178.297009] pl2303 1-1.1:1.0: pl2303 converter detected
[ 1178.298913] usb 1-1.1: pl2303 converter now attached to ttyUSB0
[ 1192.827337] usb 1-1.1: USB disconnect, device number 4
[ 1192.827518] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 1192.827533] pl2303 1-1.1:1.0: device disconnected
[ 1197.816841] usb 2-1.2: new full speed USB device number 4 using ehci_hcd
[ 1197.910628] pl2303 2-1.2:1.0: pl2303 converter detected
[ 1197.912424] usb 2-1.2: pl2303 converter now attached to ttyUSB0
[ 1647.210009] usb 2-1.2: USB disconnect, device number 4
[ 1647.210221] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 1647.210236] pl2303 2-1.2:1.0: device disconnected
[ 1651.910048] usb 2-1.2: new full speed USB device number 5 using ehci_hcd
[ 1652.003532] pl2303 2-1.2:1.0: pl2303 converter detected
[ 1652.005332] usb 2-1.2: pl2303 converter now attached to ttyUSB0

Então criei um link simbolico para o wine operar como COM1.

root@Ederson-Linux:~# ln -s /dev/ttyUSB0 /home/SUA_PASTA/.wine/dosdevices/com1

Depois de feito o procedimento e so utilizar, eu uso com o Putty for Win, pois seto o rate na hora como uso em Switchs muito e Mikrotik então há uma variação nas velocidades.


Espero ter ajudado, e qualquer duvida postem que na medida do possivel estou respondendo.

Executei o procedimento analizando varios foruns na Rede.

Att
Ederson Amboni
Analista de Rede
Klisa Telecom
Categorias
Não Categorizado

Comentários


+ Enviar Comentário