C
ONFIGURATION
C
OMMAND
S
ET
- F
IRMWARE
R
EVISION
2.4.0_
BETA
-
V
ERSION
1.0.0
3.2.23 TCP parameters
3.2.23.1 TCP.CLIENT.CONNECT
Parameter syntax
TCP.CLIENT.CONNECT=<
This parameter specifies the type, IP-address and port that your application will use
to connect to the remote server. MAMBOII actively initiates a connection to a
remote server when GPRS state is online. To get connected to the server, set the IP-
address and Port number first and then execute manually (if <
is set to 0
)
the
“
TCP.Client.Connect
”
command to connect to the server. When the connection
has been established successfully, the
“
TCP.Client.sConnected
”
event occurs. If the
remote server rejected the connection, MAMBOII outputs a message
“Connection
failed”
. After a connection has been established, use the
TCP.Client.Send,<
protocols
>,<”
text
”>
command to stream data to a remote server.
A
“
TCP.Client.ePacketSent
”
and a
“
TCP.Client.eReceived
”
event occurs when there
is outgoing and incoming data accordingly. If the <
0,
use the
“
TCP.Client.Disconnect
”
command to terminate the connection
,
otherwise set the
0
before using the
“
TCP.Client.Disconnect
”
command.
<s_type>
It specifies the start type of the TCP connection. Following options can be used:
Value
Meaning
0
Disables auto-reconnect.
1
Enables auto-reconnect. The device automatically and
repeatedly attempts to connect the MAMBOII to a
remote TCP server using the specified IP-address and port
number. The
TCP.Client.eConnecting
event raises each
time the device tries to connect to until successfully
connected.
<
ip_address
>
IP address in dotted-four-byte format. It is the IP address to which the MAMBOII
will be registered and sends its data. The format of this address is
“xxx.xxx.xxx.xxx”. See also descriptions TCP and IP on page
<
port
>
The port number used for communication between the MAMBOII device and
remote server. See also PORT description.
How to set/get TCP configuration:
Set configuration
$PFAL,Cnf.Set,TCP.CLIENT.CONNECT=1,217.119.194.35,2222
Get configuration
$PFAL,Cnf.Get,TCP.CLIENT.CONNECT
Notes
•
All values are separated by commas “,”.
•
Contact your network administrator to specify a correct server IP address and
port number.
This confidential document is a property of FALCOM and may not be copied or circulated without previous permission.
Page 191 of 271