Data Logging

The Data logging utility helps you collect sensor datasets from the sensor boards with the firmware that outputs sensor data through a COM port. This section describes how to set up and collect the sensor dataset.

This utility can help program the corresponding firmware binary with a data logging function to some NXP demo boards. For other boards, implement and program the firmware beforehand using the following specific data format.

Data Format Specification:

  • All characters are encoded in ASCII.

  • Data samples are separated by any one delimiter of space, comma, tab, and semicolon.

  • Every line of the dataset ends with ‘\r\n’ and contains N(N>=1)*channels of samples.

To capture data from the target board connected to the PC, navigate to the Data Logging utility page.

alt text

As shown above, the data logging process consists of three high-level steps. You can skip the first and second steps.

  • The first step supports to program the firmware binary provided by the utility to the target board. The supported boards are listed in the Your Target drop-down list. If the board is unsupported or has been programmed, the step can be skipped.

  • The second step supports to get and set the sensor parameters from/to the board that has the functions after connecting to the COM port. This step is only relevant for boards with firmware programmed in the first step. It can be skipped without the functions or requirements.

  • The third step supports to collect and save the sensor data from the target board after connecting the COM port. It is necessary for any board for data logging.

Program Firmware (optional)

It is supported in the first step.

alt text

  1. Click the Refresh button.

  2. Select the Probe.

  3. Select the connected target board in the support list of the Your Target.

  4. Click the Program button to program the corresponding firmware binary.

Connect COM Port:

It is required in the second or the third step.

alt text

  1. Click the Refresh button.

  2. Select your target board COM port. For example, COM14.

  3. Select the baud rate as supported in the list. The default is 115200.

  4. Click the Connect button and complete the board connection. After successfully connecting to the COM port in the second step, the system automatically retrieves the supported sensors, the current activated sensor and its parameters for the target board. To configure the parameters for one sensor, select the sensor by clicking on the tab with the sensor name, such as “Temperature+Accel” for multi sensors of Temperature and Accelerometer, then select a parameter from the value list and click the Config Data Logger button.

alt text Remark: To enable continuous data collection, select Continuous in the Window size parameter.

Dataset Settings

It is supported in the third step.

alt text

Specify the number of classes and number of channels of the dataset depending on your application. Confirm settings by clicking the button on the right.

Collect Dataset:

alt text

  1. Select a target class for the dataset to be collected.

  2. Customize a filename for the file to be saved.

  3. Check the max number of lines checkbox and specify the desired sample line count. Alternatively, use the default value of 100 lines.

  4. Click the START button, the real stream data appears and auto saves in the file with maximum lines. However, for boards not in the Your Targetsupport list, ensure that the board is already sending sensor data.

  5. Repeat the above four steps to collect all datasets by selecting different target classes.

To open the folder with the saved dataset file, click the Open Saved Dataset button.