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.
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.
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.
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.
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.
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;...
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