The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice Copyright 2005 Moxa Technologies Co., Ltd. All rights reserved. Reproduction without permission is prohibited.
Moxa’s NE-4100 Series of Serial-to-Ethernet Embedded Network Enablers are compact sized embedded modules that let you network-enable your serial devices. All NE-4100 Series modules come equipped with built-in TCP/IP protocols for fast integration, saving you time and energy on programming.
TTL, whereas S and A represent RS-232 and RS-422/485, respectively. NE-4100 Series products are very compact—less than half the size of a credit card. With such a small size, these Embedded Network Enablers fit into almost any kind of serial device to make the serial device 10/100M Ethernet ready.
Panel Layout and Pin Assignments Chapter 2 This chapter includes information about the panel layouts and pin assignments for NE-4100 Series products. The layouts and reference circuit diagrams for the evaluation boards are also covered. The evaluation boards are used for evaluation and development of applications for NE-4100 Series modules.
NE-4100T is a TTL-to-Ethernet drop-in type network enabler. It measures 45 × 36 mm, and has a dual-in-line, 26-pin design, making it easy to integrate with your serial devices. NE-4100-ST is the corresponding evaluation board that can be used to develop and test your own NE-4100 applications.
Pin Assignments NE-4100T *Pins 13 and 26 control the NE-4100-ST Debug Serial COM Port’s TXD and RXD signals. The location of the Serial COM Port is shown in the figure on the previous page. This Serial COM Port is not needed during normal operation. However, once the network fails and you wish to configure your NE-4100T, you can connect the Debug Serial COM Port, and then use the serial console to configure your NE-4100T.
NE-4100 Series User’s Manual NE-4110 Series/NE-4110-ST The NE-4110 Series has 2 models: NE-4110S and NE-4110A. NE-4110S is an RS-232-to-Ethernet embedded module, and NE-4110A is an RS-422/485-to-Ethernet module. Both modles are RJ45 type network enablers, and measure 57 × 40 mm. NE-4110-ST is the corresponding evaluation board that is designed to let you test the modules, and develop your own applications.
NE-4100 Series User’s Manual Pin Assignments Serial Header Pinouts (J1) for NE-4110S RTS0 CTS0 DSR0 TxD0 DTR0 DCD0 RxD0 Serial Header Pinouts (J1) for NE-4110A RxD- RxD+ TxD+ TxD- The symbols “B” and “A” are often used in place of “+” and “-”, respectively.
NE-4100 Series User’s Manual NE-4110-ST LED Indicators LED Name Power Ready DIO0 DIO1 DIO2 DIO3 TXD0 RXD0 DTR0 CTS0 DSR0 DCD0 RTS0 TXD1 RXD1 DB9 Male Connector for serial console Signal TXD+ Panel Layout and Pin Assignments LED Color Indicates the power is on.
NE-4100 Series User’s Manual NE-4120 Series/NE-4120-ST NE-4120 Series modules are very similar to NE-4110 Series modules. The main difference is that NE-4120 Embedded Network Enablers are pin header type. NE-4120 Series has 2 models: NE-4120S and NE-4120A, both of which measure 57 × 40 mm.
NE-4100 Series User’s Manual Pin Assignments Serial Header Pinouts (J1) for NE-4120S RTS0 CTS0 DSR0 TxD0 DTR0 DCD0 RxD0 Serial Header Pinouts (J1) for NE-4120A RxD- RxD+ TxD+ TxD- The symbols “B” and “A” are often used in place of “+” and “-”, respectively.
NE-4100 Series User’s Manual NE-4120-ST LED Indicators LED Name Power Ready DIO0 DIO1 DIO2 DIO3 TXD0 RXD0 DTR0 CTS0 DSR0 DCD0 RTS0 TXD1 RXD1 Panel Layout and Pin Assignments LED Color Indicates the power is on. Steady on: Power is on and NE-4120 is functioning normally.
This chapter includes information about installing NE-4100 Series modules. The following topics are covered in this chapter: Wiring Requirements Attaching NE-4100T to the Evaluation Board Attaching NE-4110 Series to the Evaluation Board Attaching NE-4120 Series to the Evaluation Board Circuit Pad for External Connection...
Before connecting your NE-4100-ST to the power supply, network, and serial device, you first need to attach NE-4100T to the NE-4100-ST evaluation board. In the center of the evaluation boards, there is a square with one white inverted triangle (shown as black in the figure) on one of its sides, and 2 rows of female sockets on the other two sides.
NE-4100 Series User’s Manual NE-4100-ST Starter Kit Attaching NE-4110 Series to the Evaluation Board J1, J2 on the NE-4110 module and J9, J10 on the evaluation board are for communications between the NE-4110 Series modules and the evaluation board. Connect Jumper 1 (J1) on the NE-4110 Series module to Jumper 9 (J9) on the evaluation board, and Jumper 2 (J2) on the NE-4110 Series module to Jumper 10 (J10), as shown below.
NE-4120-ST Starter Kit Circuit Pad for External Connection The circuit pad located on the right side of the evaluation boards (NE-4100-ST and NE-4110-ST) is used to develop additional application circuits. The circuit pad is circled in red in the figure below.
DI/O mode for physical wiring is selected by the DI/O mode jumper. For example, when the DI/O mode of DI/O1 is set to DI, the circuit of DI/O1 on the NE-4100 series module is connected to Digital Input DIP switch, digit 1. When the firmware of the NE-4100 series sets DI/O1 to digital input mode, you can check the DI/O1 status with the Windows utility or Web browser.
NE-4100 Series User’s Manual 1. First, use the DI/O selectable jumper to set the DI/O modes, as shown below. DI/O Mode DI DO 2. After the DI/O modes are set, use the Digital Input Dip Switches to configure the status for DI0 and DI2.
NE-4100 Series User’s Manual Selecting the Interface The various NE-4100 Series models support 2 different serial interfaces. NE-4110S and NE-4120S support the RS-232 interface, and NE-4110A and NE-4120A support the RS-422/485 interface. For this reason, we provide an interface selectable jumper on the NE-4110-ST and NE-4120-ST evaluation boards, which are used with NE-4110 and the NE-4120 Series, respectively.
Choosing the Proper Operation Mode Chapter 4 In this section, we describe the various NE-4100 Series operation modes. The options include an operation mode that uses a driver installed on the host computer, and operation modes that rely on TCP/IP socket programming concepts. After choosing the proper operating mode in this chapter, refer to subsequent chapters for detailed configuration parameter definitions.
NE-4100 Series User’s Manual Overview NE-4100 Series Embedded Network Enablers act as a bridge to connect your serial devices to the Ethernet. The built-in TCP/IP stack saves you a lot of time on programming networking protocols. One simple step allows you to choose the proper operating mode, and then use your computer to access, manage, and configure your serial device over the Internet from anywhere in the world.
2. Once the connection is established, data can be transmitted in both directions—from the host to the NE-4100 board, and from the NE-4100 board to the host. UDP Mode Compared to TCP communication, UDP is faster and more efficient.
NE-4100 Series boards’ serial port. Real COM Mode allows several hosts to have access control of the same NE-4100 Series board. The Moxa driver that comes with your NE-4100 Series controls host access to attached serial devices by checking the host’s IP address.
Initial IP Address Configuration Chapter 5 When setting up your NE-4100 Series module for the first time, the first thing you should do is configure the IP address. This chapter introduces the methods that can be used to configure the NE-4100 Series module’s IP address.
NE-4100 Series module, at which point the NE-4100 Series module’s IP address will be reconfigured. In order to use this setup method, both your computer and NE-4100 Series module must be connected to the same LAN. You may also use a cross-over Ethernet cable to connect the NE-4100 Series module directly to your computer’s Ethernet card.
This is where 192.168.200.100 is the new IP address and 00-90-E8-xx-xx-xx is the MAC address for your NE-4100 Series. You will need to use both numbers, as described above in points 1 and 4. Next, execute a special Telnet command by typing: telnet 192.168.200.100 6000...
Page 34
7. Type m and then press Enter to return to the main menu. 8. Type s and then press Enter to Save/Restart the system. 9. Type y and then press Enter to save the new IP address and restart the NE-4100 Series board. Initial IP Address Configuration...
(Please go to www.moxa.com to download the installation program for PComm Lite.) To begin with, use the serial cable to connect the NE-4100 module to your computer’s serial port. 1. Connect the RS-232 DEBUG (P1) serial port located on the evaluation board (NE-4100-ST, NE-4110-ST, or NE-4120-ST) for NE-4100 module directly to your computer’s male RS-232...
Web Console Configuration Chapter 6 The Web Console is the most user-friendly way to configure your NE-4100 Series module. This chapter introduces the Web Console function groups and function definitions. Opening Your Browser Basic Settings Network Settings Serial Settings Operating Settings "...
Refer to Chapter 5, “Initial IP Address Configuration,” for IP configuration. The examples used in this chapter use the Factory Default IP Address (192.168.127.254). 3. The NE-4100 Series homepage will open. On this page, you can see a brief description of the Web Console’s eleven function groups.
NE-4100 Series User’s Manual If you can’t remember the password, the ONLY way to configure the NE-4100 Series module is to load factory defaults by using the Reset button located near the evaluation boards’ (NE-4100T-ST or NE-4110-ST) DB9 male Serial port.
Page 39
NE-4100 Series uses SNTP (RFC-1769) for auto time calibration. Input the correct “Time Server” IP address or domain address. Once NE-4100 Series is configured with the correct Time Server address, NE-4100 Series will request time information from the “Time Server” every 10 minutes.
Settings screen. Make necessary changes to the settings and click on Submit to validate the modifications. You must assign a valid IP address to NE-4100 Series before it will work in your network environment. Your network system administrator should provide you with an IP address and related settings for your network.
Page 41
IP address used to establish a TCP/IP connection. In order to use NE-4100’s DNS feature, you need to set the IP address of the DNS server to be able to access the host with the domain name. NE-4100 provides DNS server 1 and DNS server 2 configuration items to configure the IP address of the DNS server.
Setting 1 to 39 characters (E.g., Floor 1, office 2) Specify the location string for SNMP agents such as NE-4100 Series. This string is usually set to the street address where the NE-4100 is physically located. IP Address Report When NE-4100 Series products are used in a dynamic IP environment, users must spend more time with IP management tasks.
NE-4100 Series’ serial port. Serial Parameters Check the serial communication parameters in your Serial Device’s user’s manual. You should set up NE-4100’s serial parameters with the same communication parameters used by your serial devices. Baud rate Setting 50 bps to 115.2 Kbps NE-4100 supports a baud rate setting from 50 bps to 115.2 Kbps.
0 min: TCP connection is not closed due to an idle TCP connection. 1 to 99 min: NE-4100 automatically closes the TCP connection if there is no TCP activity for the given time. After the connection is closed, NE-4100 starts listening for another host’s TCP connection.
Page 45
Delimiter 2 is optional. If left blank, then Delimiter 1 alone trips clearing of the buffer. If the size of the serial data received is greater than 1K, the NE-4100 will automatically pack the data and send it to the Ethernet. However, to use the delimiter function, you must at least enable Delimiter 1. If Delimiter 1 is left blank and Delimiter 2 is enabled, the delimiter function will not work properly.
0 min: TCP connection is not closed due to an idle TCP connection. 1 to 99 min: NE-4100 automatically closes the TCP connection if there is no TCP activity for the given time. After the connection is closed, NE-4100 starts listening for another Real COM driver’s connection from another host.
Page 47
Max connection 2 to 4: Allows 2 to 4 host’s Real COM drivers to open the specific NE-4100 serial port, at the same time. When multiple hosts’ Real COM drivers open the serial port at the same time, the COM driver only provides a pure data tunnel without control ability.
Setting 0 to 99 min 0 min: TCP connection is not closed due to an idle TCP connection. 1 to 99 min: NE-4100 automatically closes the TCP connection if there is no TCP activity for the given time. Inactivity time...
Page 49
Delimiter 2 is optional. If left blank, then Delimiter 1 alone trips clearing of the buffer. If the size of the serial data received is greater than 1K, the NE-4100 will automatically pack the data and send it to the Ethernet. However, to use the delimiter function, you must at least enable Delimiter 1. If Delimiter 1 is left blank and Delimiter 2 is enabled, the delimiter function will not work properly.
Delimiter 2 is optional. If left blank, then Delimiter 1 alone trips clearing of the buffer. If the size of the serial data received is greater than 1K, the NE-4100 will automatically pack the data and send it to the Ethernet. However, to use the delimiter function, you must at least enable Delimiter 1. If Delimiter 1 is left blank and Delimiter 2 is enabled, the delimiter function will not work properly.
Page 51
10 ms. If the user wants to send a series of characters in a packet, the serial device attached to NE-4100 should send characters without time delay larger than Force Transmit timeout between characters and the total length of data must be smaller than or equal to NE-4100’s internal buffer size.
Access to NE-4100 is controlled by IP address. That is, if a host’s IP address is in the accessible IP table, then the host will be allowed access to the NE-4100. You can allow one of the following cases by setting the parameter.
1 to 63 characters Consult your Network Administrator or ISP for the proper mail server settings. The Auto warning function may not work properly if not set up properly. NE-4100 Series SMTP AUTH supports LOGIN, PLAIN, CRAM-MD5 (RFC 2554). SNMP trap server...
The user has changed NE-4100’s IP address. When the IP address changes, NE-4100 will send an e-mail with the new IP address before NE-4100 reboots. If the NE-4100 fails to send mail to the mail server after 15 seconds, NE-4100 will reboot directly and abort the mail auto warning.
Setting Enable, Disable This feature helps the administrator manage the NE-4100. NE-4100 sends SNMP Trap to a pre-defined SNMP Trap server when the enabled events—such as Cold start, Warm start, Authentication failure, etc.—occur. To configure this feature, you need to click on the event type box.
In this case, the NE-4100 will not have password protection. If you forget the password, the ONLY way to configure NE-4100 is by using the Reset button on the NE-4100 Series’ evaluation boards to “Load Factory Defaults.”...
Configuring Windows Administrator Chapter 7 In addition to using Web Console, Serial Console, and Telnet Console to configure NE-4100, another useful configuration tool that can be used is Network Enabler Administrator. In this chapter, we will discuss how to use Network Enabler Administrator to configure your NE-4100.
We understand the importance of software as the foundation of your application, and with this in mind, we designed NE-4100 Series Network Enabler Administrator to let you easily install and configure your NE-4100 Series products over the network. NE-4100 Series Network Enabler Administrator provides five function groups that ease the installation process, allows off-line COM mapping, and provides monitoring and IP location server functions.
Page 59
NE-4100 Series User’s Manual 4. Click on Install to install program files in the default directory. 5. The Installing window reports the progress of the installation. 6. Click on Finish to complete the installation of NE-4100 Series Network Enabler Administrator Suite.
LAN as your computer. Since the Broadcast Search function searches by MAC address and not IP address, all NE-4100 Series modules connected to the LAN will be located, regardless of whether or not they are part of the same subnet as the host.
Page 61
NE-4100 Series User’s Manual 2. Click on Configuration from the menu bar, and then select Broadcast Search from the drop-down menu. 3. A Searching window will open, showing that the program is searching for NE-4100s connected to this network. Web Console Configuration...
NE-4100. Unlock Password Protection If the NE-4100 is password protected, then you will not be able to use the right click or double click method to open the configuration page. Before you can make any modifications to the NE-4100 configuration, you need to unlock the NE-4100.
Page 63
NE-4100 Series User’s Manual Web Console Configuration 1. Select the NE-4100 Series module that you would like to unlock. Right click the mouse and then select Unlock from the drop down list. 2. After inputting the correct password, the following window will open.
NE-4100 Series User’s Manual Configuring NE-4100 1. Select the NE-4100 module you wish to configure, click the right mouse button, and then select Configure from the drop down list. 2. The next window to open shows that Configurator is processing the configuration of that NE-4100 Series module.
Shift key to select a group of NE-4100s. Upgrading the Firmware 1. Input the password to Unlock the NE-4100, and then right click on a specific module and select the Upgrade Firmware function to start upgrading the firmware.
2. The Import Configuration function is used to import an NE-4100 configuration from a file into one or more of the same model of NE-4100. To import a configuration, first select the target modules, click on the right mouse, and select Import Configuration from the drop down menu.
NE-4100 Series User’s Manual Monitor Two methods can be used to activate the Monitor function. 1. First use Broadcast Search under the Configuration Function group, and then click on Monitor % Add Target % Select From List. 2. First click on Monitor, and then Add Target % Rescan.
Page 68
NE-4100 Series User’s Manual 3. Select Add Target. 4. When you select add target, you will see an NE-4100 list that looks the same as when using Configuration % Broadcast Search. Checkmark the NE-4100 Series modules you would like to Monitor, and then click on OK.
Page 69
NE-4100 Series User’s Manual Web Console Configuration 6. Right click the panel and select Settings. 7. Select Monitor items. 8. Select a Refresh Rate (the default is 3 seconds). 7-13...
Page 70
Alive,” or has lost its connection with the Monitor program. 10. Press Go to start Monitor. 11. In this example, the NE-4100 shown in the list will be monitored. 12. When one of the NE-4100s loses connection with the Monitor program, a warning will be displayed automatically.
NE-4100 Series User’s Manual 13. If the NE-4100 gets reconnected, a warning will be displayed to remind the user that the NE-4100 is now “Alive.” Port Monitor The process is the same as in the previous “Monitor” section. The only difference is that you can select more items under Port Monitor than under port status.
NE-4100 to different fields. Use the following procedure to map COM ports: 1. On-line COM Mapping: Connect NE-4100 to the network % Set NE-4100 to the proper IP address % Map COMs to your host % Apply Change. 2. Off-line COM Mapping: Map COMs to your host % Apply Change % Connect NE-4100 to the network % Configure NE-4100’s IP address.
Page 73
NE-4100 Series User’s Manual 3. Add the target that you would like to map COM ports to. 4. The NE-4100 list that appears is based on the Broadcast Search. Select the NE-4100 that you would like to map COM ports to.
Page 74
Under Classical mode, the driver will not notify the user’s program that a Tx has completed until all Tx data has been sent out from the NE-4100; this mode will case lower throughput. If you want to ensure that all data is sent out before further processing, classical mode is recommended.
NE-4100 Series User’s Manual Off-line COM Mapping 1. Add a target by inputting the IP address and selecting the Model Name without physically connecting the NE-4100 to the network. 2. Apply change. Web Console Configuration 7-19...
Network Enabler Administrator provides a “SW Reset Function” that allows the user to erase NE-4100’s password, or load factory defaults. To enable this function, open the NE’s Configuration page, click on the Digital IO tab, and then check the Enable SW RESET Function (Use DIO 1) checkbox.
Page 77
NE-4100 Series User’s Manual SW Reset Function NOTE: The SW Reset function is disabled by default. If SW Reset is enabled, then since “disable” is the default, it will be reset to “disable” automatically after receiving a 10 sec. SW...
This appendix is included for your reference. Listed below are Well Known Port Numbers that may cause network problems if you configure NE-4100 for the same port. Refer to RFC 1700 for Well Know Port Numbers or refer to the following introduction from IANA.
Page 79
NE-4100 Series User’s Manual TCP Socket 160 – 223 UDP Socket Application Service World Wibe Web HTTP Netword news Transfer Protocol (NNTP) Network Time Protocol Reserved for future use Application Service reserved Management Utility Echo Discard Active Users (systat) Daytime...
95/98/ME/NT/2000/XP system to search, locate, and configure the NE-4100 over the network. The NE-4100 Series library can be found in the folder .\NECI_ LIB\ on the CD enclosed with NE-4100 Series products. For more information, refer to NECI.chm in that directory, and...
In this appendix, we give the reference DIO commands used to access the Digital I/O status of the Network Enabler from an Ethernet network. The Digital I/O status can be accessed by a specific TCP port (default 5001) on the Network Enabler. Command Packet Format: Length (Bytes) Format...
Page 82
NE-4100 Series User’s Manual //define DIO Packet format //Used for Command and ACK packet typedef struct _DIO_Packet_Struct { DIOHeaderStruct header; char data[255]; } DIOPacketStruct, *pDIOPacketStruct; Command Code Usage 1. Reading Single DIO Parameters: Command code: 1(hex) Version: 2(hex) Command Status: doesn’t matter Length of data: 1(hex), represents one byte.
Page 83
NE-4100 Series User’s Manual C code example: void WriteSingleDIO(int port, int mode, int status) DIOPacketStruct packet; packet.header.command = 2; packet.header.version = 2; packet.header.length = 3; packet.data[0] = (char)port; packet.data[1] = (char)mode; packet.data[2] = (char)status; send(SocketFd, (char *)&packet, sizeof(DIOHeaderStruct)+3, 0); //Send TCP packet //Process the returned data here 3.
Page 84
NE-4100 Series User’s Manual 4. Writing Multiple DIOs Parameters: Command code: 6(hex) Version: 2(hex) Command status: doesn’t matter Length of data: (end-start+1)*2 + 2 data[0]: Number of the DIO you wish to access first. data[1]: The last number of the DIO you wish to access...
Page 85
NE-4100 has a built-in SNMP (Simple Network Management Protocol) agent software. It supports SNMP Trap, RFC1317 RS-232 like group and RFC 1213 MIB-II. The following table lists the standard MIB-II groups, as well as the variable implementations for NE-4100. RFC1213 MIB-II supported SNMP variables:...
Page 86
NE-4100 Series User’s Manual System MIB Interfaces MIB SysServices ifInUnknownProtos ipReasmFails ifOutOctets ifOutUcastPkts ifOutNUcastPkts ifOutDiscards ifOutErrors ifOutQLen ifSpecific UDP MIB UdpInDatagrams UdpNoPorts UdpInErrors UdpOutDatagrams UdpLocalAddress UdpLocalPort Address Translation MIB AtIfIndex AtPhysAddress AtNetAddress SNMP Agent with MIB II and RS-232 Like Group...
This appendix shows you how to contact Moxa for information about this and other products, and how to report problems. In this appendix, we cover the following topics. MOXA Internet Services Problem Report Form Product Return Procedure Service Information Appendix E...
NE-4100 Series User’s Manual MOXA Internet Services Customer satisfaction is our number one concern, and to ensure that customers receive the full benefit of our products, Moxa Internet Services has been set up to provide technical support, driver updates, product information, and user’s manual updates.
NE-4100 Series User’s Manual Problem Report Form Customer name: Company: Tel: Email: 1. Moxa Product: & NE-4100T & NE-4100T-P & NE-4110S-P & NE-4100T-CMD & NE-4110A-CMD & NE-4120A- CMD 2. Serial Number: _________________ Problem Description: Please describe the symptoms of the problem as clearly as possible, including any error messages you see.
NE-4100 Series User’s Manual Product Return Procedure For product repair, exchange, or refund, the customer must: ' Provide evidence of original purchase. Obtain a Product Return Agreement (PRA) from the sales representative or dealer. Fill out the Problem Report Form (PRF). Include as much detail as possible for a shorter product repair time.
Need help?
Do you have a question about the NE-4100 and is the answer not in the manual?
Questions and answers