davidmoreno / rtpmidid

RTP MIDI (AppleMIDI) daemon for Linux
Other
185 stars 41 forks source link

rtpmidid too fast #125

Open Ilya-audio opened 2 months ago

Ilya-audio commented 2 months ago

I am using a Behringer X-touch controllers connected via a local network. When I connect the host via the network card on the motherboard (bitrate 2.5 Gb per sec), the controller behaves as if some data did not reach it, and each time it is completely different data. (Information about the position of some faders, mainly).

However, if I use a USB 2.0 Ethernet adapter, everything works perfectly. Both network cards are fully functional. The only difference between them is the connection speed.

My question is it possible to implement bandwidth limitation in rtpmidid?

davidmoreno commented 4 weeks ago

Hi,

speed should not be a problem.. MIDI data is bursty, and latency dependant, but not demanding in speed itself. I'm more inclined to think some packets are getting lost. You can check with wireshark. Or maybe some logs (local or remote) should say something about it.

To limit the speed you can try using the tc command that allows some control on speed over ethernet, via some QoS controls.. I have to say I did use it but years ago, so I dont remember the details.. but should allow at least an experiment to check if slower network helps.

Anyway I wouldn't know how to do it in rtpmidid.. I guess some buffering and do not send more than X packets per second.

Tell us if you discover more.