
Wireless F/T Installation and Operation Manual
Document #9620-05-Wireless FT-03
Pinnacle Park • 1031 Goodworth Drive • Apex, NC 27539 USA • Tel: +1.919.772.0115 • Fax: +1.919.772.8259 • www.ati-ia.com • Email: [email protected]
21
5. Command Interface
The WNet unit must be installed, setup and configured prior to using any command interfaces. Refer to
Section 3—
Installation
for Installation, setup, and configuration of the WNet unit.
5.1 Communication Interfaces
The Wireless F/T can be setup and configured using a text-based command prompt console interface.
The Console Interface can be accessed two ways:
•
Commands can be sent over the USB Connection over the wireless connector as a virtual serial port
•
Telnet server listening on TCP Port 23
5.2 UPD Interface
The WNET unit listens on UDP port 49152 for commands. Any streaming UDP packets are sent to the
current Destination IP address until a UDP command is received. When the WNET unit receives a UDP
command from any IP address, the UDP packets are sent to whichever port the request came from.
The UDP server uses binary format for commands and responses. All multi-byte values use big-endian,
which is the same as network order.
5.3 UDP Command Format
All UDP commands to the WNET unit have the following format:
Table 5.1—UDP Command Format
Field Name
Format
Length (bytes)
Comments
length
unsigned short
2
Total length of this message, including CRC
sequence
unsigned char
1
Sequence number. Used to identify missing
messages.
command
unsigned char
1
Command number
payload
unsigned char(s)
length - 6
Command operands (if any)
crc
unsigned short
2
See Appendix A – UDP Command CRC
Calculation, for details
This format can be rendered into C as:
struct udp_RecvFrame_S
{
unsigned short length; // Total length of this message
unsigned char sequence; // sequence number of this message
unsigned char command; // command number
unsigned char parameters[0]; // command operands
} __attribute__ ((__packed__));
These commands are currently implemented:
Table 5.2—Current Command Implementation
Number
Name
Comments
1
Start streaming
Start streaming for either a fixed or unlimited number of
packets
2
Stop streaming
Stops streaming
3
Set packet transmission
rate
Sets packet transmission rate. All transducers use the
same rate.
4
Ping
Sends a no-payload Pong response back to the sender.