element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
STM32F4DISCOVERY Expansion Boards
  • Products
  • Dev Tools
  • STM32F4DISCOVERY Expansion Boards
  • More
  • Cancel
STM32F4DISCOVERY Expansion Boards
Forum UVC for STM32F429I Discovery Board
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join STM32F4DISCOVERY Expansion Boards to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 19 replies
  • Answers 1 answer
  • Subscribers 9 subscribers
  • Views 5623 views
  • Users 0 members are here
Related

UVC for STM32F429I Discovery Board

Former Member
Former Member over 10 years ago

Hi,
I am developing a webcam like application with STM32F429I. I am using the discovery board for my development.
I wish to configure the USB 2.0 as a UVC device. I have instantiated the UVC code available at github.
I am successfully able to connect my kit to the PC, however the USB driver on the PC shows my device as a unknown device.
Kindly suggest if any driver is available to interface the board with the PC as UVC device.


Thanks & regards

P. Bharath Kumar

  • Sign in to reply
  • Cancel
Parents
  • gihu
    0 gihu over 10 years ago

    Hi,

     

    Maybe you have problems with the descriptor.

    I do not know if there is something similar in windows, but you can plug your board to an android device (ICS or higher) over the usb, or usb otg an take the information of your board with an app like this:

    https://play.google.com/store/apps/details?id=aws.apps.usbDeviceEnumerator&hl=es

    or any other similar, and check if this information (taken from your usb descriptor) is like you expected, PID, VID, classes, interfaces, endpoints....

    If you find an app to do this in windows, even better.

    If the info is not correct try to change to an usb descriptor from an existing comercial product, this topic talks about it https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https%3a%2f%2fmy%2est%2ecom%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fAny%20example%20on%20STM32F2xx%20with%20UVC&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=3768

     

    And be patient, usb is not trivial

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to gihu
    Now the PC showing as a imaging device , but i didn't get anything. can you help me in isochronous transfer of data in high speed mode
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to Former Member

    I don't think that the 429 Discovery board supports High Speed USB - I've looked at the schematics and there is no High Speed PHY on the board.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to michaelkellett

    I'm sorry  -  I have no idea what your last question means but I'll guess:

     

    Read the datasheet for the processor page 39 of Rev 5 data sheet:

     

    The devices embed a USB OTG high-speed (up to 480 Mb/s) device/host/OTG peripheral.

    The USB OTG HS supports both full-speed and high-speed operations. It integrates the

    transceivers for full-speed operation (12 MB/s) and features a UTMI low-pin interface (ULPI)

    for high-speed operation (480 MB/s). When using the USB OTG HS in HS mode, an

    external PHY device connected to the ULPI is required.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gihu
    0 gihu over 10 years ago in reply to Former Member

    Hi,

     

    Which is your status?

    How did you get that the PC recognize the board as an imaging device?

    STM32F4Cube code changing the usb descriptor file?

     

    regards,

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to gihu

    yes the PC showing my board as an imaging device.

    I have used STM32CUBE code only, but instead of existing class i have taken custom class and changed the descriptor according to UVC class.

    Now i am using isochronous data transmission to send my image data to PC.

    But i am not able to send the data.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    http://www.beyondlogic.org/usbnutshell/usb4.shtml So you do not mind a few dropped frames and will only send data one way? Why not bulked transfers?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    http://www.beyondlogic.org/usbnutshell/usb4.shtml So you do not mind a few dropped frames and will only send data one way? Why not bulked transfers?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    Either is okay for me. Ultimately my goal is to get video streaming.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    You need updated PC driver to have matching endpoints. Did you do?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    I have the PC drivers, that's how the PC detected my board as an UVC device(Imaging device).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gihu
    0 gihu over 10 years ago in reply to Former Member

    Hi,

     

    You need a software in the PC reading the same endpoints.

    Which one are you using?

    You can try VLC media player to connect to the imagging device detected, and see what happens.

    But I think it is not just sending video from the board to the PC, I think that first there is a a deal between PC and the imaging device to stablish, resolution, video format, frame per second... And the functions that deal these issues are should be defined in the usb class (in this case your custom class). I have never used before uvc class, so sory for no further details image

     

    Regards,

    Miguel

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to gihu

    I am using device monitoring studio software to read the data through the endpoints.

    and i have a GUI which can initiate the transfer from board to PC.

    It showing as length is zero as shown in attachment.

    I have already programmed resolution format and frames per second in descriptors.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    Not sure of software you use, but I bet you need to push data not pull data

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    My board is in device mode, and PC is in host mode. So PC should initiate the communication and ofcourse my board need to push data whenever it get a call from PC

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gihu
    0 gihu over 10 years ago in reply to Former Member

    Hi,

     

    How is it going your project?

    About the last issues, which is your video source?

    If your problem is the video source, maybe you can try send get the code (rgb, yuv...) for a picture of the supposed video size, put into your code and keep on sending it as it is a video streaming.

    By other way, are you sure you are sending the YUV, RGB or whatever data to the same endpoint that the software in the PC is reading?

     

    Regards,

    Miguel

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to gihu

    Hi,

    I am sending a static image to my PC now. If that transmitted then i will send the image data continuously.

    But i am not able to send anything to my PC through end points.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aliebraheem
    0 aliebraheem over 4 years ago in reply to Former Member

    Hi.I am having the same exact problem. Did you find a work around or solution&

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube