Hi, I have a conversol solar inverter, which only communicates via rs232. I would like to get the data into domoticz, but need a few pointers to get me started.
Could someone suggest the best way of achieving the following:-
Every 10 seconds
-ttyUSB0 ( 2400,N,8,1)
-Send ascii string of "QPIGS"
-wait for ascii response ( which ends with 0x0d )
-Decode response of several values
-Send ascii string of "QPIGS2"
-wait for ascii response ( which ends with 0x0d )
-Decode response of several values
Can this be done via dzvents lua script?
If anyone can offer any advice, or a skeleton example, that would be most appreciated.
Send and receive from rs232 serial port
Moderator: leecollings
-
- Posts: 6
- Joined: Saturday 26 March 2022 10:19
- Target OS: Windows
- Domoticz version:
- Contact:
- waltervl
- Posts: 5853
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Send and receive from rs232 serial port
Did you see this application: https://github.com/njfaria/SolPipLog
Could be compatible with your inverter.
The application can send data over MQTT. With Node Red or a plugin like MQTTMAPPER you could read those into Domoticz.
Reading the serial port directly from dzvents/Lua is probably doable but I could not find an example.
Could be compatible with your inverter.
The application can send data over MQTT. With Node Red or a plugin like MQTTMAPPER you could read those into Domoticz.
Reading the serial port directly from dzvents/Lua is probably doable but I could not find an example.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest