navitron
 
Renewable Energy and Sustainability Forum
UK's most popular Renewable Energy Forum May 23, 2012, 04:17:28 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Anyone wishing to register as a new member on the forum is strongly recommended to use a "proper" email address - following recent spam/hack attempts on the forum, all security is set to "high", and "disposable" email addresses like Gmail, Yahoo and Hotmail tend to be viewed with suspicion, and the application rejected if there is any doubt whatsoever
 
Recent Articles: UPDATE ON DECC APPLICATION FOR LEAVE TO APPEAL TO THE SUPREME COURT | Yingli Green Energy's PV Module Ranks No.2 in TUV Rheinland Energy Yield Test | Navitron Solar Showers at Glastonbury for Year 5!
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Cheap M-BUS Interface ?  (Read 2255 times)
roscoe
Full Member
***
Offline Offline

Posts: 151



« on: October 28, 2010, 02:26:53 PM »

I looking to talk to a low cost heat meter (supercal 539) and the one I have has an M-BUS interface.

Didn't get lucky on a quick M-BUS arduino type google, so before I to give up and go back to the pulse output, just wondered if anyone else knows more.  The meter seems to have a lovely records of monthly energy inside, so it seems a shame to re-invent the wheel.

Any open source or arduino style M-BUS iniatives out there, or is it stump up the money for a commerical interface or just use the pulses.

Logged
hiccup
Sr. Member
****
Offline Offline

Posts: 284


« Reply #1 on: October 28, 2010, 07:42:37 PM »

Hi

I suspect the M-bus is actually Modbus which is  RS485 and some resistors. Check the supercal docs for "modbus".

Hic!
Logged

16 x Sanyo HIT250E01 into SB4000TL inverter, 2 x 20 x 58mm Navi Tubes on 22deg roof facing SSE, Gledhill Torrent RE Solar 277litre Store, TDC4 Ether Controller, Xpelair Xcell400BP HRV, Stovax Riva 66 Wood Burner
roscoe
Full Member
***
Offline Offline

Posts: 151



« Reply #2 on: October 29, 2010, 04:14:42 PM »

I don't think it is Modbus.
It is M-BUS for Meter Bus and is some offical standard EN1434.
From what I have seen there are many Rs232/MBus interfaces, but you need to buy industrial interfaces at industrial prices  Sad.
Logged
hiccup
Sr. Member
****
Offline Offline

Posts: 284


« Reply #3 on: October 29, 2010, 06:58:05 PM »

Quite right -  I was guessing - but I'll do some digging and see if I can get more info.

Hic!
Logged

16 x Sanyo HIT250E01 into SB4000TL inverter, 2 x 20 x 58mm Navi Tubes on 22deg roof facing SSE, Gledhill Torrent RE Solar 277litre Store, TDC4 Ether Controller, Xpelair Xcell400BP HRV, Stovax Riva 66 Wood Burner
Alan
Guest
« Reply #4 on: October 29, 2010, 07:28:23 PM »

Here is a link about extending the Modbus boundary's

What are extended register addresses?
Since the range of the analog output holding registers is 40001 to 49999, it implies that there cannot be more than 9999 registers. Although this is usually enough for most applications, there are cases where more registers would be beneficial.

Registers 40001 to 49999 correspond to data addresses 0000 to 270E.   If we utilize the remaining data addresses 270F to FFFF, over six times as many registers can be available, 65536 in total.  This would correspond to register numbers from 40001 to 105536.

Many modbus software drivers (for Master PCs) were written with the 40001 to 49999 limits and cannot access extended registers in slave devices. And many slave devices do not support maps using the extended registers. But on the other hand, some slave devices do support these registers and some Master software can access it, especially if custom software is written.

How does 2-byte slave addressing work?
Since a single byte is normally used to define the slave address and each slave on a network requires a unique address, the number of slaves on a network is limited to 256. The limit defined in the modbus specification is even lower at 247.

To get beyond this limit, a modification can be made to the protocol to use two bytes for the address. The master and the slaves would all be required to support this modification. Two byte addressing extends the limit on the number of slaves in a network to 65535.

By default, the Simply Modbus software uses 1 byte addressing. When an address greater than 255 is entered, the software automatically switches to 2 byte addressing and stays in this mode for all addresses until the 2 byte addressing is manually turned off.



http://www.bb-elec.com/tech_articles/Modbus_faq.asp

Doesn't recognise EN1434 in the help file

Regards

Alan
Logged
EccentricAnomaly
Guest
« Reply #5 on: October 29, 2010, 09:15:36 PM »

http://en.wikipedia.org/wiki/Meter-Bus
http://www.m-bus.com/

The description of the physical layer is mildly eye-popping with use of the voltage for signalling by the master and current for signalling by the slaves:

http://www.m-bus.com/mbusdoc/md4.php
Logged
hiccup
Sr. Member
****
Offline Offline

Posts: 284


« Reply #6 on: October 29, 2010, 11:29:20 PM »

Yup, www.m-bus.com seems to be the definitive source for all the specs etc.

And on the downloads page...

http://www.m-bus.com/files/minimaster.tif

which is a very simple RS232 to M-bus converter / level shifter.

Any use?

Hic!
Logged

16 x Sanyo HIT250E01 into SB4000TL inverter, 2 x 20 x 58mm Navi Tubes on 22deg roof facing SSE, Gledhill Torrent RE Solar 277litre Store, TDC4 Ether Controller, Xpelair Xcell400BP HRV, Stovax Riva 66 Wood Burner
wookey
Hero Member
*****
Offline Offline

Posts: 2672


WWW
« Reply #7 on: January 06, 2011, 03:23:32 AM »

Wow, a spec that is actually published on-line! I was expecting it to be yet another 'open' spec I could only read if I gave someone hundreds of euro. I wonder how many meters use this?
Logged

Wookey
niomix
Newbie
*
Offline Offline

Posts: 1


« Reply #8 on: January 13, 2012, 01:58:55 PM »

hi to all, i'm looking for an arduino m-bus to serial converter....
i found only this one...
http://www.relay.de/frame_3fach_e.htm        (serial version)

there are also some m-bus c#library on the web.

other idea ?
« Last Edit: January 13, 2012, 02:07:47 PM by niomix » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!