技术中心
Download Center Common Problem Video Center Sample Application


1. How far is the ZigBee communication distance?

The measured barrier-free distance is 50m-100m for sensors, 100m-180m for strong non-PA devices and 180m-200m for strong PA devices. The actual distance also depends on the transmitting power and the radiation efficiency of the antenna. In product design, it should be noted that the position of the PCB antenna should not be copper-clad and the antenna should not be covered with a metal shell.

 

2. Feibit ZigBee Gateway Network Structure and Notices

1) The tree topology includes a Coordinator (gateway) and a series of Router (regular power supply equipment) and End Device (battery power supply equipment) nodes.

2) Coordinator connects a series of Outer and End Devices, and its sub-node Router can also connect a series of Outer and End Devices, which can repeat multiple levels.

3) The structure of the tree topology is shown in the following figure:

 


3. Instructions for networking of all equipment

1) How to network sensors:

Press the reset key sensor. If the green light is flashing, it will find the network. If the flash stops, it will be successfully networked with the gateway. If there is no gateway, the networking flash will stop in one minute. If you press the green light without flashing, you press it for 10 seconds, and then the green light goes on for 2 seconds and goes off the net. Then you press the green light again and it will flash.

2) Brief description of sensor networking:

There is a small hole next to it. Press 10 seconds until the indicator lights up for two seconds. The gateway allows access to the network. Then it will flash on top of the gateway. Without flash, the network will be successful. All sensors are like this. The door lock, water meter and transmission equipment are networked and withdrawn by MCU control module.

3) How to reset and network IR blaster?

Press the black reset button under the device for 10 seconds. If the reset is successful, the indicator will last three seconds. Then press the reset button and it will flash for a minute. When there is a gateway nearby that allows devices to access the network, the green indicator lights will go out if the IR Blaster successfully accesses the network. If the device is not connected to the gateway in a minute, the indicator lights will also be off. To see if IR blaster has been successfully connected, press the reset button. If the indicator light is flashed once, the network has been successfully connected. If it flashes continuously, the device is in factory settings and is not connected to the gateway.

4) How to reset and network the switch:

Pry open the switch panel and press the reset key until the indicator lights up. When the gateway allows networking, the indicator light turns out and the networking is successful. 

5) How to reset and network the socket:

Reset socket, press switch key for 10 seconds, release, switch indicator flashes three times, and then reset successfully. When the gateway allows networking, the indicator flashes three times and the networking is successful.


6) How to reset and network the light?

Continuous switch lights 5 times to reset. If the reset is successful, the light will flash three times when it is turned on for the fifth time. When the gateway allows networking, the light flashes three times and the networking is successful.

It should be noted that when using APP or ZLL Test tools or using API to delete devices, Router (lights, switches and sockets) devices will be automatically reset in the power-on state and in the ZigBee network coverage area, while End Device (sensors) devices will not be reset unless End Device devices are deleted at the moment when the device is awakened(the sensor is triggered within 5 seconds or by pressing the reset key within 5-30 seconds). When the device is manually reset at the device end, it is also necessary to delete the device at the APP end in order to ensure the normal networking again.

 

4. What are the main parameters of gateway?

1) Gateway networking device capacity:

When the gateway version 87T0 is over 2.3.5, the number of networked devices is 150 Endpoints theoretically. It is suggested that the number of stable networking devices should be 80 Endpoints. Simply speaking, each Endpoint is each controllable node, for example, three-key switches have three Endpoints.

2) Gateway Port Compatibility Protocol: Supporting Standard Http and UPnP Protocols

3) Gateway ZigBee Compatibility Protocol: It supports Zigbee HA 1.2 standard and allows ZHA/ZLL devices to connect.

4) Gateway operating voltage: DC 5V

5) Gateway rated power: W 2

6) working frequency: 2405MHz~2480MHz

7) Receiving sensitivity: -97 dBm

8) Maximum transmit power: 20dBm

9) 87T0 size: 21.4 long, 12.3 wide and 4.7 high

 

5. What is the gateway API interface protocol?

Interface Protocol: TCP Socket Interface

Port number: 8001

The illumination data is converted into decimal system by analysing the upper position, the lower position and the later D554 position. The illumination intensity is 54612.


 

6. FBee Cloud Server Interface Protocol

Interface protocols: socket and web socket

Port number: socket 8090, web socket 8092

Format: Packet Length (2 bytes) Data Type (2 bytes) Data Length (2 bytes) Data Length (variable length)

 

7. ZigBee Terminology

1) What is attribute?

Attribute is a data value that reflects the physical quantity or state, such as on/Off, light state value(on/Off), temperature value, percentage, etc.

2) What is a cluster?

Cluster is a cluster that contains one or more attributes. In short, a cluster is a collection of attributes. Each cluster is assigned a unique cluster ID and each cluster has a maximum of 65536 attributes. For example, a cluster contains switches in different situations, lights in different situations, temperature values in different situations, percentages in different situations, and so on.

3) What is a device description?

Device Description is part of a large target application that includes one or more clusters.

4) What is an endpoint?

EndPoint is the entrance of the application layer of the protocol stack, that is, the entrance address. It can also be understood as the place where the application object exists. EndPoint is a set of clusters defined to implement a device description. Each Zigbee device can support up to 240 endpoints. Port 0 is used to configure and manage the entire Zigbee device. Applications can communicate with other layers of the Zigbee stack through endpoint 0, so as to initialize and configure these layers. Objects attached to endpoint 0 are called Zigbee device objects (ZDO). Endpoint 255 is used for broadcasting to all endpoints, and endpoints 241-254 are reserved endpoints.

5)What is a profile?

Profile can be understood as a collection of multiple device descriptions that promote interactive applications. The attribute ID and cluster ID are defined to make them look like some characteristics of the device. Taking the home intelligent control system as an example, the light configuration file sets the cluster OnOffDRC of the remote control device to contain an attribute OnOff, which is an unsigned 8-bit value. The value 0xFF means "on", "off" for 0x00 and "off" for 0xF0. Profile sets the remote control device cluster OnOffDRC to contain an attribute OnOff, which is an unsigned 8-bit value. The value 0xFF means "on", 0x00 means "off", and 0xF0 is invalid. Typically, profiles also define which clusters are mandatory hosting and which clusters are optional for devices. In addition, profile defines some optional ZigBee protocol hosting services. Each application corresponds to a profile, which includes device ID, Cluster ID, Attribute ID, and what type of service AF uses. In ZigBee protocol, a profile allows up to 2 ^ 16 devices and 2 ^ 8 clusters, each of which supports up to 2 ^ 16 attributes.

6)What is a node?

Node can also be understood as a container containing a set of ZigBee devices that share a wireless channel. Each node has and has only one wireless channel. In addition to 64-bit IEEE address and 16-bit network address, each node also provides 8-bit application layer entry address (EndPoint), which corresponds to user application object.

  



Node 1Z1: Switch Control Device

Node 2 Z2: Lamp Device

Event: Switch 2 controls light 4, switch 1 controls light group 1~3.

Cluster: Switch state and lamp state under different conditions

EndPoint: Switches and lights

Attribute: Switches and lights have two attributes: on and off.

7) What is Bindling?

Zigbee defines a special process called endpoint binding. Binding creates a logical link between an EndPoint of the source node and an endpoint of the target node. Binding can occur between two or more devices. Coordinator nodes maintain a binding table that basically includes logical links between two or more endpoints.

In the binding table, it contains the following information: IEEE address, endpoint number, cluster number of source node and target node. For two nodes that can establish a binding relationship, the attributes of their cluster must be one selection of "input" and the other selection of "output", and the cluster number must be equal. Only in this way can they establish binding with each other. If the extended address of the target device is known, a binding entry can be created by calling the zb_BindDeviceRequest() function.

8) What is Addressing?

In Zigbee networks, two addresses are used: a 64-bit IEEE address, also known as a physical address, which is unique among all ZigBee devices, including a 24-bit manufacturer-specific organizational identifier OUI (OrganizaTIonally Uqique IdenTIfier) assigned by IEEE and unique in the world. The other is the 16-bit network address (NWK Address), which is obtained from the parent device that allows the device to join when it joins the ZigBee network. This address is unique in ZigBee network and is used for data transmission and packet routing. In zigbee, data packets can be unicast, multicast or broadcast, so they must have address mode parameters. A single-point transmission data packet is sent to only one device, while a multipoint transmission data packet is sent to a group of devices, while broadcast data is sent to all nodes of the whole network. Group Addrssing can also be used when an application needs to send a packet to a group of devices on the network.

 

9) What communication interface does the ZIGBEE module reserve? How to paste it on the PCB board of the product? How do ZIGBEE communication protocols and product MCU programs dock?

Data acquisition sensor module and transmission module are UART serial communication. Data acquisition sensor module includes temperature and humidity sensor, CO acquisition sensor, illumination sensor, PM2.5 sensor. Switching module is the output of high and low level signal, and lamp module is the output of PWM control signal. Zigbee communication protocol and product MCU program communicate with instructions and dock with documents.


10) What is the size of the ZGIBEE module?

5600 size (length * width * height) 15mm * 28mm * 2mm

56A4 size (length * width * height) 15mm * 24mm * 2.2mm

11) What is the alarm mechanism of infrared sensors?

1.5 version of high-level trigger sensor alarm mechanism, all high-level trigger alarm module is the same as infrared:

Twenty minutes before infrared power-on is ZigBee test mode, i.e. every five seconds to detect whether someone is there, if someone immediately reports someone (0x0021), if no one is detected in one minute, it will report once nobody (0x0020).

20 minutes later, the normal mode, every 5 seconds to detect whether someone, if detected that someone reported once someone. If someone is detected within 1 minute, no one will be reported, and the timer clears, and the timer resets for 1 minute. If no one is detected within 1 minute, no one will be reported. Only when there is no one to report can someone be reported again!


12) IR Blaster Learning Reporting Data Format