-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check tcp clients #18
base: master
Are you sure you want to change the base?
Conversation
Using a buffer to read & write multiple bytes at a time. Maybe we could reduce it's size, but now it's RXBUFFERSIZE Conflicts: src/main.cpp
Conflicts: src/main.cpp
I don't like this one because in each loop() call I want to read or write only one byte from bus |
Ok I understand your concerns, these are big changes that make the code more complex, use buffers which if badly coded cause overflow problems and use more RAM. All things considered, this could be taken as a troll :p In these conditions you might indeed be attracted to handle the bytes one by one; I don't know if the ebusd daemon also disables the Nagle agorithm (setNoDelay), but by default the bytes on eBUS and TCP are sent in packets. On a lightly used local network and a good quality WiFi it will work fine. For fun and because we should never guess but rather test, boiler off
boiler on, thermostat disconnected
Boiler on with my implementation
The difference in the number of packets is not obvious, there are still a lot of bytes sent alone. Maybe I'm missing something, obviously I will remove buffer sections and keep only code deduplication on your demand. Regarding the doc, it is written on my dev branch following the Doxygen standard. |
I appreciate your effort on this but I see the development in another direction - implement data-link layer with arbitration and telegrams, as described in: I would like to have ebusd send full telegrams, adapter do the arbitration wait for response, ack and send back the response to ebusd in whole, see: There is some effort started by @yuhu- : |
@ysard , would you be able/willing to implement the enh/ens protocol? I can offer some money for this. |
Processing is better using a buffer to read & write multiple bytes at a time.
I use a separated buffer for this.