Lantronix G520 G520 User Guide - Page 207

Tunnel Connect, Go to Tunnel > Tunnel 1, Tunnel 2, Tunnel SPP Slave, or Tunnel SPP Master.

Page 207 highlights

17: Tunnel Tunnel Connect In Connect mode, the G520 series gateway continues to attempt an outgoing connection on the network until established. If the connection attempt fails or the connection drops, then it retries after a timeout. The remote node on the network must listen for the Connect mode's connection. For Connect mode to function, it must be enabled, have a remote station (node) configured, and a remote port configured (TCP or UDP). When established, Connect mode is always on. Enter the remote station as an IPv4 or IPv6 address or DNS name. The gateway will not make a connection unless it can resolve the address. For Connect mode using UDP, the gateway accepts packets from any device on the network. It will send packets to the last device that sent it packets. Note: The port in Connect mode is not the same port as the one configured in Accept mode. The TCP keep alive time is the time in which probes are periodically sent to the other end of the connection. This ensures the other side is still connected. To configure Tunnel Connect mode: 1. Go to Tunnel > Tunnel 1, Tunnel 2, Tunnel SPP Slave, or Tunnel SPP Master. 2. Under Connect, enter the connect mode configuration settings. See Table 17-3. 3. Under Connect Host, configure 1 to 4 hosts. See Table 17-4. 4. Click Save & Apply. Field Connect Mode Host Mode Local Port Reconnect Timer Table 17-3 Tunnel Connect Mode Configuration Description Set the method to be used to attempt a connection to a remote host or device. Choices are:  Disable - an outgoing connection is never attempted. (default)  Always - a connection is attempted until one is made. If the connection gets disconnected, the gateway retries until it makes a connection.  Any Character - a connection is attempted when any character is read on the serial line.  Start Character - a connection is attempted when the start character for the selected tunnel is read on the serial line. If more than one host is configured, set the method to be used to access multiple hosts. Sequential - A tunnel will connect to hosts in sequential order. Host 1 will be attempted first. If that fails, it will proceed in order to Host 2, 3, and then 4. When a connection drops, the cycle starts again with Host 1 and proceeds in order. (default setting) Simultaneous - A tunnel will connect to all hosts accepting a connection. Simultaneous connections occur at the same time to all listed hosts. The gateway supports a maximum of 4 host connections. Enter an alternative local port. The local port is set to by default but can be overridden. Blank the field to restore the default. Set the value of the reconnect timeout (in milliseconds) for outgoing connections established by the gateway. Valid range is 1 to 65535 milliseconds. Default is 15000. G520 Series IoT Cellular Gateway User Guide 207

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225

17: Tunnel
G520 Series IoT Cellular Gateway User Guide
207
Tunnel Connect
In Connect mode, the G520 series gateway continues to attempt an outgoing connection on the
network until established. If the connection attempt fails or the connection drops, then it retries
after a timeout. The remote node on the network must listen for the Connect mode’s connection.
For Connect mode to function, it must be enabled, have a remote station (node) configured, and a
remote port configured (TCP or UDP). When established, Connect mode is always on. Enter the
remote station as an IPv4 or IPv6 address or DNS name. The gateway will not make a connection
unless it can resolve the address. For Connect mode using UDP, the gateway accepts packets
from any device on the network. It will send packets to the last device that sent it packets.
Note:
The port in Connect mode is not the same port as the one configured in Accept
mode. The TCP keep alive time is the time in which probes are periodically sent to the
other end of the connection. This ensures the other side is still connected.
To configure Tunnel Connect mode:
1.
Go to Tunnel > Tunnel 1, Tunnel 2, Tunnel SPP Slave, or Tunnel SPP Master.
2.
Under Connect, enter the connect mode configuration settings. See
Table 17-3
.
3.
Under Connect Host, configure 1 to 4 hosts. See
Table 17-4
.
4.
Click
Save & Apply
.
Table 17-3
Tunnel Connect Mode Configuration
Field
Description
Connect Mode
Set the method to be used to attempt a connection to a remote host or device.
Choices are:
Disable
– an outgoing connection is never attempted. (
default
)
Always
– a connection is attempted until one is made. If the connection gets
disconnected, the gateway retries until it makes a connection.
Any Character
– a connection is attempted when any character is read on
the serial line.
Start Character
– a connection is attempted when the start character for the
selected tunnel is read on the serial line.
Host Mode
If more than one host is configured, set the method to be used to access
multiple hosts.
Sequential –
A tunnel will connect to hosts in sequential order. Host 1 will be
attempted first. If that fails, it will proceed in order to Host 2, 3, and then 4.
When a connection drops, the cycle starts again with Host 1 and proceeds in
order. (default setting)
Simultaneous –
A tunnel will connect to all hosts accepting a connection.
Simultaneous connections occur at the same time to all listed hosts. The
gateway supports a maximum of 4 host connections.
Local Port
Enter an alternative local port. The local port is set to <Random> by default
but can be overridden. Blank the field to restore the default.
Reconnect Timer
Set the value of the reconnect timeout (in milliseconds) for outgoing
connections established by the gateway. Valid range is 1 to 65535 milliseconds.
Default is 15000.