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
Moto Mods
  • Products
  • Manufacturers
  • Moto Mods
  • More
  • Cancel
Moto Mods
Forum Anything special to get USB to work on the side of the case?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Moto Mods to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 28 replies
  • Answers 6 answers
  • Subscribers 59 subscribers
  • Views 2196 views
  • Users 0 members are here
Related

Anything special to get USB to work on the side of the case?

garengllc
garengllc over 8 years ago

I have a Moto Z and was hoping to connect an RTL-SDR dongle to the side of the proto case.  I attempted to setup the dip switches to enable the USB 3.1 interface and connected a USB OTG cable, but the phone is still not recognizing the device (I am using the middle USB connection).  Is there something else that I am missing?

  • Sign in to reply
  • Cancel

Top Replies

  • flowflow25
    flowflow25 over 8 years ago in reply to anttibrain +2 suggested
    Some notes on USB to try and answer several of the questions here. USB3 is literally just that, the USB3 PHY. It does not include the additional lines for USB2 (those have their own dedicated interface…
  • anttibrain
    anttibrain over 8 years ago +1 suggested
    Please read the documents the switches you need are the A3/A4 the USB 3.1 switches are not relevant if you want to use RTL dongle that is pure USB2 device. Unfortunatly I can not test anything here as…
  • michaelkellett
    michaelkellett over 8 years ago in reply to anttibrain +1
    I'm interested in the FPGA side of things but not into the moto-z. My application for TE0725 is to do prototyping for new designs where we will use Artix FPGA (probably 100 size) and also for use in test…
Parents
  • anttibrain
    0 anttibrain over 8 years ago

    after fixing the app clear issue with MDK (so MDK works again) I can also not see the microOTG memory stick connected to microUSB B connector, do not know why.

     

    EDIT:

     

    moto-Z USB-C to usb host, USB3 Stick works (without MDK)

    moto-Z MDK mid USBC same cable same usb stick does not work

    moto-Z usb stick in microUSB does not work

     

    I guess the manifest may have to be changed??

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • flowflow25
    0 flowflow25 over 8 years ago in reply to anttibrain

    Some notes on USB to try and answer several of the questions here.

    USB3 is literally just that, the USB3 PHY.  It does not include the additional lines for USB2 (those have their own dedicated interface).  You *may* look and find a device that will route USB2 traffic over USB3 for you, which would be handy in a dock type configuration.  Additionally, when using USB3.0, the MDK does not support reversible cables.  If your device does not enumerate, try flipping the cable.  The existing 'compute' example firmware has support for attaching USB3.0 devices to the middle port on the MDK.
    If it enumerates when attached to the Moto Z with an OTG cable, it should work through the MDK.  Please take a look at the new usb2 sample firmware posted for basic connectivity.  Please note that the MDK does not support hot plug detect for USB2.
    So if you didn't write any firmware with the USB-Ext protocol, that's probably a big reason why USB isn't working.  It's always good to attempt a direct connection to Moto Z with an OTG cable to ensure you understand that devices behavior when it enumerates.
    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • garengllc
    0 garengllc over 8 years ago in reply to flowflow25

    Thank you anttibrain and Christian!

     

    I realized that I was having issues with my Aukey USB-C to uUSB adapter -> uUSB OTG to USB -> thumbdrive USB 2.0 connection.  When I changed to a USBC USB OTG to USB -> thumbdrive USB 2.0 it was happy when plugged directly into the phone with no MDK.  So thank you for helping me to realize some sort of hardware issue on my side.

     

    I still have had no luck getting the thumbdrive to enumerate on the side of the MDK.  I have not touched the firmware on the MDK at all, is that necessary for just routing USB 2.0 through the MDK to the side, or only if I try to access the USB from the protoboard personality card?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • anttibrain
    0 anttibrain over 8 years ago in reply to garengllc

    Read the flowflow25 response, the MDK USB connectors DO NOT AUTO DETECT usb devices !!!

     

    so you need to change the firmware!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • garengllc
    0 garengllc over 8 years ago in reply to garengllc

    OK, it was still unclear to me before, but I think I've got it now (been reading up on it this morning).  I see the example talked about here: https://developer.motorola.com/build/examples/misc , but I don't see where the download that example.  I guess I am missing an SDK or something, I will go hunting for that now.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • garengllc
    0 garengllc over 8 years ago in reply to anttibrain

    OK, I went through all the install steps and everything seemed to go off without a hitch.  I then:

    cd $BUILD_TOP/nuttx/nuttx/tools

    ./configure.sh hdk/muc/usb2

    cd ~/MDKfirmware/muc-loader

    openocd -f board/moto_mdk_muc_reset.cfg -c "program ./out/boot_hdk.bin 0x08000000 reset exit"

    cd ~/MDKfirmware/nuttx/nuttx

    openocd -f board/moto_mdk_muc_reset.cfg -c "program nuttx.tftf 0x08008000 reset exit"

     

    I connected my MDK to the phone and powered it up.  It recognized a non-certified firmware (or something to that effect), and I allowed it access.  I then plugged in my thumb drive and it doesn't enumerate.  I even tried booting with the thumbdrive plugged in, but still no dice.  What might I be missing?

     

    <<edit>>

    Also of note is that all dip switches are set to the OFF position.  I did try setting A4 to ON, but that didn't help either.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • flowflow25
    0 flowflow25 over 8 years ago in reply to garengllc

    The example is in nuttx/nuttx/configs/hdk/muc/

    You'll see the usb2 project here, and the stm32_usbext_usb2.c file in the src directory.

    You may need to do a 'git pull' on the nuttx repository, it was just pushed last weekend.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • garengllc
    0 garengllc over 8 years ago in reply to flowflow25

    Thanks. I posted something on FRI about my steps, but it got attached further up in the thread where it is easy to overlook.  I managed to build and install the usb2 project to the MDK.  Through a lot of trial and error, I can get the USB 2.0 to work on the 3rd USB port on the side (the uUSB connector) if I set A3=ON and A4=OFF.  I thought that if I set A3=OFF and A4=ON that the middle USB port would work for USB 2.0, but I guess not...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • flowflow25
    0 flowflow25 over 8 years ago in reply to garengllc

    Actually that looks correct.

    USB on TypeC: A3 = off, A4 = on

    USB on microB: A3 = on, A4 = off

     

    1. Are you using an OTG cable with the TypeC port?  If not, you may try a Hub.

    2. Have you tried flipping the cable?

     

    I just verified here with the usb2 firmware and a USB2 device attached to a hub attached to USB2 (middle TypeC).  You may also use an OTG cable instead of a hub.  Did you move away from using USB3.1, or that was overkill?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • garengllc
    0 garengllc over 8 years ago in reply to flowflow25

    I just tried A3 = off, A4 = on again and still no dice.  The USB-C on the bottom of the phone works, but the missdle USB port on the side does not.

     

    I am using an OTG cable with the TypeC port.

     

    I tried flipping the cable, still no love.....

    I moved away from 3.1.  I have a 2.0 device, so I needed to go that path. I was thinking that in 3.1 it would be backwards compatible, so I was interested in that route, but you explained why that isn't so.

     

    I obviously got the usb2 project loaded properly, but I cannot for the life of me figure out why the middle USB port won't work.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • garengllc
    0 garengllc over 8 years ago in reply to flowflow25

    I just tried A3 = off, A4 = on again and still no dice.  The USB-C on the bottom of the phone works, but the missdle USB port on the side does not.

     

    I am using an OTG cable with the TypeC port.

     

    I tried flipping the cable, still no love.....

    I moved away from 3.1.  I have a 2.0 device, so I needed to go that path. I was thinking that in 3.1 it would be backwards compatible, so I was interested in that route, but you explained why that isn't so.

     

    I obviously got the usb2 project loaded properly, but I cannot for the life of me figure out why the middle USB port won't work.

    • 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 © 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