07 - VBOX Speed Sensor RS232/NMEA Output

Updated on Mar 4, 2026

The RS232 output is there to provide a connection to a computer so that you can configure the settings of the VBOX Speed Sensor in the VBOX Setup Software. The R232 output can also output NMEA format messages and the Racelogic Braketest format.

Protocol:

115200 Baud, no parity, 8 data bits, 1 stop bit
 

Message format:

$VB2100stttaaaaaaaaoooooooovvhhAAggGGcc
 

ParameterNumber of bytesDescription
$VB21007Header
S1SatsNumber of satellites used
ttt3(MSB first)TimeTicks since midnight UTC, incrementing every 100 ms
aaaaaaaa8 (MSB first)LatitudeDouble precision float 64 bit (radians)
oooooooo8 (MSB first)LongitudeDouble precision float 64 bit (radians)
vv2 (MSB first)Velocity0.01 knots per bit
hh2 (MSB first)Heading0.01° per bit
AA2 (MSB first)Vertical Velocity0.01 m/s per bit
gg2 (MSB first)Lateral Acceleration0.01 g per bit
GG2 (MSB first)Longitudinal Acceleration0.01 g per bit
cc2 (MSB first)SeeCRC Calculation examplebelow

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;

Protocol:

115200 Baud, no parity, 8 data bits, 1 stop bit
 

Message format:

$VBBTSTstttvvvvhhVVVVddddddddeeeescc
 

The header $VBBTST is in ASCII, the rest of the message is in hexadecimal.
 

ParameterNumber of bytesDescription
$VBBTST7Header
S1SatsNumber of satellites used
ttt3 (MSB first)TimeNumber of 10 ms ticks since midnight UTC, 24 bit unsigned integer
vvvv4 (MSB first)Velocity(m/s), 32 bit IEEE float
hh2 (MSB first)HeadingHeading in degrees (0.01°), 16 bit unsigned integer
VVVV4 (MSB first)Event VelocitySpeed at last event (m/s), 32 bit IEEE float
dddddddd8 (MSB first)Brake DistanceDistance since brake event (m), 64 bit IEEE double precision floating point number
eeee4 (MSB first)Event TimeTime of event from midnight (seconds)
s1 (MSB first)Status Flag0x01 for brake trigger, 0x02 for brake trigger active
cc2 (MSB first)SeeCRC Calculation examplebelow

Notes:

  • The 32-bit floats are in Little endian format (low byte first or Intel format)
  • The Brake distance number is in Big endian format (high byte first or motorola format)

CRC Calculation example:

s[n] is a string containing the message

Polynomial:= 4129 (0x1021)

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; 

IMPORTANT - This is not available on the 5 Hz unit.

The VBOX Speed Sensor can output 6 types of NMEA messages, the most commonly used are GPGGA and GPVTG, the contents of which are shown below.
 

$GPGGA_hhmmss.ss_Latitude_N_Longitude_E_FS_NoSV_HDOP_msl_m_Altref_m_DiffAge_DiffStation*cs<CR><LF>
 

NameASCII StringUnitsDescription
FormatExample
$GPGGAstring$GPGGAMessage IDGGA protocol header
hhmmss.sshhmmss.ss092725.00161229.487UTC TimeCurrent time
Latitudedddmm.mmmm4717.113993723.2475LatitudeDegrees + minutes
NcharacterNN/S IndicatorN=north or S=south
Longitudedddmm.mmmm00833.9159012158.3416LongitudeDegrees + Minutes
EcharacterWEE/W indicatorE= east or W= west
FS1 digit1Position Fix IndicatorSee Table 41
NoSVnumeric078Satellites UsedRange 0 to 12
HDOPnumeric1.001HDOPHorizontal Dillution of Precision
Ms1numeric499.69.0mMSL Altitude
McharacterMUnitsm
Altrefblank48.0mGeoid Separation
MblankMUnitsm
DiffAgenumericsecondAge of Differential CorrectionsBlank (Null) fields when DGPS is not used
DiffStationnumeric0Diff. Reference Station ID
Cshexadecimal*5B*18Checksum
End of message

$GPVTG_cogt_T_cogm_M_sog_N_kph_K*cs<CR><LF>
 

NameASCII StringUnitsDescription
FormatExample
$GPVTGstring$GPTVTGMessage IDVTG protocol header
cogtnumeric77.52DegreesCourse over ground (true)
TcharacterTfixed fieldTrue
cogmBlankCourse over ground (magnetic)Not output (empty)
McharacterMfixed fieldMagnetic
sognumeric0.004KnotsSpeed over ground
NcharacterN
kphnumeric0.008km/hSpeed
KcharacterKKKilometers per hour - fixed field
cshexadecimal* 0BChecksum
End of message