Polling with crc – Vaisala WXT520 User Manual

Page 79

Advertising
background image

Chapter 7 __________________________________________________ Getting the Data Messages

VAISALA_______________________________________________________________________ 77

Example of the response (the parameters included can be chosen
from the full parameter set of the commands aR1, aR2, aR3 and
aR5):

0R0,Dx=005D,Sx=2.8M,Ta=23.0C,Ua=30.0P,Pa=1028.2H,
Rc=0.00M,Rd=10s,Th=23.6C<cr><lf>

For selecting the parameter set in the response message, see

Chapter 8,

Sensor and Data Message Settings, on page 107

.

Polling with CRC

Use the same data query commands as in the previous sections but type
the first letter of the command in lower case and add a correct three-
character CRC before the command terminator. The response contains
also a CRC. For more information about the CRC-computation see

Appendix C, CRC-16 Computation, on page 161

.

Requesting a wind data message with a CRC:

Command format: ar1xxx<cr><lf>

Example of the response (the parameter set is configurable):

0r1,Dn=236D,Dm=283D,Dx=031D,Sn=0.0M,Sm=1.0M,Sx=2.2MLFj
<cr><lf>

where the three characters before <cr><lf> are the CRC for the
response.

where
a

=

Device address

r1

=

Wind message query command

xxx

=

Three-character CRC for ar1 command

<cr><lf>

=

Command terminator

NOTE

The correct CRC for each command can be requested by typing the
command with an arbitrary three-character CRC.

Advertising