SeaTrac Serial Command Interface Reference
Page 20
structure in your application – you will require this to
read settings into.
command to the beacon, and parse the response into a
field of type
– this will include the current sensor calibration values in
use.
Modify the settings structure as required then write values back into the Beacons RAM
using the
command. Most settings will be applied immediately,
but some (such as communication settings) will only be applied following a power-up
or software reboot command.
It may be required to store these new settings back into EEPROM, in which case now
issue the
command. Note that if automatic calculation of VOS
and pressure offset are enabled, the previously specified values will be overwritten
with the computed values.
If a reboot if required to apply communication settings, issue a
command now.
4.5.
Requesting Status Output
Using a process similar to that described in section 4.3 above, you can make you application
manually request the current beacon status via a Status Output Message using the following
sequence of commands…
In the terminal application, typing “#10000DC0” will prompt for a
message using the output flags configured in the settings.
Assuming the default flags of “Environment”, “AHRS” and “Magnetic Calibration” are
specified, something similar to the following message will be received…
$10078D48100000000000B930C2000800000000000000480DE3FD0DFD320303FF2B0400005E
F273
The above decodes as…
Received Len = 39 bytes (in 79 chars)
Received Data =
"$10078D48100000000000B930C2000800000000000000480DE3FD0DFD320303FF2B0400005
EF273"
CmdId = STATUS_STATE (0x10)
OutputFlags = 0x07 (7)
Timestamp = 0x000000000010488D (1067149)
EnvironmentSupply = 0x30B9 (12473)
EnvironmentTemperature = 194
EnvironmentPressure = 8
EnvironmentDepth = 0
EnvironmentVos = 0x0D48 (3400)
AttitudeYaw = -541
AttitudePitch = -755
AttitudeRoll = 818
MagCalBuf = 0x03 (3)