I was recently trying to get my RK008 working as a hub for my RK002 and the DUY portal. Initially I tried hairlessMidi but unfortunately the best I could manage was unidirectional communication (or at least, I saw sysex hitting hairlessmidi but no replies came). (I am running Ubuntu, using chrome (the deb package) for my webmidi stuff by the way)
I fiddled around with it for a while and sought the advice of some chatbots, and we collaborated to produce a python script to handle the serial connection for me. That script is below
import mido
import serial
# Configure your RK008 Serial Port
ser = serial.Serial('/dev/ttyUSB0', 38400, timeout=0.005)
# Use a stateful parser to correctly buffer and assemble Sysex chunks
midi_parser = mido.parser.Parser()
# Create a clean Virtual MIDI Device that Chrome can see
with mido.open_ioport('RK008 Bridge', virtual=True) as midi_port:
print("Bridge is active! Leave this window open.\n")
print("--- Live Traffic Log (MIDI Clock Filtered) ---")
while True:
# 1. Serial -> MIDI (Incoming from RK008 to Chrome)
if ser.in_waiting:
raw_bytes = ser.read(ser.in_waiting)
midi_parser.feed(raw_bytes)
while True:
msg = midi_parser.get_message()
if msg is None:
break
# Filter out clock/realtime tick noise from flooding the console
if msg.type != 'clock':
print(f"← FROM DEVICE: {msg}")
midi_port.send(msg)
# 2. MIDI -> Serial (Outgoing from Chrome to RK008)
for msg in midi_port.iter_pending():
if msg.type != 'clock':
print(f"→ TO DEVICE: {msg}")
ser.write(msg.bytes())
This actually worked straight away. I was able to connect to the RK002 using the DUY portal and upload my DUY. I disconnected everything and went to test it out. I encountered a bug so I connected the cable in loopback to the RK008 and tested the RK002 remote function. I got "no rk002 detected". The RK002 was connected in loopback from port 1 out (black) to port 1 in (orange) on the RK008.
To further isolate the issue, I reconnected the rk008 and the RK002 to the computer in the last known working configuration, but now my communication with the DUY portal seemed to not work anymore. I was getting sysex output from the DUY portal in the console (via the script above) but no reply from the RK002.
After much hair pulling and gnashing of teeth, I extracted my RK006 from the bowels of my dedicated portable synth rig, and connected the RK002 in loopback just to be sure the RK002 was functioning correctly. It worked fine. I was able to interact with it via the DUY portal with no problem.
I then connected the RK002 and RK008 in loopback (both) to the RK006 (RK008->RK006->RK008 and RK002->RK006->RK002) and did the "RK002 Remote" on teh RK008 and got a successful connection (this was now with "NEW DUY" because I wiped the RK002 with the RK006 for troubleshooting).
Then one last time connecting the RK002 to the RK008 in loopback and testing the "RK002 remote" function gave me "No RK002 Detected" again. So it seems like maybe there is something funky going on with the RK008 power delivery to the RK002? Like maybe it's right at some borderline and is not really providing enough power? Should the RK008 be able to detect the RK002 in loopback directly? It seems odd that I would need the RK006 in the loop to make that work.
I attempted this a few times with different power configurations - running on battery, running in battery mode while plugged in, running off battery mode while plugged in - and none of them seemed to work. It's strange because it DID work one time.
Anyway, I know this is a LOT of information and my troubleshooting was haphazard. I'm wondering if you have any guesses about what could be going on here?
To summarize what I think I've ruled out:
- I don't think it's an issue with the RK002 because it works fine with the RK006 as an interface
- I don't think it's an issue with the DUY because the issue occurs even with a blank "NEW DUY" template.
- I don't think it's an issue with any of my cables or dongles because I used the same cables on the RK006 as I did on the RK008.
So that leads me to think there's something specifically about the RK008's ability to either interface with or power the RK002 directly.