Commands - Lantronix WiPort NR User Manual

Embedded device server
Table of Contents

Advertisement

Every command consists of nine bytes: one command type of one byte and two
parameters of four bytes each.
Command
Byte
0
Pin Number
On some commands, one or all parameters are ignored.
For UDP, command type and parameters need to be in the same datagram.
Responses to valid commands are always five bytes long, consisting of the returned
command byte and as parameters in the current or updated values. In case of an
invalid command, only one byte with value 0FFh is returned.
Byte
Pin Number
When sending a command (TCP and UDP), wait for the response before sending the
next command.

Commands

Byte 0 Command Types
10h
11h
12h
13h
19h
1Ah
1Bh
As you can, see there is no Set functions command. Since the pin's function
depends on the hardware in which the WiPort NR device server is embedded, that
configuration is only allowed via 77FE. Settings changed by any of the Set
commands are not stored and are lost when the unit is powered down or rebooted.
Command 10h, Get Functions
Send:
Response:
WiPort® NR Embedded Device Server User Guide
Parameter 1
1
2
0
7
8
15
16
Command
0
1
0
Get functions
Get directions (input or output)
Get active levels (high active or low active)
Get current states (active or not active)
Set directions
Set active levels
Set current states
No parameters
1 parameter
Bytes 1-4: Functions
Bit X
1 means general purpose IO available to the user.
0 means dedicated function (e.g., serial flow control, diagnostics) for
configurable pin X.
3
4
5
23
24
31
0
7
Parameter 1
2
3
7
8
15
16
23
6: Configurable Pins
Parameter 2
6
7
8
8
15
16
23
24
4
24
31
58
31

Advertisement

Table of Contents
loading

Table of Contents