Sony Ericsson Automatic meter reading with M bus Application Note
Sony Ericsson Automatic meter reading with M bus Application Note

Sony Ericsson Automatic meter reading with M bus Application Note

Embedded applications

Advertisement

Quick Links

Application Note
Embedded Applications
Automatic meter reading with
M bus

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Automatic meter reading with M bus and is the answer not in the manual?

Questions and answers

Summary of Contents for Sony Ericsson Automatic meter reading with M bus

  • Page 1 Application Note Embedded Applications Automatic meter reading with M bus...
  • Page 2 First edition (Novemeber 2004) Sony Ericsson Mobile Communications. publishes this manual without making any warranty as to the content contained herein. Further Sony Ericsson Mobile Communications. reserves the right to make modifications, additions and deletions to this manual due to typographical errors, inaccurate information, or improvements to programs and/or equipment at any time and without notice.
  • Page 3: Table Of Contents

    METERING AND M BUS Contents Contents ..................... 3 Introduction ..................4 MBUS support in Embedded Applications ......... 5 Implementation ..................5 2.1.1 Hardware Setup................6 The Script ....................6 Testing the Application ................7 Flexibility....................7 Metering Application Script {MBUS.sc}............8 References ..................11 LZT 123 8014 R1A...
  • Page 4: Introduction

    METERING AND M BUS 1 Introduction This application note describes the use of SPI bus with embedded applications and how additional components can be added simply to the radio device’s existing interfaces to provide an extra level of functionality. This is done in the context of an application which uses MBUS as its communication mechanism, the Metering Bus standard (See Ref.
  • Page 5: Mbus Support In Embedded Applications

    METERING AND M BUS 2 MBUS support in Embedded Applications MBUS is a standard communications mechanism that covers low and high layers of the OSI stack model. In order to communicate MBUS packets need to be sent from one device to another, there is a defined MBUS packet format.
  • Page 6: Hardware Setup

    METERING AND M BUS Hardware Setup 2.1.1 In order to communicate with an MBUS device, the following setup is required. Hardware description A SIM with a data phone number is required, so that a CSD call can be made from a remote host to the radio device.
  • Page 7: Testing The Application

    METERING AND M BUS more connected MBUS slaves using a single radio device. The validation procedure ensures no invalid packets are received or sent. When the communication is finished, the call is cleared and the channel is closed down. The script goes back to monitoring for an incoming CSD call to initiate the next data session.
  • Page 8: Metering Application Script {Mbus.sc

    METERING AND M BUS Metering Application Script {MBUS.sc} /*globals*/ int MAXCFGWORD = 0x2CC4; /* Check this */ int MAXDATA = 30; int CALL_STATUS = 12;/*byte is status register*/ int RINGING = 1;/*CALL STATUS value*/ char DATA_NUMBER[12] = “07867900940”; /*change this to your number*/ int CALL_COUNT = 1000;...
  • Page 9 METERING AND M BUS else if(Recp[0] == 0x68) if(index > 5) int psz = Recp[1]; if(index >= psz + 6) index = 0; if(Recp[psz + 5] == 0x16) len = psz + 6; break; else index = 0; if( cnt++ < GETLOOPCNT) cnt = 0;...
  • Page 10 METERING AND M BUS main() int InCall = 0; int NumBuf[13]; int TmpBuf[255]; prs(0); chcrt(1); /*Create a channel for send/rcv data*/ prtf(“\n Script Created!”); /* Setup SPI bus and Max3100 interface */ if(mxc(MAXCFGWORD)) /* Enable,Sync High, every 2 bytes*/ prtf(“\n Max3100 Configured!”); while (1) int i;...
  • Page 11: References

    METERING AND M BUS 3 References 1. MBUS - A Documentation - www.m-bus.com 2. MAX3100 Component data sheet - www.maxim-ic.com LZT 123 8014 R1A...

Table of Contents