
Page 23 of 42
}
6.7. Obtaining the log file after a tracker board is recovered
To obtain the log file connect a USB cable from the
Horizon
board to a PC.
Check that the LED turns solid red.
Then execute the following
commands:
$ sudo tracker_config --read_log log.bin
$ log_parse --file log.bin > log.json
The log file is first downloaded in raw binary format and then converted to JSON records by the
log_parse
tool
.
An example log file output is
shown below:
{"GPSPosition": {"accuracyHorizontal": 12.767, "longitude": -2.1183083, "height": -0.003, "iTOW":
401079000, "latitude": 51.376391899999994, "accuracyVertical": 1.558}}
{"DateTime": {"seconds": 3, "month": 1, "hours": 1, "year": 2018, "minutes": 37, "day": 1}}
{"Pressure": {"pressure": -9.317}}
{"DateTime": {"seconds": 3, "month": 1, "hours": 1, "year": 2018, "minutes": 37, "day": 1}}
{"GPSPosition": {"accuracyHorizontal": 12.77, "longitude": -2.1183246, "height": -0.001, "iTOW":
401080000, "latitude": 51.3764012, "accuracyVertical": 1.558}}
{"DateTime": {"seconds": 4, "month": 1, "hours": 1, "year": 2018, "minutes": 37, "day": 1}}
{"GPSPosition": {"accuracyHorizontal": 12.957, "longitude": -2.118356, "height": 0.003, "iTOW":
401081000, "latitude": 51.3764021, "accuracyVertical": 1.558}}
{"DateTime": {"seconds": 5, "month": 1, "hours": 1, "year": 2018, "minutes": 37, "day": 1}}
{"GPSPosition": {"accuracyHorizontal": 13.201, "longitude": -2.1183889, "height": 0.009, "iTOW":
401082000, "latitude": 51.3764057, "accuracyVertical": 1.558}}
7. Appendices
7.1. Advanced combining of commands
To save time, it is possible to combine multiple commands together.
For example:
$ sudo tracker_config --erase_log --create_log LINEAR --setdatetime "`date`" --write
configuration_v4.json --read verif.json --read_log log.bin
The above command will execute the steps in the following order:
Read the current log file
Erase the log file
Create a new log file
Write the new configuration file
Set the date and time
Read back the configuration file to
verif.json
7.2. Bluetooth connectivity
7.2.1. Tracker configuration settings
It is first necessary to perform provisioning via USB in order to enable bluetooth connectivity. Refer to the JSON configuration section for the
overall bluetooth configuration parameters. However, the following settings are typically needed:
bluetooth.triggerControl
=
will use
activation of the BLE backend
[ "SCHEDULED" ]
SCHEDULED
bluetooth.scheduledInterval = 0
will activate bluetooth advertising continuously
bluetooth.scheduledDuration = 0
will activate bluetooth advertising continuously
Note that more a energy conscious setting for
and
may be applied but there are performance
scheduledInterval
scheduledDuration
Arribada Horizon ARTIC R2 Developer’s Kit | User Manual