(ZigBee stack is established on the basis of IEEE802.15.4 standard, which defines the Mac and PHY layers of the protocol. ZigBee devices should include phy and MAC layers of IEEE802.15.4 (the standard defines RF radio frequency and communication with adjacent devices), as well as ZigBee stack layers: network layer (NWK), application layer and security service provision layer)