-   Programming (
-   -   Linux based Interrupt driven application (

lucky6969b 03-22-2006 08:31 PM

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?

Wim Sturkenboom 03-23-2006 12:02 AM

Where is the problem? For USB programming here on the forum:
Developing Linux Device Drivers using Libusb API

lucky6969b 03-23-2006 02:17 AM

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

lucky6969b 03-24-2006 10:52 PM

Are there alternatives?

lucky6969b 03-24-2006 10:56 PM

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.

paulsm4 03-25-2006 12:27 AM

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

All times are GMT -5. The time now is 09:58 AM.