Wavecard-Waveport User Manual
Coronis Systems
5.4.4 Command format from the transmitter side
•
Broadcast requests – 0x28 or 0x2A
(REQ_SEND_BROADCAST or REQ_SEND_BROADCAST_MESSAGE)
REQ_SEND_BROADCAST or REQ_SEND_BROADCAST_MESSAGE
HEADER
CMD
DATA
CRC
ETX
3 bytes
1 byte
6 bytes
variable
2 bytes
1 byte
0xFF ; 0x02 ;
0xXX
0x28
Group number to query
in broadcast mode
n bytes of data to transmit
Maximum size is 152 bytes
0x03
•
Group number to query
: Only the most significant byte (MSByte) corresponds to the group
number. The 5 other bytes are not significant.
If the group number is 0xFF 0xXX 0xXX 0xXX 0xXX 0xXX, all modules that
receive the broadcast frame are authorized to transmit a response.
•
Acknowledgement of the request – 0x21 (RES_SEND_FRAME)
RES_SEND_FRAME
HEADER
CMD
DATA
CRC
ETX
3 bytes
1 byte
1 byte
2 bytes
1 byte
0xFF ; 0x02 ;
0x05
0x21
Status
0x00: Transmission OK
0x01: Transmission error
0x03
•
Response to broadcast request – 0x34 (RECEIVED_BROADCAST_RESPONSE)
RECEIVED_BROADCAST_RESPONSE
HEADER
CMD
DATA
CRC
ETX
3 bytes
1 byte
1 byte
1 byte
1 byte
6 bytes
variable
2 bytes
1 byte
0xFF ; 0x02 ;
0xXX
0x34
Status
Total number
of frames
received
Frame
Index
Radio address of
the response
transmitter
Received data
152 bytes
max.
0x03
Status :
= 0: reception OK
= 1: indicates that the number of received responses is higher than 255.
In this case, only the first 255 responses are forwarded to the host.
Frame index:
This index is used by the Wavecard to know how many responses are to be
forwarded to the host. This index is decremented on low-level
acknowledgement when the Wavecard send a response to its host. The host
knows that all responses have been sent when the frame index is 1. By
ensuring that this value is properly decremented with each received frame,
this index is also used to confirm that no frames were lost.
CS-SUP-MUTI-WPORTAPP-E04
61