Alexander Pohl

Results 9 comments of Alexander Pohl

I guess the memory can only be accessed using an active bluetooth connection. The code snippets here and the final version in [ESPHome](https://github.com/esphome/esphome/tree/dev/esphome/components/xiaomi_ble) only scans passively for BLE advertisements and...

I don't have Arduino C++ code I could send you. The initial test program in this repo uses the [crypto++](https://cryptopp.com/) library, whereas the version which went into ESPHome uses [mbedtls](https://www.trustedfirmware.org/projects/mbed-tls/)...

It looks like your packet is still encrypted. Are you sure you are reading decrypted plain traffic?

I am using a [Fronius Primo 4.0](https://www.fronius.com/en/solar-energy/installers-partners/technical-data/all-products/inverters/fronius-primo/fronius-primo-4-0-1) and a self written [c++ wrapper library](https://github.com/ahpohl/libsunspec) around libmodbus together with [Froniusd](https://github.com/ahpohl/froniusd), a little daemon to read the data from the inverter. I...

![image](https://github.com/user-attachments/assets/b898121f-1bfe-4c10-a4b1-f4585d4721a6) Tried QModMaster 0.5.2 (libmodbus 3.1.4) with a scan rate of 1000 ms. I got 210 successful reads and 17 timeout and invalid data errors. This is about the same...

I tested the communication again but this time not with libmodbus. A simple python test program written with [pymodbus](https://pymodbus.readthedocs.io/en/latest/) works without timeouts both with sync and async TCP clients. This...

Setting the response timeout to something greater than 500 ms seems to solve the issue. Reading register 40000 for 1000 times in a loop like I did before gives the...

Correct me if I am wrong, calling `modbus_get_response_timeout()` results in 500.000 usec. So when not setting explicitly a response timeout, the library uses 500 ms, which is just slightly too...

All I have is this manual of the [Fronius Datamanager](https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.fronius.com/~/downloads/Solar%2520Energy/Operating%2520Instructions/42,0410,2049.pdf&ved=2ahUKEwi3tvjKwMOJAxUGgf0HHUwjJPMQFnoECBkQAQ&usg=AOvVaw1fMKf8CYQwVfhToMw-RU29), which is freely available on the Fronius website. But it doesn't contain modbus timing diagrams like the one shown above....