User's Manual

Table Of Contents
Document : WCAMODHEL.sxw
5.3- ’Polling’ Mode
This mode allows to address a request to a list of predefined distant equipment. The response is sent to the
host, transmitter of the request, when all the distant equipments responded; or on timeout. Two types of
exchanges in polling mode can be distinguished,
Not-selective Polling : all the distant equipments, configured in POLLING_ROUTE table, are
interrogated.
Selective Polling : only a given group of distant equipments, configured in POLLING_ROUTE
table, are interrogated.
5.3.1 - Configuration of the parameters relating to the 'Polling' mode
The parameters are accessible by commands REQ_READ_RADIO_PARAM, and REQ_WRITE_RADIO_PARAM
(all the parameters are developed in appendix 3).
NUM DESCRIPTION VALUE
SIZE
(in bytes)
0x03
WAVECARD_POLLING_GROUP : Byte
containing the Polling Group of the
Wavecard.
Byte 1 : Polling_Group
by default, Polling_Group = 0x00
1
0x08
POLLING_ROUTE : Table containing the
list of modules radio address to be
addressed.
Byte 2 : number of equipments to
interrogate
IF Byte 2 != 0
Bytes 3 to 8 : radio address of the
first module..., and so on.
1 à 241
0x09
GROUP_NUMBER : Byte containing the
number of the group of radio equipment
to address in radio polling mode.
Group number
by default, GROUP_NUMBER = 0x00
1
0x0A
POLLING_TIME : delay between two
consecutive emission in polling mode
Value in multiples of 100ms
By default, POLLING_TIME = 0x0A
1
Example of parameter setting: Writing of the list of the distant equipments, addressed by the
polling mode.
In our example, we have two distant pieces of equipment, whose addresses (on 6 bytes) are
0xAAAAAAAAAAAA; and 0xBBBBBBBBBBBB.
We launch a REQ_WRITE_RADIO_PARAM request, by positioning byte CMD with 0x40. Then, in the
DATA field, we specify the number of the parameter to be modified, and its corresponding data,
according to the following format.
D ATA field
1 byte variable
Number of the parameter to
modify
Parameter data
Thus,
REQ_WRITE_RADIO_PARAM
Header CMD D ATA CRC ETX
3 bytes 1 byte 1 byte variable 2 bytes 1 byte
0xFF ; 0x02 ; 0x11 0x40 0x08
0x02
0xAAAAAAAAAAAA;
0xBBBBBBBBBBBB
0xXXXX 0x03
WCAMODHEL Handbook page 53 of 74