background image

Serial

ENET-232 Series and
ENET-485 Series
User Manual for
Windows 2000/NT 4.0 and
Linux

x

86/Solaris 2.

x

ENET-232 and ENET-485 Series User Manual

November 2001 Edition

Part Number 370323B-01

Summary of Contents for ENET-232 Series

Page 1: ...Serial ENET 232 Series and ENET 485 Series User Manual for Windows 2000 NT 4 0 and Linux x86 Solaris 2 x ENET 232 and ENET 485 Series User Manual November 2001 Edition Part Number 370323B 01...

Page 2: ...725 725 11 France 01 48 14 24 24 Germany 089 741 31 30 Greece 30 1 42 96 427 Hong Kong 2645 3186 India 91805275406 Israel 03 6120092 Italy 02 413091 Japan 03 5472 2970 Korea 02 596 7456 Malaysia 603 9...

Page 3: ...instructions owner s modification of the product owner s abuse misuse or negligent acts and power failure or surges fire flood accident actions of third parties or other events outside reasonable con...

Page 4: ...ments could void the user s authority to operate the equipment under the FCC Rules Class A Federal Communications Commission This equipment has been tested and found to comply with the limits for a Cl...

Page 5: ...ought for OEMs if also available from an original manufacturer that also markets in the EU or where compliance is not required as for electrically benign apparatus or cables To obtain the DoC for this...

Page 6: ...ws 2000 NT 4 0 1 5 Linux x86 Solaris 2 x 1 6 Time Saving Development Tools 1 6 Windows 2000 NT 4 0 1 6 Linux x86 Solaris 2 x 1 8 Chapter 2 Installation Installing the Serial Server Software 2 1 Window...

Page 7: ...4 3 COM Port Number 4 5 Transceiver Mode 4 5 Linux x86 Solaris 2 x 4 6 Chapter 5 Verify the Installation Running Diagnostics 5 1 Windows 2000 NT 4 0 5 1 Linux x86 Solaris 2 x 5 2 Connecting Serial Dev...

Page 8: ...rolling the Transceiver Mode Programmatically 6 10 VI_ATTR_ASRL_WIRE_MODE 6 10 Changing the Bias Resistors on the ENET 485 6 11 Functionality of Bias Resistors 6 11 Changing Bias Resistors 6 12 Append...

Page 9: ...hich alerts you to important information This icon denotes a caution which advises you of precautions to take to avoid injury data loss or a system crash bold Bold text denotes items that you must sel...

Page 10: ...D Standard Interface Between Data Terminal Equipment and Data Circuit Terminating Equipment Employing Serial Binary Data Interchange ANSI IEEE Standard 802 3 1988 Information Processing Systems Local...

Page 11: ...Yes No Chapter 2 Chapter 4 Passes Gather What You Need to Get Started Chapter 1 Install Serial Server Software Review Programming Requirements Learn About Transceiver Control Modes Configure the Seri...

Page 12: ...T 485 Series two or four port Universal power supply and the appropriate cable for your area supplied by NI One of the following Category 5 twisted pair network cables Straight through cable for conne...

Page 13: ...ver to other devices refer to the DTE vs DCE section in Appendix D Serial Port Information The ENET 485 servers support four hardware transceiver control modes for reliable communication with two and...

Page 14: ...Using DHCP in Chapter 6 Using Your Serial Device Server If your network does not support DHCP use NI Ethernet device configuration as described in Chapter 3 Ethernet Configuration to configure networ...

Page 15: ...figuration utility NI Ports NI Ethernet Device Configuration utility Serial Device Server Diagnostics utility NI Ethernet Device Firmware Update utility Table 1 1 LED Descriptions LED Description PWR...

Page 16: ...d explains why the NI VISA API was chosen The NIvisa subdirectory of your installation also contains more information about NI VISA Using NI VISA you can obtain a maximum baud rate of 460 8 kbits s fo...

Page 17: ...LabWindows CVI is an interactive ANSI C programming environment designed for building virtual instrument applications LabWindows CVI delivers a drag and drop editor for building user interfaces a comp...

Page 18: ...th LabVIEW you control your system and present your results through interactive graphical front panels You can acquire data from thousands of devices including GPIB VXI PXI serial devices PLCs and plu...

Page 19: ...p program setup exe 3 The setup wizard guides you through the necessary steps to install the serial server software To exit the setup wizard at any time click the Cancel button Linux x86 Complete the...

Page 20: ...ial device server at any voltage other than the one specified on the rear panel Doing so could damage the unit Step 2 Record the Serial Number Ethernet Address and Default Hostname When you configure...

Page 21: ...the Network Settings section in Chapter 3 Ethernet Configuration for more information Step 3 Connect the Cables Figure 2 2 shows the power Ethernet and serial port connection locations on the serial...

Page 22: ...ce Server Before you power on your serial device server contact your network administrator to determine whether you need to configure your network settings manually using NI Ethernet device configurat...

Page 23: ...server has an unrecoverable error Contact National Instruments Technical Support If the PWR RDY LED blinks a slow red yellow pattern the serial device server did not pass its self tests Refer to Appen...

Page 24: ...vailable the unit automatically enters network configuration mode after a 60 second timeout The unit must be in this mode before you can make changes to the network parameters You also can enter this...

Page 25: ...pane click Browse to bring up the NI Ethernet Device Configuration window Figure 3 1 NI Ethernet Device Configuration Window 2 The NI Ethernet Device Configuration window displays a list of devices fo...

Page 26: ...ver hostname The IP address hostname column displays an exclamation point next to your serial device server indicating a configuration problem Refer to the Verifying the Hostname section for help reso...

Page 27: ...ies Window for an Unconfigured Serial Device Server The current hostname is displayed The hostname associates a name with a numerical IP address Hostname is a required field The serial device server a...

Page 28: ...f you select Obtain an IP address automatically DHCP you do not need to enter any network parameters unless you want to change the hostname of the Ethernet device If you select Use the following IP se...

Page 29: ...that acts as a gateway which is a connection between two networks If your network does not have a gateway set this parameter to 0 0 0 0 DNS Server The IP address of a network device that stores hostna...

Page 30: ...number must be the same as other devices on your network if your subnet mask is 255 255 255 0 If you are setting up your own network you probably do not have a gateway or DNS server so you should set...

Page 31: ...Use this option if you want to accept the hostname the DHCP server assigns or if you cannot contact the network administrator to change the DNS entry Use static network parameters instead of DHCP Use...

Page 32: ...5 Series User Manual 4 Review the network parameter settings in the Properties window 5 Confirm that the device is in network configuration mode and click OK The device reboots with the new settings i...

Page 33: ...ew Serial Interface Windows 2000 NT 4 0 The Serial Configuration utility is fully integrated into the Windows 2000 NT Control Panel Use this utility to add a new serial interface 1 Select Start Settin...

Page 34: ...k parameters enter the static IP address you configured for your serial device server using the NI Ethernet Device Configuration utility Figure 4 2 Specifying a Serial Device Server 4 Review the infor...

Page 35: ...ault hostname listed on the baseplate label unless you changed the hostname using NI Ethernet device configuration If DHCP did not configure the network parameters type in the serial device server sta...

Page 36: ...4 4 NI Ports Serial Configuration Utility 3 Select the port you want to configure and refer to the following instructions To remove hardware information about the port from Windows 2000 NT click Delet...

Page 37: ...rs are optimized for network performance and cannot be adjusted COM Port Number Use the COM Port Number control to change the logical COMx name of the selected port Transceiver Mode Use the Transceive...

Page 38: ...n A list of installed ports devices appears 2 Select the port you want to configure and refer to the following instructions To remove information about the port click Delete To view or change the port...

Page 39: ...are Running Diagnostics Windows 2000 NT 4 0 To verify the hardware and software installation run the Serial Device Server Diagnostics utility Verify that no serial cables are attached to the unit and...

Page 40: ...efer to Appendix C Troubleshooting and Common Questions to troubleshoot the problem Figure 5 2 Example of Serial Device Server Diagnostics Utility After Test Linux x86 Solaris 2 x To verify hardware a...

Page 41: ...ections on the rear panel of your serial device server Connect the other end of the serial cable to your serial device Figure 5 3 shows the location of the serial ports on a four port serial device se...

Page 42: ...has standard serial communication functions for use within either Win16 or Win32 applications For information about Microsoft Windows serial communication functions refer to the Win32 Software Develop...

Page 43: ...mmunity standard has emerged to provide a standardized way for these services to provide dynamic domain name services Using this standard after DHCP assigns the numerical IP address it can communicate...

Page 44: ...product because the address is unlikely to change Small networks are less likely to have domain name services available that would resolve the hostname into a numerical IP address Using the CFG RESET...

Page 45: ...ch off the serial device server or you use NI Ethernet device configuration to change its network characteristics Using the CFG RESET Switch at Power On In the event you forget the network configurati...

Page 46: ...irmware to take advantage of these new features You need to know either the IP address or hostname of your serial device server before you run the NI Ethernet Device Firmware Update utility If you do...

Page 47: ...the file 4 Click Update to update the firmware The NI Ethernet Device Firmware Update utility communicates with the specified serial device server to verify the box has no open network connections an...

Page 48: ...er off the serial device server or disconnect the power supply while running the firmware update utility Doing so will damage the unit Configuring Transceiver Modes on the ENET 485 Note Transceiver mo...

Page 49: ...e DTR line controls the transmitter Although this mode uses the same method as the DTR with echo mode to control the transmitter the hardware automatically disables the receiver whenever the transmitt...

Page 50: ...eiver control mode using DeviceIoControl complete the following steps 1 Add the following lines to your source code include winioctl h define IOCTL_SERIAL_SET_TRANSCEIVER_MODE CTL_CODE FILE_DEVICE_SER...

Page 51: ...ormation Access Privilege Data Type Range Default Read Write Global ViInt16 VI_ASRL_WIRE_485_4 0 N A VI_ASRL_WIRE_485_2_DTR_ECHO 1 VI_ASRL_WIRE_485_2_DTR_CTRL 2 VI_ASRL_WIRE_485_2_AUTO 3 VI_STATE_UNKN...

Page 52: ...o a known state The ENET 485 Series contains two 620 bias resistors on the transmission line These resistors create a voltage divider that forces the voltage between the differential pair to be greate...

Page 53: ...e eight nodes in a system you can use 4 7 k resistors at each node to effectively achieve the same result Changing Bias Resistors Complete the following steps to change the bias resistors on the ENET...

Page 54: ...gure 6 4 shows the bias resistors as black rectangles and circles Each port has four bias resistors Figure 6 4 Location of Bias Resistors 4 Remove the bias resistors by gently lifting them out of the...

Page 55: ...ll your serial server software Windows 2000 NT 4 0 1 Select Start Settings Control Panel 2 Double click the Add Remove Programs icon A dialog box appears with a list of the software you can uninstall...

Page 56: ...Appendix A Uninstalling the Software ENET 232 and ENET 485 Series User Manual A 2 ni com Figure A 2 Add Remove Programs Dialog Box for Windows NT...

Page 57: ...d with the serial server software Figure A 3 shows the results of a successful uninstallation Figure A 3 Successful Uninstallation 4 Reboot your computer if Windows 2000 NT prompts you to do so The un...

Page 58: ...T 232 and ENET 485 Series User Manual A 4 ni com Linux x86 If you have rpm install use it to uninstall the package Otherwise delete the installation directory which defaults to usr local vxipnp Solari...

Page 59: ...red and yellow while the device is in network configuration mode At other times the PWR RDY LED blinks slowly in a recognizable pattern to alert you of internal errors Use this appendix to interpret...

Page 60: ...a second that is one fifth of a second red one fifth of a second yellow These short flashes represent the digit in the ones column Again there can be one to nine flashes which represent the digits 1 t...

Page 61: ...in the NI Ethernet Device Configuration Window Allow at least 90 seconds after powering on the device Confirm that the unit is connected to the network on the same subnet as the host computer Click Re...

Page 62: ...is a network utility that sends a packet to a device host on the network then waits for it to be echoed back which indicates an active device host Find the directory where ping is installed and type...

Page 63: ...onfiguration on a computer on the same subnet as the device Confirm that the gateway settings of the host machine are set properly Windows 2000 NT 4 0 only To view your network settings find the direc...

Page 64: ...en Port Confirm that no other users or applications are already using the port The port is closed when its associated port LED is off Verify that the device is not in network configuration mode or in...

Page 65: ...er 2 Installation Error reading registry This error message occurs if a problem was detected with the Windows registry keys associated with the serial device server Complete the following steps to rec...

Page 66: ...ls tab 3 Double click TCP IP Protocol in the Network Protocols list Note If TCP IP Protocol is missing from the list click Add select TCP IP Protocol from the list of available protocols and then clic...

Page 67: ...d not directly access the serial port This error message occurs in response to an error with the serial device server Reboot the serial device server and run the diagnostics program again If this prob...

Page 68: ...rial port is open by another user or application Close all serial ports and run the diagnostics program again All serial ports are closed if all port LEDs are off Common Questions Windows 2000 NT 4 0...

Page 69: ...tab select Device Manager All installed serial ports and their associated physical ports are listed under Ports For all serial device servers PORT 1 refers to the port next to the RJ 45 Ethernet conn...

Page 70: ...ew value 3 After you reassign all local ports close the Device Manager 4 Select Start Settings Control Panel NI Ports 5 Select the NI Serial port you want to rename 6 Click Settings 7 Change the COM p...

Page 71: ...I no longer communicate with my devices You must update the serial device server configuration information in NI Ports 1 Select Start Settings Control Panel NI Ports 2 Select the serial ports associat...

Page 72: ...Refer to the troubleshooting sections of this appendix for specific information about what might cause the diagnostics utility to fail If you have already completed the troubleshooting steps contact N...

Page 73: ...use the serial device server with DOS serial applications No Because the serial device server driver uses the Windows API DOS serial applications will not work DOS understands only that COM1 is mapped...

Page 74: ...the network and will not discover devices on another subnet Linux x86 Solaris 2 x How can I determine which version of the serial server software I have installed The Readme txt file in the NIvisa su...

Page 75: ...5 and 230 4 kbits s for RS 232 My application worked with a board interface but it times out when I use the serial device server interface What should I do Because the serial device server is a networ...

Page 76: ...l to respond One of the most likely reasons is that your subnet has no more available addresses to assign using DHCP Please consult your network administrator to determine the specific reason for the...

Page 77: ...ween computers and between computer terminals and modems Many applications use the RS 232 standard to interface peripherals to personal computers RS 232 uses transmission lines in which the state of e...

Page 78: ...ire B A logical 1 is represented by the voltage on line A being greater than the voltage on line B A logical 0 is represented by the voltage on line A being less than the voltage on line B Differentia...

Page 79: ...ce versa The device that was receiving data can then transmit over the line In full duplex communication the devices use a separate wire or pair of wires for simultaneous transmission in each directio...

Page 80: ...typical half duplex multidrop bus architecture also involves a master slave protocol However in a half duplex system all transmitters and receivers are connected to the same transmission line Figure D...

Page 81: ...d multiple instruments together you need a terminating resistor at only the first and last instruments The terminating resistor should match the characteristic impedance of the transmission line typic...

Page 82: ...because many applications use serial communication to connect two or more DTEs without modems the cabling becomes more complicated If two DTEs are wired together using a straight through cable one tr...

Page 83: ...ctors on your serial device server DB 9 Connector Figure D 6 and Table D 2 give the pin locations and descriptions of the DB 9 connector Figure D 6 DB 9 Connector Pin Locations Table D 2 DB 9 Pin Desc...

Page 84: ...tions of the DB 25 connector which is on the optional DB 9 to DB 25 converter Figure D 7 DB 25 Connector Pin Locations Table D 3 DB 25 Pin Descriptions DB 25 Pin 232 Signal 485 Signal 2 TXD RTS HSO 3...

Page 85: ...the same pair of wires For example to connect an RS 485 data acquisition device to a port on your ENET 485 using half duplex communication you need a single twisted pair of wires At the ENET 485 conn...

Page 86: ...ower supply unit 100 120 VAC 10 60 Hz 220 240 VAC 10 50 Hz Current requirements with power supply unit 100 120 VAC 125 mA maximum 90 mA typical 220 240 VAC 85 mA maximum 60 mA typical Device power con...

Page 87: ...NI Serial server software 2 MB Electrostatic Discharge Protection Non isolated devices 1 5 kV Network Specifications Ethernet connector RJ 45 Connection type IEEE 802 3 compliant 100Base TX 100 Mbits...

Page 88: ...both bus type independent and cross platform compatible For serial users who are familiar with the UNIX serial API the following table shows the several common UNIX device level function calls and the...

Page 89: ...er session basis using viSetAttribute To have a different set of default values following a successful viOpen operation use the visaconf utility to change the default settings in use when a port is op...

Page 90: ...115200 Write a value to the port strcpy buf This is a test string n status viWrite instr buf strlen buf retCount See how many bytes are available to be read in the port Note In viGetAttribute the thir...

Page 91: ...the ENET Serial serial ports Due to the similarity between UNIX system calls for serial access and VISA operations the transition to the VISA architecture should be relatively painless And with VISA...

Page 92: ...y access the latest example programs system configurators tutorials technical news as well as a community of developers ready to share their own techniques Customer Education National Instruments prov...

Page 93: ...ice Web sites from the Worldwide Offices section of ni com Branch office Web sites provide up to date contact information support phone numbers e mail addresses and current events If you have searched...

Page 94: ...c centi 10 2 k kilo 103 M mega 106 G giga 109 t tera 1012 degrees percent ohms A amperes ANSI American National Standards Institute b bits B bytes baud signaling rate of a line in transitions per seco...

Page 95: ...the overscore denotes that the signal is active low duplex the means of bandwidth usage in a serial system EIA Electronic Industries Association EEPROM electrically erasable programmable read only mem...

Page 96: ...cess memory RI Ring Indicator RX Receive RXD Receive Data the overscore denotes that the signal is active low RTS Request to Send s seconds TCP Transmission Control Protocol TX Transmit TXD Transmit D...

Page 97: ...cable type C 6 C 8 caution using firmware update utility 6 7 CFG RESET switch if hosts are connected 6 3 location 6 3 using to enter network configuration mode 6 3 using to reset default network char...

Page 98: ...er information about serial ports C 11 DeviceIoControl setting transceiver mode with 6 9 DeviceIoControl 6 9 input values table 6 9 DHCP benefits and purpose 6 2 configuring network settings automatic...

Page 99: ...control modes table 6 7 two wire mode auto control 6 8 two wire mode DTR controlled 6 8 two wire mode DTR with Echo 6 8 changing bias resistors 6 11 configuring transceiver modes 6 7 connecting two o...

Page 100: ...erification error 3 8 using to add new serial interface 4 2 using to identify device 6 3 verifying 3 7 viewing or changing 3 4 humidity operating and storage E 1 I installation getting started 1 2 ver...

Page 101: ...1 2 C 6 C 8 network configuration mode entering automatically 3 1 entering manually 3 1 6 3 when not required 3 1 when to use 3 1 network problems cannot change network settings C 2 communication prob...

Page 102: ...pment 1 2 overview features 1 3 LEDs 1 4 PWR RDY LED signaling B 1 serial device server 1 3 serial port 1 3 P physical characteristics E 2 pin descriptions DB 25 connector pin descriptions table D 8 c...

Page 103: ...cs 6 4 RS 232 standard features table D 1 overview D 1 RS 422 standard features table D 1 overview D 2 RS 485 standard features table D 1 overview D 2 S self tests if not passed 2 5 if passed 2 4 seri...

Page 104: ...DeviceIoControl 6 9 Windows 2000 NT 4 0 6 9 software characteristics E 2 determining version C 8 C 14 installing 2 1 specifications electrical characteristics E 1 environmental characteristics E 1 net...

Page 105: ...ware 6 5 Linux x86 Solaris 2 x 6 7 Windows 2000 NT 4 0 6 6 using CFG RESET switch 6 3 DHCP 6 2 other National Instruments applications 1 6 this manual 1 1 V verifying hostname 3 7 installation 5 1 net...

Reviews: