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

Thread: Teensy LC USB.SendSysEx handles only 13 Bytes ?

  1. #1
    Junior Member
    Join Date
    May 2015
    Location
    Austria
    Posts
    3

    Teensy LC USB.SendSysEx handles only 13 Bytes ?

    Hi!

    I've worked all the time with usb midi on Teensy and i also send SysEx Information (max. 13 Bytes) from my MidiFlute to my PC. That worked wonderful. Now i have to expand my SysEx Message from 13 Bytes to 14 and it does not work anymore. All Information after the 13.th Byte is cutted and the Application get a failure on a incomplete SysEx Message.

    At the moment i use Arduino 1.64 and the Teensyduino Betaversion to work with Arduino 1.64.

    Any solution out there or it is a unknown bug ?

    Regards

    Peter

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,082
    It's supposed to be able to send (Teensy to PC) any length, limited only by the size of the buffer you can allocate. Receiving (PC to Teensy) is limited to 60 bytes.

    It might be an unknown bug. I just looked at the code and I can't see how it could possibly be imposing a size limit, at *any* size.

    To investigate, I'd need a way to reproduce the problem here......

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Location
    Boston, MA, USA
    Posts
    1,111
    The bug is most likely in your sketch, not in the USB MIDI code which (on both Teensy 2/++2 and Teensy 3/3.1/LC) has a 60 byte buffer. Check your array declaration, your loop counter logic, and most importantly post your code or a cut-down version of your code which demonstrates the problem.

  4. #4
    Junior Member
    Join Date
    May 2015
    Location
    Austria
    Posts
    3
    Thanks for the fast response. I solved the problem with going back to Arduino vers. 1.63 and normal Teensyduino (not the beta) and new EEPROMEx lib. After that, it worked ok now. But there was a question after investigating my code.
    EEPROM.setMemPool(0, 1024); is ok for Teensy LC ?

    Regards
    Peter

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,082
    Quote Originally Posted by Piwi View Post
    EEPROM.setMemPool(0, 1024); is ok for Teensy LC ?
    Teensy-LC provides only 128 bytes of emulated EEPROM memory.

  6. #6
    Junior Member
    Join Date
    May 2015
    Location
    Austria
    Posts
    3
    Ahh, thank you. Good to know. I have read the specification as 1k EEprom and/or 8 K Emulated. Not as 128 Byte. Its not a Problem yet (14 Bytes), but may be at a later part.

Posting Permissions

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