- Fri Feb 25, 2022 11:05 am
#93765
Hi giovi61
What's the status of your project?
Reason I'm asking: I'm trying to hook up two repeater lights to a fencing scoring machine.
One ESP8266 (Wemos D1) as controller reads the digital signals (green, red, 2 x invalid ) from the FIE certified scoring machine and sends them two ESP8266 (also Wemos D1), the clients. They will then drive two Neopixel discs (6 ring, 93 LED each) accordingly.
The controller WiFi is configured as AP and the two clients as STA. That way the system is self sufficient without the need for some external AP.
I only need a payload of 1 byte per message. Main issue is low latency, should be below 10mS, the faster the better.
So far I tried TCP sockets, UDP and webSockets.
TCP: was to slow, I had a latency 100mS or more
UDP: was very slow, particularly the multicast I used had a latency well above 100mS
webSockets: works rather nice, average latency 2-3 mS but every 20-30 seconds I get a few packets that are in the range of 30-60 mS
If you got it working reliable and with low latency with UDP I would be very much interested in the communication parts of your sketch.
Any other hint to a good implementation of UDP communication is appreciated
As soon as I get the latency fixed I will share the project as a whole.