Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mletenay

Members
  • Joined

  • Last visited

Everything posted by mletenay

  1. ... and of course some values are signed. In C you should do something like this: #include <stdint.h> // 2 byte values (int16_t)((uint8_t) incomingPacket[0] << 8 | (uint8_t) incomingPacket[1]) // 4 byte values (int32_t)((uint8_t) incomingPacket[0] << 24 | (uint8_t) incomingPacket[1] << 16 | (uint8_t) incomingPacket[2] << 8 | (uint8_t) incomingPacket[3])
  2. Bit shift by 8, but it is a big endian encoding so the most significant byte is on the left. Plus be aware some values need some (sign) conversion magic "if value > 32768 then value = value - 65535". Look at the python sources, they are pretty self descriptive.
  3. It seems various inverter models and/or firmware versions slightly differ in the response data (resp. their lengths). So I've replaced the primitive response length check with proper checksum and response type validation. Now it should be more robust in respect to different inverters.
  4. Can you run the inverter_test.py (with your modified expected lengths) and provide the raw data responses ? I'll take a look at the differences of the data between the firmware versions and adjust the code accordingly.
  5. There's no real need for udp traffic sniffing anymore, I believe we have managed to understand most of the protocol. The python library is still being tweaked here and there, but it is close to being stable. Although java (which Openhab is written in) is my "native" language, to be honest, I don't have much intention (or time to be more precise) to port it there at the moment. I was selecting between Home Assistant and OpenHab, decided for the HA and I'm happy so far.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.