The production test of a Zigbee sensor can be performed on a host.
1. Production test over the PCBA serial port:
(1) Lead the VCC, GND, TX, RX, or RST test point of the product and connect it to the serial port of the host. Set the baud rate of the host to 115200.
(2) Power on the Zigbee dongle, select the RF mode, and set the transmitting power. It is recommended that the transmitting power be set to 10 and the channel ID be started from 11, the same as that on the host.
(3) After the environment is built, click Run on the host and perform the test as prompted.
2. Wireless production test for the developed gateway:
(1) Use a network cable to connect the gateway to a network port of the computer. Connect another network port of the computer (wired or wireless) to the Internet. Then, power on the gateway. Two green indicators on the gateway are on.
(2) Set the Ethernet IP address of the local computer to 192.168.1.xxx (the last three bits need to be less than 254). The subnet mask is 255.255.255.0 by default.
(3) Set the host IP address to 192.168.1.254 and port number to 12130. The network delay can be set to 200 ms. Enter the channel ID, which is 11 by default.
(4) Press and hold the pairing button on the product for pairing. The pairing indicator blinks quickly, and the product enters the pairing mode. After the product is paired with the gateway, the pairing indicator is steady on for 1s and then off.
5. Click Run on the host and perform the test as prompted.