VBOX Touch (v1) - RS232 Output
The RS232 output is present on the top CAN/Serial port on the VBOX Touch unit. It can be used to provide a connection to a computer to facilitate testing online with VBOX Test Suite and the outputting of lap timing data.
VBOX Data Format
This is output when you select VBOX Stream in 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 you select Lap Timing in 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;