Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: SteveBar

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    118

    USBHost_t36 attach/detach callbacks

    HI All,
    I really wanted to get "call backs" when USB devices attached and detached, so a buddy helped me add some code to USBHost_t36.h and enumeration.cpp...

    The 1st goal was so no polling...
  2. Thanks. I wonder how Serial6 got damaged??? I...

    Thanks.

    I wonder how Serial6 got damaged??? I was soldering on the belly-pads to get TX6 cabled up... it may have arrived that way too???
    Steve
  3. Hi Paul, We ordered and just received another...

    Hi Paul,
    We ordered and just received another couple T36's and did a test. Our original T36 has a bad Serial6, the new ones work fine. :-)

    I don't know how to change the name of this thread or...
  4. Maybe I have an issue with my T3.6... even this...

    Maybe I have an issue with my T3.6... even this hangs. BTW changing 6 to 1-5 works (using the appropriate pins).
    I tried with no MIDI driver to remove complexity, just sending a serial byte 0xF8 =...
  5. Hi Paul, Here's an example. Middle C on/off... ...

    Hi Paul,
    Here's an example. Middle C on/off...


    #include <MIDI.h>

    // Serial hardware UART 6
    // MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, midiF); <--- this works SERIAL #1
    ...
  6. Thanks guys for looking into this. Really super...

    Thanks guys for looking into this. Really super appreciate it. When I get back to work Monday morning I will try the samples above.

    KurtE, Maybe some timing delays would help??? What exactly do...
  7. Can someone try this code on their T3.6 to see if...

    Can someone try this code on their T3.6 to see if it locks up? No soldering required, because the no MIDI data ever comes out the port.
    Thanks
    Steve
  8. In MIDI.hpp, on or about line 123, is the Send()...

    In MIDI.hpp, on or about line 123, is the Send() function (see code below). It handles sending Real-Time msgs... but the bounds checking requires the channel must = 1-16. It wasn't working for me...
  9. Looking for info on Serial MIDI Real-Time message support

    Hi All,
    Does anyone have a link to or info on the Serial MIDI Driver support for MIDI real-time messages: Clk, Start, Stop, & Continue (F8, FA, FB, & FC). I can't seem to find a definitive answer, ...
  10. HI All, Here's an update: I got the whole...

    HI All,
    Here's an update:

    I got the whole thing working and it is really cool. Well, not SysEx yet, but all the 1,2,& 3 byte MIDI messages including the real time messages: Clk, Start, Stop, &...
  11. T3.6 crash when using Serial Port #6 for MIDI - after Teensy Damaged

    Hi ALL,
    I searched for this potential issue and did not have any luck finding it... if there is info on this please LMK. :-)

    We isolated this issue using example 'Basic I/O' as a starting point...
  12. Yikes... 64 bit operations aren't always...

    Yikes... 64 bit operations aren't always working!!! i.e. bit-shift <<, >> and print. Oy!
    Maybe I will be using a 32 bit ring buffer...
    - Steve
  13. Iím using 64 bits now with the presumption that I...

    Iím using 64 bits now with the presumption that I would be feeding the ring buffer from the send_sMIDITxMsg function in real time, in the next version. This version is only using the 64bit...
  14. Here's the next version of the "8x Soft MIDI Tx"...

    Here's the next version of the "8x Soft MIDI Tx" test code.
    This code snippet sends MIDI Note-On messages every 62.5 msec (120 BMP - 1/8th notes) to all 8 Pins with notes C4, E4, G4, C5, E5, G5, C6,...
  15. UPDATE: Issue: every ~6sec there is a corrupt...

    UPDATE:
    Issue: every ~6sec there is a corrupt message coming out of the bit-banged MIDI out pin, ONLY under intense conditions:

    Updating 26 NeoPixels every 125ms (typically only updated once...
  16. 3 ARM procs a might be UART efficient, but maybe...

    3 ARM procs a might be UART efficient, but maybe not cost efficient. :-)

    That reminds me, our original plan was to use the T4.0. How close is that? We'd really rather target that platform.
    ...
  17. Thanks again Pete. I’m planning on writing a...

    Thanks again Pete.
    I’m planning on writing a function called “sendMIDImsg”, that is very similar to the standard midi lib function. This fcn will do all the midi formatting/translating to a bit...
  18. Thanks Pete! I edited the code above and moved...

    Thanks Pete! I edited the code above and moved the gTXReadHead inc below the write.
  19. Thanks el_supremo! I think you pointed out all...

    Thanks el_supremo! I think you pointed out all the right issues! Thanks so much for taking the time. I just reposted the new MIDI bit stream test data and some small changes in the code. These seem...
  20. Thanks Paul for the scope pics! ITS WORKING!...

    Thanks Paul for the scope pics!

    ITS WORKING! It was a couple things...

    LSB v MSB, it turns out LSB bit first!
    Pad the buffer with 1's
    inverse logic, the not "!" is removed from the...
  21. I tried all variations and sent the buffer: both...

    I tried all variations and sent the buffer:
    both forward & reverse order... flipped polarity start/stop bit... padded buffer w/ 0 or 1 ...
    ...none resulted in the desired interpretation from...
  22. Thanks Paul... I modified the image and super...

    Thanks Paul...
    I modified the image and super imposed the 0/1 stream... looks like the right bits are getting thru. I'll double check my "format" of the MIDI bit stream.
    16447
  23. MIDI Bit-Bang via 32usec Interrupt timer on T3.6

    Here's my stab at writing the code. I love any feedback, suggestions, comments...

    Theory of operation:

    setup 32usec interrupt timer at high priority to callback bit-bang function once per...
  24. If I did the calc right, a clock tic @240MHz...

    If I did the calc right, a clock tic @240MHz ~4.2nano sec. so 30us = ~7200 ticks!
    I think the ISR would need to inc a counter, test for empty buffer, test 8 on/off states and set 8 pin states to...
  25. Hi Frank, Thanks for your feedback. In addition...

    Hi Frank,
    Thanks for your feedback. In addition to using an interrupt timer I was planning to do all 8 outputs simultaneously in the same interrupt handler, as you mentioned. This will require only...
  26. Hi Paul/All, Here are some more details... I...

    Hi Paul/All,
    Here are some more details... I have a prototype of this already built and running and about 60% of the code written. Below is the current input/output definitions of the MIDI router....
  27. Could the "tunedDelay" function in the...

    Could the "tunedDelay" function in the Softwareserial lib be achieved by using a high priority 32 micro-sec interrupt timer, and not turning off interrupts?

    Guess Iím asking for someoneís help......
  28. MIDI can be daisy-chained from device to...

    MIDI can be daisy-chained from device to device... but that can add latency especially with older devices. And tedious when re-configuring equipment. So spitting the MIDI and running cables in...
  29. I need more than 6 outputs. Steve

    I need more than 6 outputs.
    Steve
  30. BTW given its MIDI at 31250 baud its fixed at a...

    BTW given its MIDI at 31250 baud its fixed at a 32usec pulse
  31. For instance functions "tx_pin_write" &...

    For instance functions "tx_pin_write" & "tunedDelay" are called bracketed by toggling all interrupts. Could "tunedDelay" be achieved by setting a high priority micro-sec timer to the pulse width...
  32. Here's the SoftwareSerial.cpp that I modified......

    Here's the SoftwareSerial.cpp that I modified... all locations where code was commented out or added has the comment... "// added by SEB to remove RX delays"


    /*
    SoftwareSerial.cpp (formerly...
  33. Hi Paul thanks for the reply. Any chance of...

    Hi Paul thanks for the reply.
    Any chance of getting a function to read the port and hub numbers? Otherwise the user has no idea which physical device corresponds to which logical device# in the...
  34. Tx only needed in Softserial lib for MIDI on T3.6 -

    If I missed this info in another thread feel free to point to it, I’ve been browsing and reading for several hours today and haven’t come across these answers. But learned a ton of other stuff in the...
  35. T3.6 USB Host MIDI - Theory of operation question

    If I missed this info in another thread feel free to point to it, Iíve been browsing and reading for several hours today and havenít come across these answers. But learned a ton of other stuff in the...
  36. Hi Guys, Thanks for all the hard work on these...

    Hi Guys,
    Thanks for all the hard work on these drivers, and the due diligence on transport-specific driver consistency.
    Steve
    Conductive Labs
  37. Replies
    81
    Views
    15,367

    Can you share where you found it? Thanks :-)

    Can you share where you found it? Thanks :-)
  38. Possible mismatch in Fcn params - teensy/td_midi.html vs sample code

    Hi Paul,
    Never Mind :-)
    Steve
Results 1 to 38 of 38