LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 06-09-2008, 06:52 PM   #1
stardotstar
Member
 
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
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,213

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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
stardotstar
Member
 
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.
 
  


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
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 09:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration