Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-16-2009, 12:37 PM   #1
LQ Newbie
Registered: Jun 2009
Posts: 4

Rep: Reputation: 0
send pictures through usb


I have to emulate a camera through usb from linux host to linux end, because I don't have a camera available. To do this, I want to find a way to stream several pictures and naming them with different name (ex: 001.raw, 002.raw,...).
Easiest way could be with fixed size images in RAW format (no compression required, since images are supposed to be small).
Can you explain me how to set linux host to simulate a camera interface and linux end user (all pictures sent in the same file). When I say camera interface, I mean sending pictures, one by one, with a delay.
I'm a novice user of linux, so I will be very grateful if you can explain me in detail how to solve this problem.

Old 06-16-2009, 04:59 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I can only point you to the Linux USB Gadget framework/API. For someone not pretty savvy with low-level coding, it might be easier to just buy a camera.
I assume you are using this to test some code under development. If such is the case, then you have probably isolated the code which acquires the image data, and could stub in an alternative file transfer method, such as simply reading image data from the filesystem. In the case of cameras that export their image data using USB Mass Storage protocol, the stub would be substantially the same as the real deal anyway.
--- rod.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
send picture through usb lemonk Linux - Networking 1 06-17-2009 10:56 AM
F-spot to use kmail to send pictures yiannis852 Linux - Software 0 04-17-2008 06:28 AM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
Send files from phone to computer via USB? gbowden Slackware 0 02-13-2007 10:42 AM
send and receive hex commands to and from USB...? sixgunz2 Linux - Software 1 09-15-2006 03:44 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration