hcrouter.c
来自「microchip公司提供的无线ziebee协议的演示程序」· C语言 代码 · 共 37 行
C
37 行
/*********************************************************************
Home Control, Lighting Router
This file is intended to show how to set up a ZigBee Router using the
Microchip Stack. A router is has some elements of a ZigBee Coordinator
and some elements of an End Device. Similiarities to a ZigBee
Coordinator include:
- Routing capability
- (Limited) binding capability
- Receiver is always on when idle
- PICmicro does not sleep; therefore, should be mains powered
Similiarities to an End Device include:
- Must join an existing network
This demonstration code contains two sequences that are useful for
routers: Device Discovery and Route Discovery. Pressing RB5 will
initiate a NWK_Addr_req Device Discovery message for the device with
the MAC address hardcoded below. Note that End Devices can also
initiate this message, but the must periodically perform a data request
by calling APLRequestMessages() in order to receive the response.
Routers must perform Route Discovery for any nodes that are not its
children or its parent before sending messages to those nodes. The
task function RouteDiscoveryTask() demonstrates how this is performed.
*********************************************************************
* FileName: HCRouter.c
* Dependencies:
* Processor: PIC18F
* Complier: MCC18 v2.30 or higher
* Company: Microchip Technology, Inc.
*
* Software License Agreement
*
* The software supplied herewith by Microchip Technology Incorporated
* (the 揅ompany
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?