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? Thanks Jack |
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
./id_test bus/device idVendor/idProduct/bcdDevice Class/SubClass/Protocol 001/001 0000/ 0000/0206 09 00 00 I have installed libUSB, thanks Jack |
Are there alternatives?
Thanks Jack |
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. Thanks Jack |
Hi -
I'd strongly recommend the following: 1. For your immediate question, look at the "USB Gadget API": http://www.linux-usb.org/gadget/index.html 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 http://www.bookpool.com/sm/0596005903 b) Linux Kernel Development, 2nd Ed http://www.bookpool.com/sm/0672327201 c) Building Embedded Systems with Linux http://www.bookpool.com/sm/059600222X 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 01:47 AM. |