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

Search:

Type: Posts; User: sixeight

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. It does look like some of the data is being sent...

    It does look like some of the data is being sent and then it stops when the hub is connected. Is there anyway to do a crude jumpstart? I can set a timer inside write_packed that can detect when it is...
  2. Here is the serial monitor after one successful...

    Here is the serial monitor after one successful and then one unsuccessful MIDI message. I uncommented all //print and //println statements I could find in ehci.h. And I added two print statements to...
  3. Tried that, but it does not make a difference. It...

    Tried that, but it does not make a difference. It still works without a hub and fails with the hub.
  4. The MG-300 fails with all hubs. Two Midi...

    The MG-300 fails with all hubs.

    Two Midi messages are sent and then the USBHost library hangs in the loop that is in write_packed(). Tx1 count and tx2_count are not cleared. That is as far as I...
  5. Hi Paul, To explain a bit more clearly: I have...

    Hi Paul,

    To explain a bit more clearly: I have tried several hubs. Belkin, D-Link and some cheap thing from China. They all work fine with the USBHost_t36 library with all sorts of MIDI devices,...
  6. I have been trying to decipher the USBHost...

    I have been trying to decipher the USBHost library for days. But it is very complicated. What would be a good strategy to find out where the data gets stuck? It looks like it is starting to send a...
  7. Replies
    2
    Views
    122

    Thanks Kurt. I changed the order in the...

    Thanks Kurt. I changed the order in the constructor to the order that was shown in encoder.h and now it compiles without warnings.

    Here is the new constructor:
    ...
  8. Replies
    2
    Views
    122

    How to fix the [-Wreorder] warnings?

    I use the following library for my encoders: https://github.com/sixeight7/encoder

    Everytime I compile it, it generates the following warnings:


    In file included from...
  9. I added the following lines to the top of void...

    I added the following lines to the top of void MIDIDeviceBase::write_packed(uint32_t data) in midi.cpp of the USBHost_t36 library:


    println"("tx1_count: ", tx1_count);
    println"("tx2_count: ",...
  10. MIDI device stops working when connected through hub (using USBHost_t36 library)

    My MG-300 guitar processor works fine when connected directly to the USB host port of a Teensy 3.6. But stops responding after a couple of messages when it is connected through a hub.

    This hub...
  11. Reviving an old thread. I have developed the MIDI...

    Reviving an old thread. I have developed the MIDI usb host library further. It now supports multiple messages per USB packet for regular MIDI too.
    The updated code is in my Github repository:...
  12. Finally fixed this issue. The solution: default...

    Finally fixed this issue.
    The solution: default buffersize for Serial1 is 64 bytes. I changed this to 255 bytes and all is well.

    This value can be changed in the following file on Mac:...
  13. Even SoftSerial gives me incomplete data. What am...

    Even SoftSerial gives me incomplete data. What am I missing here. Anyone?


    #include <MIDI.h>
    #include <SoftwareSerial.h>

    SoftwareSerial swSerial(0, 1); // RX, TX
    ...
  14. I tried different buffer sizes, different speeds....

    I tried different buffer sizes, different speeds. Even bypassed the entire MIDI library. No difference. Max message size is 130 bytes. Above that value, data gets lost.

    Has anyone been able to...
  15. MIDI loopback test fails with large messages on Teensy 3.2 and 3.6

    I ran into an issue trying to receive large MIDI messages over Serial1 or Serial2 port on both the Teensy 3.2 and 3.6. I was not receiving any data at all.

    To pinpoint the issue I wrote the sketch...
  16. I found out normal MIDI also supports multiple...

    I found out normal MIDI also supports multiple messages per USB packet. I have done some further experiments with my changes in the previous post. But I found the Teensy hangs whenever I send a...
  17. I found a solution to the slowness of the USBmidi...

    I found a solution to the slowness of the USBmidi with Roland devices. My hunch in the previous post was correct. The USBHost library only sends one 32 bit message in every USB package. But Roland...
  18. Now I am in no way in expert in USB Midi. But I...

    Now I am in no way in expert in USB Midi. But I am comparing the USBHost_t36 library with https://github.com/YuuichiAkagawa/USBH_MIDI/blob/master/usbh_midi.cpp, the MIDI library that goes with the...
  19. Thanks KurtE for responding. I have tried the...

    Thanks KurtE for responding. I have tried the send_now() command, but it does not seem to make any difference. So maybe it is not a timing issue, but something else.

    I have tested the library with...
  20. Did some further tests. Other MIDI devices...

    Did some further tests. Other MIDI devices connected to the USB host port also respond slow to midi messages sent via this library. Is there any way to speed up USB Host communication, or is this not...
  21. MIDI using USBHost_T36 library slow/lagging.

    I have developed a MIDI foot controller that uses a Teensy 3.6 and has midi connections via USB host, USB regular and via serial midi (2x). I noticed that sending MIDI messages out from my foot...
  22. Today I finally solved this issue. It turns out...

    Today I finally solved this issue. It turns out the Boss GP-10 only supports sysex messages via cable 1. The default is cable 0. So the example above will work by changing one line:

    ...
  23. Thanks for replying Paul. I will revive thuis...

    Thanks for replying Paul. I will revive thuis thread once T4 is out and the issue had not been solved some other way.
  24. Most non compliant Boss/Roland can be fixed by...

    Most non compliant Boss/Roland can be fixed by adding a quirk to the usb host library. The USBHost_t36 library has this quirk and it works for the Boss Katana, the Roland GR55 and VG99 which all are...
  25. I have looked at this issue for many hours now,...

    I have looked at this issue for many hours now, and I cannot get my head around it. Though I would reply to my own post to bump it and hope somebody will give me some new ideas or clues.

    A few...
  26. Here is the output from one of the devices that...

    Here is the output from one of the devices that is working (Boss Katana 100):


    sizeof Device = 36
    sizeof Pipe = 96
    sizeof Transfer = 64
    power up USBHS PHY
    reset waited 5
    USBHS_ASYNCLISTADDR...
  27. One Midi Device not working with the USBHost_t36 library

    I am building a device that should be able to connect to several Roland devices. So far I am quite successful, as three of the four devices are working, but one is not. Here is a short video of the...
  28. Replies
    0
    Views
    206

    Getting WS2811 to run with Teensy 3.6

    I have connected a WS2811 chip to a Teensy 3.6 to control my RGB display backlight. I was really struggling to get it to work. Initially the RGB would turn on, but after that the command to change...
  29. Replies
    6
    Views
    2,035

    Here is a link to my code:...

    Here is a link to my code: https://github.com/sixeight7/VController_v3/tree/master/Firmware/VController_v3

    The low level midi stuff is in MIDI.ino.

    The VController project has 13 character...
  30. Replies
    6
    Views
    2,035

    Changed the...

    Changed the Contents/Resources/Java/hardware/teensy/avr/cores/teensy3/serial3.c file inside the Arduino program object. Tried setting the receive buffer to 256 and the interrupt priority to zero. But...
  31. Replies
    6
    Views
    2,035

    Connecting Raspberry Pi to Teensy 3.2

    11877

    I am having trouble getting a Raspberry Pi and a Teensy 3.2 to talk MIDI to each other. Well actually it works fine when I connect the raspberry pi to Serial1 or Serial2 via a full midi...
  32. Replies
    2
    Views
    1,356

    Teensy 3.5 usb host

    The Teensy 3.5 has the same usb host pins as the Teensy 3.6. Is it possible to use these pins to connect a usb device? Will the USB host library of the Teensy 3.6 work on the Teensy 3.5?
  33. Replies
    0
    Views
    826

    PCF8574T / PCF8574AT i2c serial board running at 800 MHz

    I have developed a Midi foot controller with 13 displays running on the i2c bus. I have posted this over here: https://forum.pjrc.com/threads/34072-V-Controller-version-2

    The displays are...
  34. I have used 6n138's for awhile for midi. That one...

    I have used 6n138's for awhile for midi. That one also needs a resistor to drain the charge from the base. But now I have changed to 6n137's. These do not need the extra resistor for the base. Also...
  35. Getting this to work has taken me quite a while....

    Getting this to work has taken me quite a while. But I have managed it in the end:

    * I found i2c speed was kept slow, because the i2c LiquidCrystal library started the i2c bus at 100 kHz and later...
  36. Replies
    2
    Views
    2,027

    Built a new version, with much better firmware....

    Built a new version, with much better firmware. Here is a video of the VController v3:
    https://youtu.be/dFgOi_WOnbg
  37. It does in the example I have provided. In the...

    It does in the example I have provided. In the MIDI controller the loops get long after I have pressed a switch. The first response to a switch, even when it has to read all of the display boards, is...
  38. expanderWriteBoth (MCP23017_GPPUA, SWITCH_PINS,...

    expanderWriteBoth (MCP23017_GPPUA, SWITCH_PINS, 0x00); // pull-up resistor for switch pins

    SWITCH_PINS = B00001111. So the command above does enable the pull-up resistor on the switch pins and...
  39. Debouncing trouble of switches connected to four MCP23017s

    I am struggling to get my foot switches working properly on my MIDI foot controller. I find that I am changing the debouncing time all the time, but the debouncing is not working steadily when the...
  40. Replies
    6
    Views
    3,785

    Excellent! That was it. Now it works!

    Excellent! That was it. Now it works!
  41. Replies
    6
    Views
    3,785

    Tried the command _teensyduino_reboot_(). But the...

    Tried the command _teensyduino_reboot_(). But the Arduino compiler does not recognize the command and gives an error:


    error: 'teensyduino_reboot' was not declared in this scope

    Do I need to...
  42. Replies
    129
    Views
    19,537

    Just found this library: ...

    Just found this library:

    https://github.com/PaulStoffregen/USBHost_t36

    So status is: usbmidi read works and usbmidi write is still a work in progress.
  43. Thanks for the great suggestions. I have it...

    Thanks for the great suggestions. I have it working now. I have to put a delay between writing and reading as well, otherwise the data is not read correctly.

    I am on Arduino 1.23 on an ancient...
  44. Added full code and the error - my bad. No time...

    Added full code and the error - my bad. No time to look at it again until this evening...
  45. Need to write a struct fast from and to an 24LC512 chip over i2c

    This code compiles but gives an ambigious warning:


    struct_test.ino: In function 'void read_cmd_EEPROM(uint16_t, Cmd_struct*)':
    struct_test.ino:42:54: warning: ISO C++ says that these are...
  46. Replies
    129
    Views
    19,537

    So, what is the status of USB host mode on the...

    So, what is the status of USB host mode on the Teensy 3.6?
    I am hoping to use it as a MIDI host. But is it working?
  47. 10 ms should be fine. This delay time is...

    10 ms should be fine. This delay time is mentioned in Roland's midi implementation guides. I have tried several delay times, but none of them worked.

    The problem turned out to be hardware related....
  48. Replies
    5
    Views
    2,407

    AFAIK you can still use the old wire.h library on...

    AFAIK you can still use the old wire.h library on Teensy. Only when you use both i2c ports, you need the new i2c_t3 one.

    And I have built my own controller pcb boards that support three displays,...
  49. Replies
    0
    Views
    691

    Adding delays to serial Midi messages

    I have quite successfully built and programmed a Midi foot controller for several Roland devices. But at times the device will miss part of a message. To get successfully communication, I have to add...
  50. Replies
    5
    Views
    2,407

    Control several displays from one PCF8574

    For the production version of my VController project, I would like to use 12 RGB displays. As the PCF chips only have eight addresses I would like to connect three displays to one PCF8574. I would...
Results 1 to 50 of 81
Page 1 of 2 1 2