logicprose
New member
Using a 3.6 board...
Be kind... I am very new at this...
Trying to transmit midi data (sysex specifically) out the 2nd USBHost port
I have data monitors on both the 1st (slave) and the 2nd host ports.
Midi out over the 1st port (slave) works perfectly.
Midi out over the Host port - "appears" to not transmit anything....
I have tried to simplify the code based on examples provided, however have been unsuccessful and thought I must be doing something wrong....
Any help or guidance would be greatly appreciated.
Code example ( is this correct ?)
#include <USBHost_t36.h>
uint8_t buf[] = {0xF0, 0x41, 0x10, 0x00, 0x00, 0x00, 0x4D, 0x12, 0x30, 0x00, 0x10, 0x1F, 0x13, 0x0E, 0xF7};
USBHost myusb;
USBHub hub1(myusb);
USBHub hub2(myusb);
MIDIDevice midi01(myusb);
void setup() {
delay(1500);
myusb.begin();
}
void loop() {
midi01.sendSysEx(15,buf,true,0); // No midi activity - lights or data on logger
midi01.sendSysEx(15,buf,true,1);
midi01.sendSysEx(15,buf,true,2);
usbMIDI.sendSysEx(15,buf,true,0); //works fine out the slave port
midi01.sendNoteOn (71, 56, 1);
midi01.sendNoteOff (71, 0, 1);
usbMIDI.sendNoteOn (71, 56, 1); //works fine out the slave port
usbMIDI.sendNoteOff (71, 0, 1); //works fine out the slave port
delay(500);
Serial.println("USB Host Port - Transmitting........");
}
Debugging info.... the USBHost port when connecting to Mio4
port change: 10001803
connect
begin reset
port change: 10001005
port enabled
end recovery
new_Device: 12 Mbit/sec
new_Pipe
enumeration:
enumeration:
enumeration:
Device Descriptor:
12 01 10 01 00 00 00 40 21 23 07 00 00 01 01 02 03 01
VendorID = 2321, ProductID = 0007, Version = 0100
Class/Subclass/Protocol = 0 / 0 / 0
Number of Configurations = 1
enumeration:
enumeration:
Manufacturer: iConnectivity
USB Host Testing 1114
enumeration:
Product: mio4
enumeration:
Serial Number: 000003D6
enumeration:
Config data length = 581
enumeration:
Configuration Descriptor:
09 02 45 02 02 01 00 C0 00
NumInterfaces = 2
ConfigurationValue = 1
09 04 00 00 00 01 01 00 00
Interface = 0
Number of endpoints = 0
Class/Subclass/Protocol = 1 / 1 / 0
09 24 01 00 01 09 00 01 01
09 04 01 00 02 01 03 00 00
Interface = 1
Number of endpoints = 2
Class/Subclass/Protocol = 1 / 3 / 0
07 24 01 00 01 21 02
06 24 02 01 10 10
06 24 02 01 11 11
06 24 02 01 12 12
06 24 02 01 13 13
06 24 02 01 14 14
06 24 02 01 15 15
06 24 02 01 16 16
06 24 02 01 17 17
06 24 02 01 18 18
06 24 02 01 19 19
06 24 02 01 1A 1A
06 24 02 01 1B 1B
06 24 02 01 1C 1C
06 24 02 01 1D 1D
06 24 02 01 1E 1E
06 24 02 01 1F 1F
06 24 02 02 20 00
06 24 02 02 21 00
06 24 02 02 22 00
06 24 02 02 23 00
06 24 02 02 24 00
06 24 02 02 25 00
06 24 02 02 26 00
06 24 02 02 27 00
06 24 02 02 28 00
06 24 02 02 29 00
06 24 02 02 2A 00
06 24 02 02 2B 00
06 24 02 02 2C 00
06 24 02 02 2D 00
06 24 02 02 2E 00
06 24 02 02 2F 00
09 24 03 01 40 01 20 01 10
09 24 03 01 41 01 21 01 11
09 24 03 01 42 01 22 01 12
09 24 03 01 43 01 23 01 13
09 24 03 01 44 01 24 01 14
09 24 03 01 45 01 25 01 15
09 24 03 01 46 01 26 01 16
09 24 03 01 47 01 27 01 17
09 24 03 01 48 01 28 01 18
09 24 03 01 49 01 29 01 19
09 24 03 01 4A 01 2A 01 1A
09 24 03 01 4B 01 2B 01 1B
09 24 03 01 4C 01 2C 01 1C
09 24 03 01 4D 01 2D 01 1D
09 24 03 01 4E 01 2E 01 1E
09 24 03 01 4F 01 2F 01 1F
09 24 03 02 30 01 10 01 00
09 24 03 02 31 01 11 01 00
09 24 03 02 32 01 12 01 00
09 24 03 02 33 01 13 01 00
09 24 03 02 34 01 14 01 00
09 24 03 02 35 01 15 01 00
09 24 03 02 36 01 16 01 00
09 24 03 02 37 01 17 01 00
09 24 03 02 38 01 18 01 00
09 24 03 02 39 01 19 01 00
09 24 03 02 3A 01 1A 01 00
09 24 03 02 3B 01 1B 01 00
09 24 03 02 3C 01 1C 01 00
09 24 03 02 3D 01 1D 01 00
09 24 03 02 3E 01 1E
error: length beyond total data size
enumeration:
USBHub memory usage = 960
USBHub claim_device this=1FFF2020
USBHub memory usage = 960
USBHub claim_device this=1FFF23E0
Descriptor 4 = INTERFACE
MIDIDevice claim this=1FFF27A0
len = 503
Interface is unknown (might be Yahama)
type: 36, len: 9
MIDI Header (ignored)
type: 4, len: 9
Descriptor 36 = ???
Descriptor 4 = INTERFACE
MIDIDevice claim this=1FFF27A0
len = 485
Interface is MIDI
type: 36, len: 7
MIDI Header (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Be kind... I am very new at this...
Trying to transmit midi data (sysex specifically) out the 2nd USBHost port
I have data monitors on both the 1st (slave) and the 2nd host ports.
Midi out over the 1st port (slave) works perfectly.
Midi out over the Host port - "appears" to not transmit anything....
I have tried to simplify the code based on examples provided, however have been unsuccessful and thought I must be doing something wrong....
Any help or guidance would be greatly appreciated.
Code example ( is this correct ?)
#include <USBHost_t36.h>
uint8_t buf[] = {0xF0, 0x41, 0x10, 0x00, 0x00, 0x00, 0x4D, 0x12, 0x30, 0x00, 0x10, 0x1F, 0x13, 0x0E, 0xF7};
USBHost myusb;
USBHub hub1(myusb);
USBHub hub2(myusb);
MIDIDevice midi01(myusb);
void setup() {
delay(1500);
myusb.begin();
}
void loop() {
midi01.sendSysEx(15,buf,true,0); // No midi activity - lights or data on logger
midi01.sendSysEx(15,buf,true,1);
midi01.sendSysEx(15,buf,true,2);
usbMIDI.sendSysEx(15,buf,true,0); //works fine out the slave port
midi01.sendNoteOn (71, 56, 1);
midi01.sendNoteOff (71, 0, 1);
usbMIDI.sendNoteOn (71, 56, 1); //works fine out the slave port
usbMIDI.sendNoteOff (71, 0, 1); //works fine out the slave port
delay(500);
Serial.println("USB Host Port - Transmitting........");
}
Debugging info.... the USBHost port when connecting to Mio4
port change: 10001803
connect
begin reset
port change: 10001005
port enabled
end recovery
new_Device: 12 Mbit/sec
new_Pipe
enumeration:
enumeration:
enumeration:
Device Descriptor:
12 01 10 01 00 00 00 40 21 23 07 00 00 01 01 02 03 01
VendorID = 2321, ProductID = 0007, Version = 0100
Class/Subclass/Protocol = 0 / 0 / 0
Number of Configurations = 1
enumeration:
enumeration:
Manufacturer: iConnectivity
USB Host Testing 1114
enumeration:
Product: mio4
enumeration:
Serial Number: 000003D6
enumeration:
Config data length = 581
enumeration:
Configuration Descriptor:
09 02 45 02 02 01 00 C0 00
NumInterfaces = 2
ConfigurationValue = 1
09 04 00 00 00 01 01 00 00
Interface = 0
Number of endpoints = 0
Class/Subclass/Protocol = 1 / 1 / 0
09 24 01 00 01 09 00 01 01
09 04 01 00 02 01 03 00 00
Interface = 1
Number of endpoints = 2
Class/Subclass/Protocol = 1 / 3 / 0
07 24 01 00 01 21 02
06 24 02 01 10 10
06 24 02 01 11 11
06 24 02 01 12 12
06 24 02 01 13 13
06 24 02 01 14 14
06 24 02 01 15 15
06 24 02 01 16 16
06 24 02 01 17 17
06 24 02 01 18 18
06 24 02 01 19 19
06 24 02 01 1A 1A
06 24 02 01 1B 1B
06 24 02 01 1C 1C
06 24 02 01 1D 1D
06 24 02 01 1E 1E
06 24 02 01 1F 1F
06 24 02 02 20 00
06 24 02 02 21 00
06 24 02 02 22 00
06 24 02 02 23 00
06 24 02 02 24 00
06 24 02 02 25 00
06 24 02 02 26 00
06 24 02 02 27 00
06 24 02 02 28 00
06 24 02 02 29 00
06 24 02 02 2A 00
06 24 02 02 2B 00
06 24 02 02 2C 00
06 24 02 02 2D 00
06 24 02 02 2E 00
06 24 02 02 2F 00
09 24 03 01 40 01 20 01 10
09 24 03 01 41 01 21 01 11
09 24 03 01 42 01 22 01 12
09 24 03 01 43 01 23 01 13
09 24 03 01 44 01 24 01 14
09 24 03 01 45 01 25 01 15
09 24 03 01 46 01 26 01 16
09 24 03 01 47 01 27 01 17
09 24 03 01 48 01 28 01 18
09 24 03 01 49 01 29 01 19
09 24 03 01 4A 01 2A 01 1A
09 24 03 01 4B 01 2B 01 1B
09 24 03 01 4C 01 2C 01 1C
09 24 03 01 4D 01 2D 01 1D
09 24 03 01 4E 01 2E 01 1E
09 24 03 01 4F 01 2F 01 1F
09 24 03 02 30 01 10 01 00
09 24 03 02 31 01 11 01 00
09 24 03 02 32 01 12 01 00
09 24 03 02 33 01 13 01 00
09 24 03 02 34 01 14 01 00
09 24 03 02 35 01 15 01 00
09 24 03 02 36 01 16 01 00
09 24 03 02 37 01 17 01 00
09 24 03 02 38 01 18 01 00
09 24 03 02 39 01 19 01 00
09 24 03 02 3A 01 1A 01 00
09 24 03 02 3B 01 1B 01 00
09 24 03 02 3C 01 1C 01 00
09 24 03 02 3D 01 1D 01 00
09 24 03 02 3E 01 1E
error: length beyond total data size
enumeration:
USBHub memory usage = 960
USBHub claim_device this=1FFF2020
USBHub memory usage = 960
USBHub claim_device this=1FFF23E0
Descriptor 4 = INTERFACE
MIDIDevice claim this=1FFF27A0
len = 503
Interface is unknown (might be Yahama)
type: 36, len: 9
MIDI Header (ignored)
type: 4, len: 9
Descriptor 36 = ???
Descriptor 4 = INTERFACE
MIDIDevice claim this=1FFF27A0
len = 485
Interface is MIDI
type: 36, len: 7
MIDI Header (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 6
MIDI IN Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
type: 36, len: 9
MIDI OUT Jack (ignored)
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???
Descriptor 36 = ???