zbanks / flux

Middlelayer for controlling lux devices & more: "jackd for lights"
MIT License
5 stars 3 forks source link

TCP sockets #6

Open itf opened 8 years ago

itf commented 8 years ago

In theory, using TCP sockets instead of UDP could add a considerable amount of latency. Does this happen in practice?

I was thinking about implementing something similar to this using zeromq and UDP instead of nanomsg and tcp, but I'm not sure if the choice UDP/TCP matters that much

zbanks commented 8 years ago

It depends a bit on your use case, but we didn't have any issues:

Is this for the ddf? What kind of network is it going over?

(There's an early version of this I started writing in zeromq, btw. I think nanomsg is much nicer to work with though.)

itf commented 8 years ago

The use case would be to use over wifi (the device would be a raspberry pi controlling the led array connected through ethernet; but the user would be connected through wifi to the led array). Both of the devices in the same area (for example, in the same room). I'm not sure what is ddf; it would be for the new led array that we are making for 4e.

Ok! I will test


Update: I misunderstood the lux protocol, so I won't be able to test. I will make something simpler for the led array in 4e. I don't think I'd be able to use any voltage above 12.