TheKlint / cts700

Modbus testing on Nilan CTS700
3 stars 1 forks source link

question: geo registers don't return values #1

Open jellevictoor opened 3 years ago

jellevictoor commented 3 years ago

hi

i have been doing some digging and i could only find a modbus reference from 2015 (http://www.nilan.de/Admin/Public/Download.aspx?File=Files%2FFiler%2FDownload%2FFrench%2FDocumentation%2FGuide+dutilisation%2FModbus+CTS+700%2FModbus_Registers_Description_CTS700.pdf)

a lot of thoses addresses just don't work and when i try to read the geo addresses, i get a reading of 0, while I can see all values from T13 onwards on my display. is there some way to activate them on the compact P? thank you!

TheKlint commented 3 years ago

Hi Helle, Which SW version do you have in your Compact P? Even with the newest SW from Milan, I can still use the old registers, but you can also try this one from 2018: https://en.nilan.dk/Admin/Public/DWSDownload.aspx?File=%2fFiles%2fFiler%2fDownload%2fDanish%2fDokumentation%2fSoftware+vejledninger%2fModbus%2fCTS700_Modbus_protokol.pdf

jellevictoor commented 3 years ago

Hi, thanks for your answer I haven't found the doc you are referring to, my python script just tried the range of addresses, but none of them return any value. have you updated your firmware? is it safe?

board software: 2.02.13.93 (2017-07-08) board hardware NCS-700

jellevictoor commented 3 years ago

I tried your script and I do get the values back. Modbus is new to me, when reading the addresses that are in the spec I referenced, they all return 0, but I'm going to reverse engineer your script so I can see why I went wrong. Eventually, I learned what was wrong with your script and the documentation you send me. I never realized that there was a different Modbus slave for the geo part. I was able to fix my openhab bindings Want to get in touch to see what you are doing with the data? I'm just pulling it into openhab for now, but thinking of adding it to influxdb later on...

TheKlint commented 3 years ago

Great to hear that you got it to work. Setting up Openhab had long been on my todo-list, but I have never gotten around to do it. Currently I only log data using Rpimonitor.

Please keep me updated about how it goes with Openhab 🙂