-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modbus to USB adaptor installation #172
Comments
Hi Paul, have you checked to see see what mbus address the sontex is set to? Trystan has made a script to check the address and change the address if needed: https://github.com/emoncms/usefulscripts/tree/master/mbus |
@glyn sent me this https://github.com/emoncms/usefulscripts/tree/master/mbus and I also saw that I was using a serial port not /dev/ttyUSB0. |
Did you mean @glynhudson ? |
Yes @glynhudson. Forgot to check before submitting. |
You can change the Sontex Mbus address using this script: https://github.com/emoncms/usefulscripts/blob/master/mbus/mbus_set_address.py |
The problem is that the meter does not respond at all. The device address is set to zero. I have asked Sontex if I can change that setting another way but have yet to hear back from them. |
I have now set the meter address to 1. Still no response. |
It sounds like you're doing everything correct! Mbus on Sontex has just worked for me assuming the address was set correctly. I'll ask @TrystanLea to take a look, he's the mbus expert, and he wrote the above scripts to set the address and read from the meter. |
I'm wondering what other settings might be needed? baud rate looks OK (2400). pi is connected on /dev/ttyUSB0. |
Hello Paul, I think some/all Sontex meters require a power supply for the MBUS to work, is yours powered by an AC power supply? could you take a picture of the connections on the sontex? |
Yes. Stockshed (Sontex dist) confirm that power is required. Now I need to know how to do that. I can run AC power to it but do not have the necessary info to hook it up. I gather that m-bus needs +/- 15v to operate. Sounds like I should have got the mains-powered version as that might have this other supply rail? |
Correction: apparently the normal approach is for the data logger to power the m-bus, not the meter (as there may be multiple data sources on the m-bus). Looks like I need to adapt the OEM "m-bus to usb adaptor" to add the power circuit. Any suggestions on that? I'm happy to do some breadboarding/ soldering. |
Hello Paul. The MBUS reader already has an integrated power supply for the MBUS part, but it doesn't power the heat meter. That requires a separate AC power supply for the Sontex itself. |
Thx Trystan. When I got the Sontex there was a choice of battery or mains power. I chose battery and the meter is working. Are you saying that the mains option powers the m-bus whereas the battery does not? |
Also, when I look at your m-bus to usb adaptor I don't see the kind of components that would supply the voltage for the m-bus. So I'm wondering how you test it. If this involves a heat meter then which model exactly? |
Hello Paul, do you have this part? The small inductor L1, chip with 5 pins, diode and other components form a boost converter producing +34V. You should be able to measure 32-34V across the capacitor nearest the AA terminals (between A and Ground). Let me know what voltage you see and what voltage you see across A-B as well? I test them in the office against a Qalcosonic E3, just a heat meter that I have free here. |
Yes, that's the board I have. I get 32.8v between A and GND. 31.3v between A and B. The cable is only about 2 m. Seems like lack of power is not the problem. In mbus_check_address.py there are no checks other than sending the prompt and receiving nothing back. I'm wondering what else I could do to find the problem? |
Hello Paul, Im a little confused on the power supply issue/requirement for the Sontex531. I remember that being a requirement in the past but there's nothing in the installation manual that suggests it should not work on battery power. It might be worth us sending you another MBUS reader to try, it is quite easy to damage the reader if the A-B terminals are shorted. |
Thx Trystan, |
Hi Paul, any progresses? We're more than happy to send a replacement reader to rule out any issues with the reader. Please send an email to [email protected] to arrange this. |
I have followed the config guidance and tried this
The device (from emon shop) is plugged into a USB port on a pi and the A port of this is connected to the MBUS port of my Sontex using a piece of telephone wire.
The error I get is
There may be some other config to do, maybe of the Sontex?
Any suggestions please.
The text was updated successfully, but these errors were encountered: