devdems / SmartEVSE-3.5

Smart Electric Vehicle Charging Station (EVSE)
MIT License
0 stars 0 forks source link

FR: Modbus update #4

Open devdems opened 1 month ago

devdems commented 1 month ago

Change the Modbus code from requesting a single value at once to receive multiple values at once.

devdems commented 1 month ago

Hi @geronet1 as i have little or no experience with modbus would it be possible, if you have any time, to check how can we do the same here as you did in the SDM_Energy_Meter with the "reading multiple registers at once" PR? Currently we are requesting one value from one registry https://github.com/devdems/SmartEVSE-3.5/blob/d86e150b4847e74bb3b3be97c41ec3ced9f7a848/SmartEVSE-3/src/evse.cpp#L2282

We would need to be able to request multiple values from multiple registries at once so it will be faster and we will not have issues with response being connected with the wrong request if the response does not come immediately.