?
Solved

USB Device programming

Posted on 2004-09-21
4
Medium Priority
?
735 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 450 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 450 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

770 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