Streetlight control network of Zigbee3.0

  At present, urban intelligent construction is a trend, and many countries and cities are building or have built intelligent facilities. The most critical feature of a smart city is the tandem of the entire city, with the entire city linked to each other. Street lights are an essential municipal infrastructure for the city. To develop a smart city, the Smart Street Light IoT is an entry point. At present, many cities are also promoting smart street lamps with versatility and gradually replacing traditional street lamps.

  Because of the design and layout of street lamps, the distance between the general street lamps is less than 50m, and the number is large. It is very suitable for zigbee to establish a large number of nodes to control the network, combined with GPRS / 4G / Ethernet device communication can achieve remote monitoring. The E180-ZG120A recently launched by the company has adopted the new zigbee3.0 communication standard, which is safe, reliable and stable. It is very suitable for the networking of smart street lamps.

No alt text provided for this image

Module Physical map

  Network establishment

  1、Connect the factory ZigBee self-organizing network module through the USB to serial port module, and open the host computer software "E180-ZG120A-Setting", as shown in the screenshot below, select the port number, and set the serial port baud rate (default 115200), open the serial port.

No alt text provided for this image

  2、 After the serial port is opened, first click “Enter Configuration Mode”, the message box prompts “Enter the configuration status successfully, and the parameters are successfully read”. The main network parameters include: the node type defaults to the terminal, the channel defaults to 11, the PAN ID defaults randomly, and the transmit power The default is 10.

No alt text provided for this image

  3、 Modify the node type to the coordinator and click the retrace button next to it, and the message box prompts "Configure device type success". The general ZigBee 3.0 network is established by the coordinator node, so the factory default terminal node type needs to be changed to the coordinator before establishing the network.

No alt text provided for this image

  4、 After the node type is successfully written, modify the ZigBee network required for establishing some network parameters (you can also use the default value without modifying the parameters). Modify the channel, network PANID and transmit power here. After modifying the parameters, click “Write Network Parameters”. ", the message box will prompt "Write parameters successfully". The node type is modified, and the module needs to be restarted to take effect. Click “Module Restart”, and the message box prompts “Module restart successful”.

No alt text provided for this image

Join the network

  1、 Entering configuration mode,

  the message box will prompt "enter configuration state successfully, read parameters successfully". The setting network parameters include: node type is terminal by default, channel is 11 by default, pan ID is random by default, and transmission power is 20 by default.

No alt text provided for this image

  2、 Modify the network parameters.

  The PAN ID and transmit channel parameters must be the same as the network to be added. Click “Write Network Parameters” and the message box prompts “Write parameters successfully”. Restart the module.

No alt text provided for this image

  3、Select the fixed-point networking interface

  and display the network status as "joined network". The sleeping terminal node has joined the network created by the previous coordinator.

No alt text provided for this image

Driving street light

  The module is connected to the street light control driver to control the brightness and switch status of the street light:

  The pwm interface controls the brightness of the street light;

  GPIO controls street light switch;

  Remote control

  1、 The zigbee network is connected to the E810-DTU (ZG120-485) zigbee to the serial port digital transmission unit, and the E810-DTU (RS485) is connected to the network through the Ethernet interface, as shown in the figure:

No alt text provided for this image

  Zigbee Network communication link

  2、The network server connected by E810-DTU (RS485) collects the working status data of the street lamp and controls the brightness and switch status of the street lamp to realize remote network monitoring.