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

Thread: Two usb client ports

  1. #1

    Two usb client ports

    Is there any Version of a teensy that allows to have two usb client connectors? I am trying to send midi from a host to a host.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,072
    Officially, no. The 2nd USB port is only supported in USB host mode.

    Unofficially, I believe WMXZ published a library with the normal device mode code converted to use the 2nd USB port. As I recall, it was only USB serial so far. Sorry, don't have the link handy, but maybe you can find it with a search?

  3. #3
    Senior Member
    Join Date
    Jul 2014
    Posts
    3,150
    https://github.com/WMXZ-EU/USB2
    I did it for T3.6 but have not ported this functionality to T4
    (too busy with priority job)

  4. #4
    Nice! I am fine with a teensy 3.6... is there any chance you (or somebody else) would add usb midi on the second port? Would that be much work? I think this is over my head, but might give it a try if somebody can guide a little.

  5. #5
    Senior Member
    Join Date
    Jul 2014
    Posts
    3,150
    Quote Originally Posted by lokki View Post
    Nice! I am fine with a teensy 3.6... is there any chance you (or somebody else) would add usb midi on the second port? Would that be much work? I think this is over my head, but might give it a try if somebody can guide a little.
    I'm afraid that I have no experience with midi, but I can tell you that the 2nd usb was modelled after T4 so T4 midi would be a good starting point.

    But if you wanted to take on the challenge, I suggest to first get the 2nd usb (usb2) working with serial, then to compare the usb2.c and usb2_serial.c with T4 version, and finally copy usb_midi to usb2, understand it and try it out. If it turns out this type of hacking is not turning out to your comfort, maybe someone with midi experience can help.

  6. #6
    Hmm, I just had another thought. What about inter-connecting two teensies via serial and send USB midi from one to the other via serial and back out the other teensies usb? The teensy serial midi communication could also be set at a higher baudrate, correct? (A forum search seems to indicate it should work)

  7. #7
    ok, bought two teensy lc boards, set up a simple usb midi to serial midi sketch on one, and the opposite on the other, boosted MIDI (Serial) Baudrate to 1000000 and it works nice and fast! so cool...

Posting Permissions

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