Moxa Technologies NE-4100 Series User Manual

Moxa Technologies NE-4100 Series User Manual

Serial command mode
Hide thumbs Also See for NE-4100 Series:

Advertisement

Quick Links

Serial Command Mode User's Guide
RSPSupply - 1-888-532-2706 - www.RSPSupply.com
http://www.RSPSupply.com/p-9775-Moxa-NE-4120-ST.aspx
NE-4100 Series
www.moxa.com/product
First Edition, September 2004
Moxa Technologies Co., Ltd.
Tel: +886-2-8919-1230
Fax: +886-2-8919-1231
www.moxa.com
support@moxa.com.tw
support@moxa.com
(Worldwide)
(The Americas)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NE-4100 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Moxa Technologies NE-4100 Series

  • Page 1 NE-4100 Series Serial Command Mode User’s Guide www.moxa.com/product First Edition, September 2004 Moxa Technologies Co., Ltd. Tel: +886-2-8919-1230 Fax: +886-2-8919-1231 www.moxa.com support@moxa.com.tw (Worldwide) support@moxa.com (The Americas) RSPSupply - 1-888-532-2706 - www.RSPSupply.com http://www.RSPSupply.com/p-9775-Moxa-NE-4120-ST.aspx...
  • Page 2 Information provided in this manual is intended to be accurate and reliable. However, Moxa Technologies assumes no responsibility for its use, or for any infringements on the rights of third parties that may result from its use.
  • Page 3: Table Of Contents

    Table of Contents Chapter 1 Introduction ..................... 1 Chapter 2 Serial Command Format and Command Set ..........2 Chapter 3 Operation Flow Chart..................7 Chapter 4 Configuring Serial Command Mode by Entering Trigger Type ....8 Network Enabler Administrator..................8 Telnet Console ........................10 Web Console........................11 Serial Console.........................12 Chapter 5...
  • Page 4: Chapter 1 Introduction

    Serial Command Mode serial commands are used to retrieve or configure parameters stored in NE-4100 Series products’ flash memory. Since the commands are sent via the module’s serial port (P0), Serial Command Mode gives serial device manufacturers the option to add local configuration capability to their products.
  • Page 5: Serial Command Format And Command Set

    NE-4100 Series Serial Command Mode User’s Guide Serial Command Format and Chapter 2 Command Set In this chapter, we describe the structure of the data frames used to issue commands and receive replies to and from the device. The basic Command Frame Format and Reply Frame Format are: Command Frame Format C-Head (>)
  • Page 6 NE-4100 Series Serial Command Mode User’s Guide Reply Code Settings Comments Command was executed successfully Command not supported OP code not supported Invalid command encapsulation Invalid parameter Invalid return value Enter serial command mode OP Code / Parameter OP Code...
  • Page 7 NE-4100 Series Serial Command Mode User’s Guide OP Code Parameter Device setting Settings xxx.xxx.xxx.xxx Accessible Netmask 01 xxx.xxx.xxx.xxx Accessible Netmask 16 (e.g., 255.255.255.0) Operation Mode 0: Real COM Operation Mode 1: TCP Server 2: TCP Client 3: UDP Mode TCP Server Mode 1 –...
  • Page 8 NE-4100 Series Serial Command Mode User’s Guide OP Code Parameter Device setting Settings 0 – 65535 Client Port 1 0 – 65535 Client Port 2 0 – 65535 Client Port 3 0 – 65535 Client Port 4 0 – 99 (minutes) TCP Alive Check Timeout 0 –...
  • Page 9 NE-4100 Series Serial Command Mode User’s Guide OP Code Parameter Device setting Settings 0 – 65535 (ms) Force Tx Timeout Digital IO bytes 1 and 2 (DIO #): DIO Mode 0: DIO_0 1: DIO_1 (e.g., ‘000’ sets DIO_0 to input mode)
  • Page 10: Operation Flow Chart

    NE-4100 Series Serial Command Mode User’s Guide Operation Flow Chart Chapter 3 Check Serial HW Trigger SW Trigger Command Mode Trigger DIO 0 High Normal Data (HW Trigger Normal Detected Poll DIO 0 Check Serial Disabled) Serial-to-Ethernet Status Port Data...
  • Page 11: Configuring Serial Command Mode By Entering Trigger Type

    NE-4100 Series Serial Command Mode User’s Guide Configuring Serial Command Mode by Chapter 4 Entering Trigger Type In this chapter, we explain how to configure the type of trigger (hardware or software) that will activate Serial Command Mode. The trigger type can configured over the network with Network Enabler Administrator, Telnet Console, or Web Console, or through the serial console port by Serial Console.
  • Page 12 NE-4100 Series Serial Command Mode User’s Guide Once the NE-4100-CMD is located, click on the product’s Model to highlight it, and then click the right mouse button. Select the Configuration option. Check the Modify box to change the configuration. If the Enable box is not checked, then Serial Command Mode is disabled.
  • Page 13: Telnet Console

    NE-4100 Series Serial Command Mode User’s Guide NOTE The default setting is HW Trigger Enabled. Only one of the two trigger types (HW or SW) can be set at the same time. Telnet Console The Telnet Console provides a convenient text-based utility to configure your NE-4100-CMD.
  • Page 14: Web Console

    NE-4100 Series Serial Command Mode User’s Guide Web Console The Network Enabler Web Console provides ready access to NE-4100-CMD via web browser. To access the Web Console, open your browser, type the NE-4100-CMD’s IP address in the Address field (default = 192.168.127.254), and then press Enter.
  • Page 15: Serial Console

    “19200, no, 8, 1”. Details of how to connect via the serial console port can be found in the NE-4100 Series User’s Manual. The text-based configuration utility works exactly the same as if connecting by Telnet Console. See the Telnet Console section above for details.
  • Page 16: Entering Serial Command Mode

    NE-4100 Series Serial Command Mode User’s Guide Entering Serial Command Mode Chapter 5 In this chapter, we explain how to enter Serial Command Mode. Trigger Type There are two types of trigger, HW (Hardware) and SW (Software). HW Trigger HW Trigger is passed through the GPIO 0 pin.
  • Page 17: Serial Port Parameters

    NE-4100 Series Serial Command Mode User’s Guide Serial Port Parameters The serial port paramters for port P0 can be obtained from Network Enabler Administrator, or Network Enabler Console. For example, from Network Enabler Administrator, open the NE’s Confiuration panel, click on the Serial tab, click on the port’s information line to highlight it, and then click on Settings to open the Serial Settings window.
  • Page 18: Exiting Serial Command Mode

    NE-4100 Series Serial Command Mode User’s Guide Exiting Serial Command Mode Chapter 6 There are three ways to exit Serial Command Mode. All settings made while in command mode will be stored in RAM. After excuting Save / Restart, the settings will be saved in the flash memory.
  • Page 19: Determining The Active Mode

    NE-4100 Series Serial Command Mode User’s Guide Determining the Active Mode Chapter 7 There are two ways to check if NE-4100-CMD is in Command Mode or Communication Mode. By Network Enabler Administrator Network Enabler Administrator displays clearly the active operation mode in the Configuration panel’s left Information column.
  • Page 20: By Text Via The Serial Port

    NE-4100 Series Serial Command Mode User’s Guide By Text via the Serial Port If the NE module is in serial command mode, it will respond with a short message after receiving the serial command end character 0x0d, allowing the user to send a specific string or character to check if it is in serial command mode.
  • Page 21: Sw Reset Function

    NE-4100 Series Serial Command Mode User’s Guide SW Reset Function Chapter 8 Network Enabler Administrator provides an easy way to enable NE-4100-CMD’s software reset function. 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 22: Chapter 9 Factory Defaults

    NE-4100 Series Serial Command Mode User’s Guide Factory Defaults Chapter 9 The factory default settings for the serial port, Ethernet port, operation mode, and trigger method are given in this chapter. Serial Port Defaults Baud Rate (transmission rate) 9600 bps...
  • Page 23: Demonstration/Testing Environment

    NE-4100 Series Serial Command Mode User’s Guide Demonstration/Testing Environment Chapter 10 In this chapter, we give four examples that can be used to test the function of NE-4100-CMD. The testing environment is as follows: Hardware PC that has an RS-232 serial port.
  • Page 24: Example 1: Get Model Name Using Hw Trigger

    NE-4100 Series Serial Command Mode User’s Guide Example 1: Get Model Name using HW Trigger STEP 1: Configure trigger mode to HW trigger (Chap. 4). STEP 2: Check NE’s serial port settings (Chap. 5). STEP 3: Start Windows HyperTerminal and set PC’s serial port settings to the same settings recorded in STEP 2.
  • Page 25: Example 3: Get Ip Mode Using Sw Trigger

    NE-4100 Series Serial Command Mode User’s Guide Example 3: Get IP Mode using SW Trigger STEP 1: Configure trigger mode to SW trigger, and check the three trigger characters. For this example, assume the trigger is “2B 2B 2B” (Chap. 4).

Table of Contents