850 likes | 1.13k Views
NPort Advanced Functions - Firmware. Moxa Connectivity 2012-08. Advanced Functions – Overview. Secure. Firmware. Driver. Inactivity Timeout Delimiter Force Transmit Packet Length Connection Control. TCP Alive Check Timeout Max. Connection Ignore Jammed IP Allow Driver Control
E N D
NPort Advanced Functions- Firmware Moxa Connectivity 2012-08
Advanced Functions – Overview • Secure Firmware Driver • Inactivity Timeout • Delimiter • Force Transmit • Packet Length • Connection Control • TCP Alive Check Timeout • Max. Connection • Ignore Jammed IP • Allow Driver Control • Command by Command • Authentication • Fast Flush • TX Mode • Auto Network Re-connection • Return Error If Network Is • Unavailable • Always Accept Open Requests • COM Grouping (NPort 5000) Serial Ethernet
Serial Inactivity Timeout Ethernet
Q : What is Inactivity Timeout? Where can this function be used? Tips: Inactivity Timeout function automatically closes NPort’s TCP connection if there is no serial data activity for the given time. Inactivity Timeout – Introduction
Inactivity Timeout – Introduction • If there is no serial data activity for the given time, NPort will automatically close the TCP connection. • This function frees up NPort if there is no serial data activity, letting NPort establish another TCP connection, and work more efficiently.
Inactivity Timeout – How does it work? TCP Server mode 1. Establish Connection 3. Disconnect 2. Idle on serial side Ethernet Monitor Telnet Console
Delimiter Serial Ethernet
Q : What is Delimiter? Tips: When NPort receive “a specific character” through its serial port, it immediately packs all data in the buffer and sends it out to the Ethernet. Delimiter – Introduction
Delimiter – When to Use? • If the packets are not able to reach the destination in the order they were sent • If your socket program is very time-critical for receiving Ethernet packets use the Delimiter function to ensure the serial data will be packed into the same Ethernet packet.
Delimiter – How does It Work? ABDEM in buffer
Force Transmit Serial Ethernet
Q : What is Force Transmit? Tips: Force Transmit function forces NPort’s firmware to pack serial data into the same data frame during the specified time. Force Transmit – Introduction
Force Transmit – How does It Work? • Force Transmit means Interval Timeout between characters • The NPort transfers data stored in the buffer via TCP/IP, only if: • internal buffer is full • inter-character interval timeout Interval
Packet Length Serial Ethernet
Q : What is Packet Length? Tips: The Packet Length function forces the NPort’s firmware to send out serial data with the specified packet length for every packet. Packet Length – Introduction
Packet Length – How does It Work? Serial Data Ethernet Packet NPort
Connection Control Serial Ethernet
Connection Control – Introduction Q : What is Connection Control? Tips: When NPort is configured as TCP Client mode, it can decide when to establish or disconnect a connection with the host.
Connection Control – Introduction • Start up / None • Any Character / None • Any Character / Inactivity Time • DSR ON / None • DSR ON / DSR OFF • DCD ON / None • DCD ON / DCD OFF
Connection Control Start / None Start / None:A TCP connection will be established on startup, and will remain active indefinitely Afterthe NPortis poweredon,connectswithHost1immediatelyandremainsactiveindefinitely Ethernet Host1
Connection Control Any Character / None Any Character / None:A TCP connection will be established when any character is received from the serial interface, and will remain active indefinitely. Datainput Host1 ConnectswithHost1afterreceivinganydatafromthe serialport Ethernet
ConnectswithHost1afterreceivinganydatafromthe serialport Connection Control Any Character / Inactivity Time Any Character / Inactivity Time: It will be disconnected when Inactivity time is reached. DisconnectsfromHost1afterwaitingfor the inactivitytimeout,andreconnectswithHost1whenanydatais received fromthe serialportagain Datainput Host1 Time’sup Ethernet
Connection Control DSR ON / None DSR ON / None:A TCP connection will be established when a DSR signal is “On” and will remain active indefinitely. DSRON Host1 AfterDSRON,connectwithHost1immediatelyandremainactiveindefinitely Ethernet
Connection Control DSR ON / DSR OFF DSR ON / DSR OFF: A TCP connection will be established when a DSR signal is “On” and will be disconnected when a DSR “Off” signal is receive DSRON Host1 DisconnectswithHost1afterwaiting forDSROFFandreconnectswithHost1whenDSRONis received fromthe serialportagain DSROFF Ethernet ConnectswithHost1afterDSRON
Connection Control DCD ON / None, DCD ON / DCD OFF • Actually both “DCD ON / None” and “DCD ON / DCD OFF” modes are the same as previous “DSR ON / None” and “DSR ON / DSR OFF”. The only different is signal type.
TCP Alive Check Timeout Serial Ethernet
Q : What is TCP Alive Check Timeout? Tips: Using this method gives NPort a fail-safe mechanism if the network is disconnected or the remote computer is in panic mode. TCP Alive Check Timeout – Introduction
TCP Alive Check Timeout – How does It Work? Host1 5. Go back to listen 2. Crash or network is broken 1. Establish Connection TCP Server 3. Check Alive 4. No Response Ethernet Monitor Telnet Console Host2
Max. Connection Serial Ethernet
Q : What is Max. Connection? Tips: If you need to receive data from different hosts simultaneously, please enable the Max. Connection. Max. Connection – Introduction
Max. Connection – Introduction • When Max connection is greater than 1, the NPort will use a multi connection application. • If Max. Connections is 1, Host2 Host1 Ethernet Connected Data Card Reader
Max. Connection – Introduction • If Max. Connections is 2, Host2 Host1 Connected Ethernet Connected Card Reader Data Data
Max. Connection – Limitation • When Max. Connection is greater than 2, the NPort only provides transfer direction from serial to Ethernet because the NPort’s serial port could receive data out of order when both hosts send data at the same time. Host1 Host2
Ignore Jammed IP Serial Ethernet
Q : What is Ignore Jammed IP? Tips: Ignore jammed IP determines how the port will proceed if multiple hosts are connected and one or more of the hosts stops responding as the port is transmitting data. Ignore Jammed IP – Introduction
Ignore Jammed IP – How does It Work? • If this function is disabled: Host2 Host1 Host 1 crash Ethernet Receive data from NPort Receive data from NPort Host 2 can’t receive data Card Reader Senddatato host 1 and host 2 Stop sending data to Host 2 when buffer of Host 1 is fulled
Ignore Jammed IP – How does It Work? • If this function is enabled: Host2 Host 1 crash Host1 Ethernet Host 2 still receive data Receive data from NPort Receive data from NPort Card Reader Senddatato host 1 and host 2 Still send data to Host 2 after Host 1 crashes
Allow Driver Control Serial Ethernet
Q : What is Allow Driver Control? Tips: Allow driver control determines how the port will proceed if driver control commands are received from multiple hosts that are connected to the port. Allow Driver Control – Introduction
Allow Driver Control– How does It Work? • If this function is disabled: Host2 Host1 Ethernet ParameterofNPort, 9600,N,8,1 in firmware ParamterofNPort, Still9600,N,8,1 Want to open COM port withparameter,4800,E,7,1 Card Reader
Allow Driver Control– How does It Work? • If this function is enabled: Host2 Host1 Ethernet ParameterofNPort, 9600,N,8,1 in firmware Want to open COM port withparameter,4800,E,7,1 ParamterofNPort, Change to 4800,E,7,1 Card Reader