I'm hoping someone can provide some guidance, and nudge me in the right direction. I have a Pylontech battery bank, as part of my solar power system.
I would like to use Node-RED to periodically poll the battery bank for operational parameters, via the RS232 Console port.
The instructions I have instruct the following:
First, the console has to be activated. To do this, switch the terminal program to 1200, 8, N, 1.
Then send the following hex string to the battery:
Data: 7E 32 30 30 31 34 36 38 32 43 30 30 34 38 35 32 30 46 43 43 33 0D
Now switch to 115200,8, N, 1 ..
Data: Send 0D 0A.
The pylon> prompt appears, which enables commands to be entered.
First command e.g.
help \ n (\ n = line feed character 0A)
shows some help
pwr \ n
@
Power Volt Curr Tempr Tlow Thigh Vlow Vhigh Base.St Volt.St Curr.St Temp.St Coulomb Time BVSt BTSt
1 49884 4310 28000 25000 26000 3322 3327 Batch Normal Normal Normal 31% 2017 - 07 - 09 14:56: 37 Normal Normal
2 49832 4472 28000 25000 25000 3321 3323 Batch Normal Normal Normal 31% 2017 - 07 - 09 14:56: 36 Normal Normal
3 49842 4318 28000 25000 25000 3322 3324 Batch Normal Normal Normal 30% 2017 - 07 - 09 14:56: 36 Normal Normal
4 49858 4111 27000 23000 23000 3322 3325 Batch Normal Normal Normal 30% 2017 - 07 - 09 14:56: 36 Normal Normal
5 - ------ Absent - ------
6 - ------ Absent - ------
7 - ------ Absent - ------
8 - ------ Absent - ------
Command completed successfully
$$
The numbers are given as fixed point numbers and usually have to be divided by 1000.
I'm hoping to use the node-red-node-serialport pallette for this, but I'm having a bit of difficulty figuring out how to do this. Any help is greatly appreciated.