Zigbee Protocol Controller 1.6.0
zigpc_net_mgmt_internal.h File Reference
#include "sys/clock.h"
#include "sys/etimer.h"
#include "sl_status.h"
#include "zigpc_common_zigbee.h"
#include <zigpc_discovery.h>
#include "zigpc_gateway_notify.h"
#include "zigpc_net_mgmt.h"

Go to the source code of this file.

Functions

sl_status_t zigpc_net_mgmt_init_complete (const zigbee_eui64_t zigpc_eui64, zigbee_endpoint_id_t zigpc_endpoint_id, const zigbee_panid_t zigpc_panid, const zigbee_ext_panid_t zigpc_ext_panid, zigbee_radio_channel_t zigpc_radio_channel)
 Initialize Network Management The function expected to be called when the gateway completes setting up the network. More...
 
sl_status_t zigpc_net_mgmt_hdl_idle_add_request (const zigbee_eui64_t eui64, const zigbee_install_code_t install_code, uint8_t install_code_length, bool is_well_known_key_add)
 zigpc_net_mgmt_hdl_idle_add_request Handle a request to add a new node to the network More...
 
sl_status_t zigpc_net_mgmt_hdl_idle_remove_request (const zigbee_eui64_t eui64)
 zigpc_net_mgmt_hdl_idle_remove_request Handle a request to remove a device from the network More...
 
sl_status_t zigpc_net_mgmt_node_add_complete (const zigbee_eui64_t node_eui64)
 zigpc_net_mgmt_node_add_complete Callback from the gateway when a node is added More...
 
sl_status_t zigpc_net_mgmt_publish_interview_status (const zigbee_eui64_t eui64, zigpc_discovery_status_t discovery_status)
 zigpc_net_mgmt_publish_interview_status On an response from a node interview message, publish the status More...
 
sl_status_t zigpc_net_mgmt_node_remove_complete (const zigbee_eui64_t eui64)
 zigpc_net_mgmt_node_remove_complete On a response from a node remove attempt More...
 

Function Documentation

◆ zigpc_net_mgmt_hdl_idle_add_request()

sl_status_t zigpc_net_mgmt_hdl_idle_add_request ( const zigbee_eui64_t  eui64,
const zigbee_install_code_t  install_code,
uint8_t  install_code_length,
bool  is_well_known_key_add 
)

zigpc_net_mgmt_hdl_idle_add_request Handle a request to add a new node to the network

Parameters
eui64- EUI64 of the node to add
install_code- install code used to encrypt messages to specified device
install_code_length- length of install code (bytes)
is_well_known_key_addif True : use well known joining method, if false : use install code method
Returns
SL_STATUS_OK if the node was added to added to TrustZone succesffuly

◆ zigpc_net_mgmt_hdl_idle_remove_request()

sl_status_t zigpc_net_mgmt_hdl_idle_remove_request ( const zigbee_eui64_t  eui64)

zigpc_net_mgmt_hdl_idle_remove_request Handle a request to remove a device from the network

Parameters
eui64- EUI64 of the node to remove
Returns
SL_STATUS_OK if the request to remove the device from the network was sent successfully

◆ zigpc_net_mgmt_init_complete()

sl_status_t zigpc_net_mgmt_init_complete ( const zigbee_eui64_t  zigpc_eui64,
zigbee_endpoint_id_t  zigpc_endpoint_id,
const zigbee_panid_t  zigpc_panid,
const zigbee_ext_panid_t  zigpc_ext_panid,
zigbee_radio_channel_t  zigpc_radio_channel 
)

Initialize Network Management The function expected to be called when the gateway completes setting up the network.

Parameters
zigpc_eui64- The EUI64 of the gateway radio
zigpc_endpoint_id- the main endpoint used by the radio
zigpc_panid- the PANID of the Zigbee network
zigpc_ext_panid- extended PANID
zigpc_radio_channel- the channel used by the Zigbee network
Returns
SL_STATUS_OK if the network was successfuly initialized
Parameters
zigpc_eui64Gateway EUI64
zigpc_endpoint_idGateway Endpoint ID
zigpc_panidNetwork PAN ID
zigpc_ext_panidNetwork extended Pan ID
zigpc_radio_channelNetwork radio channel

◆ zigpc_net_mgmt_node_add_complete()

sl_status_t zigpc_net_mgmt_node_add_complete ( const zigbee_eui64_t  node_eui64)

zigpc_net_mgmt_node_add_complete Callback from the gateway when a node is added

Parameters
node_eui64- EUI64 of the added node

@SL_STATUS_OK if able to succseffuly manage the newly added node

◆ zigpc_net_mgmt_node_remove_complete()

sl_status_t zigpc_net_mgmt_node_remove_complete ( const zigbee_eui64_t  eui64)

zigpc_net_mgmt_node_remove_complete On a response from a node remove attempt

Parameters
eui64- EUI64 of the node removed
Returns
SL_STATUS_OK if the node removal could be properly handled

◆ zigpc_net_mgmt_publish_interview_status()

sl_status_t zigpc_net_mgmt_publish_interview_status ( const zigbee_eui64_t  eui64,
zigpc_discovery_status_t  discovery_status 
)

zigpc_net_mgmt_publish_interview_status On an response from a node interview message, publish the status

Parameters
eui64- the EUI64 of the node
discovery_status- the status of the discovery process
Returns
SL_STATUS_OK if the message was properly handled