View the Most Wanted LQ Wiki articles.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-09-2008, 06:52 PM   #1
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Rep: Reputation: 30
How do I start to probe and prod a usb device?

I want to be able to take measurements from an instrument that is usb.

How would one begin to examine the state and data coming in from the device when it is in its idle state, triggered by its button etc>?

Perhaps a pointer to a resource on beginning controlling usb devices for Linux?

Thanks guys.
Old 06-10-2008, 03:52 PM   #2
Senior Member
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,766

Rep: Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793
perhaps when you plug it in you can look at the last few lines of dmesg to figure out what file in the /dev tree it is connected to.

if it is like a gamepad you can look at the output of cat /dev/js0...

be creative, maybe you can pipe that output thru od.

good luck,
Old 06-10-2008, 05:25 PM   #3
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Original Poster
Rep: Reputation: 30
Thank you I will try and post back if I get something useful.


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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
probe method on bus and device driver not being called kunice Linux - Hardware 0 02-24-2008 12:47 PM
How do I start my USB device? Andriy Slackware 8 01-22-2006 12:23 AM
How can I start a programm when a USB device is hotplugged?? Imyourdaddy Linux - General 3 11-24-2005 04:27 PM
USB Driver Probe function not being called xtom Fedora 0 10-28-2005 04:48 PM

All times are GMT -5. The time now is 06:07 AM.

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