2012-11-12 08:27 AM
Hello, I am working on a project which consist in retriving data from the Accelerometer, and then transmit it through a USB connection,
So far, I quite understand how to retrive the data from the Accelerometer. But here is my problem, I don't know how to transmit it via USB. If you could give me some examples, I would appreciate it. #camera #usb2012-11-12 09:23 AM
Have you looked at any of the example code in the USB FW library?
2012-11-12 02:55 PM
Hum, i checked in the STP32F4-Discovery_FW_V1.1.0.
I'm not sure but I didn't find any direct example using the USB port. I've to say i'm a beginer in this domain. Any help would be appreciated2012-11-12 09:48 PM
2012-11-13 07:15 AM
I searched a bit in the forum and found STM32_USB-Host-Device_Lib_V2.1.0, it seemed perfect.
I'm using VCP example, I've tried to send data with that example and it seems i can't even use the fonction, (''VCP_DataTx''), any ideas ?2012-11-13 08:41 PM
I think in VCP you can not exceed baud rate more than 115200. then why one need VCP? except you have not serial port on your PC!
I would like to use USB as data transfer as it happens in USB based webcam etc.. but I dont know how to do it!2012-11-14 07:52 AM
The VCP is not limited to 115200, but rather the limits of your interfaces to consume data. It doesn't have to represent actual hardware, or data rates, being virtual as it is.
For VCP_DataTx you typically call it when you have data to queue, in examples this has been the USART RX IRQ. You'd need to create a UVC device for a webcam.[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Any example on STM32F2xx with UVC&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=494]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FAny%20example%20on%20STM32F2xx%20with%20UVC&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=4942012-11-18 08:54 PM