2012-05-03 06:23 AM
Hello,
We are two swedish students trying to implement a camera unit into a circuit board. The company we're writing this report for has developed this platform and our task is to write a protocol that handles the video stream of data coming from a simple webcam (usb connection).Our main focus for now is to write the code needed to ''wake the camera up''. Trying to get the start up commands ready and then configure the isochronous pipeline needed for the data transmit. We've been reading most guides available on the entire internet but we're still confused of how to do this... We've managed to set bits to different data registers and understand what an endpoint is, but thats pretty much it. So our question is, where do we start? What needs to be done to get the isochronous pipeline camera-->platform up and running?We do understand that the answer we're looking for isnt that easy to print down in a line or two, but any info would be very appreciated.We're using Eclipse Platform along with FreeRTOS.Many thanks in advance.Emil and Per2012-05-04 10:13 AM
It's not very clear if you want to implement on device side : USB Video Class. That is required for transfer of images from the camera to PC..
or you want to implement the host side. Where the webcam is conencted to STM32F107 / 207 usb-otg-host port ? Pls clarify2012-05-05 02:15 AM
Thanks for your reply!
It looks like our
STM32F103 VCT6 board does not support OTG, so no wonder we cant get it to work.
USB is therefor off the table and instead we make this projekt abit more simple by using a JPEG camera ( ). Will make the programming alot easier, but i doubt we will have the baudrate needed in the UART-port to make a ''video transfer''. However, thats another problem and we may ask for helt further on in the project, if needed.Thanks!2012-05-05 04:58 AM
There is always the STM32F4 Discovery board, it is cheap and has OTG
http://www.st.com/internet/evalboard/product/252419.jsp
2012-05-07 06:36 PM
STM32F107 and STM32F207 and F407 have USB OTG functionality.
What you wanna do doesnt need USB OTG. The standard usb of STM32F103 is good enough. i can confirm the UART baud rate is very fast (i used 115200). you only need ''Default baud rate of serial port is 38400 ''