Solved

USB Device programming

Posted on 2004-09-21
4
734 Views
Last Modified: 2010-04-21
I need to make an application(running on LINUX) that is intended to work for USB cameras. The application needs to control the camera activities and must be able to set the various configurable options and features.
Acc. to what I read about USB device drivers etc. I got to know that the USB file system is automatically mounted to /proc/bus/usb
The questiion that I have is - How to access and control the USB device (camera) ?? If the driver's API is not available ...is it still possible??
Also can someone give some pointers to some sources where some programming samples are given to program any type of USB device!!

-Aayush
(P.S: I am specifically told not to use apps like GPhoto and similar)
0
Comment
Question by:aayushpuri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Expert Comment

by:stefanoc
ID: 12116995
I think that a good starting point could be libusb (http://libusb.sourceforge.net/). It is library that defines an API to access USB device directly from use space. Unfortunately current version doesn't work with ISOCHRONOUS trasfers that are the most used in cameras, but you can try with your camera.
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 150 total points
ID: 12120277
>If the driver's API is not available ...is it still possible??
Yes ... Just that you will have to write the code to control and interface with the device

http://www.lvr.com/usb.htm
http://www.lvr.com/usbcode.htm
0
 
LVL 44

Assisted Solution

by:Karl Heinz Kremer
Karl Heinz Kremer earned 150 total points
ID: 12152265
The Linux Journal had a series of articles about how to program USB devices (and some information about reverse engineering unknown protocols).

http://www.linuxjournal.com/article.php?sid=7353
http://www.linuxjournal.com/article.php?sid=7466
http://www.linuxjournal.com/article.php?sid=7582

And another article that's a bit older:
http://www.linuxjournal.com/article.php?sid=4786
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question