SZSPTP ez430-RF2480 1.0

ZigBee Sensor Network with synchronized time and time-stamped measurements.
Network configuration.

Values from ZASA example application, file sample_app.c, with modifications considering swra175a.pdf 6.3.1.2. More...

+ Collaboration diagram for Network configuration.:

Macros

#define NWK_CFG_APPENDPOINT   1
 The endpoint of the device. More...
 
#define NWK_CFG_APPPROFILEID   0x0F10
 Profile id of application. More...
 
#define NWK_CFG_DEVICEID   0x0003
 Application specific. More...
 
#define NWK_CFG_DEVICEVERSION   1
 Application specific. More...
 
#define NWK_CFG_INPUTCMDCOUNT   3
 Number of input commands. More...
 
#define NWK_CFG_INPUTCMDLIST   "\x01\x00\x02\x00\x03\x00"
 Input command list. More...
 
#define NWK_CFG_OUTPUTCMDCOUNT   3
 Number of output commands. More...
 
#define NWK_CFG_OUTPUTCMDLIST   "\x01\x00\x02\x00\x03\x00"
 Output command list. More...
 
#define NWK_CMDIDHEARTBEAT   1
 Command id for child heartbeat. More...
 
#define NWK_CMDIDRPT   2
 Command id for report. More...
 
#define NWK_CMDIDPTP   3
 Command id for PTP messages. More...
 

Detailed Description

Values from ZASA example application, file sample_app.c, with modifications considering swra175a.pdf 6.3.1.2.

Macro Definition Documentation

#define NWK_CFG_APPENDPOINT   1

The endpoint of the device.

Value is from 1 to 240 and must have the same value to all devices of the network.

Definition at line 101 of file nwk.h.

Referenced by nwk_register().

#define NWK_CFG_APPPROFILEID   0x0F10

Profile id of application.

This must have the same value to all devices of the network. This number is assigned by the ZigBee Alliance. This was copied from ZASA and can define a profile that this program does not comply with.

Definition at line 109 of file nwk.h.

Referenced by nwk_register().

#define NWK_CFG_DEVICEID   0x0003

Application specific.

This defines the device type of a particular profile id, it is not used by the ZigBee stack.

Definition at line 116 of file nwk.h.

Referenced by nwk_register().

#define NWK_CFG_DEVICEVERSION   1

Application specific.

This defines the device version of a particular profile id, it is not used by the ZigBee stack.

Definition at line 123 of file nwk.h.

Referenced by nwk_register().

#define NWK_CFG_INPUTCMDCOUNT   3

Number of input commands.

This is the number of commands that the application can process.

Definition at line 129 of file nwk.h.

Referenced by nwk_register().

#define NWK_CFG_INPUTCMDLIST   "\x01\x00\x02\x00\x03\x00"

Input command list.

Commands that the application can process. Each command have two bytes. For each command, the less significant byte comes first.

Definition at line 136 of file nwk.h.

Referenced by nwk_register().

#define NWK_CFG_OUTPUTCMDCOUNT   3

Number of output commands.

This is the number of commands that the application can generate.

Definition at line 142 of file nwk.h.

Referenced by nwk_register().

#define NWK_CFG_OUTPUTCMDLIST   "\x01\x00\x02\x00\x03\x00"

Output command list.

Commands that the application can generate. Each command have two bytes. For each command, the less significant byte comes first.

Definition at line 149 of file nwk.h.

Referenced by nwk_register().

#define NWK_CMDIDHEARTBEAT   1

Command id for child heartbeat.

This is used to find the topology of the network and check it. Each device sends these packages to the parent device so that each router knows their direct children.

Definition at line 157 of file nwk.h.

Referenced by nwk_rcv(), and nwk_sendHeartBeat().

#define NWK_CMDIDPTP   3

Command id for PTP messages.

This is used when sending PTP packets.

Definition at line 169 of file nwk.h.

Referenced by nwk_rcv(), and ptp_startFrame().

#define NWK_CMDIDRPT   2

Command id for report.

This is used when sending report packets.

Definition at line 163 of file nwk.h.

Referenced by nwk_bind_deviceConfirm(), nwk_process(), nwk_rcv(), and rep_startFrame().