Robust network protocol - looking for inspiration
Posted: Fri Oct 26, 2018 10:04 pm
Via socket i have create my own simple protocol, which communicate to/from a handfuld of ESP32 to a control center on a R-Pi
I have some sorter machines that reports their status to the control center:
e.g. machine 1: running, 25 rpm, temp 40c, machine 2: idle And so on.
Its very simple, it send 8 bytes with information, and it can receive 4 bytes with an action, e.g. start or stop.
It works quite well, less that 50 ms in respons time. But its not very scalable and probably not very robust.
I'm wondering which existing protocol, is suitabel for this kind of solution. Would that be mqtt?
It does not need to be real time, 2-3 sec respons time would be fine.
My control center program does a fine job, its just a simple text readout that list the status of each machine and sound an alarm (buzzer) if a machine goes to the status: stopped. But not very sexy (lack of gui) and not scalable at all.
So if you guys have any recommendations on a portal/dashboard, with some kind of logic build in. I would like to move some of the intelligente into the dashboard.
E.g. If machine1.temperatur > 50 Then send.machine1.idle.
Preferable something that could be installed on a R-Pi og a PC, so i wouldn't have to depend on the internet running. But a cloud solution is not a show stopper.
regards Frantz
I have some sorter machines that reports their status to the control center:
e.g. machine 1: running, 25 rpm, temp 40c, machine 2: idle And so on.
Its very simple, it send 8 bytes with information, and it can receive 4 bytes with an action, e.g. start or stop.
It works quite well, less that 50 ms in respons time. But its not very scalable and probably not very robust.
I'm wondering which existing protocol, is suitabel for this kind of solution. Would that be mqtt?
It does not need to be real time, 2-3 sec respons time would be fine.
My control center program does a fine job, its just a simple text readout that list the status of each machine and sound an alarm (buzzer) if a machine goes to the status: stopped. But not very sexy (lack of gui) and not scalable at all.
So if you guys have any recommendations on a portal/dashboard, with some kind of logic build in. I would like to move some of the intelligente into the dashboard.
E.g. If machine1.temperatur > 50 Then send.machine1.idle.
Preferable something that could be installed on a R-Pi og a PC, so i wouldn't have to depend on the internet running. But a cloud solution is not a show stopper.
regards Frantz