py-midi icon indicating copy to clipboard operation
py-midi copied to clipboard

conn.write(msg) not working

Open ZacharyMay opened this issue 5 years ago • 1 comments

I'm trying to use this library to send a SysEx message to my Boss GT-1 pedal.

Here's what the full message should look like (with header and footer): F0 41 00 00 00 00 30 12 7F 00 00 01 01 7F F7 (all values in hex)

Here's my code: `from midi import MidiConnector, SysEx, Message conn = MidiConnector('/dev/serial1', timeout=5)

sysexCmd = SysEx(0x41, 0x00, 0x00, 0x00, 0x00, 0x30, 0x12, 0x7f, 0x00, 0x00, 0x01, 0x01, 0x7f)

msg = Message(sysexCmd)

conn.write(msg)`

I'm trying all of this on a Raspberry Pi 3, but the conn.write() method never returns and the message is never sent.

ZacharyMay avatar Dec 31 '19 23:12 ZacharyMay

Sorry for a late reply.

If you try another type of MIDI message, does it work?

What I want to know is: are you sure that the problem comes from the library, and not from the serial connection?

edthrn avatar Jan 21 '20 13:01 edthrn