Main Application Software - ST AEKD-AICAR1 User Manual

Evaluation kit for car state classification
Table of Contents

Advertisement

If you want to read from the log file, use the following instructions:
void get_offset_LOG(void)
void collect_data_LOG(void)
float* get_diff_acceleration_buffer_IMU(void);
4.3.2.2
AI sensing node network middleware
This middleware is responsible for:
initializing the LSTM neural network: void init_ai_sensing_node_CNN(void)
returning the LSTM neural network to initial data: void deinit_ai_sensor_node_CNN(void)
running the LSTM neural network: void run_ai_sensor_node_network(void)
4.3.2.3
LCD display middleware
The LCD display middleware is responsible for the icons and messages to display according to the results of
LSTM neural network. It is responsible also for:
initializing the LCD display: void infotainment_system_init(void);
printing a message (with a specific color) and drawing an icon: void display_print(uint8_t msg,
uint16_t color);
4.3.3

Main application software

The
AEKD-AICAR1
Acquisition
Real-time calculation (default)
Offline calculation
4.3.3.1
Acquisition
This working mode is used to perform an LSTM neural network training.
If #define ACQUISITION is applied on the head of main application:
the calculation of the LSTM is deactivated
the serial protocol is initialized to send three axis acceleration samples with a baud rate of 38400 bps
4.3.3.2
Real-time calculation
This working mode is used when the ECU is installed on a car and the LSTM neural network is already
pretrained. To activate this working mode, comment the #define ACQUISITION.
At power-up, press the SW_1 button on the AEK-MCU-C4MLIT1. If the button is well pressed, then the LED_2
switches off.
4.3.3.3
Offline calculation
This is the default operating mode at power-on.
The LSTM neural network is computed on the log file.
To activate this working mode, comment the #define ACQUISITION.
At power-up, press the SW_1 button on the
UM3053 - Rev 1
application has three operating working modes:
AEK-MCU-C4MLIT1
Software architecture overview
until the LED_2 switches on.
UM3053
page 26/39

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AEKD-AICAR1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents