LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2007, 01:29 PM   #1
donald_duck
LQ Newbie
 
Registered: Feb 2007
Location: Milano, Italy
Distribution: Debian 3.1 Sarge
Posts: 4

Rep: Reputation: 0
Question totally rookie fighting with USB




hallo, I have a USB smart card reader.

the unit is present if I list the USB devices.

the /dev was not having any ttyUSB and I managed to add ttySUB0 and ttyUSB1.

I can not find any info on how to connect my card readerto the ttyUSB dev.

thank you forthe precious help and ciao!

Last edited by donald_duck; 02-24-2007 at 01:30 PM.
 
Old 02-24-2007, 02:33 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
Quote:
Originally Posted by donald_duck


hallo, I have a USB smart card reader.

the unit is present if I list the USB devices.

the /dev was not having any ttyUSB and I managed to add ttySUB0 and ttyUSB1.

I can not find any info on how to connect my card readerto the ttyUSB dev.

thank you forthe precious help and ciao!
Generally, USB smart-card readers do not require direct serial access. If you have the usb-storage driver (try doing “modprobe usb-storage”), your smart-card readers should show up under /dev as block devices (e.g., /dev/sd[a-z] depending on your other block devices) which are mountable just as any other block device.
 
Old 02-24-2007, 05:09 PM   #3
donald_duck
LQ Newbie
 
Registered: Feb 2007
Location: Milano, Italy
Distribution: Debian 3.1 Sarge
Posts: 4

Original Poster
Rep: Reputation: 0
hallo Osor, my problem is that I must use it as a serial device.

my Debian PC is working as a card server for my network.

in any case I have given the command modprobe usb-storage and it did notshow up....

thank you and ciao!
 
Old 02-24-2007, 05:31 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
Quote:
Originally Posted by donald_duck
hallo Osor, my problem is that I must use it as a serial device.

my Debian PC is working as a card server for my network.

in any case I have given the command modprobe usb-storage and it did notshow up....

thank you and ciao!
I don’t understand… what do you mean by “card server”? How do you intend you use a type of storage as a serial device?

Did the block devices show up? What’s the output of dmesg?
 
Old 02-24-2007, 06:27 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Some distributions do not have a certain setting correctly set that provides more than a certain amount of luns (a SCSI term). Setting this is done before compiling the kernel. Post the print out of "zcat /proc/config.gz".

Make sure sd_mod or sd-mod and usb-storage or usb_storage are loaded. Having sd_mod as built-in breaks USB storage in Linux.

Some people inserted a card in the reader before attaching to the computer and then it came up as a drive. Others have the card reader connected and inserted the card in the card reader. In a few seconds later fdisk shows the card as a drive. Some manufactures sell Linux compatible card readers while others do not state that it works in Linux. It is a trial and error.

ttyUSB is for USB to serial adapters.
 
Old 02-25-2007, 03:42 AM   #6
donald_duck
LQ Newbie
 
Registered: Feb 2007
Location: Milano, Italy
Distribution: Debian 3.1 Sarge
Posts: 4

Original Poster
Rep: Reputation: 0
hallo mens, thank you for tacking the time to answer to my question.

I will be more precise.

the debian computer I have (laying under the roof) is acting as a file server (samba shares) and as a card server for my satellite TV network.

on it I am running a conditional access emulator that talks to the card - cards that are connected to it and its hares the subscription on all the satellite receivers there are on my network (obviously satellite receiver with linux operating system (dreambox7000 and so on...)

now I have one phoeninx (a card reader) interface connected to tyhe COM1 of the PC but due to the slowness of the COM1 chain I see from time to time some interruption of the images on the sat receivers attached to it.

I have sourced a USB card reader that has a much quicker communication speed, I installed usbview and I can see it on the list of USB deices but I am not able to assign it to thye ttyUSB0 that I have created. I need help on this

in fact even of the emulation softare is has been written to communicate via serial I can telli him to use another tty (I will change ttyS0 with ttyUSB0). in fact I must emulate a serialcommunication.

at least, I think it shoud work! ;-)

ciao!!!

Last edited by donald_duck; 02-25-2007 at 09:52 AM.
 
Old 02-25-2007, 12:54 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
If I understand you right, the interface that the software can only handle is serial communication to read card and you thought that a USB card reader will work. This will not happen because USB storage and serial communication are two different connections. One creates an input/output device while the other shows up like a disk node (/dev/sda, /dev/sdb, /dev/sdc, ...).

You will have to invest time to learn C or C++ to change the code to the emulation software. Another way is to create an awkward wrapper that converts serial communication to USB storage, but I do not think this is feasible. I suggest stick with serial communication or change the code of the emulation software to access disk nodes like /dev/sda.
 
Old 02-26-2007, 07:31 AM   #8
donald_duck
LQ Newbie
 
Registered: Feb 2007
Location: Milano, Italy
Distribution: Debian 3.1 Sarge
Posts: 4

Original Poster
Rep: Reputation: 0
OK all this said, how can I bind a USB device to ttyUSB0?

ciao
 
Old 02-26-2007, 02:51 PM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Get an USB to serial adaptor. The kernel should detect it and load the proper modules.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rookie tigerpatch LinuxQuestions.org Member Intro 3 05-08-2006 07:19 PM
Mepis Rookie kraydl MEPIS 10 10-23-2005 07:37 PM
Rookie needs script help muddywaters Programming 3 10-17-2005 08:16 PM
Totally newbie DWL-120 + USB wireless card Linox Linux - Wireless Networking 1 09-18-2003 04:39 PM
Linux Rookie woodyjohnson425 LinuxQuestions.org Member Intro 3 06-13-2003 08:57 PM


All times are GMT -5. The time now is 08:20 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