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?
Where is the problem? For USB programming here on the forum:
Developing Linux Device Drivers using Libusb API
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
Are there alternatives?
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.
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 04:44 PM.|