Support for user-defined NMEA data

Since version 2.75 (iOS, Android to follow), the logbook app supports the processing of the following partially non-standardized NMEA data: Since these data sets are largely non-standardized and can look different depending on the device, you have to set and configure them yourself. To do this, you need to enter the following three pieces of information. Let's assume you have a fuel tank with a volume of 65 liters. And the NMEA data record looks like this:
$MXPGN,01F211,5810,02841C8A020000FF*1E
In this case, the data (hexadecimal coded) on the current fill level 841C.

Regular expression to extract the data

To extract these from the entire data set, a regular expression must be stored in the NMEA settings for the fill level of the diesel tank, which looks like this, for example:
^\$MXPGN,01F211,5810,02(?<extract>[0-9ABCDEF]{4}?)[0-9ABCDEF]{10}\*..$
If you are familiar with regular expressions you don't need to read any further, for everyone else I will try to give you a very simplified explanation so that you can create rules like this yourself.

Specifying the data type

Since this data set is hexadicimal and the byte order is reversed, Hex Little Endian must be selected to convert 841C from Little Endian to Big Endian: 1C84 and then to convert this to the decimal number 7300.

Multiplier (optional)

According to the manufacturer's documentation, the value 7300 must now be multiplied by 0.004 to obtain the current fill level as a percentage. However, since we want to save the fill level in liters, this must also be converted. The manual calculation would look like this as our tank is 65 liters: This whole calculation can be summarized as 0.004 * 65 / 100 * 1000 = 2.6
So the multiplier in this case must be 2.6!

Questions?

Get in touch with me!