Peppermint | Linux OS Community Forum
 
It is currently Wed Nov 21, 2018 4:03 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: USB serial adapter how to
PostPosted: Sat Jan 08, 2011 9:05 pm 
Offline
User avatar

Joined: Thu May 20, 2010 8:56 am
Posts: 2132
Class: Hardware installation
Difficulty: A little involved
Time: Can't test, probably well under an hour if everything goes well
Desirability: Probably essential reading if you want to use a USB serial adapter and don't want to do a bunch of research

StormStrikes submitted this how to a while back on how to install a USB serial adapter and it was quite well received in thread. But please note, this mod doesn't have the hardware to actually test this, so use at your own risk -- that means don't expect it to work flawlessly, and don't blame us if it blows up half of Dakota.

I didnt see it specifically covered here so I thought I would post a HowTo on getting a usb to serial adapter to work in Peppermint One. Prior to starting this procedure, plug in your usb-serial adapter.

1. Open a terminal window and type the command 'dmesg | tail'

Result:
Code:
$ dmesg | tail
[ 4938.655344] cdc_acm 6-1:1.0: ttyACM0: USB ACM device
[ 4938.658392] usbcore: registered new interface driver cdc_acm
[ 4938.658398] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
[ 4938.684530] usbcore: registered new interface driver usbserial
[ 4938.684961] USB Serial support registered for generic
[ 4938.685759] usbcore: registered new interface driver usbserial_generic
[ 4938.685764] usbserial: USB Serial Driver core
[ 4938.694647] USB Serial support registered for pl2303
[ 4938.694784] usbcore: registered new interface driver pl2303
[ 4938.694788] pl2303: Prolific PL2303 USB to serial adaptor driver


Notice: [ 4938.694788] pl2303: Prolific PL2303 USB to serial adaptor driver
Look for your usb to serial adapter. It show you how the adapter is registered (the name of the interface driver, in this case 'pl2303'). Make a note of this ID.


2. Type the command 'lsusb'

Result:
Code:
$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 046d:c52b Logitech, Inc.
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 058f:9720 Alcor Micro Corp. USB-Serial Adapter
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 05ca:180c Ricoh Co., Ltd
Bus 001 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. Mass Storage Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Notice: Bus 006 Device 002: ID 058f:9720 Alcor Micro Corp. USB-Serial Adapter
This will show you the vendor and product ID's for the adapter. In this case, we see the vendor ID of 058f and a product ID of 9720.

3. Now that you have the vendor and product ID's, you will have to manually modload the driver.

Type the following (using the above example, yours may be different):

Code:
modprobe pl2303 vendor=0x58f product=0x9720

pl2303 is the name of the interface driver found in step 1.
The vendor and product ID' are taken from the running the 'lsusb' command in step 3.

4. Now type the command 'lsmod | grep pl2303' (or whatever your interface driver name is).

Result:
Code:
$ lsmod | grep pl2303
pl2303                 15740  0
usbserial              33019  1 pl2303


Notice: usbserial 33019 1 pl2303
You will see that the usb-serial adapter is now mapped and loaded.

5. Now type the command 'dmesg | tail'

Result:
Code:
$ dmesg | tail
[ 4938.655344] cdc_acm 6-1:1.0: ttyACM0: USB ACM device
[ 4938.658392] usbcore: registered new interface driver cdc_acm
[ 4938.658398] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
[ 4938.684530] usbcore: registered new interface driver usbserial
[ 4938.684961] USB Serial support registered for generic
[ 4938.685759] usbcore: registered new interface driver usbserial_generic
[ 4938.685764] usbserial: USB Serial Driver core
[ 4938.694647] USB Serial support registered for pl2303
[ 4938.694784] usbcore: registered new interface driver pl2303
[ 4938.694788] pl2303: Prolific PL2303 USB to serial adaptor driver


Notice: [ 4938.655344] cdc_acm 6-1:1.0: ttyACM0: USB ACM device
We are looking for what port the USB-Serial adapter is using or attached to. In this case we see the adapter is attached to port 'ttyACM0'

Now, when using programs such as Putty you can direct the connection to the correct port.

Image

I hope this helps someone out. It took me a bit of google searching to get all the info and until I had this worked out I had to boot to windows and use Hyperterminal and Putty there since I had a windows driver for the adapter. Now I need windows for one less thing. I also got my Canon MP620 printer to work in Peppermint and made up some steps for that that I will be posting soon. I have four laptops all set up, each using Peppermint, three of them dual booting with Windows XP Pro, one of them solely running Peppermint, so I've been able to run through the procedures a few times to make sure they work.

I also made up an OpenOffice document with these instructions if anyone needs it.

_________________
Admin


Top
 Profile  
 
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL