RS232 Output - VBOX Touch (v2/v3)
The RS232 output is present on the top CAN/Serial port of VBOX Touch and can be used to provide a connection to a computer for testing online with VBOX Test Suite or for outputting laptiming data.
VBOX Data Format
This is output when VBOX Stream is selected within the Serial Port Settings menu.
Protocol:
115200 Baud, no parity, 8 data bits, 1 stop bit
Message format:
$VBTse$StttaaaaaaoooooovvvhhAAAVVVxxyysddTTcc
Parameter | Number of bytes | Description |
---|---|---|
$VBTse$ |
7 |
Header |
S |
1 |
Total satellites |
ttt |
3 |
Time |
aaaaaa |
6 |
Latitude |
oooooo |
6 |
Longitude |
vvv |
3 |
Speed |
hh |
2 |
Heading |
AAA |
3 |
Altitude |
VVV |
3 |
Vertical velocity |
xx |
2 |
Lateral acceleration |
yy |
2 |
Longitudinal acceleration |
s |
1 |
Solution type
|
dd |
2 |
Date
|
TT |
2 |
Time since trigger event |
cc |
2 |
Checksum |
Lap Timing Data Format
This is output when Lap Timing is selected within the Serial Port Settings menu.
Protocol:
115200 Baud, no parity, 8 data bits, 1 stop bit
Message format:
$$LLTTnnnnttttllsssscc
Parameter | Number of bytes | Description |
---|---|---|
$$ |
2 |
Header |
LL |
2 |
Length |
TT |
2 |
Type |
nnnn |
4 |
Serial number |
tttt |
4 |
Lap time |
ll |
2 |
Lap number |
ssss |
4 |
Stint time |
cc |
2 |
Checksum |
CRC Calculation example:
s[n] is a string containing the message
Polynomial:= 4129
CRC:=0;
for Loop:=1 to Length(s) do
begin
Temp:=s[Loop];
CRC:= CRC xor (integer(Temp) *256);
CRC:= CRC mod 65536;
for i:=7 downto 0 do
begin
if ( (CRC and 32768)=32768) then
begin
CRC:= CRC *2 ;
CRC:= CRC xor Polynomial;
end
else
begin
CRC:= CRC *2 ;
end;
CRC:=CRC mod 65536;
end;
end;
result:=CRC;