Solved

USB Device programming

Posted on 2004-09-21
4
728 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
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

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 fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now