Modules | |
Zgp_sink | |
Data Structures | |
struct | zb_zdo_signal_leave_params_s |
Leave parameters. More... | |
struct | zb_zdo_signal_leave_indication_params_s |
Leave Indication parameters. More... | |
struct | zb_nwk_signal_device_associated_params_s |
Association parameters. More... | |
struct | zb_zdo_signal_device_annce_params_s |
Association parameters. More... | |
struct | zb_bdb_signal_touchlink_nwk_started_params_s |
struct | zb_bdb_signal_touchlink_nwk_joined_router_s |
struct | zb_zdo_signal_can_sleep_params_s |
Sleep signal parameters. More... | |
struct | zb_zdo_app_signal_hdr_s |
struct | zb_zdo_callback_info_s |
struct | zb_zdo_default_resp_s |
Macros | |
#define | ZB_ZDO_SIGNAL_GET_PARAMS(sg_p, type) ((type *)((sg_p) + sizeof(zb_zdo_app_signal_t))) |
#define | ZB_ZDO_INVALID_TSN 0xFF |
#define | zb_get_app_event(param, sg_p) zb_get_app_signal(param, sg_p) |
#define | ZB_GET_APP_SIGNAL_STATUS(param) (ZB_BUF_FROM_REF(param)->u.hdr.status) |
#define | ZB_GET_APP_EVENT_STATUS(param) ZB_GET_APP_SIGNAL_STATUS(param) |
Functions | |
zb_zdo_app_signal_type_t | zb_get_app_signal (zb_uint8_t param, zb_zdo_app_signal_hdr_t **sg_p) |
zb_void_t | zb_zdo_get_diag_data (zb_uint16_t short_address, zb_uint8_t *lqi, zb_int8_t *rssi) |
#define ZB_GET_APP_SIGNAL_STATUS | ( | param | ) | (ZB_BUF_FROM_REF(param)->u.hdr.status) |
#define ZB_ZDO_SIGNAL_GET_PARAMS | ( | sg_p, | |
type | |||
) | ((type *)((sg_p) + sizeof(zb_zdo_app_signal_t))) |
Obtains pointer to parameters passed with application signal.
sg_p | - pointer to application signal |
type | - parameter type |
Example
Association parameters.
Stack passes this parameter to application when some device associates to us.
typedef struct zb_zdo_app_signal_hdr_s zb_zdo_app_signal_hdr_t |
Application signal header
typedef enum zb_zdo_app_signal_type_e zb_zdo_app_signal_type_t |
Signals passed to zboss_signal_handler()
typedef struct zb_zdo_signal_can_sleep_params_s zb_zdo_signal_can_sleep_params_t |
Sleep signal parameters.
Stack passes this parameter to application when device ready to sleep.
Association parameters.
Stack passes this parameter to application when some device joins/rejoins to network.
Leave Indication parameters.
Stack passes this parameter to application upon receipt leave.indication primitive.
typedef struct zb_zdo_signal_leave_params_s zb_zdo_signal_leave_params_t |
Leave parameters.
Stack passes this parameter to application when device itself lefts network.
typedef enum zb_zdp_status_e zb_zdp_status_t |
ZDP status values (2.4.5 ZDP Enumeration Description)
Signals passed to zboss_signal_handler()
Enumerator | |
---|---|
ZB_ZDO_SIGNAL_DEFAULT_START |
Default signal, for pre-R21 ZBOSS API compatibility. The signal has Code+statusonly. |
ZB_ZDO_SIGNAL_SKIP_STARTUP |
Notifies the application that ZBOSS framework (scheduler, buffer pool, etc.) started, but no join/rejoin/formation/BDB initialization is done yet. That signal is generated if application called zb_zdo_start_no_autostart() instead of zboss_start() before zboss_main_loop(). Useful, for instance, when some HW (like, sensor connected via UART etc) must be initialized before ZigBee commissioning, but having ZBOSS scheduler running. The signal has Code+statusonly. {
zb_zdo_app_signal_hdr_t *sg_p = NULL;
zb_zdo_app_signal_t sig = zb_get_app_signal(param, &sg_p);
TRACE_MSG(TRACE_APP1, "zboss_signal_handler: status %hd signal %hd",
(FMT__H_H, ZB_GET_APP_SIGNAL_STATUS(param), sig));
if (ZB_GET_APP_SIGNAL_STATUS(param) == 0)
{
switch(sig)
{
TRACE_MSG(TRACE_APP1, "ZB_ZDO_SIGNAL_SKIP_STARTUP: start commissioning", (FMT__0));
/* Have zb_bdb_is_factory_new() check inside */
ZB_SCHEDULE_CALLBACK(sp_start_join, SP_FIRST_JOIN_ATTEMPT);
break;
|
ZB_ZDO_SIGNAL_DEVICE_ANNCE |
Inform App about receiving device_annce. The even has additional data of zb_zdo_signal_device_annce_params_t type. @snippet simple_gw.c signal_device_annce |
ZB_ZDO_SIGNAL_LEAVE |
The device itself has left the network. The evemnt has an additional data of type zb_zdo_signal_leave_params_t. @snippet application/light_sample/light_control/light_control.c signal_leave |
ZB_ZDO_SIGNAL_ERROR |
some mess in the buffer |
ZB_BDB_SIGNAL_DEVICE_FIRST_START |
Device started and commissioned first time after NVRAM erase. The signal has Code + Status only. |
ZB_BDB_SIGNAL_DEVICE_REBOOT |
BDB initialization completed after device reboot, use NVRAM contents during initialization. Device joined/rejoined and started. The signal has Code + Status only. |
ZB_BDB_SIGNAL_TOUCHLINK_NWK_STARTED |
Inform the Touchlink initiator that the new Zigbee network created. |
ZB_BDB_SIGNAL_TOUCHLINK_NWK_JOINED_ROUTER |
Inform the Touchlink initiator that the new router joined the network. |
ZB_BDB_SIGNAL_TOUCHLINK |
Touchlink commissioning done. |
ZB_BDB_SIGNAL_STEERING |
BDB steering completed. |
ZB_BDB_SIGNAL_FORMATION |
BDB formation completed. |
ZB_BDB_SIGNAL_FIND_BIND |
BDB finding and binding completed. |
ZB_BDB_SIGNAL_TOUCHLINK_TARGET |
Touchlink Target started. |
ZB_BDB_SIGNAL_TOUCHLINK_NWK |
Touchlink Target Network started. |
ZB_NWK_SIGNAL_DEVICE_ASSOCIATED |
New device associated to ZigBee Coordinator or router. Note: that signal exists due to historical reasons. Its usage is not recommented. Base your logic on ZB_ZDO_SIGNAL_DEVICE_ANNCE instead. |
ZB_ZDO_SIGNAL_LEAVE_INDICATION |
NWK leave indication from the child received Has additional data of type zb_zdo_signal_leave_indication_params_t. |
ZB_ZGP_SIGNAL_COMMISSIONING |
ZGP commissioning complete signal Called when GPCB is leaving commissioning mode.
|
ZB_COMMON_SIGNAL_CAN_SLEEP |
Notifies application that MCU can go to sleep. Passed up with parameter @ref zb_zdo_signal_can_sleep_params_t @snippet onoff_server/on_off_switch_zed.c signal_sleep |
ZB_ZDO_SIGNAL_PRODUCTION_CONFIG_READY |
Notifies application that application specific part of production configuration can be applied Passed up with application specific data from production configuration. |
enum zb_zdp_status_e |
ZDP status values (2.4.5 ZDP Enumeration Description)
zb_zdo_app_signal_type_t zb_get_app_signal | ( | zb_uint8_t | param, |
zb_zdo_app_signal_hdr_t ** | sg_p | ||
) |
Unpack application signal buffer in zboss_signal_handler()
param | - parameter of zboss_signal_handler() |
sg_p | - pointer to the extended signal info, if application wants it. Can be NULL. |
zb_void_t zb_zdo_get_diag_data | ( | zb_uint16_t | short_address, |
zb_uint8_t * | lqi, | ||
zb_int8_t * | rssi | ||
) |
Obtains last known LQI and RSSI values from device with specified short address
short_address | - address of device |
lqi | [in] - pointer to zb_uint8_t variable to store lqi value |
rssi | [in] - pointer to zb_uint8_t variable to store rssi value |
Example: