Skip to content

BEINGROBOTIC / AI BOARD

Talk to your board.
Describe the action.

Every board has its own AI assistant. Describe what you want to achieve.

AI Board introduces a different way to define hardware behavior: a conversation with a bot dedicated to each board.

ILLUSTRATIVE EXAMPLE / C / STM32

“When I press the brake, deploy the airbrake.”
Compiled C code for the airbrake example: select to see the request, firmware and Wi-Fi transfer.
From the request to Can-Controller code.

01 / THE CONCEPT

Words become instructions.

In the AI Board model, the assistant remotely changes code to adapt the board’s behavior. Supported sensors, actuators and peripherals connect software to the physical environment.

01

A bot for every board

Communicate in natural language with the assistant dedicated to the device.

02

Behavior adapts

Code changes and board updates translate the request into new operating logic.

03

A tangible response

The board acquires signals and acts through peripherals that are actually supported.

02 / AUTOMOTIVE & MOTORSPORT

From the brake signal to the airbrake command.

A rule written in natural language, its C implementation and firmware using the existing Wi-Fi update path. Two automotive scenarios follow the complete path from idea to action.

AUTOMOTIVE / MOTORSPORT

Brake pressed → airbrake

C / STM32 / CAN

01 / YOUR REQUEST

“When I press the brake, deploy the airbrake. When I release the pedal, retract it.”

The assistant turns the rule into a proposal. Review inputs, outputs and conditions before approving generation.

Event
Brake pressed
Requested action
Deploy request
On release
Airbrake retracted

02 / THE CORRESPONDING CODE

Example C code: signal reception, command calculation and CAN transmission.
Excerpt from the compiled file. Open the image to enlarge.
Read the complete C file
/* AI Board bench example: brake input -> airbrake CAN request.
 * Example CAN mapping only; not a vehicle protocol or actuator driver.
 * RX byte 0: bit 0 = brake pressed, bit 1 = bench enable.
 * TX byte 0: 0 = retract request, 1 = deploy request.
 */
#include "Forwarding.h"

extern CAN_HandleTypeDef hcan2;

#define EVENT_ID        0x180U
#define COMMAND_ID      0x280U
#define INPUT_STALE_MS  300U
#define RETRY_MS        20U
#define REFRESH_MS      100U

static uint8_t brake_pressed, bench_enabled, input_seen;
static uint8_t previous_request, command_sent;
static uint32_t last_input_ms, last_attempt_ms, last_success_ms;

void CAN_forwarding(struct Log logg)
{
    if ((logg.RIR & 0x06U) != 0U ||
        ((logg.RIR >> 21) & 0x7FFU) != EVENT_ID ||
        (logg.RDTR & 0x0FU) < 1U) {
        return;
    }
    brake_pressed = (uint8_t)(logg.RDLR & 0x01U);
    bench_enabled = (uint8_t)((logg.RDLR >> 1) & 0x01U);
    last_input_ms = HAL_GetTick();
    input_seen = 1U;
}

void CAN_Process(void)
{
    const uint32_t now = HAL_GetTick();
    const uint8_t fresh = input_seen &&
        (uint32_t)(now - last_input_ms) < INPUT_STALE_MS;
    const uint8_t deploy = fresh && bench_enabled && brake_pressed;

    if ((uint32_t)(now - last_attempt_ms) < RETRY_MS ||
        (command_sent && deploy == previous_request &&
         (uint32_t)(now - last_success_ms) < REFRESH_MS)) {
        return;
    }
    last_attempt_ms = now;
    CAN_TxHeaderTypeDef header = {0};
    header.StdId = COMMAND_ID;
    header.IDE = CAN_ID_STD;
    header.RTR = CAN_RTR_DATA;
    header.DLC = 1U;
    uint8_t payload[8] = {deploy};
    uint32_t mailbox;
    if (HAL_CAN_AddTxMessage(&hcan2, &header, payload, &mailbox) == HAL_OK) {
        previous_request = deploy;
        command_sent = 1U;
        last_success_ms = now;
    }
}
Download the complete C implementation ↓

03 / FROM CODE TO FIRMWARE

The rule becomes firmware.

Approve the proposal and generate the board firmware. The result is an encrypted file ready for the Wi-Fi update path.

application.encSTM32 / Can-ControllerExample firmware

04 / SEND TO BOARD

Firmware travels over Wi-Fi.

Press “Send to board” in the chat. Firmware travels over Wi-Fi to the connected board, which runs the new logic.

application.encWi-Fi → Can-Controller
Can-Controller
Firmware → Wi-Fi → Can-Controller

05 / THE COMMAND IN THE ENVIRONMENT

The brake controls the airbrake.

The pedal signal reaches the board. The new logic sends a deploy command to the actuator controller; releasing the brake sends a retract command.

Board, CAN command and actuator controllerCan-ControllerApplication code0x280CAN2 · 0 / 1ControllerActuator
Example technical details

The scenario and CAN mappings are invented for this example; the code uses one-byte standard CAN signals. On input, bit 0 of the first byte represents the event and bit 1 bench enable. On output, the first byte is 1 to request the action and 0 to deactivate it. The command is sent on CAN2 and refreshed every 100 ms; a failed attempt can be retried after 20 ms.

0x180 → 0x280 · The C code was actually compiled on the Can-Controller base; example firmware uses test licences. The sequence shown is not a vehicle test.

Build report ↗

AUTOMOTIVE / MOTORSPORT

Door open → actuator

C / STM32 / CAN

01 / YOUR REQUEST

“When I open the door, activate the actuator. When I close it, deactivate it.”

The assistant turns the rule into a proposal. Review inputs, outputs and conditions before approving generation.

Event
Door open
Requested action
Activate request
On release
Actuator deactivated

02 / THE CORRESPONDING CODE

Example C code: signal reception, command calculation and CAN transmission.
Excerpt from the compiled file. Open the image to enlarge.
Read the complete C file
/* AI Board bench example: door input -> actuator CAN request.
 * Example CAN mapping only; not a vehicle protocol or actuator driver.
 * RX byte 0: bit 0 = door open, bit 1 = bench enable.
 * TX byte 0: 0 = deactivate request, 1 = activate request.
 */
#include "Forwarding.h"

extern CAN_HandleTypeDef hcan2;

#define EVENT_ID        0x181U
#define COMMAND_ID      0x281U
#define INPUT_STALE_MS  300U
#define RETRY_MS        20U
#define REFRESH_MS      100U

static uint8_t door_open, bench_enabled, input_seen;
static uint8_t previous_request, command_sent;
static uint32_t last_input_ms, last_attempt_ms, last_success_ms;

void CAN_forwarding(struct Log logg)
{
    if ((logg.RIR & 0x06U) != 0U ||
        ((logg.RIR >> 21) & 0x7FFU) != EVENT_ID ||
        (logg.RDTR & 0x0FU) < 1U) {
        return;
    }
    door_open = (uint8_t)(logg.RDLR & 0x01U);
    bench_enabled = (uint8_t)((logg.RDLR >> 1) & 0x01U);
    last_input_ms = HAL_GetTick();
    input_seen = 1U;
}

void CAN_Process(void)
{
    const uint32_t now = HAL_GetTick();
    const uint8_t fresh = input_seen &&
        (uint32_t)(now - last_input_ms) < INPUT_STALE_MS;
    const uint8_t activate = fresh && bench_enabled && door_open;

    if ((uint32_t)(now - last_attempt_ms) < RETRY_MS ||
        (command_sent && activate == previous_request &&
         (uint32_t)(now - last_success_ms) < REFRESH_MS)) {
        return;
    }
    last_attempt_ms = now;
    CAN_TxHeaderTypeDef header = {0};
    header.StdId = COMMAND_ID;
    header.IDE = CAN_ID_STD;
    header.RTR = CAN_RTR_DATA;
    header.DLC = 1U;
    uint8_t payload[8] = {activate};
    uint32_t mailbox;
    if (HAL_CAN_AddTxMessage(&hcan2, &header, payload, &mailbox) == HAL_OK) {
        previous_request = activate;
        command_sent = 1U;
        last_success_ms = now;
    }
}
Download the complete C implementation ↓

03 / FROM CODE TO FIRMWARE

The rule becomes firmware.

Approve the proposal and generate the board firmware. The result is an encrypted file ready for the Wi-Fi update path.

application.encSTM32 / Can-ControllerExample firmware

04 / SEND TO BOARD

Firmware travels over Wi-Fi.

Press “Send to board” in the chat. Firmware travels over Wi-Fi to the connected board, which runs the new logic.

application.encWi-Fi → Can-Controller
Can-Controller
Firmware → Wi-Fi → Can-Controller

05 / THE COMMAND IN THE ENVIRONMENT

The door controls the actuator.

The board reads door status and activates the actuator controller while the door is open. Closing the door sends the deactivation command.

Board, CAN command and actuator controllerCan-ControllerApplication code0x281CAN2 · 0 / 1ControllerActuator
Example technical details

The scenario and CAN mappings are invented for this example; the code uses one-byte standard CAN signals. On input, bit 0 of the first byte represents the event and bit 1 bench enable. On output, the first byte is 1 to request the action and 0 to deactivate it. The command is sent on CAN2 and refreshed every 100 ms; a failed attempt can be retried after 20 ms.

0x181 → 0x281 · The C code was actually compiled on the Can-Controller base; example firmware uses test licences. The sequence shown is not a vehicle test.

Build report ↗

THE MOTORSPORT CONTEXT

Active aerodynamics. A documented project.

BeingRobotic developed electronic actuator control for the Polimi Motorcycle Factory prototype. The case describes strategies based on vehicle state and braking.

The Polimi project is a concrete reference for the motorsport application, independent of the AI Board scenario illustrated above.

Read the active aerodynamics case ↗
Polimi Motorcycle Factory prototype with active aerodynamics
Original image of the documented project.

03 / PRODUCT INFORMATION

Let’s discuss your application.

Enabled projects in the customer area have a chat in Edit: request, attachments, proposal, approval and compilation. Wi-Fi transfer uses the original service when enabled by the version. The verified pilot covers the Can-Controller application profile; we confirm the board, signals, peripherals and availability for your integration together.

Describe your project ↗Open the customer area →