95 Use Cases
3) Start, Stop voting and read vote results
This table shows the usual procedure for starting, stopping a voting and then querying the results.
See chapter 6.3 for further information on the used commands resp. received messages.
The v 1 command starts a voting session. The bitwise
parameter n (in the example 0xC2 = 1100 0010)
determines that the voting takes place secretly and
that the voter can correct his vote; furthermore the
voting type is set to 2 of 3 (multiple choice).
<CR><LF>
><CR><LF>
<CR><LF>
><CR><LF>
VP000102<CR><LF>
The VP reply of the CU delivers (with the value 0x00 at
digits 3 and 4) the information that there are no MUs
not responding to the voting start signal.
The v 2 command stops the voting session. The CU
responds with a VP reply.
<CR><LF>
><CR><LF>
<CR><LF>
><CR><LF>
VP000402<CR><LF>
The VP reply of the CU delivers (with the value 0x00 at
digits 3 and 4) the information that there are no MUs
not responding to the voting end signal.
The v 5 0 command reads all voting results. The CU
responds with a VT reply, which has - as the previous
table shows - all relevant voting results listed as
hexadecimal numbers one after the other.
<CR><LF>
VT=010001000000<CR><LF>
><CR><LF>
<CR><LF>
>
The VT reply indicates that a person who voted
>>NO<< participated in the last voting session. The
voting session has no further participants.
The v 5 1 command with subsequent MU ID in
hexadecimal number representation returns the
voting results of the corresponding MU. These are
represented in the MU reply sent by the CU.
<CR><LF>
MU 000079B7 22<CR><LF>
><CR><LF>
<CR><LF>
>
The MU with the MU ID 0x79B7 voted >>NO<< in the
voting session.