Low cost wireless interface for controllers Technical Manual 1950 5 th Street, Davis, CA 95616, USA Tel: 530-758-0180 Fax: 530-758-0181 Email: sales@tern.com http://www.tern.com
COPYRIGHT Z232, FlashCore-B, 586-Engine and ACTF are trademarks of, Inc. Am186ES is a trademark of Advanced Micro Devices, Inc. XBee and XBee-PRO are registered trademarks of Digi, Inc. Paradigm C/C++ is a trademark of Paradigm Systems. Microsoft, Windows, Windows98/2000/ME/NT/XP are trademarks of Microsoft Corporation. IBM is a trademark of International Business Machines Corporation. Version 1.00 May 19, 2009 No part of this document may be copied or reproduced in any form or by any means without the prior written consent of, Inc. 1993-2009 1950 5 th Street, Davis, CA 95616, USA Tel: 530-758-0180 Fax: 530-758-0181 Email: sales@tern.com http://www.tern.com Important Notice is developing complex, high technology integration systems. These systems are integrated with software and hardware that are not 100% defect free. products are not designed, intended, authorized, or warranted to be suitable for use in life-support applications, devices, or systems, or in other critical applications. and the Buyer agree that will not be liable for incidental or consequential damages arising from the use of products. It is the Buyer's responsibility to protect life and property against incidental failure. reserves the right to make changes and improvements to its products without providing notice.
Chapter 1: Introduction Chapter 1: Introduction 1.1 Functional Description The Z232 is designed to provide a wireless solution for controllers. The Z232 supports a ZigBee wireless module from DIGI International. It can be driven by an RS232 serial port or a PIO (5V or 3.3V) UART at 9600 baud. Compatible controllers include AE, EE, RE, i386e, 586E, or any board with a PIO-UART or an RS232 UART. Features: * 1.5 x 2.3, 5-24V DC power * Interface DIGI Wireless Modules to controllers * Supports PIO-UART to wireless mode * Supports RS232 to wireless mode * Field firmware update, LED indicator for wireless activity * On-board linear or switching 5V and 3.3V regulator * J2 socket for interfacing to PIO-UART lines Z232 with 586-Engine in PIO-UART to wireless mode 1-1
Chapter 1: Introduction Z232 with FlashCore-B in RS232 to wireless mode 1-2
Chapter 1: Introduction Controller J2 Header SER0 PIO-UART (Debug Port) : PIO-UART Wireless Port J2 H1 Jumpers: H1.1= H1.2 H1.3= H1.4 XBee-Pro TM Wireless Module PC Comport SER0 RS232 (Debug Port) J1 H1 Jumpers: H1.1= H1.3 H1.2= H1.4 H1.5= H1.6 H1 UART Interface Controller : RS232 Wireless Port J3 RS232 Driver U4 Figure 1.1 Z232 Functional Diagram Physical Description Below shows the physical layout of the Z232. SER0 RS232 DEBUG Port (J1) RS232 Wireless Port (J3) XBee-PRO Wireless Module 5V Regulator Switching Power Input Center Negative Step 2 Jumper H1 Header 1-3
Chapter 2: Installation Chapter 2: Installation 2.1 Software Installation Please refer to the software_kit.pdf technical manual on the installation CD, under tern_docs\manual\software_kit.pdf, for information on installing software. See DIGI International s website (www.digi.com/support) regarding the X-CTU software for configuring and testing XBee Wireless modules. 2.2 Hardware installation The Z232 can be connected to controller directly on to the controller s J2 header (PIO-UART mode) or connected to the controller s RS232 serial port via serial cable (RS232 mode). Hardware installation for the Z232 will vary based upon which controller board is used. Refer to the technical manual of the controller board for additional details. INSTALL DEBUG SERIAL CABLE ONTO J1 WITH RED EDGE ALIGNED WITH PIN 1. CONNECT DB9 CONNECTER TO PC S COMX. CONNECT OUTPUT OF WALL TRANSFORMER TO POWER JACK. Figure 2.1 Z232 connected to 586-Engine in PIO-UART to wireless mode. 2-1
Chapter 2: Installation SEE CONTROLLER S USER MANUAL FOR INSTALLING THE DEBUG SERIAL CABLE AND WALL TRANSFORMER. ON THE Z233: CONNECT CROSSOVER SERIAL CABLE TO WIRELESS PORT J3 WITH RED EDGE ALIGNED WITH PIN 1. ON THE CONTROLLER: CONNECT CROSSOVER SERIAL CABLE TO AN AVAILABLE RS232 PORT WITH RED EDGE ALIGNED WITH PIN 1. Table 2.1 Z232 connected to 586-Drive in RS232 to wireless mode. 2-2
Chapter 3: Hardware Chapter 3: Hardware 3.1 Introduction The Z232 is designed to provide a wireless solution for controllers. The Z232 supports a ZigBee wireless module from DIGI International. It can be driven by an RS232 serial port or a PIO (5V or 3.3V) UART at 9600 baud. Compatible controllers include AE, EE, RE, i386e, 586E, or any board with a PIO-UART or an RS232 UART. 3.2 XBee-PRO Features The XBee-PRO OEM RF Modules are engineered to meet IEEE 802.15.4 standards and support the unique needs of low-cost, low-power wireless sensor networks. The modules require minimal power and provide reliable delivery of data between devices. The modules operate within the ISM 2.4 GHz frequency band and are pin-for-pin compatible with each other. Features: 2.4GHz operational frequency Up to 300 (90m) range indoors Up to 1 mile (1600m) range outdoor line-of-sight. RF data rate of 250,000 bps 250mA @ 3.3V transmit peak current 55mA @ 3.3V receive peak current 3.3 Wireless Interface controllers can interface the Z232 either directly in PIO-UART to wireless mode or over an RS232 serial cable in RS232 to wireless mode. PIO-UARD to Wireless Mode In PIO-UART to wireless mode, the Z232 plugs directly on top of the controller at header J2. The controller communicates with the XBee wireless module over a 0-5V or 0-3.3V UART connection. Jumpers on the H1 2x3 header must be set to correctly in order to facilitate this mode (H1.1=H1.2, H1.3=H1.4). H1 Figure 3.1 H1 jumpers for PIO-UART to wireless mode 3-1
Chapter 3: Hardware TX-PIO PIO-UART H1 Jumpers: H1.1= H1.2 H1.3= H1.4 XBee-Pro TM Wireless Module Controller J2 Header RX-PIO J2 DOUT DIN UART Interface Controller RX-RS232 TX-RS232 RS232 J3 RX-RS232 TX-RS232 RS232 Driver U4 Figure 3.2 PIO-UART to wireless mode RS232 to Wireless Mode In RS232 to wireless mode, the Z232 is connected by a crossover flat cable to one of the controller s RS232 ports. The controller communicates with the XBee wireless module over a RS232 serial connection. Jumpers on the H1 2x3 header must be set to correctly in order to facilitate this mode (H1.1=H1.3, H1.2=H1.4, H1.5=H1.6). Note that the serial cable must crossover in order to communicate properly. H1 Figure 3.3 H1 Jumpers for RS232 to wireless mode Controller J2 Header TX-PIO RX-PIO PIO-UART J2 H1 Jumpers: H1.1= H1.3 H1.2= H1.4 H1.5=H1.6 DOUT DIN XBee-Pro TM Wireless Module UART Interface Controller RX-RS232 TX-RS232 RS232 J3 RX-RS232 TX-RS232 RS232 Driver U4 Figure 3.4 RS232 to wireless mode 3-2
Chapter 3: Hardware Power Supply The Z232 has an on-board 5V linear regulator by default. The linear regulator requires 9-12VDC input at the two pin terminal block T1. For applications requiring more flexibility in input voltage range, the Z232 supports an optional 5V switching regulator. The switching regulator can accept an input voltage range of 9 to 35VDC. In PIO-UART to wireless mode, the 5V regulator will supply power to the controller as well as the Z232. In RS232 to wireless mode, the Z232 and controller must be powered separately. 3-3
Error! Reference source not found.software Chapter 4: Software 4.1 Introduction By default, XBee /XBee-PRO RF Modules operate in Transparent Mode. When operating in this mode, the modules act as a serial line replacement - all UART data received through the DI pin is queued up for RF transmission. When RF data is received, the data is sent out the DO pin. While the modules can operate in other modes, configures and supports only the Transparent Mode. Information about addition features and operation modes can be found in the XBee/XBee-PRO OEM RF Modules Product Manual. ** See the XBee/XBee-PRO Product Manual for detailed information on using the modules. 4.2 X-CTU Configuration & Test Utility Software DIGI International, makers of the XBee and XBee-PRO wireless, provide a free configuration utility for use with their wireless modules. X-CTU is a Windows-based configuration utility designed to interact with the firmware files on DIGI s XBee modules. X-CTU can either be downloaded from DIGI s website or installed from an installation CD. The figure below shows how to connect the Z232 to interact with the X-CTU software. ** See the X-CTU User Manual for detailed information on using the utility. Connect cable to J3 of the Z232 with the red stripe towards pin 1. Connect the other end (DB9-Female) to an available COM port on the PC. Figure 4.1 Connecting the Z232 to X-CTU 4-1
Error! Reference source not found.software Default Network Configuration configures the XBee modules to operate in a NonBeaconing system where one device is a Coordinator and the other devices are End Devices. configures the Coordinator to broadcast to all End Devices and the End Devices to transmit to the Coordinator. The X-CTU software can be used to configure a device for Coordinator or End Device. See the XBee/XBee-PRO and the X-CTU user manuals for detailed information. COORDINATOR Destination Address = Broadcast END DEVICE Destination Address = Coordinator END DEVICE Destination Address = Coordinator 4-2
J2 1 2 P4 3 4 5 6 TXD0 7 8 RXD0 9 10 11 12 TXD1 13 14 RXD1 15 16 17 18 /CTS1 19 20 HDRD20 P4 VCC /RTS1 H2 1 2 HDRD2 /TXD0 /RXD0 V3 J1 HDRD10 1 2 3 4 5 6 7 8 9 10 R3 L1 LC1 LED 680 LED V+ /TXD1 /RXD1 J3 HDRD10 1 2 V+ 3 4 5 6 7 8 9 10 V3 C5 CAPNP C1+ C1- C2+ C2- V+ V- U4 C1+ 1 V+ 2 C1+ V+ C1-3 C1- C2+ 4 C2-5 C2+ V- 6 C2-7 V- /TXD0 8 T2O /RXD0 R2I MAX232D MAX232D RXD1 R1 1K RXDL VCC 16 15 T1O 14 R1I 13 R1O 12 T1I 11 T2I 10 9 R2O R2 2K INSTALL R2 FOR 5V PIO VCC /TXD1 /RXD1 RXD1 TXD1 TXD0 RXD0 C2 CAPNP C3 CAPNP C6 CAPNP C7 CAPNP TTL-XBEE: H1.1=H1.3, H1.2=H1.4, CUT U4.12 232-XBEE: H1.1=H1.2, H1.3=H1.4 TXDL XDI H1 1 2 XDO 3 4 RXDL HDRD4 +12V LM2575 C11 10UF35V 1 2 3 4 5 ALCAP2 D1 +12VI U3 +12V 1N5817 LX1 D2 I1 330uH 1N5817 +12VI T1 1 2 T2 T2 C10 DOUT DIN XBEE-DIGI U1 H3 V3 1 XDO 2 CK 5V 20 XDI 3 I1 O7 19 PB 1 4 I2 O6 18 2 5 I3 O5 17 6 I4 O4 16 HDRD2 7 I5 O3 15 XRTS IN 8 I6 O2 14 LED 9 I7 O1 13 I8 O0 12 10 G /OE 11 XCTS OUT VCC VCC XBEE XBEE C1 10UF35V ALCAP2 Title R4 TXD1 TXDL 1K R5 2K INSTALL R5 FOR 5V PIO R6 R7 /RTS1 XRTS 2K 1K INSTALL R7 FOR 5V PIO /CTS1 R8 1K XCTS R9 2K INSTALL R9 FOR 5V PIO U2 1 V3 2 GNG VCC 3 VO VO VI BB1117 V3 ZIGBEE, RS232 Size Document Number A Z232.SCH Date: May 8, 2009 Sheet 4 C4 10UF35V ALCAP2 of REV