LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   send pictures through usb (https://www.linuxquestions.org/questions/linux-general-1/send-pictures-through-usb-733398/)

lemonk 06-16-2009 12:37 PM

send pictures through usb
 
Hi,

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.

Thanks

theNbomr 06-16-2009 04:59 PM

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.


All times are GMT -5. The time now is 06:11 PM.