LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Thread Tools
Old 05-23-2008, 12:49 AM   #1
Misbah Naveed
Member
 
Registered: Oct 2007
Posts: 41
Thanked: 0
pl2303 driver


[Log in to get rid of this advertisement]
Hi
I have RHEL4 with kernel-2.6. I have a USB to serial convertor FT232R.this cable is sending data to a device used for temperature sensing.it is working well in windows.i have to make its interface and working in linux with kernel-2.6.RHEL4 already have pl2303.c and pl2303.h files in /usr/src..../drivers/usb/serial/pl2303.c,
I want to know some questions:
as pl2303 driver is already exist and when the cable is attached with USB port it is shown in lsmod....do we need to recompile kernel????
or built that module again
waiting 4 reply...
thanks in advance
Misbah Naveed is offline     Reply With Quote
Old 05-23-2008, 08:11 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 2,975
Thanked: 37
If the module loads OK (which it has if it's in lsmod), then you should be OK. The device is usually /dev/ttyUSB? .

Dave
ilikejam is offline     Reply With Quote
Old 05-26-2008, 11:48 PM   #3
Misbah Naveed
Member
 
Registered: Oct 2007
Posts: 41
Thanked: 0

Original Poster
Hi
the lsmod shows the pl2303 module but did not show /dev/ttyUSB....what should i do now.....
Misbah Naveed is offline     Reply With Quote
Old 05-27-2008, 03:14 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 2,975
Thanked: 37
Hi.

Do any new devices get created when you plug in the serial converter, e.g.:

(serial converter unplugged)
$ ls /dev > /tmp/unplugged
(plug in serial converter)
$ ls /dev > /tmp/plugged
$ diff /tmp/unplugged /tmp/plugged

Dave
ilikejam is offline     Reply With Quote
Old 05-27-2008, 09:02 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 8,124
Thanked: 64
The FT232R uses a different chip and therefore the pl2303 is the wrong module.
I believe the device uses the ftdi_sio module which should be in available in the latest kernel.

Look at the output of the dmesg and lsusb commands to see if the device is being recognized.

Last edited by michaelk; 05-27-2008 at 09:12 AM..
michaelk is online now     Reply With Quote
Old 05-28-2008, 02:21 AM   #6
Misbah Naveed
Member
 
Registered: Oct 2007
Posts: 41
Thanked: 0

Original Poster
but i am not getting "/dev/ttyUSB"...only /dev/ttyS0,ttyS1...are seen.is it necessary when cable is plugged in USB at dmesg i should have /dev/ttyUSB?
waiting 4 ur reply
Misbah Naveed is offline     Reply With Quote
Old 05-28-2008, 09:13 AM   #7
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 2,975
Thanked: 37
If the ttyS0, S1 etc devices appear when you plug in your cale is plugged in, then they should be the devices to use.

Dave
ilikejam is offline     Reply With Quote
Old 05-28-2008, 09:27 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 8,124
Thanked: 64
Is the ftdi_sio module loading? Look at the output of the command lsmod. look at the output of the dmesg command.
michaelk is online now     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help for installing driver pl2303, USB to serial converter Misbah Naveed Linux - Newbie 2 07-13-2008 02:36 PM
pl2303 driver needed kscott121 Linux - Hardware 2 06-20-2008 06:56 PM
help needed intalling pl2303 driver USB to serial converter for 2.6 Misbah Naveed Linux - Newbie 2 05-23-2008 03:51 PM
pl2303 attached to ttyUSB0 but driver attached to device is "serial" sheeluh Linux - Software 4 03-12-2007 05:27 AM
ttyUSB0 an pl2303 H2O-linux Slackware 3 12-08-2004 06:30 PM


All times are GMT -5. The time now is 06:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration