9
By default, the router communicates with an FEP only when there are packets from a POS terminal. If the
FEP is faulty, the current transaction might fail or be delayed. To solve this problem, you can enable the
POS application handshaking function to detect the state of an FEP. This function also allows an FEP to
detect the reachability of the router.
With handshaking is enabled for an application template, the router initiates a connection to the
corresponding FEP for the application template at a specific interval. The interval is configured by using
the
timer hello
command. When the TCP connection is established, the router sends to the FEP a packet
with an empty data field (fixed as 00056000000000). The FEP does not respond to the packet.
•
For an application template using the temporary TCP connection mode, the router initiates a new
connection at every interval.
•
For an application template using the permanent TCP connection mode, the router uses the existing
TCP connection to send a packet. If no TCP connection exists, the router creates a TCP connection
and keeps the TCP connection after the handshaking.
The handshaking will change the state of the current POS application. If the POS application is in
blocked state, it will switch to non-blocked state when the handshaking succeeds. If the POS application
is in non-blocked state, it will switch to blocked state when the handshaking fails. For an application
template using the temporary TCP connection mode, the FEP state change notifications will not be sent
when handshakes succeed.
Examples
# Enable handshaking for POS application templates.
<Sysname> system-view
[Sysname] posa app 1 type tcp
[Sysname-posa-app1] hello enable
Related commands
timer hello
ip
Use
ip
to configure the IP address and port number of the corresponding FEP for a POS application
template.
Use
undo
ip
to remove the configuration.
Syntax
ip
ip-address
port
port-number
undo ip
Default
No IP address or port number is specified for the POS application template.
Views
POS application template view
Predefined user roles
network-admin