19 April 2023 15:43
Hi, Ive just got my MBUS to USB reader in the post and am trying to read data from my Sontex 789 Heat meter. Following the instructions on a previous post, I managed to navigate to the EmonHubMBUSInterfacer.py file changed line 402 from 0x5b to 0x7b and back again restarting emonhub twice.
My emonhub logger is still reporting invalid MBUS data but I can see what I think is a new device in my inputs
with some data. Is this the heat meter? (screen shot attached). If it is what do the inputs represent?
I would like to sort this myself if I can, but if not Ill get Glyn to log in and do it.
19 April 2023 15:49
Just realised my emoncms has stopped and wont restart!
19 April 2023 16:05
Phew, Ok deleted the MBUS code from the config file and back to normal now
The 789 is tricky to set up reading via MBUS, it’s documented here but it’s awkward process:
Take a look at your emonhub.log which will tell you if you have any communication e.g
tail /var/log/emonhub/emonhub.log -f
This system was installed by Custom Renewables right? I can connect remotely and setup this for you if you like?
19 April 2023 16:25
HI Glyn, I started with that link but the two files mentioned:
python3 /opt/emoncms/modules/usefulscripts/mbus/mbus_app_reset.py (maybe optional)
arent in the folder. Instead the files are called mbus_check_address.py and mbus_set_address.py so i cant really follow it.
I installed the system myself. Thanks
Ah you need to run a
git pull to update the repo and pull in the new files
19 April 2023 17:50
Hi Glyn, it brought a lot of new folders down. in the mbus folder I just found 3 files, two the same as before and an mbus_set_baud.py as attached.
Ah you need to be on the master branch:
git checkout master
20 April 2023 15:06
Got it, I will have a play tonight
20 April 2023 19:23
Hi Glyn, tried the scripts as descibed using the default settings, definitely found data, but on restarting Emonhub, MBUS data was still described as invalid. Ive printscreened the results.
20 April 2023 19:59
Sorted it Glyn, realised I had to change the device in the config settings to the default one used by your testing program (ie device = /dev/ttyAMA0 to device = /dev/ttyUSB0 for anyone looking at this later) Thanks Glyn