Peppermint | Linux OS Community Forum
 
It is currently Thu Dec 13, 2018 7:09 am

All times are UTC - 5 hours [ DST ]





Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 
Author Message
 Post subject: USB Serial Adapter HowTo (now a tute)
PostPosted: Sat Nov 13, 2010 10:41 pm 
Offline

Joined: Fri Nov 05, 2010 6:39 pm
Posts: 11
Location: Oklahoma
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.


Top
 Profile  
 
 

 Post subject: Re: USB Serial Adapter HowTo
PostPosted: Mon Dec 06, 2010 6:24 pm 
Offline

Joined: Thu Dec 02, 2010 6:24 pm
Posts: 11
Nice write up! As a technical writer, I appreciate that.

Did you ever get those Canon MP620 instructions written up? I'm about to tackle that process myself.


Top
 Profile  
 
 Post subject: Re: USB Serial Adapter HowTo
PostPosted: Mon Dec 06, 2010 7:08 pm 
Offline

Joined: Fri Nov 05, 2010 6:39 pm
Posts: 11
Location: Oklahoma
I do have them written up and have been meaning to post them up but there were no replies to this thread so I was unsure as to how useful they would be. I can try and get them posted up this evening.

I bought an Amazon Kindle recently and have even worked through how to convert documents and such to the Kindle format. Maybe I need to convert the How To's over to kindle format too so you can keep a copy of them on something you can use to refer to.

One problem I have with the Canon MP620 instructions is a place to host the files needed to install the driver. Are there any good, possibly free places to store the files? Something that isnt going to go anywhere anytime soon?


Top
 Profile  
 
 Post subject: Re: USB Serial Adapter HowTo
PostPosted: Mon Dec 06, 2010 7:17 pm 
Offline
User avatar

Joined: Tue May 25, 2010 9:00 am
Posts: 744
Location: Atlanta Ga
Depending on what is involved in getting that to work Kendall may be willing/able to package them and just add them to the peppermint repo instead of worrying about a permanent hosting solution.

_________________
Peppermint Forums Moderator
Asus Eee PC | Pmint2 | Win XP | Arch (Fluxbox)
Toshiba Sat. P15 | Testing Machine
Custom AMD Desktop | Pmint2 64-bit | Win 7
My Site | Google+| Facebook | Twitter: @eng1nerd


Top
 Profile  
 
 Post subject: Re: USB Serial Adapter HowTo
PostPosted: Wed Dec 08, 2010 10:58 am 
Offline

Joined: Mon Jun 07, 2010 2:34 am
Posts: 226
Is a nice write up.
It'd be even nicer if that screen shot was a wee bit smaller so the text would display on smaller screens without having to side scroll :lol:
But seriously, nice how-to


Top
 Profile  
 
 Post subject: Re: USB Serial Adapter HowTo
PostPosted: Wed Dec 08, 2010 11:37 am 
Offline

Joined: Thu Dec 02, 2010 6:24 pm
Posts: 11
depending on how large the file is... can't imagine it would be too big... i'd be glad to host it. I doubt it will eat much bandwidth i have on any of my hosting accounts.

I am struggling to get it working. Funny thing is... I had the MP620 working on Linux Mint in my room. I moved the usb connection that it was connected to, and now it no longer works in Mint either. I tried switching it back to the port that was working, but that doesn't bear fruit either. So, now I have no scanning or printing with any of my Linux machines not just Peppermint. Oh yes... progress! LOL


Top
 Profile  
 
 Post subject: Re: USB Serial Adapter HowTo
PostPosted: Sat Jan 08, 2011 9:07 pm 
Offline
User avatar

Joined: Thu May 20, 2010 8:56 am
Posts: 2132
I have taken the step of transferring this to the tutorial and how to's forum, hardware board. If there are any issues with it, please use this thread. Thanks!

_________________
Admin


Top
 Profile  
 
 Post subject: Re: USB Serial Adapter HowTo
PostPosted: Sat Jan 08, 2011 9:23 pm 
Offline

Joined: Fri Nov 05, 2010 6:39 pm
Posts: 11
Location: Oklahoma
Rich, I tried replying to your PM but was unable to. For the life of me I cannot find a reply button, dont see how to send you a new PM or anything. If you will email/PM me an email address I can send the files to you requested, I will take care of that.

Not sure what Im overlooking but I just dont see a reply button or anything like that in the PM's.


Top
 Profile  
 
 Post subject: Re: USB Serial Adapter HowTo
PostPosted: Sat Jan 08, 2011 11:37 pm 
Offline
User avatar

Joined: Thu May 20, 2010 8:56 am
Posts: 2132
Could you try again? By default new users wouldn't normally be expected to need to PM. In your case we shall try to make an exception. Thank you for your patience.

_________________
Admin


Top
 Profile  
 
 Post subject: Re: USB Serial Adapter HowTo
PostPosted: Sun Jan 09, 2011 12:16 am 
Offline

Joined: Fri Nov 05, 2010 6:39 pm
Posts: 11
Location: Oklahoma
Yes sir, I'll give it a shot again. So far though, not able to send PM's. Perhaps I should be a more active member than I am, LOL.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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