Solarman V5 Protocol - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Solarman V5 Protocol (/showthread.php?tid=5370) |
Solarman V5 Protocol - Domoticatorino - 18.04.2024 Dear Sirs, I am trying to communicate with a Solar Inverter which use "Solarman V5 Protocol" which is describe as follow: Solarman V5 is a proprietary protocol used by Solarman (IGEN-Tech) solar inverter data loggers. Solarman V5 is TCP-based, and is used by the data loggers for communicating both locally and with Solarman Cloud. Solarman data loggers use Hi-Flying HF-A11 SOCs which by default use port tcp/8899. By sending a suitably formed packet to the data logging stick on this port, one can send and receive Modbus RTU frames directly to/from the inverter on port tcp/8899 without interfering with Solarman Cloud operations. Hence I should manage the data read and extract only the modbus frame. Hence I should cut the first 6 byte of the Header in order to obtain a modbus frame without CRC. For example: Receiving data: 0x03ED0000001F01031C5A483345533133304E43413437390000563330303047303430303135 Modbus frame extract without CRC is: 0x01031C5A483345533133304E434134373900005633303030473034303031357566 Hence I have to read modbus data 0x01031C5A483345533133304E434134373900005633303030473034303031357566. Is it possible? Could you help me please? I use this script to see what happened by modbus: Code: require('luamodbus') Logging is: TEST MODBUS TCP 18.04.2024 23:49:39 * arg: 1 * nil * arg: 2 * string: Too many data RE: Solarman V5 Protocol - admin - 19.04.2024 It seems that Ethernet data logger (DLS-L) supports Modbus TCP directly. You can't use LM Modbus library with this weird implementation of Modbus RTU encapsulation over TCP. RE: Solarman V5 Protocol - Domoticatorino - 19.04.2024 (19.04.2024, 06:19)admin Wrote: It seems that Ethernet data logger (DLS-L) supports Modbus TCP directly. You can't use LM Modbus library with this weird implementation of Modbus RTU encapsulation over TCP. Thank you Admin. Let me ask more information to the inverter company. |