MidiLink REALLY wants to use USB serial
Posted: Mon Feb 22, 2021 9:39 pm
I have a Roland UM-ONE USB MIIDI adapter that has worked great for me for a long time now. However recently it stopped working. I thought maybe it had died, but hooking it up to another computer shows it is working fine.
Tooling around on the command line I noticed that MidiLink is trying to use serial USB instead of the Roland interface. There is this file: /tmp/ML_SERMIDI that seems to force USB serial. If I delete that file, MIDI stuff starts working again. I don't even have to restart MidiLink, it just works fine after that.
The issue is that that file comes back every time I turn the Mister back on. I'd like to say it "just stopped working" but I had not tried the MIDI stuff in 2-3 weeks so maybe something happened within that time that crunked it.
I have the ao486 core set to:
UART mode(MIDI)
Connection: MIDI
MidiLink: USB
Baud: 31250
The only issue seems to be that file mucking up the works. I trash it and everything works fine as usual. Any ideas? Has anyone come across this before? Searching the forums for "ML_SERMIDI" yields nothing.
EDIT
I did a little bit more investigation and it looks like the ML_SERMIDI file doesn't get created until ao486 is started.
EDIT #2
If I run "midilink" with no arguments while the core is running, MIDI works fine.
If I run "midilink MENU QUIET" like the core seems to do I get:
Tooling around on the command line I noticed that MidiLink is trying to use serial USB instead of the Roland interface. There is this file: /tmp/ML_SERMIDI that seems to force USB serial. If I delete that file, MIDI stuff starts working again. I don't even have to restart MidiLink, it just works fine after that.
The issue is that that file comes back every time I turn the Mister back on. I'd like to say it "just stopped working" but I had not tried the MIDI stuff in 2-3 weeks so maybe something happened within that time that crunked it.
I have the ao486 core set to:
UART mode(MIDI)
Connection: MIDI
MidiLink: USB
Baud: 31250
The only issue seems to be that file mucking up the works. I trash it and everything works fine as usual. Any ideas? Has anyone come across this before? Searching the forums for "ML_SERMIDI" yields nothing.
EDIT
I did a little bit more investigation and it looks like the ML_SERMIDI file doesn't get created until ao486 is started.
EDIT #2
If I run "midilink" with no arguments while the core is running, MIDI works fine.
If I run "midilink MENU QUIET" like the core seems to do I get:
/root# midilink MENU QUIET
midilink: /lib/libasound.so.2: no version information available (required by midilink)
MiSTer MidiLink 3.3 BB7
CORE --> 'AO486'
Checking for --> '/media/fat/linux/MidiLink.INI' : TRUE
Settings:
- MIDILINK_PRIORITY --> -20
- MUNT_OPTIONS --> ''
- MUNT_ROM_PATH --> '/media/fat/linux/mt32-rom-data'
- MP3_VOLUME --> Default (don't set)
- MUNT_VOLUME --> Default (don't set)
- MUNT_CPU_MASK --> 1
- FSYNTH_CPU_MASK --> 1
- FSYNTH_VOLUME --> Default (don't set)
- MODEM_VOLUME --> Default (don't set)
- MIXER_CONTROL --> Master
- FSYNTH_SOUNTFONT --> '/media/fat/linux/soundfonts/SC-55.sf2'
- UDP_SERVER --> '192.168.1.130'
- UDP_SERVER_PORT --> 1999
- UDP_BAUD --> 38400
- UDP_BAUD_ALT --> Undefined
- MIDI_BAUD --> 31250
- UDP_SERVER_FILTER --> FALSE
- UDP_FLOW --> (0) Diasble Flow-control
- TCP_BAUD --> Default (don't change)
- TCP_BAUD_ALT --> Default (don't change)
- MIDI_BAUD --> 31250
- UDP_SERVER_FILTER --> FALSE
- UDP_FLOW --> (0) Diasble Flow-control
- TCP_BAUD --> Default (don't change)
- TCP_BAUD_ALT --> Default (don't change)
- TCP_DTR --> (1) Normal
- TCP_QUIET --> (0) Normal
- TCP_FLOW --> (3) RTS/CTS
- TCP_ATH_DELAY --> 900
- TCP_SERVER_PORT --> 23
- TCP_TERM_ROWS --> 23
- TCP_TERM_UPLOAD --> '/media/fat/UPLOAD'
- TCP_TERM_DOWNLOAD --> '/media/fat'
- TCP_TERM_MP3 --> '/media/fat/MP3'
- TCP_TERM_MIDI --> '/media/fat/MIDI'
- TCP_TERM_SYNTH --> FluidSynth
- TCP_TERM_TRANS --> NONE
- TCP_SOUND --> TRUE
- TCP_SOUND_DIAL --> Software
- TCP_SOUND_RING --> Software
- TCP_SOUND_CONNECT --> Software
- USB_SERIAL_BAUD --> Default (don't change)
- USB_SERIAL_MODULE --> ''
- DELAYSYSEX --> TRUE
- MT32_LCD_MSG --> 'MiSTer MidiLink! BB7'
Setting task priority --> -20
Checking for --> '/tmp/ML_MUNT' : FALSE
Checking for --> '/tmp/ML_MUNTGM' : FALSE
Checking for --> '/tmp/ML_FSYNTH' : FALSE
Checking for --> '/tmp/ML_UDP' : FALSE
Checking for --> '/tmp/ML_TCP' : FALSE
Checking for --> '/tmp/ML_UDP_ALT' : FALSE
Checking for --> '/tmp/ML_TCP_ALT' : FALSE
Checking for --> '/tmp/ML_USBMIDI' : FALSE
Checking for --> '/tmp/ML_SERMIDI' : TRUE
Checking for --> '/tmp/ML_USBSER' : FALSE
Killing --> mpg123
Killing --> aplaymidi
Killing --> fluidsynth
Killing --> mt32d
Got BAUD from MENU --> 31250
Setting /dev/ttyS1 to 31250 baud.
Checking for --> '/dev/ttyUSB0' : FALSE
ERROR: You have no '/dev/ttyUSB0' device! --> maybe set 'USB_SERIAL_MODULE = ' in '/media/fat/linux/MidiLink.INI'?