LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 04-10-2004, 12:14 PM   #1
rg500g
LQ Newbie
 
Registered: Feb 2004
Location: St. Louis, MO
Distribution: Suse 9.0, RedHat Prof Wksta bought 2/14/04
Posts: 2

Rep: Reputation: 0
Question Mapping USB Dev Files to Ports


I tried to search the forums for this, but USB kept coming up empty. I think I'm asking a question that's been asked a thousand times before, so forgive me. I did click the "Has this been asked?" button and got nothing informative.

I've got a UPS, a PDA cradle and a Logitech Bluetooth hub, all USB connected to SuSE Linux 9.0. SynCE and UPS monitoring software have config scripts that want a device file. This isn't as easy as mapping ttyS0 to COM1, so I'm screwed. I haven't a clue as to hot to figure out what device file name in /dev/usb maps to what physical USB port on my computer, so I can't configure Linux to talk to anything. It's noteworthy that the Bluetooth hub does a great job managing the bluetooth keyboard and mouse, but I'm sure that the hub masquerades itself as a generic HID device, and my kernel has HID support for USB so there you go. No BlueZz Bluetooth stack loaded, which is what I'm really after.

I execute usbview, and it clearly identifies the UPS and my Bluetooth hub (the cradle is an unknown device), but I can't read anything from the returned data that gives me any idea as to whether my UPS is on /dev/usb/USB0, dausb0, auer0, dc2XX0, ez0, or any 1,2,3 logical port sequence permutation of those files.

Basically, where can I find a doc that maps all this out and points me to tools I can use (that are more newbie friendly than usbview) to associate my USB connected devices with specific device files?
 
Old 04-26-2004, 09:53 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
if you look in the /dev directory you'll probably see a load of ttyusbx, but how these get mapped depends on the drivers. If you are having trouble finding the device, do lsmod as root to make sure all the right usb modules are there.

I sympathise, man and info pages are not much help for usb.

dmesg will show you all the USB hubs and ports and what numbers they are assigned.

Google your query and there'll probably be an online book about it.

My camera, as an example, shows up as a mass storage device on /dev/sda with the mountpoint /mnt/camera, and it is plugged into one of the onboard ports, while the PDA seems to be /dev/ttyusb0

See what I mean.

I doupt there is systematic coding for the usb ports. Instead it will depend on the hardware it is connected to. You'll need the documentation that comes with the software - eg. synce has a great set of documentation that covers just about everything. gphoto helped me locate the camera even though I don't use gphoto. And so forth.

Simon
 
Old 05-14-2004, 06:33 PM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quick note: look in your kernel documentation - usb_serial module description explains much

(xconfig>usb>usb-serial>help)

Simon
 
  


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
Hard Drive to /dev mapping rdhochhalter SUSE / openSUSE 4 11-02-2005 07:37 PM
Mapping ports with iptable? please help, urgent! Introx Linux - Networking 2 05-16-2005 08:50 AM
/dev/usb/ missing files under Mandrake 10.0 sijulian Linux - Newbie 0 11-13-2004 03:50 PM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 04:56 PM
whats the /dev/ device of my usb ports ? (for gnomeconfrernce (webcam problem)) qwijibow Linux - Newbie 1 12-27-2003 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:43 AM.

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