I am new to Linux, more so embedded Linux.
The project I have been assigned with is as follows:
Develop a DM365-based camera that will connect to the host system via USB, capable of taking a video of specified duration and then make the video clip available to the host system.
I am building it at the moment on DVEVM (Specturm Digital one) with DVSDK and community Linux.
I suppose using encode demo from DVSDK as the prototype is reasonable (please correct me if its not), so I plan to modify Encode demo to fit my needs.
The idea is to implement the device as composite USB device so it appear as a USB camera, USB External storage (flash drive) and some proprietary USB device for special commands (if needs to be).
Does that make sense?
As first step I plan to use File-backed Storage Gadget that comes with the DVSDK, and use files as communication devices to send commands, and return the results. Is this viable? Are there any pit falls to watch out for?
Second step is to implement separate USB point to allow non-file-based communication with the camera (note: I'm also new to USB technology), would web-cam USB profile be appropriate to execute "Take 10 secs video at 720x480 resolution, encode using h264, and store on-board as myvid1.264" command? or should I build a non-standard device for that?
Is "Linux-USB Gadget API Framework" a good place to start for building USB interface? or does DVSDK has something I could use?
Any pointers and ideas ARE appreciated