Wavecard-Waveport User Manual
Coronis Systems
5.3 Polling mode
Polling mode allows you to send a request to a predefined list of remote modules. Responses are sent to the
host that originated the request when all remote modules have responded or after a time-out. The are two
types of exchanges in polling mode:
Non-selective polling
All remote modules designated in the POLLING_ROUTE table are queried.
Selective polling
Only a selected group of remote modules listed in the POLLING_ROUTE
are queried.
5.3.1 Configuring polling mode parameters
Polling mode parameters are accessible via REQ_READ_RADIO_PARAM, and
REQ_WRITE_RADIO_PARAM commands (a complete list is provided in Appendix III).
NUM
DESCRIPTION
VALUE
SIZE
(in
bytes)
0x03
WAVECARD_POLLING_GROUP: Byte
containing the Wavecard's polling group.
Byte 1: Polling_Group
By default, Polling_Group = 0x00
1
0x08
POLLING_ROUTE: Table containing the
radio addresses of remote modules to query.
Byte 2 : number of modules to query
IF Byte 2 != 0
Bytes 3 to 8 : radio address of the first
module, second module, etc.
1 to
241
0x09
GROUP_NUMBER: Byte containing the
group number of the remote modules to query
in polling mode.
Group number
By default, GROUP_NUMBER = 0x00
1
0x0A
POLLING_TIME: time delay between two
consecutive transmissions in polling mode
Value in multiples of 100 ms
By default, POLLING_TIME = 0x0A
1
Example
This example shows how to write list of the remote modules to query in polling mode. Suppose we have two
remote modules, whose 6-byte addresses are 0xAAAAAAAAAAAA and 0xBBBBBBBBBBBB. Launch a
REQ_WRITE_RADIO_PARAM
request, setting the CMD byte to 0x40. Then, in the DATA field, specify the
number of the parameter to be modified and corresponding data using the following format.
DATA field
1 byte
variable
Number of the parameter to modify
Parameter data
Thus:
REQ_WRITE_RADIO_PARAM
Header
CMD
DATA
CRC
ETX
3 bytes
1 byte
1 byte
variable
2 bytes
1 byte
0xFF ; 0x02 ;
0x11
0x40
0x08
0x02
0xAAAAAAAAAAAA;
0xBBBBBBBBBBBB
0xXXXX
0x03
CS-SUP-MUTI-WPORTAPP-E04
50