LinuxQuestions.org
Help answer threads with 0 replies.
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 03-22-2006, 08:31 PM   #1
lucky6969b
Member
 
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?
Thanks
Jack
 
Old 03-23-2006, 12:02 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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, 02:17 AM   #3
lucky6969b
Member
 
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

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

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

Original Poster
Rep: Reputation: 30
Are there alternatives?
Thanks
Jack
 
Old 03-24-2006, 10:56 PM   #5
lucky6969b
Member
 
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.
Thanks
Jack
 
Old 03-25-2006, 12:27 AM   #6
paulsm4
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":
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

Last edited by paulsm4; 03-25-2006 at 12:35 AM.
 
  


Reply

Tags
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 09:43 AM
apt-get based application - anybody interested? J_K9 Programming 4 10-20-2005 01:38 PM
GUI based application for Installing RPMs for Red Hat Linux 9? AskMe Linux - Software 3 07-29-2004 08:16 AM
Load Balancing for a Browser Based Application divorcingbill Linux - Networking 3 02-10-2003 04:06 AM


All times are GMT -5. The time now is 07:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration