Appendix VIII Sonic Control Commands
14
APPENDIX VIII: R2Sonic Control Commands
14.1
Introduction
This describes the commands sent from the user interface to the sonar head and SIM.
Head firmware version 14-Mar-2011 and SIM firmware version 08-Apr-2010 utilize the commands in
this document. Future versions of firmware will adhere to this format and may include additional
commands.
Older versions of head and SIM firmware are
not
compatible with this format.
14.2
General Notes
1.
These formats are designed for easy 4-byte alignment. Be sure your compiler/linker doesn't
insert any extra padding between values. If necessary, use your compiler's "packed" directive.
2.
All values have big-endian byte order. Your compiler may provide conversion functions such as
htonl, htons, ntohl, ntohs, however those assume integers so you'll need to be very careful with
floats.
3.
u32 means unsigned integer, 32 bits.
f32 means IEEE-754 32-bit floating point.
4.
All packets are UDP/IP datagrams.
5.
It’s recommended that all commands be sent periodically, at a 1 to 0.5 Hz rate. This ensures that
the sonar head and SIM always have the proper settings should a power interruption occur.
14.2.1
Ethernet Port Numbers
Head & SIM status & command port = Ba2
GUI command port = 53810 (fixed port number)
GUI remote command input port = gui ba 7
14.2.2
Type Definitions
typedef unsigned int u32;
typedef float f32
;
14.2.3
Command Packet Format
Pseudo C format for commands:
// *** BEGIN PACKET: COMMAND FORMAT 0 ***
u32 PacketName; // 'CMD0'
// Command (for network efficiency, the packet can contain multiple commands,
// but ensure the IP datagram reaches the sonar unfragmented).
u32 CommandName; // example 'RNG0' to set range
x32 CommandValue; // a 4-byte value such as u32 or f32
// *** END PACKET: COMMAND FORMAT 0 ***
Page
167
of
210
Version
5.0
Rev
r002
Date
05-08-2014
Summary of Contents for 2022
Page 2: ...Page 2 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 4: ...Page 4 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 37: ...Figure 26 Projector cable configuration Page 37 of 210 Version 5 0 Rev r002 Date 05 08 2014 ...
Page 68: ...Page 68 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 86: ...Page 86 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 90: ...Page 90 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 92: ...Page 92 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 100: ...Page 100 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 104: ...Page 104 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 126: ...Figure 127 Smooth log information copied from real time survey log ...
Page 150: ...Page 150 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 164: ...Page 164 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 196: ...Page 196 of 210 Version 5 0 Rev r002 Date 05 08 2014 Part No 96000001 ...
Page 199: ...Figure 169 Sonic 2024 Receive Module Page 199 of 210 Version 5 0 Rev r002 Date 05 08 2014 ...
Page 207: ...Figure 177 SIM Stack Outline Page 207 of 210 Version 5 0 Rev r002 Date 05 08 2014 ...
Page 209: ...Figure 179 I2NS IMU Dimensions Page 209 of 210 Version 5 0 Rev r002 Date 05 08 2014 ...