14#include "ns3/event-id.h"
15#include "ns3/mac16-address.h"
16#include "ns3/mac64-address.h"
17#include "ns3/object.h"
18#include "ns3/random-variable-stream.h"
19#include "ns3/sequence-number.h"
20#include "ns3/traced-callback.h"
21#include "ns3/traced-value.h"
22#include "ns3/zigbee-aps.h"
23#include "ns3/zigbee-nwk.h"
This class can contain 16 bit addresses.
Object()
Caller graph was not generated because of its size.
Smart pointer class similar to boost::intrusive_ptr.
a unique identifier for an interface.
Callback< void, NwkAddrRespIndParams > ZdoNwkAddrRspIndCallback
This callback is called after a ASDU has successfully received and APS push it to deliver it to the n...
void HandleNwkAddrRequest(Ptr< Packet > asdu, ApsdeDataIndicationParams dataParams)
Effect on Receipt (NWK_addr_req) See Zigbee Specification 2017, Section 2.4.3.1.1.
Ptr< ZigbeeNwk > m_nwk
Pointer to the Zigbee Network Layer (NWK) object.
Ptr< ZigbeeNwk > GetNwk() const
Get the underlying APS used by the current Zigbee ZDO.
ZdoNwkAddrRspIndCallback m_zdoNwkAddrRspIndCallback
This callback is used to to notify the result of a NWK_addr_req request in the ZDO to the Application...
void NwkAddrRequest(NwkAddrRequestParams params)
This function is used to send a Network Address (16-bit address)Request to a remote device when the I...
void ApsDataIndication(ApsdeDataIndicationParams params, Ptr< Packet > p)
This function is called when the Zigbee Stack receives an APSDE-DATA.indication with destination endp...
SequenceNumber8 m_tsn
The transaction sequence number.
void NotifyConstructionCompleted() override
Notifier called once the ObjectBase is fully constructed.
void SetAps(Ptr< ZigbeeAps > aps)
Set the underlying APS to use in this Zigbee ZDO.
void SetNwk(Ptr< ZigbeeNwk > nwk)
Set the underlying NWK to use in this Zigbee ZDO.
void DoInitialize() override
Initialize() implementation.
Ptr< ZigbeeAps > GetAps() const
Get the underlying APS used by the current Zigbee ZDO.
void SetZdoNwkAddrRspIndCallback(ZdoNwkAddrRspIndCallback c)
Set the indication callback to be called when a response (NWK_addr_rsp) to an NWK_addr_req is receive...
void NwkAddrResponse(NwkAddrResponseParams params)
This function is used to send a Network Address (16-bit address) Response to a remote device in reply...
static TypeId GetTypeId()
Get the TypeId of ZigbeeZdo class.
Ptr< ZigbeeAps > m_aps
Pointer to the Zigbee Application Support Sub-layer (APS) object.
void HandleNwkAddrResponse(Ptr< Packet > asdu, ApsdeDataIndicationParams dataParams)
Effect on Receipt (NWK_addr_rsp) See Zigbee Specification 2017, Section 2.4.4.2.1.
void DoDispose() override
Destructor implementation.
SequenceNumber< uint8_t > SequenceNumber8
8 bit Sequence number.
NwkAddrRequestType
Zigbee Device Profile (ZDP) enumeration of request types for NWK_addr_req command.
@ EXTENDED_RESPONSE
Request type for an extended response, not currently supported.
@ SINGLE_DEVICE_RESPONSE
Request type for a single device response.
ZdpStatus
Zigbee Device Profile (ZDP) enumeration of status codes.
@ TIMEOUT
The request timed out.
@ NO_DESCRIPTOR
The requested descriptor (e.g., node, power, simple) is not available or not found.
@ TEMPORARY_FAILURE
A temporary failure occurred while processing the request, and the operation may be retried later.
@ NOT_ACTIVE
The device is not currently active in the network.
@ NO_ENTRY
The requested entry does not exist in the device's table or cache.
@ NOT_PERMITTED
The requested operation is not permitted due to security or policy restrictions.
@ NOT_SUPPORTED
The requested operation is not supported by the device or the network.
@ INVALID_EP
The endpoint specified in the request is invalid or not supported.
@ NO_MATCH
No matching entry was found for the request.
@ FRAME_TOO_LARGE
The frame size of the request or response exceeds the maximum allowed size for the device or network.
@ DEVICE_NOT_FOUND
The device with the specified IEEE address was not found in the network.
@ BAD_KEY_NEGOTIATION_METHOD
The key negotiation method used in the request is not supported or is invalid.
@ INV_REQUESTTYPE
The request type is invalid or not supported.
@ NOT_AUTHORIZED
The device is not authorized to perform the requested operation, possibly due to security or access c...
@ INSUFFICIENT_SPACE
The device does not have enough space to store the requested information or entry.
@ TABLE_FULL
Either the routing or neighbor table are full.
@ SUCCESS
The operation was completed successfully.
@ INVALID_INDEX
A MAC PIB write failed because specified index is out of range.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Zigbee Specification r22.1.0, Section 2.2.4.1.3 APSDE-DATA.indications params.
ZDO Network Address Request Parameters.
NwkAddrRequestType m_requestType
Request type of this command.
Mac16Address m_dstAddr
The destination of the request, unicast or broadcast (0xFFFF).
uint8_t m_startIndex
Placeholder, not supported.
Mac64Address m_ieeeAddr
The known IEEE Address(64-bit address) of the device that we are request its network address (16-bit ...
ZDO Network Address Response Indication Parameters.
Mac16Address m_nwkAddrRemoteDev
The network address (16-bit address) of the remote device matching the request.
Mac64Address m_ieeeAddrRemoteDev
The IEEE address (64-bit address) of the remote device matching the request.
ZdpStatus m_status
The status of the NWK_addr_req being responded to.
ZDO Network Address Response Parameters.
uint8_t m_tsn
The transaction sequence number, must match the one used in the corresponding NWK_addr_req.
Mac16Address m_nwkAddrRemoteDev
The network address (16-bit address) of the remote device matching the request.
Mac16Address m_dstAddr
The destination of the response (the device that issued the NWK_addr_req).
ZdpStatus m_status
The status of the NWK_addr_req being responded to.
Mac64Address m_ieeeAddrRemoteDev
The IEEE address (64-bit address) of the remote device matching the request.