LP-51xx: V1.8.3 or later
LP-8x3x: V1.2 or later
LP-8x4x: V1.16 or later
Others: All versions
All versions
Linux Applications
ZigBee is a specification based on the IEEE 802.15.4 standard for wireless personal area networks (WPANs).
ZigBee operates in the ISM radio bands and uses a basic master-slave configuration that is suited to the
dynamic mesh networks of many infrequently used devices that talk via small data packets. Up to 256
nodes are allowed.
The LinPAC series supports the ZigBee protocol. We can use the ZT-USBC module as a ZigBee converter that
allows the USB interface to be converted to a personal area ZigBee wireless network. Use the LP-8441 with
the ZT-USBC module to connect to the ZT-2043 module as an example to demonstrate the application of
ZigBee, as illustrated in Figure 1.
User can deploy ZigBee on the LinPAC series and configure it with the iztconfig.exe program, as illustrated
in Figure 2.
Figure 2. Flowchart illustrating how to configure ZigBee on a LinPAC device
Section 1: Install ZT-USBC module
The ZT-USB module is small-sized wireless ZigBee device that allows you to convert from a USB interface to
a ZigBee wireless network. Install the ZT-USBC module on the LP-8441 module following the procedure
described below:
Note: Before installing the ZT-USBC module, it is recommended that you first install the DCON Utility and
the ZT2000 Configuration Utility on a Windows PC to configure both the ZT-USBC module and set the
ZT-2043 module. For more detailed information, refer to ZT-USB series user manual, which you can
download from:
http://ftp.icpdas.com.tw/pub/cd/usbcd/napdos/zigbee/zt_series/document/zt-usb_series/zt-usb_series_usermanual_0101_en.
pdf
Note: If the message 'Unknown symbol in module' appears after installing ftdi_sio.ko (as illustrated in
Figure 4), you need to install both usbserial.ko and ftdi_sio.ko into the kernel and then locate the USB
serial port for the ZT-USBC module, as illustrated in Figure 5.
To create a soft link to the device node of the ZT-USBC(/dev/ttyUSB0). For example, in order to
communicate with the device via COM42 using the LinPAC SDK, you can remove /dev/ttyS40 and create a
soft link for /dev/ttyUSB0 to /dev/ttyS40, as illustrated in Figure 8.
Figure 8. Creating a symlink between the ttyS40 and ttyUSB0
The iztconfig.exe demo program illustrates how to configure the ZigBee wireless network. In this demo
program, you set up the ZigBee wireless network in the LinPAC, which is described below:
Use the following command to list the ZigBee configuration for the ZT-USBC module, as illustrated in
Figure 9.
Command:iztconfig.exe -d <USB device>
Figure 9. List the configuration for the ZT-USBC module using the iztconfig.exe command
Use the following command to modify the communication parameters for the ZigBee, as illustrated in
Figure 10. Setting the PAN ID to 0 for the ZT-USBC module
NOTE: You need to use the '-r' parameter to restart the ZT-USBC module to ensure that the module is set
successfully.
Section 3: Send DCON and Modbus command to control ZT-2043 module
The ZT-2043 offers 14 sink type Digital Output channels. To use the ZT-USBC module communicate with the
ZT-2043 module, the 'Pan ID' and 'RF Channel must be the same if they are on the same ZigBee network.
The ZT-2043 module will then send a request to join the ZigBee wireless network and start working.
NOTE: The configuration for the ZT-2043 module can be adjusted by using both the external rotary switch
and the DIP switches. After completing the configuration, you must power off and power on the ZT-2043
module to ensure that the configuration is successful.
(2) Execute the demo programs to control the ZT-2043 module, as illustrated in Figure 12.
Use the following command to send a Modbus command to set the status of the DO channel on the
ZT-2043 module.
Figure 12. Sending Modbus command to control the ZT-2043 module
For more detailed information about the DCON and Modbus protocol, refer to Chapter 4 of the ZT-2000
DIO Series user manual, which you can download from: