Home
User Manual
Contents
1. JP1 are shortened 2 Connect the Testboard ver 1 1 to your PC using a standard USB A B cable 3 Being asked for a driver please download and install the FTDI driver for your operating system 9 4 If the hardware works and the device is installed correctly LED5 lt 5 gt is illuminated Otherwise try to plug the USB cable again or check the fuse F1 5 Connect header lt 2 gt of your evaluation board to your debug adapter A list of appropriate adapters can be found at 10 6 Open the FET Pro430 FET MSP430 Flash Programmer 11 7 Select File Load Setup Open the file prog config pan7550 cfg 8 Select Setup Connection Device Reset Wireless M BusDocumentation Ea W Meus CHAPTER 2 APPLICATION SETUP page 5 Target s Connection Reset Options Communication with Target Device ITAG 4 wires O Spy Bi Wire 2 wires do not supported by Parallel Port FET omiz Automatic COM Port uss gt Reset Options aAany Recommended OPUC only OLPT 1 ORRST NMI only OLPT 2 O ec Off On only OLPT 3 Final Target Device action O switch vee OFF To identify a connection click a port in the list to see the Mode LED on the O Reset and start the application program attached UIF light up Used Adapter 6 TI s FET USB FET or hardware compatible uses TI s MSP430 dll library O Other 1 O Other 2 Browse full path and name of the MSP430 dll file supplied with the adapter you ha
2. is described below 4 2 capt2web Wireless M Bus Monitoring and Commissioning Tool Wireless communication benefits from commissioning tools during system setup Once the network is running errors or intrusion attempts can be logged The network monitors known to the authors require software installation on the monitoring machine In case of non standard protocols additional hardware drivers are necessary to connect the sniffing module The solution from stzedn follows a different approach The sniffing device runs an embedded web server to which any web browser can connect By default the connection uses Ethernet but GPRS modem and Wi Fi are available Figure 4 1 shows the hardware device for capturing data Figure 4 1 Hardware for in field Wireless M Bus data monitoring The web server inside of the sniffing device implements web 2 0 services to periodically refresh the client browser while only transmitting the M Bus telegrams received Java scripts are used for telegram filtering colouring and evaluation Figure 4 2 shows an example browser window including the packet timeline The packets shown were logged during a session of the demonstration program Logging to USB USB Flash Drives and later download eases Wireless M BusDocumentation Ea W Meus CHAPTER 4 TOOLS AND FURTHER OPTIONS page 16 long term tests In case of questions or a quotation for the tool please contact wireless stzedn de capt2web W
3. mode e Button 2 User data class 2 request If this button is pushed a bidirectional communication is opened for each connected meter device After this user data class 2 is requested from each meter Be careful If mode T2 is chosen the data collector waits for incoming access demand requests before sending its own request telegrams e Button 4 Target information Pushing this button causes the module to display the current settings of the PAN7550 in the terminal window The other buttons are not used in the current configuration 3 4 3 LEDs e LED 1 This LED is lit during the installation procedure e LED 3 This LED flashes when a telegram is sent e LED 4 This LED flashes when a telegram is received Wireless M BusDocumentation En W Meus CHAPTER 3 DEMO APPLICATION page 12 3 4 4 Serial interface The data collector supports a serial connection as described in chapter 3 2 If the connection to the meter device cannot be established use the information provided to check that the configuration is identical both S2 or T2 and that the roles are different Figure 3 4 shows a screenshot of received data i COM11 PuTTY 010 010 O11 010 O12 Figure 3 4 List of received data telegrams mode T2 e The first column includes the meter address e The second column show thetelegram type IR for installation requests UD for user datagrams or ERR for error messages e The further columns inclu
4. sent e LED 4 This LED flashes when a telegram is received 3 3 4 Serial interface The meter device supports a serial connection as described in chapter 3 2 Any message can be transmitted which can also be used to cause extended communication traffic If the radio connection to the data collector cannot be established use the information provided after pressing Button 4 to check that the configuration is identical both S2 or T2 and that the roles are different Wireless M BusDocumentation En W Meus CHAPTER 3 DEMO APPLICATION page 11 3 4 Data Collector 3 4 1 Introduction In mode S2 the data collector is by default in receive mode to wait for user data telegrams from the connected meter device Every minute it sends a status request to check if user data class 1 are available Upon a positive reply user data class 1 are requested and directly afterwards a user data class 2 request is sent In mode T2 the data collector behaves nearly identical but before exchanging user data access demand requests are transmitted 3 4 2 Buttons For the buttons the following functions are available e Button 1 Installation After pressing this button the data collector enters installation mode It waits for incoming installation re quests for 10 seconds If such a request is received the data collector sends an installation response Installation requests are ignored as long as the data collector is not in installation
5. O APPLICATION page 14 COM11 PuTTY E 1 3F 3E 3F 3F 3F 3F 3F SE SE 3F 3F 3F Figure 3 5 List of received data telegrams mode T1 e The first column shows the RSSI level Received Signal Strength Indication e All following columns include the fields of the telegram and are shown as HEX values CRC Each Wireless M Bustelegram is segmented into several blocks Each block includes a CRC value If the checksums of all blocks are valid OK is displayed L The length field includes the number of bytes transmitted in the telegram C Telegram type To get further information read 8 5 1 2 M This field includes the id of the manufacturer Read 3 5 5 to get further information A This number identifies the meter device The address of the device is the combincation of M A V and T fields V The version of the meter is defined by the manufacturer T This field shows the type of the meter device In 3 Table 3 the type values are specivfied CI This field describes the application data in DATA All allowed values are listed in 3 Table 1 Wireless M BusDocumentation a qe W Bus Chapter 4 Tools and further options 4 1 Introduction The protocol stack can be used in different versions Refer to chapter 4 3 for details Especially for large networks of some thousand meter devices and data collectors additional tools are useful to efficiently setup and run the network One of them
6. Wireless M Bus Application for PAN7550 W MBus User Manual Steinbeis Transfer Center Embedded Design and Networking February 15 2010 Chapter 1 Summary M Bus is widely accepted in many regions of the world as a basis for new advanced metering infrastructure AMD installations Its wireless implementation leads to competitive products that are easy to install and to maintain The Wireless M Bus standard EN 13757 4 2005 specifies the wireless communication between meters for water gas heat and electricity and the data concentrators The stzedn stack implements the protocols for Wireless M Bus It has proven interoperability with the modules of well known manufacturers on the different protocol layers and is compliant with the current Wireless M Bus standard 4 It is optimized towards a compromize of small footprint and excellent modularity and scalability This document describes a demonstration software based on the stzedn protocol stack for Wireless M Bus Wireless M BusDocumentation En W Meus Contents 1 Summary 2 2 Application setup 4 3 Demo application 7 Bl a os be eel wh eae he ee Ok ee ee CRS ad ee ee Se R 7 2S Sedal WWE AEC as 6 Med NN 8 33 Meter DIOS a A De ee SERS Se ESS Dw As Ce ee Seo aes 9 Bcd TAUPO AA Ge ee Re he hee ed eA Ee E ed Soe ee Ga Ea 9 dd POUMON e Ge Ola ie enw al ad aes We ee oh A eS ee BO Boe ca ce a dy de 10 Ogee LEDS ce Swe we Aa Sn we ee ER SRDS Ra eas We ae Ea ee eee el es 10 B
7. cument History Version date Changes source 0 1 2009 12 08 Initial Release tg 0 2 2009 12 11 Adaption for the PAN7550 Testboard v1 1 dl 0 3 2009 12 16 Meter device Sending spontaneous user data telegrams tg added Data collector Sending user data class 2 requests added 0 4 2010 02 05 Sniffer application added tg 0 5 2010 02 11 Adaption for the eZ430 Chronos Development Tool tg Table 6 1 Document History Contact Information In case of questions or ideas for improvement please contact Steinbeis Transfer Center Embedded Design and Networking c o Duale Hochschule Loerrach Hangstrasse 46 50 D 79539 Loerrach Germany Tel 49 7634 6949 340 Fax 49 7634 5049 886 url http www stzedn de e mail wireless stzedn de Wireless M BusDocumentation W MBus
8. des the transmitted data user data counter minimum and maximum values error messages text messages Wireless M BusDocumentation cc VW MBus CHAPTER 3 DEMO APPLICATION page 13 3 5 Network Sniffer 3 5 1 Introduction The network sniffer is used to collect and display all m bus telegrams which are received Because of the different RF settings in S and T modes it is not possible to read the telegrams of both modes at the same time To collecto the transmissions of T2 devices two sniffers are used on in S mode and the other one in T mode The running time of the sniffer application is limited to 30 minutes After this reading incoming telegrams is stopped and all LEDs are switched on 3 5 2 Buttons For the buttons the following functions are available e Button 1 Mode switching After pressing this button the receiving mode is changed The sniffer provides mode S1 and T1 e Button 4 Target information Pushing this button causes the module to display the current settings of the PAN7550 in the terminal window The other buttons are not used in the current configuration 3 5 3 LEDs e LED 1 This LED is lit during the initialisation procedure e LED 2 This LED toggles when a telegram is received 3 5 4 Serial interface The sniffer supports a serial connection as described in chapter 3 2 Figure 3 5 shows a screenshot of received data Wireless M BusDocumentation En W Meus CHAPTER 3 DEM
9. ee o vse Oe ae ae Ba el We a A a ee ek ee Sa a 10 24 Data Colector seie tare aS A rd Rae Oe ea e A es BE ae EE ee ha ee So 11 ae ORCAS 3 x eee Poa se bathe whew e ewe woe dad htm tele ded 11 eee BUE ai a Fe ea a Se ee ad Bee Se SE God oe BOR A ea 11 a BI ao Ge cuca se a io ed ia is apa da 11 34A Serial interface opc aa A BAG A A a 12 Bio pl a A EM ee ad eS ee a A E 13 So o a o 606 ed A acl oh Ae a ee eS Gael wee Re rs ae oe hom pe a 13 oom DUO oS isc ce a Re ERR eS SER DERE RHE DGS TS aes Oe RR ER EO 13 Da LEDE 6 3 Daa ee OS a ee ee Bee eh A A eee are ot Se dene a ea 13 S54 Serial inerte o so eae ee hee eee ee EER eae Rae ee we a Be eee 13 4 Tools and further options 15 41 is lt 6 ere pi ER SE ee eee alae es Pee Oe ow ee ee 15 4 2 capt2web Wireless M Bus Monitoring and Commissioning Tool o o o 15 4 3 Wireless M Bus Protocol Stack cio ph hha PG A a As Shee ee ee aw we 17 5 Available Software Configurations and Documentation 18 6 Related documents and contact information 20 Wireless M BusDocumentation W MBus Chapter 2 Application setup To run the application described in chapter 3 the following steps are to perform The numbers in angle brackets lt 1 gt in the list below refer to the red numbers in Figure 2 1 For details concerning the Testboard ver 1 1 please refer to 12 Figure 2 1 PAN7550 Testboard ver 1 1 connectors 1 Make sure that pins 1 and 2 of header lt 1 gt
10. er English version EN 137572 2004 3 Communication systems for meters and remote reading of meters Part 3 Dedicated application layer En glish version EN 137573 2004 4 Communication systems for meters and remote reading of meters Part 4 Wireless meter readout Radio meter reading for operation in the 868 MHz to 870 MHz SRD band German version EN 137574 2005 5 Communication systems for meters and remote reading of meters Part 5 Relaying English version prEN 13757 5 2007 6 Communication systems for meters and remote reading of meters CEN TC 294 7 Home and building electronic systems hbes CENELEC TC 205 8 Telecontrol equipment and systems Part 5 Transmission protocols EN 870 5 2002 9 ftdi virtual com port drivers http www ftdichip com Drivers VCBhtm 2009 10 list of msp430 jtag adapters http www ti com msp430 2009 11 elprotronic msp430 flashing tool http www elprotronic com fetpro430 html 2009 12 Testboard ver 1 1 user manual http www ecom panasonic de pdf engl 164ext2 pdf 2009 13 Wireless m bus stack and demo applications http www stzedn de wireless m bus html 2010 14 Testboard ver 1 1 user manual http focus ti com docs toolsw folders print ez430 chronos html 2010 15 Java runtime environment http java sun com 2010 Wireless M BusDocumentation En W Meus Do
11. imary UD No Reply ii Pri User Data mary Ud N status Request Primary SKE Status Respond Secondary Skp Class 7 Request Primary UD Rea i User Data Respond Secondary UD Resp Reset Remote Link Primary NKE Secondary ACK Mode S2 Reply Q ement MUI spuoses Q Access Demand Access Demand Request Primary AD Request Primary AD Access Demand Prima ty j A D Acknowledgement Secondary eae Status Request Primary SKE ee Status Respond Secondary Sk User Data Cla Primary UDI Reg User Dat Secondary UD Resp et Remote Link Rest KE primary NKE SERN Acknowledgement Secondary ACK Mode T2 Figure 3 2 Bidirectional communication of the demo application 3 2 Serial interface _Reques quest ss 1 Request ta Respond NUI To get used to the modules a small serial interface application was added to the pure Wireless M Bus communica tion software This permits the transmission of small text in spontaneous user telegrams On the Wireless M Bus application layer they are encapsulated in manufacturer specific records for not to interfere with existing meters in range To establish the terminal connection use the settings below e Select the virtual serial port of your USB connection cf cha
12. iption User application mented source C Configuration software docu code in Implementation of a stan dard Wireless M Busdata collector and metering de vice Data link layer and physical layer library Application layer source code Example user application source code Configuration software PC Data link layer and physical layer API description Application layer API de scription User application mented source C Configuration software docu code in Wireless M Busdata collec tor and metering device with custom application layer to be used e g to gether with an existing application layer for wired M Bus Complete protocol stack source code ANSI C Example user application source code Configuration software PC Fully documented source code All API descriptions addi tional document Configuration software Table 5 1 Available Software Configurations Source code portable to other uC platforms and cus tom hardware optimization for the application Library customization may also be available upon request Wireless M BusDocumentation W gt NMiBus Chapter 6 Related documents and contact information 1 tu Communication systems for meters and remote reading of meters Part 1 Data exchange English version EN 13757 1 2002 2 Communication systems for meters and remote reading of meters Part 2 Physical and link lay
13. ireless M Bus Monitor Mozilla Firefox S TES Datei Bearbeiten Ansicht Chronik Lesezeichen Extras Hilfe o C X http 192 168 3 6 wy gt 13 P 2 Steinbeis Transferzentrum N Bus El Embedded Design und Networking NY 2 Q Details il Settings Port2 BES TT MTree P El Port 1 a E Device 4E 94 00 00 00 01 al ABE m Device 23 24 71 98 07 85 Device 4E 94 00 00 00 02 Device 2C 2D 14 82 47 25 EZ la gt Fertig Ui Figure 4 2 capt2web Network Monitoring Tool Wireless M BusDocumentation s W MBus CHAPTER 4 TOOLS AND FURTHER OPTIONS page 17 4 3 Wireless M Bus Protocol Stack The demonstration application shows only little of the opportunities of the complete stack implementation For the implementation of stzedn s Wireless M Bus implementation additional versions are available First the module can be used like a modem that serially connects to the custom application An AT command set is used to setup and run the Wireless M Bus network In this case programming the module is not necessary as the device is preconfigured An extended command set is also available to minimize the communication overhead In all of these configurations the module is exclusively used for the communication task But for applications that are sensitive concerning the energy consumption or cost often only one microcontroller is to usae for both the communication and the sensor application in
14. n Bytes 1024 Cancel Figure 2 3 Memory Options Make sure that the settings are as shown in Figure 2 3 Used by Code File would also work Close the window clicking on OK 10 Click on Open Code File and choose the flash file msp430pan7550_s2 t2 _collector hex for the data collector OR msp430pan7550_s2 t2 _meter hex for the meter device OR msp430pan7550_sniffer hex for the network sniffer Selecting Texas Instruments txt file type makes sure that the right files are loaded Wireless M BusDocumentation W MM Bus CHAPTER 2 APPLICATION SETUP page 6 11 Make sure that the correct microcontroller group MSP430F2xx and device MSP430F2274 are selected as shown in Figure 2 4 FET Pro430 FET MSP430 Flash Programmer Elprotronic Inc File View Setup Serialization Tools About Help Open Code File gt msp430pan7550_s2 path D Entwicklung Panasonic Hexfiles Microcontroller Type Status MSP430F2274 v Total Target MSP430F2274 Balance 0 Power Device from Adapter o 22v 9 Device Blow Security Fuse Enable Voltage Device Action O RESET BSL ver 2 02 Selected Device Information RAM 1024 bytes FLASH 32 kB Report Code size 0x8100 33024 bytes JTAG communication initialization Verifying Security Fuse JTAG communication initialization Verifying Security Fuse cil Flash programming gt DONE
15. nted in the demonstration setup Meter Device 4E 9A 00 00 00 01 01 00 Data Collector LEDs RE e ee eee ER gt RE LEDs Display Display MCU MCU UART UART Figure 3 1 Demo with a meter device and a data collector In communication mode S2 the meter device sends periodical user data The interval is determined to 30 seconds cf Figure 3 2 After 1 minute the connected data collector sends a status request After receiving a response the presence of a user data class 1 is checked If so a user data class 1 request is sent Finally the bidirectional communcation channel is closed by a reset remote link telegram In mode T2 the same procedure is used but the meter device sends periodical access demand request telegrams instead of user data Every minute the data collector waits for such an access demand request and sends a response Afterwards the same requests as described for mode S2 are sent from data collector to meter device Figure 3 2 shows the telegram flows for mode S2 and mode T2 Wireless M BusDocumentation En W NMBus CHAPTER 3 DEMO APPLICATION page 8 Meter Device Data Collector Meter Device Data Collector spuosas Q Q User Data ee Acknowledg ay User Data Pr
16. pter 2 e Baud rate 115200 bps e 8 data bits 1 stop bit e No parity bits e No flow control Wireless M BusDocumentation W Bus CHAPTER 3 DEMO APPLICATION page 9 To check the correct serial setting push Button 4 Ifthe connection works correctly the status message shown in the upper part of Figure 3 3 appear in the terminal window When transmitting data they are automatically split into chunks of 20 bytes This derives from a limitation of the serial buffer whereas the communication stack would be able to transmit the data lengths specified by 4 of more than 200 bytes End each line with line feed ASCII 0x0A as shown for the example Hello world message i COM12 PuTTY i Figure 3 3 Terminal window here for meters 3 3 Meter Device 3 3 1 Introcuction If the meter device is in mode S2 it sends periodical user data telegrams In this demonstration the packets contain a simple counter that is incremented for each user data telegram from 10 to 200 At the value of 200 the counter restarts Each telegram also includes the minimum and the maximum value The minimum value is always 10 After starting the meter device the maximum value is identical to the minimum value but it is updated with each user data telegram If the device is started the flag user data class 1 available is set A request for user data class 1 is therefore answered with a user data telegram with no header and value 0xF 1 manufact
17. run ti 6 1 sec Port USB COM12 JTAG 4 wires Check Sum Source Ox07F6C830 Memory Device Serialization Erase Write memory option All Memory COCO V Reload Code File AUTO PROG Verify Security Fuse ERASE FLASH BLANK CHECK WRITE FLASH VERIFY FLASH READ COPY WRITE FLASH NEXT F5 Figure 2 4 ERASE FLASH and WRITE FLASH 12 Click on ERASE FLASH and check the step to pass 13 Click on WRITE FLASH and make sure that this works as well 14 Disconnect the debug adapter and restart the device pressing the Reset button lt 4 gt of the Testboard ver 1 1 15 Repeat the steps described for the second device but make sure to select the second code file 16 Now your boards are ready to run the application Wireless M BusDocumentation VW MBus Chapter 3 Demo application 3 1 Introduction This implementation shows the protocol packets transmitted in a bidirectional communication setup of a data col lector and a single meter device Unidirectional communication is also available for the modules used but it should only apply for devices providing extremely restricted memory ressources Bidirectional communication is by far more flexible and it may even save energy depending on the device settings As the memory of the PAN7550 is sufficient for a metering application plus a bidirectional communication this option is prese
18. these cases the protocol stack can be purchased as library or as source code in different versions Please contact wireless stzedn de for a quotation Refer to Table 5 1 for a list of available versions Wireless M BusDocumentation En W Meus Chapter 5 Available Software Configurations and Documentation The stzedn stack for Wireless M Buscomprehends the full protocol implementation The software may be delivered in various configurations shown in table 5 1 The software always comes with a doc umentation containing the interface description of the protocol layers library or with the complete documentation when buying the software in source code The software configurations shown in table 5 1 are currently supported Wireless M BusDocumentation siti VW MBus CHAPTER 5 AVAILABLE SOFTWARE CONFIGURATIONS AND DOCUMENTATION page 19 Software Documentation Purpose Example application binary file Configuration software PC AT parser application bi nary file Configuration software PC e Demo application e Configuration software e AT command parser e Configuration software Commissioning tests sim ple traffic generator Wireless M Busmodem ap plication based on the appli cation layer or the data link layer Application layer data link layer and physical layer li brary Example user application source code Configuration software PC Application layer API de scr
19. urer specific This informs the data collector that the meter device was down or has encountered a reset Wireless M BusDocumentation a qe W MM Bus CHAPTER 3 DEMO APPLICATION page 10 3 3 2 Buttons For the presented application the buttons of Testboard ver 1 1 have the following functions e Button 1 Installation This button is always used for sending installation request telegrams If no respond is received there are sent maximal two repetitions If an acknowledgement is received the meter device stops sending installation request telegrams e Button 2 Error This option is to simulate the transmission of error protocols according to 3 A flag is set which marks the availability of user data class 1 information If the user data class 1 is requested the value OxF 2 manufacturer specific is transmitted e Button 3 Spontaneous user data telegram This buttons is used for sending spontaneous user data telegrams The telegram includes a counter value which is incremented each button push and counts up to 255 After this it restarts at 0 e Button 4 Target information Pushing this button causes the module to display the current settings of the PAN7550 in the terminal window 3 3 3 LEDs e LED 1 This LED is lit during the installation procedure e LED 2 This LED is switched on when button 2 cf chapter 3 3 2 is pressed and is switched off if the error is read e LED 3 This LED flashes when a telegram is
20. ve Figure 2 2 Target s Connection Reset Options Choose the debug adapter the PAN7550 is connected to Make sure that JTAG is selected and leave the window clicking on OK 9 Select Setup Memory Options Memory Options Memory Erase Write Verify Address Range Olsen Information Memory Segments D 0x1000 0x103F All Memory including locked INFO A segment C 0x1040 0x107F B 0x1080 Ox108F A 0x10C0 Ox10FF O Main Memory only Main Memory Enable Start Address o Stop Address O Used by Code File O User defined Retain Data in Flash Autoprogram and Erase DCO constants in INFO A 0x10F8 0x10FF MSP430F2xx only User defined Start Address max 256 bytes DCO constants verification in location Ox10F8 to Ox10FF MSP430F2xx and Autoprogram only V Check DCO constants 0x0000 or OXFFFF are invalid Stop Address Read Address Range Dal Memory Information Memory Segments D 0x1000 0x103F C Ox1040 0x107F B 0x1080 0x10BF A 0x10C0 Ox10FF O Main Memory only O Info Memory only AE Start Address O User defined Stop Address Write Verification Fast Write Verify Check Sum Recommended O Standard Write Verify Check Sum Read Verify O None About Microcontroller Main Memory Start Addr 0x8000 Selected Microcontroller Main Memory Stop Addr OXFFFF MSP430F2274 RAM Size i
Download Pdf Manuals
Related Search
Related Contents
Enduit cellulosique - Seigneurie Gauthier Construire une programmation en littérature en cycle 3 Alamo 02974374P User's Manual WOLF-Garten A 340 E FlexScan L997 User`s Manual Excelling MultiTerm - Kaleidoscope Golden Releases Dahle Personal Shredder 20090 DB2P pour employeurs: manuel d`utilisation de l`application カタログダウンロード(1.8MB) Copyright © All rights reserved.
Failed to retrieve file