⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hcrouter.c

📁 ZigBee&#8482 是专为低速率传感器和控制网络设计的无线网络协议。有许多应用可从ZigBee 协议受益
💻 C
字号:
/*********************************************************************

                    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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -