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
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Forum USB 3.0 support for beagle bone AI.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join BeagleBoard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 27 replies
  • Answers 11 answers
  • Subscribers 104 subscribers
  • Views 4724 views
  • Users 0 members are here
  • beagleboard_ai
Related

USB 3.0 support for beagle bone AI.

prathamesh12
prathamesh12 over 5 years ago

I want to use basler ace camera (acA1300-200um) with beagle bone AI board. It requires usb 3.0 host controller. As BB AI board provides only usb 2.0 , camera isn't working. Is there any way we can add usb 3.0 support to board? Like an external module with 3.0 support which can be further connected to AI board via UART....

  • Sign in to reply
  • Cancel

Top Replies

  • cstanton
    cstanton over 5 years ago in reply to prathamesh12 +3 verified
    The answer is simply hidden. sudo /opt/scripts/boot/bbai_usb_host.sh This executes: echo "host" > /sys/kernel/debug/48890000.usb/mode Which puts the USB-C 3.0 hub on the BeagleBone AI into 'USB Host Mode…
  • gdstew
    gdstew over 5 years ago +2 suggested
    The USB C connector used to power the AI is also connected to a USB 3 data interface on the SoC. The problem I've seen is that none of the power supplies for the AI make these signals available to use…
  • cstanton
    cstanton over 5 years ago in reply to gdstew +2 suggested
    Maybe a USB-C USB hub would work? If it allows backpowering. I may be able to test this.
Parents
  • gdstew
    0 gdstew over 5 years ago

    The USB C connector used to power the AI is also connected to a USB 3 data interface on the SoC. The problem I've seen is that none of the power supplies

    for the AI make these signals available to use. You could possibly use a USB 3 breakout board to get to the USB 3 data signals on the power cable and make

    a USB 3 cable with the data and power connections for the camera. Using a breakout board may cause signal integrity problems with the high speed USB 3

    data interface especially if the twisted pair data wires are not handled properly (stay twisted right up to the breakout board connection) or if the cable is too

    long. Another possibility is a USB 3 C connector Y cable if they exist. I'm not sure if they do, and a quick google search did not find one. Signal integrity could

    also be a problem with Y cables which may be why I couldn't find one.

     

    The UART interface is way too slow to use for a USB 3 or even a USB 2  full speed interface.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • cstanton
    0 cstanton over 5 years ago in reply to gdstew

    Maybe a USB-C USB hub would work? If it allows backpowering. I may be able to test this.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • gdstew
    0 gdstew over 5 years ago in reply to cstanton

    It's definitely worth trying, it would be the easiest way to do it. As you clearly already know the hub is not supposed to allow back powering

    but at least in the USB 2 hub world it was fairly common. USB 3 power can be a lot more complicated so I would be surprised if anything

    other than a cheap hub would allow it. Unfortunately I do not have a USB 3 hub so I can not test it,  I am very interested in your results if

    you are able to.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • prathamesh12
    0 prathamesh12 over 5 years ago in reply to cstanton

    Please let me know if it works. I am thinking of a powered USB hub in case back-powering is the issue.  

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

    gdstew , prathamesh12 ,

     

    This is one the hubs I own which allows it to be powered as well:

    https://www.aliexpress.com/item/32949231039.html?spm=a2g0s.9042311.0.0.27424c4dtZH6lx

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

    I don't have any hub with me now. But please let me know the results;if you can test it. I can go for similar hub then image.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • prathamesh12
    0 prathamesh12 over 5 years ago in reply to cstanton

    I don't have any hub with me now. But please let me know the results;if you can test it. I can go for similar hub then image.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • cstanton
    0 cstanton over 5 years ago in reply to prathamesh12

    The answer is simply hidden.

     

    sudo /opt/scripts/boot/bbai_usb_host.sh

     

    This executes:

     

    echo "host" > /sys/kernel/debug/48890000.usb/mode

     

    Which puts the USB-C 3.0 hub on the BeagleBone AI into 'USB Host Mode' and allows devices to be detected. While the HDMI isn't currently supported on my device, the USB ports are, and the devices connected were detected. So long as your USB hub back powers the ports, then set the right mode for the USB hub and it'll work fine. You may want to change the other modes as appropriate.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • prathamesh12
    0 prathamesh12 over 5 years ago in reply to cstanton

    This solves the problem. But now my usb hub is getting detected as 2.0

    On linux machine current usb hub is detected as both 2.0 and 3.0

    So is this due to fault in usb-hub?

    Or there is any mode other than host and drvice that can help?

     

    lsusb returns:

    debian@beaglebone:/opt/scripts/boot$ lsusb

    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

    Bus 003 Device 003: ID 2676:ba02 Basler AG ace

    Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub

    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    debian@beaglebone:/opt/scripts/boot$

     

     

    dmesg on linux PC returns:

     

    [12846.476430] usb 2-3: new SuperSpeed USB device number 10 using xhci_hcd

    [12846.499861] usb 2-3: New USB device found, idVendor=05e3, idProduct=0616

    [12846.499863] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0

    [12846.499865] usb 2-3: Product: USB3.0 Hub

    [12846.499867] usb 2-3: Manufacturer: GenesysLogic

    [12846.502231] hub 2-3:1.0: USB hub found

    [12846.502606] hub 2-3:1.0: 4 ports detected

    [12846.624214] usb 1-8: new high-speed USB device number 18 using xhci_hcd

    [12846.783695] usb 1-8: New USB device found, idVendor=05e3, idProduct=0610

    [12846.783698] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0

    [12846.783700] usb 1-8: Product: USB2.0 Hub

    [12846.783701] usb 1-8: Manufacturer: GenesysLogic

    [12846.785064] hub 1-8:1.0: USB hub found

    [12846.786468] hub 1-8:1.0: 4 ports detected

     

    HERE HUB IS BEING DETECTED BOTH AS USB3.0 and USB2.0

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

    It may simply mean the USB 3.0 controller can negotiate USB 2.0 as well, depends how the driver works.

     

    Have you tried connecting a USB 3.0 hub to it, and then your camera? What does it negotiate at?

     

    Because the output provide shows you're connecting a GenesysLogic USB 2.0 hub. Which either means your connected hub is only USB 2.0 or the driver for the GenesysLogic chipset can only negotiate USB 2.0

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

    Hi cstanton

     

    The hub which I am using is USB 3.0 and it is showing GenesysLogic USB 2.0 hub on BB and both 2.0 and 3.0 on linux.

    I did try it on windows. One thing I noticed is Camera does not show up when I connect hub with external power supply along with c type of PC.

     

    May be it's problem with the hub. When you tried connecting it with your hub, dis it show any problem on USB 3.0 except HDMI port? Have you actually tried connecting any USB3.0 device like hdd or something?

    Can you make sure that your hub is connected as USB3.0 host only? If yes then I ll change my hub itself....

     

    Thanks.

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

    prathamesh12

    I'll check it out with the USB 3.0 hub and devices I have.

     

    Until then, have you ensured that your kernel is up to date, and the operating system? bbb.io/upgrade

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

    debian@beaglebone:/opt/scripts$ git pull returns Already up to date.

     

    uname -r returns this  4.14.108-ti-r127

     

    Is this version okay?

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

    Make sure you also run

    sudo tools/update_kernel.sh

     

    Your kernel looks like it may be out of date, or at least there are two more recent versions you can update to:

     

    https://rcn-ee.com/repos/latest/stretch-armhf/LATEST-ti

     

    ABI:1 LTS314 3.14.79-ti-r92

    ABI:1 LTS41 4.1.30-ti-r70

    ABI:1 LTS44 4.4.155-ti-r155

    ABI:1 LTS49 4.9.147-ti-r121

    ABI:1 LTS414 4.14.108-ti-r127

    ABI:1 LTS419 4.19.94-ti-r36

    ABI:1 LTS54 5.4.20-ti-r5

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

    I run this command

    sudo tools/update_kernel.sh --lts-5_20.

    kernel got upgraded. Then I rebooted it but board is not booting at all..........

    D4 led is flashing constantly and nothing else.

    Did I crash os/kernel? What can I do now ?image

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

    > Did I crash os/kernel? What can I do now ?image

     

     

    Not sure.

     

    If you're booting from the onboard eMMC as opposed to an SDCard, then setup an SDCard with an image and boot from that, you can then 'fix' the eMMC onboard. 5.4.20 is the test build, so that was a risky move!

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

    eMMC is booting. I have crashed SD card

    • Cancel
    • Vote Up +1 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