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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Ultrazed Hardware Design UltraZed USB 3 IDS Camera Speed Issue
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 18 replies
  • Answers 6 answers
  • Subscribers 325 subscribers
  • Views 2569 views
  • Users 0 members are here
  • usb usb3 ultrazed ids ueye camera
Related

UltraZed USB 3 IDS Camera Speed Issue

jbspears
jbspears over 5 years ago

We have the UltraZed eval board (EG) and have Xilinx 2017.4 u-boot/kernel with Ubuntu 18.04 running.  USB 3 seems to be setup correctly - all USB 3 devices we've tried are recognized as USB 3.  We are connecting an IDS Ueye camera to the USB port and trying to reach a frame rate that would be approximately 1.1 Gbps throughput.  However, we are only able to get around 780 Mbps before errors start to occur in the stream transfer over USB.  We have ran the USB 3 performance test provided by Avnet with various pen/usb drives and depending on the drive and the test (fixed block/block size, etc.) sometimes to get close to 1 Gbps.  The camera works fine at the high frame rate (and even higher) on an Ubuntu desktop computer with USB 3.

 

Anyone else tried running a USB 3 camera at a high frame rate on these boards?  Or have any idea of maybe a configuration somewhere (hardware/software) that might improve the USB 3 throughput?

 

Thanks!

  • Sign in to reply
  • Cancel

Top Replies

  • jbspears
    jbspears over 5 years ago in reply to drozwood90 +1
    Thanks for the info Dan. Actually that blog article got me as far as I have gotten so far - getting a USB cable that works with the UltraZed (got the cable/adapter from Amazon). With the right cable the…
  • jbspears
    jbspears over 5 years ago in reply to drozwood90 +1 suggested
    Finally made some progress. After changing the frame size to a power of 2 (512x512) and using a powered USB hub, we are able to meet framerate (500 fps). However, we are seeing random failures with the…
Parents
  • drozwood90
    0 drozwood90 over 5 years ago

    Hi John,

     

    First, have you seen this blog article I posted?

    Solve USB 3.0 issues with this one weird trick

    Second, do you have a local XFAE you are working with?  If so, you should contact them about this issue.  Please also have them reach out to me as I can help provide some guidance to them.

     

    In the mean time, it is strange that you ask this at this time!  I just responded to another user where I explained that I had used a USB 3.0 camera with an Ultra96V2 (I realize not the same, but it is the same basic circuit).  I recall using that at high resolution, but I admit that I cannot say what the bit rate was.  Only that it was a CU30 (3.4MP) and was likely running at 1080P60.  I realize not apples to apples, but it just seemed strange two posts related to USB and video!

    https://www.e-consystems.com/ar0330-lowlight-usb-cameraboard.asp

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • jbspears
    0 jbspears over 5 years ago in reply to drozwood90

    Thanks for the info Dan.  Actually that blog article got me as far as I have gotten so far - getting a USB cable that works with the UltraZed (got the cable/adapter from Amazon).  With the right cable the camera was recognized as a USB 3.0 device.  Since I posted this earlier today, I ran the UltraZed performance test with a USB 3 toaster and a SSD on both a Linux desktop and the UltraZed.  Both performed about the same - around 300MB/s for read and write (I need only around 130MB/s).  So that tells me the USB 3 is performing at good speeds (at least for a SSD drive anyway) and the issue may be more camera/driver related.

     

    Camera I'm using:

    https://en.ids-imaging.com/store/ui-3140cp-rev-2.html

     

    I will look through the article again for any other ideas just in case.  Thanks!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • drozwood90
    0 drozwood90 over 5 years ago in reply to jbspears

    John,

     

    Now you got me thinking...watch your processor loading.  I've seen where dropping everything on 1 core can make funny things happen as well.  IIRC, that is why our Webcam interface on the UltraZed-EV VCU TRD Port uses 2 or 3 threads to spread the load across the various processors.  I can't be certain how many threads, but I do recall we split the gstreamer path up to a few cores.

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • jbspears
    0 jbspears over 5 years ago in reply to drozwood90

    Finally made some progress.  After changing the frame size to a power of 2 (512x512) and using a powered USB hub, we are able to meet framerate (500 fps).  However, we are seeing random failures with the USB.  It can happen after running for 15 minutes or it can happen after running for 2 minutes.  The error messages are:

     

    [   83.289070] xhci-hcd xhci-hcd.0.auto: Stopped the command ring failed, maybe the host is dead

    [   83.313647] xhci-hcd xhci-hcd.0.auto: Abort command ring failed

    [   83.319478] xhci-hcd xhci-hcd.0.auto: HC died; cleaning up

    [   83.319527] xhci-hcd xhci-hcd.0.auto: Error while assigning device slot ID

    [   83.319531] xhci-hcd xhci-hcd.0.auto: Max number of devices this xHCI host supports is 64.

    [   83.319536] usb usb1-port1: couldn't allocate usb_device

    [   83.345402] usb 2-1: USB disconnect, device number 3

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • drozwood90
    0 drozwood90 over 5 years ago in reply to jbspears

    Hi John,

     

    Do you have a local XFAE you are working with?  If so, you should contact them about this issue.  Please also have them reach out to me as I can help provide some guidance to them.

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jbspears
    0 jbspears over 5 years ago in reply to drozwood90

    Update.  I think the camera works fine on the UltraZed board.  Our goal was to capture and stream frames across the network.  But that would kill the USB controller after a while.  So as a test we have an app that just captures the camera images and does nothing with them.  This will run for days without issue.  We then created an app that just streams dummy frames (totally independent of the camera app).  This app will run alone for days without issue.  But when we run them together, within an hour or so, the USB controller dies with the message below.  We cannot figure out why using the network device causes the USB controller to die.

     

    xhci-hcd xhci-hcd.0.auto: xHCI host controller not responding, assume dead

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • drozwood90
    0 drozwood90 over 5 years ago in reply to jbspears

    Hi there,

     

    Wow, what a find.  I will ping a few people, but in the mean time, is there any suspicion on power draw / issues around the USB device?  I have no proof, and this might be a red herring, but my first gut feel with this new information is, could the device be getting marginal power?  Then eventually it just...hiccups?

     

    I recall earlier you saying you resolved some issues by just adding a USB Hub.

     

    Are you also leveraging the VCU?  PL DDR memory?

    Have you checked the power estimator in Vivado?

     

    Again, not trying to side-track you, but I was just musing about this.

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • jbspears
    0 jbspears over 5 years ago in reply to drozwood90

    I know power definitely was an issue at first.  The camera people suggested a specific ("approved") USB hub for their camera (IDS uEye).  And this solved our initial issues.  I will have our Vivado expert look into your questions.  There must be some low-level resource (power, clocks, etc.) that the network device and USB device share for this to be an issue.  I have even tried the 2020.1 tools (Avnet Petalinux, Xilinx Linux/u-boot, with Ubuntu 18.04, etc.) in hopes there was a driver fix or something, but still same issue.  We are using the UltraZed EG board.

     

    Thanks for your help!!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • jbspears
    0 jbspears over 5 years ago in reply to drozwood90

    I know power definitely was an issue at first.  The camera people suggested a specific ("approved") USB hub for their camera (IDS uEye).  And this solved our initial issues.  I will have our Vivado expert look into your questions.  There must be some low-level resource (power, clocks, etc.) that the network device and USB device share for this to be an issue.  I have even tried the 2020.1 tools (Avnet Petalinux, Xilinx Linux/u-boot, with Ubuntu 18.04, etc.) in hopes there was a driver fix or something, but still same issue.  We are using the UltraZed EG board.

     

    Thanks for your help!!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject 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 © 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