2016-12-16 5 views
0

den LE Rahmen Bluetooth MIDI verwenden, sende ich diese MIDI SYSEX Nachricht über Bluetooth:MIDI Bluetooth LE, SYSEX Nachrichten vervollständigen nicht

"F0H 26H 79H 0EH 7FH F7H"

I erhalten über Bluetooth:

"F0H 26H 79H 0EH 7FH" (Ende SYSEX fehlt)

Ich muss das Ende Byte programmgesteuert hinzufügen, aber ich weiß nicht, wann dann endet. Ist das ein Fehler im Framework?

+1

Zeigen Sie Ihren Code. –

Antwort

0

Bei der Rückrufmethode ist ein Fehler aufgetreten. Jetzt funktioniert es gut mit dem Yamaha MD-BT01.

fängt den MIDI-In-Daten und füllt sie in einem Ringpuffer für eine spätere Behandlung:

static void MyMIDIReadProc(const MIDIPacketList *pktlist, void *refCon, void *connRefCon) { 
for (unsigned int i = 0; i < pktlist->numPackets; i++) { 
    if (i == 0) packet2 = pktlist->packet[0]; 
    nBytes2 = packet2.length; 
    iByte2 = 0; 
    while (iByte2 < nBytes2) { 
     inputByte2 = packet2.data[iByte2]; 
     inppoint2++; 
     if (inppoint2 >= bufsize2){ 
      inppoint2 = 0; 
     } 
     inputBuffer2[inppoint2] = inputByte2; 
     iByte2 ++; 
    } 
    packet2 = *MIDIPacketNext(&packet2); 
} 

}

Verwandte Themen