LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05: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, 02:52 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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, 04: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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:55 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
Open Source Consulting | Domain Registration