Closed alekslyse closed 5 years ago
Just to show what happens when it works - if I reboot the script enough times this happens (with data in the mqtt log)
2018-07-17 18:27:53,593 DEBUG Importing output plugin MQTTOutput 2018-07-17 18:27:53,650 INFO Start listening on IP: 0.0.0.0 and Port 10004 2018-07-17 18:27:53,650 INFO Use CTRL-Break to exit. 2018-07-17 18:27:53,654 DEBUG waiting for a connection. 2018-07-17 18:27:54,348 DEBUG connection from: ('192.168.1.150', 62938) 2018-07-17 18:27:54,765 DEBUG RAW received Packet (len=105): a5:5c:00:10:02:ac:0c:76:58:64:71:01:01:05:41:42:00:00:a1:00:00:00:ca:d6:4d:5b:01:00:40:00:00:00:30:30:31:39:30:32:34:30:31:36:35:34:2d:30:30:31:4a:01:0c:0c:1d:0b:0d:00:0d:00:13:00:00:00:00:00:56:09:00:00:00:00:87:13:c6:01:00:00:60:09:00:00:6a:04:00:00:00:00:00:00:03:00:00:00:00:00:be:0b:04:71:00:00:00:75:2a:ca:15 \vXdqABM[@001902401654-001JV`jqu* 2018-07-17 18:27:54,766 DEBUG DATA len=92: 2018-07-17 18:27:54,775 INFO Inverter ID: B í ╩╓M[ @ 2018-07-17 18:27:54,778 INFO RUN State: 106 2018-07-17 18:27:54,780 DEBUG Run pluginMWTTOutput 2018-07-17 18:27:54,785 DEBUG mqtt_topic: omnik/solar/B í ╩╓M[ @ /
The simple reason is that the LAN interface uses protocol V5 which is not yet supported. I have little info from Omnik & Solarman about this new protocol. So it is still under development. I will get a LAN interface later this year. Then I will be able to debug & trace the new packet format.
Anything I can do for you to help you make it work?
Yes, If you can let your logger sent it's data to my test system I could work out the packet layout.
Please let me know the host and ip
Did you get my email?
Got no reply so closing this one.
This is a bit strange problem - I have a set of WIFI stick and LAN stick (looks the same) and wanted to use the LAN sticks for security reasons as it seem like its not possible to turn off the AP on the WIFI sticks.
After some restarts I managed to get one MQTT output from the inverter, but most of the times it fails with this - seem like its possible to get it working, just something that doesnt make sense:
2018-07-17 18:09:07,790 DEBUG Importing output plugin ConsoleOutput 2018-07-17 18:09:07,790 INFO Start listening on IP: 0.0.0.0 and Port 10004 2018-07-17 18:09:07,790 INFO Use CTRL-Break to exit. 2018-07-17 18:09:07,791 DEBUG waiting for a connection. 2018-07-17 18:09:08,257 DEBUG connection from: ('192.168.1.151', 64470) 2018-07-17 18:09:57,793 DEBUG RAW received Packet (len=14): a5:01:00:10:47:6e:08 :95:84:69:71:00:c1:15 Gniq 2018-07-17 18:09:57,794 DEBUG DATA len=1: 2018-07-17 18:09:57,795 INFO Inverter ID: Traceback (most recent call last): File "InverterServer.py", line 199, in
inverter_exporter.run()
File "InverterServer.py", line 150, in run
self.logger.info("RUN State: {0}".format(msg.run_state))
File "/home/aleks/Inverter-Data-Logger/InverterMsg.py", line 138, in run_state
return int(self.__get_short(offset[14], 1))
File "/home/aleks/Inverter-Data-Logger/InverterMsg.py", line 78, in __get_shor t
num = struct.unpack('!H', self.raw_msg[begin:begin + 2])[0]
struct.error: unpack requires a buffer of 2 bytes