rstephan / ArtnetnodeWifi

Arduino library for a Art-Net-Node (artnet) over WiFi, handle DMX data and response to Poll requests. Runs on ESP8266, ESP32, WiFi101 and WiFiNINA devices.
82 stars 21 forks source link

DMXsend problems with certain devices #22

Open tlundi60 opened 1 year ago

tlundi60 commented 1 year ago

Hello and thanks again for the great library It works really well in my experiments. (dmx send) but with two devices (cheap goods) the device reports a DMX signal but not responding to input. I've done some research and have an opinion on the issue timing or DMX refresh rate ;

Is there anything you can change to see if it has an impact?

rstephan commented 1 year ago

Hi, if you thing this is some sort of overload, you can simply try to reduce the from the Art-Net source. Maybe the software has on option for frames per second (FPS)? My library puts out what it can/gets.

If this is not possible, you can implement a "rate limiter" in the onDmxFrame() function.

static int counter = 0;
counter++;
if ((counter % 4) == 0) {
  return;
}

This will drop every 4th frame. This will give your device a bit more time to process the data.

tlundi60 commented 1 year ago

Hello and thanks for the support I'll experiment a little, I suspect that the cheap DMX devices probably don't buffer the input, because after a few tries I have the DMX commands displayed for about 1-2 seconds before the lamp goes dark again