Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Teensy 4.1 USB Host Questions

  1. #1
    Junior Member
    Join Date
    Dec 2018
    Posts
    17

    Teensy 4.1 USB Host Questions

    Maybe this is a dumb question, but is it possible to use the Teensy 4.1 USB host hardware to communicate directly with a PC? I essentially want the USB host on the teensy to send raw data back and forth between my PC in a way that looks something like this: https://www.pjrc.com/teensy/rawhid.html

    I guess I'm confused about whether two hosts can communicate with each other -- is there a way to set my teensy host to be a USB device instead?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,199
    Indeed two USB Hosts won't communicate. And So far the T_4.x USB Host hardware has only been supported in HOST mode.

    This can work using a UART to USB adapter from one of the T_4.1's serial ports. Even a second Teensy's USB Device port could be used where it has a UART Serial connect to the T_4.1 and echoes incoming data out the USB port.

  3. #3
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,722
    Quote Originally Posted by defragster View Post
    And So far the T_4.x USB Host hardware has only been supported in HOST mode.
    But in theory could be programmed as a USB device, see https://github.com/WMXZ-EU/USB2/tree...ples/test-usb2 as an example for T3.6. Did not try it on T4, as I had no need.

  4. #4
    Junior Member
    Join Date
    Dec 2018
    Posts
    17
    Thanks for the info!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •