
Appendix B: Protocol for Discovering WSA
Appendix B: Protocol for Discovering WSA
ThinkRF uses a simple broadcast UDP protocol for discovering any WSAs available on
the same local network as the host computer. This protocol can not be used to find any
WSAs on a different network.
The remote host computer would first send out a UDP message of broadcast type to port
18331. The message contains a query request code followed by query discovery version
in big-endian order as follows:
<request code><discovery version>
where each field is:
Name
Data Type
Length
Required Value
request code
32-bit unsigned integer
1
0x93315555
discovery version 32-bit unsigned integer
1
2
The discovery version is used to determine how to parse the response message. Note
that the <> bracket is for clarity of the explanation purpose only, not to be included in the
message.
A WSA with the discovery version 2 would respond with the following data:
<response code><discovery version><WSA model><WSA S/N><firmware version>
where each field is:
Name
Data Type
Length
Response Value
response code
32-bit unsigned integer
1
0x93316666
discovery version 32-bit unsigned integer
1
2
WSA model
ASCII character, nul-padded
16
WSAXXXX-XXX (ex: WSA5000-220)
WSA S/N
ASCII character, nul-padded
16
XXXXXX-XXX (ex: 120600-020)
firmware version ASCII character, nul-padded
20
vX.X.X (ex: v1.0.0)
The IP address of a WSA can be retrieved from the responding socket. The WSA may be
identified by matching the serial number (S/N) in the response message with the S/N on
the label of the WSA.
84
ThinkRF WSA5000 Wireless Signal Analyzer Programmer's Guide