2017/03/06

Enabling RS232 to USB Adapter on LINUX

Device: ATEN RS232 to USB Adapter
OS: Kali Rolling x64

1. Connect the cable via USB, then type in terminal:


:~$ lsusb
Bus 002 Device 008: ID 0557:2008 ATEN International Co., Ltd UC-232A Serial Port [pl2303]
Bus 002 Device 003: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP)
Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
this command is to show list of USB devices connected to host-machine. highlighted is the one I'm gonna use.



2. load kernel module to register the device. see the highlighted numbers.

:~$ sudo modprobe usbserial vendor=0x0557 product=0x2008


3. See that the device is now attached and ready to use.

:~$ sudo dmesg

.. (append results) ..
[ 7410.571095] usb 2-1.2: Product: USB-Serial Controller D
[ 7410.571097] usb 2-1.2: Manufacturer: Prolific Technology Inc.
[ 7410.571682] pl2303 2-1.2:1.0: pl2303 converter detected
[ 7410.573881] usb 2-1.2: pl2303 converter now attached to ttyUSB0
 my device can now be accessed from /dev/ttyUSB0


4. Connect with any apps you're familiar with. i'm using putty.

:~$ sudo apt-get install putty

Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  putty-tools
Suggested packages:
  putty-doc
The following NEW packages will be installed:
  putty putty-tools
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 677 kB of archives.
After this operation, 2,708 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 putty-tools amd64 0.67-2 [347 kB]
Get:2 http://ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 putty amd64 0.67-2 [329 kB]
Fetched 677 kB in 8s (77.0 kB/s)
Selecting previously unselected package putty-tools.
(Reading database ... 317548 files and directories currently installed.)
Preparing to unpack .../putty-tools_0.67-2_amd64.deb ...
Unpacking putty-tools (0.67-2) ...
Selecting previously unselected package putty.
Preparing to unpack .../putty_0.67-2_amd64.deb ...
Unpacking putty (0.67-2) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for menu (2.1.47) ...
Setting up putty-tools (0.67-2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-8) ...
Setting up putty (0.67-2) ...
Processing triggers for menu (2.1.47) ...

:~$ sudo putty


# this is one of my serial connected device:


good-luck..

No comments:

Post a Comment