8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES...

19
Fujitsu Semiconductor Design (Chengdu) Co., Ltd. User Manual MCU-AN-500104-E-11 F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION DEVELOPMENT GUI USER MANUAL

Transcript of 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES...

Page 1: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Fujitsu Semiconductor Design (Chengdu) Co., Ltd. User Manual

MCU-AN-500104-E-11

F²MC-8FX FAMILY 8-BIT MICROCONTROLLER

MB95F370 SERIES

ZIGBEE SOLUTION DEVELOPMENT GUI

USER MANUAL

Page 2: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Revision History

MCU-AN-500104-E-11 – Page 2

Revision History

Version Date Updated by Modifications

1.0.0 03/28/2011 Ackley Jiang First draft version

1.0.1 04/11/2011 Ackley Jiang 1.adjust chapter 6 position

2.update AN number

3.update chapter 3

4.add Figure numbers

1.1.0 06/01/2011 Levi Adjust document format

This manual contains 19 pages.

© 2011 Fujitsu Semiconductor Design (Chengdu) Co., Ltd.

Specifications are subject to change without notice. For further information please contact each office.

All Rights Reserved.

The contents of this document are subject to change without notice.

Customers are advised to consult with sales representatives before ordering.

The information, such as descriptions of function and application circuit examples, in this document are presented solely

for the purpose of reference to show examples of operations and uses of FUJITSU SEMICONDUCTOR device; FUJITSU

SEMICONDUCTOR does not warrant proper operation of the device with respect to use based on such information. When

you develop equipment incorporating the device based on such information, you must assume any responsibility arising

out of such use of the information.

FUJITSU SEMICONDUCTOR assumes no liability for any damages whatsoever arising out of the use of the information.

Any information in this document, including descriptions of function and schematic diagrams, shall not be construed as

license of the use or exercise of any intellectual property right, such as patent right or copyright, or any other right of

FUJITSU SEMICONDUCTOR or any third party or does FUJITSU SEMICONDUCTOR warrant non-infringement of

any third-party's intellectual property right or other right by using such information. FUJITSU SEMICONDUCTOR

assumes no liability for any infringement of the intellectual property rights or other rights of third parties which would

result from the use of information contained herein.

The products described in this document are designed, developed and manufactured as contemplated for general use,

including without limitation, ordinary industrial use, general office use, personal use, and household use, but are not

designed, developed and manufactured as contemplated (1) for use accompanying fatal risks or dangers that, unless

extremely high safety is secured, could have a serious effect to the public, and could lead directly to death, personal injury,

severe physical damage or other loss (i.e., nuclear reaction control in nuclear facility, aircraft flight control, air traffic

control, mass transport control, medical life support system, missile launch control in weapon system), or (2) for use

requiring extremely high reliability (i.e., submersible repeater and artificial satellite).

Please note that FUJITSU SEMICONDUCTOR will not be liable against you and/or any third party for any claims or

damages arising in connection with above-mentioned uses of the products.

Any semiconductor devices have an inherent chance of failure. You must protect against injury, damage or loss from such

failures by incorporating safety design measures into your facility and equipment such as redundancy, fire protection, and

prevention of over-current levels and other abnormal operating conditions.

Exportation/release of any products described in this document may require necessary procedures in accordance with the

regulations of the Foreign Exchange and Foreign Trade Control Law of Japan and/or US export control laws.

The company names and brand names herein are the trademarks or registered trademarks of their respective owners.

Page 3: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Contents

MCU-AN-500104-E-11 – Page 3

Contents

REVISION HISTORY ............................................................................................................ 2

CONTENTS .......................................................................................................................... 3

1 INTRODUCTION .............................................................................................................. 4

2 DEMO SYSTEM ............................................................................................................... 5

2.1 System Features ..................................................................................................... 5

3 HARDWARE CONNECTION ........................................................................................... 6

4 PC NETWORK CONFIGURATION .................................................................................. 7

4.1 Default Network Information of ZigBee Board .......................................................... 7

4.2 Network Configuration Steps ................................................................................... 8

5 ZIGBEE WEB SERVER ACCESS VIA IE ........................................................................ 9

6 ZIGBEE WEB PAGES INTRODUCTION AND FUNCTION ........................................... 10

6.1 Web pages overview ............................................................................................. 10

6.2 Web pages Introduction ......................................................................................... 11

6.2.1 Index.htm ................................................................................................. 11

6.2.2 Nodes_index.htm ..................................................................................... 12

6.2.3 Node_information.htm ............................................................................. 13

6.2.4 Node pages ............................................................................................. 14

6.2.5 Demo node page ..................................................................................... 17

7 ADDITIONAL INFORMATION ....................................................................................... 18

8 APPENDIX ..................................................................................................................... 19

8.1 Index of Tables and Figures .................................................................................. 19

Page 4: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 1 Introduction

MCU-AN-500104-E-11 – Page 4

1 Introduction

This application note describes Webpage operation in ZigBee Solution development, including configures PC, access Web server via IE, access node via web server. It introduces web pages and useful web page sets.

Page 5: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 2 Demo System

MCU-AN-500104-E-11 – Page 5

2 Demo System

2.1 System Features

Power Control

LED indication

Support 10/100 Mbps Ethernet

ZigBee protocol stack supporting node and Coordinator

GSM wireless remote control

Operate as HTTP Web Server

3.3V power supply

Embedded Web Server provides the tiny web server operating on Fujitsu 8FX MCU. It controls digital output or monitors digital and analog input through web browser. The webpage is stored in the EEPROM of the board.

Page 6: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 3 Hardware Connection

MCU-AN-500104-E-11 – Page 6

3 Hardware Connection

ZigBee motherboard uses Ethernet Port to connect with PC. It supports 10/100Mbps Ethernet. Normal Ethernet wire is used (twisted-pair).

Power switch is on the left top of board, turn on it, if it works, the power led will be green.

Figure 3-1: ZigBee Motherboard Connects with PC

Page 7: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 4 PC Network Configuration

MCU-AN-500104-E-11 – Page 7

4 PC Network Configuration

4.1 Default Network Information of ZigBee Board

ZigBee motherboard stores the default Network Information in the EEPROM which is on board. The default Network Information of ZigBee motherboard is shown in <Table 4-1>.

Table 4-1: ZigBee Motherboard Default Network Information

Network Information Default Value

MAC Address 00.23.AE.AA.64.A6

Source IP Address 192.168.0.6

Gateway IP Address 192.168.0.1

Subnet Mask 255.255.255.0

DNS Server IP Address 0.0.0.0

Page 8: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 4 PC Network Configuration

MCU-AN-500104-E-11 – Page 8

4.2 Network Configuration Steps

PC Network should set in 192.168.0.x section and not be 192.168.0.6. The set step as follow:

1. Access Local Area Connections, select Internet Protocol (TCP/IP) in Properties

window.

Figure 4-1: Local Area Connection

2. Set the Network configuration as follow:

Figure 4-2: Local Area IP Configuration

When PC Network configuration completed, the Local Area Connection Status will display Connected, and the LED on board which near Ethernet Port will be green.

Page 9: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 5 ZigBee Web server access via IE

MCU-AN-500104-E-11 – Page 9

5 ZigBee Web server access via IE

Open Internet Explorer on PC .Type http://192.168.0.6 (default IP of ZigBee motherboard) to access the web page on ZigBee motherboard, as shown in the figure below.

Figure 5-1: Internet Explorer Access

Page 10: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 6 ZigBee Web Pages Introduction and Function

MCU-AN-500104-E-11 – Page 10

6 ZigBee Web Pages Introduction and Function

6.1 Web pages overview

These web pages display the ZigBee motherboard information, ZigBee nodes information which connected with ZigBee motherboard. It contain 6 pages, pages are:

(1) Index.htm

(2) Nodes_index.htm

(3) Nodes_information.htm

(4) Node_status.htm

(5) Node_status_set.htm

(6) Node_config.htm

Page 11: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 6 ZigBee Web Pages Introduction and Function

MCU-AN-500104-E-11 – Page 11

6.2 Web pages Introduction

6.2.1 Index.htm

Index page displays welcome information and ZigBee motherboard connection state. It contains two page links “Overview” and “ZigBee node index”.

1. “Overview” link to index.htm page itself.

2. “ZigBee node” index link to nodes_index.htm.

Figure 6-1: Index Page of Web Server

Page 12: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 6 ZigBee Web Pages Introduction and Function

MCU-AN-500104-E-11 – Page 12

6.2.2 Nodes_index.htm

Nodes index page displays the nodes which can connect with ZigBee motherboard and the motherboard connection state. It contains 20 page links. They are “back “, “nodes info” and 18 nodes pages. This version just supports a demo node.

1. “back” link to itself index.htm page.

2. “nodes info” link to node_information.htm.

3. Each node links to node_status.htm which belongs to itself. When ZigBee motherboard gets the ZigBee node information, ZigBee node name will replace “unknown_node(x)”. If ZigBee node is not detected or not support it will be display “unknown_node(x)”.

Figure 6-2: Nodes Index Page of Web Server

Page 13: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 6 ZigBee Web Pages Introduction and Function

MCU-AN-500104-E-11 – Page 13

6.2.3 Node_information.htm

Nodes information page introduces the nodes type which ZigBee prepares to support. It contains a link “back” which links back to nodes index page.

1. “back” link to nodes_index.htm page.

Figure 6-3: Node Information Page of Web Server

Page 14: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 6 ZigBee Web Pages Introduction and Function

MCU-AN-500104-E-11 – Page 14

6.2.4 Node pages

Each node has four page links.

1. “Back” link to nodes_index.htm page

2. “Status” link to node_status.htm page .When accessing node page from nodes_index.htm, this page will be displayed first. This page displays current data of node defined by each node. It transfers node data to web page display.

3. “Set status” link to node_status_set.htm page. This page sets command to node. These commands can be executed by the ZigBee node. Each node can have its own command and relative functions.

4. “Config” link to node_config.htm page. This page sets the parameters to ZigBee node. It transfers data from web page to ZigBee node.

Page 15: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 6 ZigBee Web Pages Introduction and Function

MCU-AN-500104-E-11 – Page 15

6.2.4.1 Node_status.htm

Machine title: contains two part

1. “hostname”: display machine name when ZigBee node information is gotten.

2. “machineDesc”: display machine description when ZigBee node information is gotten.

Dates display:

Name(0) to name(6) are the dates defined by node .When dates is gotten from ZigBee node, the name(x) will replace data name and the data value will be displayed under the bar.

Figure 6-4: Node Status Page of Web Server

Page 16: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 6 ZigBee Web Pages Introduction and Function

MCU-AN-500104-E-11 – Page 16

6.2.4.2 Node_status_set.htm

Machine title: contains two part

1. “hostname”: display machine name when ZigBee node information is gotten.

2. “machineDesc”: display machine descript when ZigBee node information is gotten.

Set commands:

1. “ControlLights”: Set lights on/off to ZigBee node.

2. “Control switches”: Set switches on/off to ZigBee node, like motor run/stop.

3. Button (0) to button (5) is the function buttons defined by node .When dates is gotten from ZigBee node; the button(x) will be instead of button name. When function button is clicked, the function will be executed on ZigBee node.

Figure 6-5: Node Status Set Page of Web Server

Page 17: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 6 ZigBee Web Pages Introduction and Function

MCU-AN-500104-E-11 – Page 17

6.2.4.3 Node_config.htm

Machine title: contains two part

1. “hostname”: display machine name when ZigBee node information is gotten.

2. “machineDesc”: display machine descript when ZigBee node information is gotten.

Configure parameters:

1. “Config Parameters”: name (0) to name (7) is the parameter which can be configured by node. When dates is gotten from ZigBee node, the name(x) will replace parameter name. When “Save” button is clicked, the parameters will be transfer to ZigBee node.

2. “Config Steams”: Transfer string under box to ZigBee node. When “Send” button submit the string will be transfer to ZigBee node.

Figure 6-6: Node Configuration Page of Web Server

6.2.5 Demo node page

Demo node is only node implemented by the version. It can access from “Dome node” which on nodes index page. It is one of node status set page. Two functions.

1. “Control Lights”: Set lights on/off to ZigBee node. Control light on/off.

2. “Control switches”: Set switches on/off to ZigBee node. Control motor run/stop.

Page 18: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 7 Additional Information

MCU-AN-500104-E-11 – Page 18

7 Additional Information

For more Information on FUJITSU Semiconductor products, visit the following websites:

English version address:

http://www.fujitsu.com/cn/fsp/services/mcu/mb95/application_notes.html

Chinese version address:

http://www.fujitsu.com/cn/fss/services/mcu/mb95/application_notes.html

Page 19: 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... · 8-BIT MICROCONTROLLER MB95F370 SERIES ZIGBEE SOLUTION ... Information of ZigBee Board ... Status will display Connected,

Zigbee Solution Development V1.1.0 Chapter 8 Appendix

MCU-AN-500104-E-11 – Page 19

8 Appendix

8.1 Index of Tables and Figures

Table 4-1: ZigBee Motherboard Default Network Information ................................................. 7

Figure 3-1: ZigBee Motherboard Connects with PC ............................................................... 6

Figure 4-1: Local Area Connection ......................................................................................... 8

Figure 4-2: Local Area IP Configuration ................................................................................. 8

Figure 5-1: Internet Explorer Access ...................................................................................... 9

Figure 6-1: Index Page of Web Server ................................................................................. 11

Figure 6-2: Nodes Index Page of Web Server ...................................................................... 12

Figure 6-3: Node Information Page of Web Server ............................................................... 13

Figure 6-4: Node Status Page of Web Server ...................................................................... 15

Figure 6-5: Node Status Set Page of Web Server ................................................................ 16

Figure 6-6: Node Configuration Page of Web Server ........................................................... 17