Share your knowledge at the LQ Wiki.
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 03-22-2006, 07:31 PM   #1
Registered: Nov 2005
Posts: 337

Rep: Reputation: 30
Linux based Interrupt driven application

I want to develop a USB interface program.
The USB device signals the Single-board-computer, the SBC asks for what happens and reads in the data.
I tried google, there was not much info there. Could anyone show me some code snippet that does this. Or good links or books?
Old 03-22-2006, 11:02 PM   #2
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Where is the problem? For USB programming here on the forum:
Developing Linux Device Drivers using Libusb API
Old 03-23-2006, 01:17 AM   #3
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
I got nothing although I had some USB devices connected like the mouse and the keyboard

bus/device idVendor/idProduct/bcdDevice Class/SubClass/Protocol
001/001 0000/ 0000/0206 09 00 00

I have installed libUSB, thanks
Old 03-24-2006, 09:52 PM   #4
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Are there alternatives?
Old 03-24-2006, 09:56 PM   #5
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Actually, my task is to serve a signal coming off the sensors
1) Laser beam gets blocked by a vehicle
2) Signal a Single Board Computer running Embedded Linux
3) SBC asks the sensor what is going on
4) Sensor replies with a reading
I'm not sure this is what my senior wants, but it would be somethin' similiar
So I'm not writing a device driver.
Old 03-24-2006, 11:27 PM   #6
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I'd strongly recommend the following:

1. For your immediate question, look at the "USB Gadget API":

2. To preserve your sanity and insure you have a reasonable chance
of success on this project, have your senior allocate some funds from
petty cash and start a project library that contains EACH of these books:

a) Linux Device Drivers, 3rd Ed

b) Linux Kernel Development, 2nd Ed

c) Building Embedded Systems with Linux

Even if you don't actually have to write any device drivers (and
I'm optimistic this might indeed be the case), these books
will give you INDISPENSABLE knowledge and insight you're going
to need. They'll pay for themselves almost immediately.

Please make sure your team gets them.

'Hope that helps .. PSM

Last edited by paulsm4; 03-24-2006 at 11:35 PM.


programming, usb

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
CPU Interrupt Driven or Polling? live_dont_exist Linux - Networking 0 12-19-2005 08:43 AM
apt-get based application - anybody interested? J_K9 Programming 4 10-20-2005 12:38 PM
GUI based application for Installing RPMs for Red Hat Linux 9? AskMe Linux - Software 3 07-29-2004 07:16 AM
Load Balancing for a Browser Based Application divorcingbill Linux - Networking 3 02-10-2003 03:06 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:01 PM.

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
Open Source Consulting | Domain Registration