LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   pl2303 driver (https://www.linuxquestions.org/questions/linux-hardware-18/pl2303-driver-644201/)

Misbah Naveed 05-22-2008 11:49 PM

pl2303 driver
 
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

ilikejam 05-23-2008 07:11 PM

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

Misbah Naveed 05-26-2008 10:48 PM

Hi
the lsmod shows the pl2303 module but did not show /dev/ttyUSB....what should i do now.....

ilikejam 05-27-2008 02:14 AM

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

michaelk 05-27-2008 08:02 AM

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.

Misbah Naveed 05-28-2008 01:21 AM

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

ilikejam 05-28-2008 08:13 AM

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

michaelk 05-28-2008 08:27 AM

Is the ftdi_sio module loading? Look at the output of the command lsmod. look at the output of the dmesg command.


All times are GMT -5. The time now is 04:47 PM.