User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 145
R
R
S
S
9
9
1
1
1
1
0
0
-
-
N
N
-
-
1
1
1
1
-
-
2
2
2
2
/
/
2
2
4
4
/
/
2
2
8
8
S
S
o
o
f
f
t
t
w
w
a
a
r
r
e
e
P
P
r
r
o
o
g
g
r
r
a
a
m
m
m
m
i
i
n
n
g
g
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
M
M
a
a
n
n
u
u
a
a
l
l
V
V
e
e
r
r
s
s
i
i
o
o
n
n
4
4
.
.
1
1
5
5
Error Code
Description
-72
DNS_COUNT_ERROR
-73
DNS_RCODE_ERROR
-74
DNS_OPCODE_ERROR
-75
DNS_ID_ERROR
-85
INVALID_VALUE
-190
DNS_RESPONSE_TIME_OUT
Table 21: Error Codes and Descriptions
NOTE: Writing code from a scratch to execute the below commands
may be time consuming. The user is strongly advised to use the API
set, the source code of which is provided with the software package.
Reference files are at
RS.CN.xx.GENR.SP.x.x.x/Driver/Driver_TCP<or nonTCP>/API_Lib .
Documentation for the API set is available at
RS.CN.xx.GENR.SP.x.x.x/Driver/Driver_TCP<or
nonTCP>/Documentation/
4.10.1 Set IP Parameters
Description
This command configures the IP address, subnet mask and default gateway of
the TCP/IP stack in the RS9110-N-11-2X module. The TCP/IP stack can be
configured to DHCP mode or Manual mode. In either mode, the final IP
parameters are returned as part of the response to the TCP Configure command.
Relevance
This command is relevant when the TCP/IP stack is enabled.
Frame Body
The following is the structure of the TCP/IP Configure command.
The second byte is
struct TCP_CNFG_Configure
{
UINT8 uUseDHCP;
UINT8 aIPaddr [4];
UINT8 aNetMask [4];