element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
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
STM32F4DISCOVERY Expansion Boards requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 19 replies
  • Answers 1 answer
  • Subscribers 7 subscribers
  • Views 2817 views
  • Users 0 members are here
Related

UVC for STM32F429I Discovery Board

Former Member
Former Member over 8 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 8 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 8 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
  • clem57
    0 clem57 over 8 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 8 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
  • Former Member
    0 Former Member over 8 years ago in reply to michaelkellett

    Yes your right.

    I need an ULPI to do high speed transmission.

    Thank you so much.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gihu
    0 gihu over 8 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 8 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 8 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 8 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 8 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 8 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 2 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
Reply
  • aliebraheem
    0 aliebraheem over 2 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
Children
No Data
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 © 2023 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