On the other hand I try to store each value visibly separated by a space in a database and stop when the linebreak character arrives.
Then start again with the next dataset that will arrive, send this again in the database but obvious to the next record.
Each value will obviously be written in a specific variable and then I will push these variables in the ad-oc fields of the database.
Do you have an idea how to proceed?
I hope I have been as clear as possible
Thank you for your help.
/JL
Here's what comes out raw and bursting from the serial node with the debug node
I don't know exactly yet because I just had my first conversation with my hybrid inverter today.
I have the impression that the data will be the same length for each type of question.
One question, answer always the same number of fields.
I will use influxDB and Grafana.
I would do that by writing some javascript in a Function node. First I would check that the first character is a ( and discard the message if not as that means something has got out of sync. Then I would (in javascript) split the rest on the space character to give an array, then assign the values to attributes of the payload.
If you know what each column is then you could use a csv node set to split on a space rather than a comma. That would then assign each value by a named property
I will be able to create beautiful graphs on the photovoltaic production as well as control certain relays and other alarms. Node red & Raspberry is too cool for that.
But... still... it should be sunny
All goes well !
I was able to store the inverter values in my database and start making graphs, BUT for some unknown reason, sometimes the communication on the serial port gets blocked.
I have the feeling that the serial port is not responding anymore.
In order to make it work again I'll reboot the Pi and then it's OK.
I saw that it is possible to close and reopen the ttyUSB0 port in Linux.
On this one my inverter is seen via the cp210x chip.