LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-19-2010, 06:39 PM   #1
posix_memalign
Member
 
Registered: Aug 2008
Posts: 81

Rep: Reputation: 15
USB serial driver


I have a USB serial device which presents itself as:

Code:
Bus 002 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
This is a MSR505C magnetic stripe card reader.

I know this device is supposed to work as a character device in GNU/Linux because there is a library called "libmsr" to use it with.

However, the device will not map to any device on my /dev filesystem.

I have compiled the usbserial module, loaded it, created the special character files with mknod, then connected the physical USB device, which then presents the kernel system messages (by dmesg):

Code:
usb 2-2: new full speed USB device using uhci_hcd and address 4
usb 2-2: default language 0x0409
usb 2-2: New USB device found, idVendor=067b, idProduct=2303
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-2: Product: USB-Serial Controller D
usb 2-2: Manufacturer: Prolific Technology Inc. 
usb 2-2: uevent
usb 2-2: usb_probe_device
usb 2-2: configuration #1 chosen from 1 choice
usb 2-2: adding 2-2:1.0 (config #1, interface 0)
usb 2-2:1.0: uevent
usbserial_generic 2-2:1.0: usb_probe_interface
usbserial_generic 2-2:1.0: usb_probe_interface - got id
drivers/usb/core/inode.c: creating file '004'
hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0004
Even though the device is obviously detected, I cannot open any of the /dev/ttyUSB* devices to access it.

I even tried accessing it using the libmsr utility on ALL 256 ttyUSB* devices as such:

Code:
for i in $(seq 0 255); do ./msr /dev/ttyUSB${i}; done
However, all of them give the error:

Code:
msr: Serial open of /dev/ttyUSB253 failed: No such device
With the two last giving me:
Code:
msr: Serial open of /dev/ttyUSB254 failed: No such device or address
msr: Serial open of /dev/ttyUSB255 failed: No such device or address
 
Old 02-24-2010, 07:54 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,708

Rep: Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379
What linux distribution/version are you running? The chipset is common and well supported. The device should be automatically recognized, the pl2303 module loaded and a device created.

Last edited by michaelk; 02-24-2010 at 07:55 AM.
 
Old 02-24-2010, 11:30 PM   #3
SendDerek
LQ Newbie
 
Registered: Feb 2010
Location: Scottsdale, AZ
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
Maybe there are some missing modules? At least, that's where I would start looking.

Try...
modprobe ohci_hcd
modprobe usbserial
modprobe ftdi_sio

What does 'lsmod' show?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynex USB-to-Serial driver for Linpus creativeCag Linux - Software 14 05-16-2010 04:33 AM
help for installing driver pl2303, USB to serial converter Misbah Naveed Linux - Newbie 2 07-13-2008 02:36 PM
Problem with USB to serial adaptor. Firewall or driver? kpark Linux - Newbie 4 07-07-2008 09:21 AM
Problem with USB to serial adaptor. Firewall or driver? kpark Linux - Newbie 2 07-02-2008 04:59 PM
Xircom USB to serial DB9, what driver? dandev Linux - Hardware 1 04-18-2006 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration