log - AboudyKreidieh/truck-code GitHub Wiki
The log
process is responsible for storing all messages that are received and published during the rd_j1939 process and storing them in memory for later analysis. The messages are stored as SQL tables by default in the file: /dev/qdb/DD-MM-YYYY-hh-mm-ss. Here, the last portion of the file denotes the current date and time that the logging process was initialized. This process relies heavily on QNX's QDB database system. For more information on this, you are encourage to refer to this page.
To initialize the logging procedure, simply type:
./log
TODO: add figures of it working.
If you would like to write the data to a different path, you can specify your desired path by using the --logdir
argument:
./log --logdir OUTFILE
NOTE: This process will by default overwrite the data in any database that may have already created under the same file path. If you would like to avoid this, simply add the --append
tag to your command, as follows:
./log --logdir OUTFILE --append
Once you are done logging information and would like to convert the data to a format that is more transferable to other devices, you can do so by using the sql2txt process.