Solved

USB Device programming

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to command 8 101
how to run a command as a nologin user 7 427
how can i fully uninstall a puppet client? 2 113
Linux "time" command output redirection 16 221
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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