cancel
Showing results for 
Search instead for 
Did you mean: 

Send wireless (BLE or WiFi) data from STWINBX1

Mahdouch
Associate

Hello STM32 Community,

I am working on an STM32 project using NanoEdge AI Studio, where I’ve trained models on sensor data and deployed them to my STWINBX1 for anomaly detection. The model is successfully integrated, and now I need to send real-time notifications wirelessly whenever an anomaly is detected.

Requirements:

  1. Bluetooth (Preferred): I would like to transmit "normal" or "abnormal" status using Bluetooth Low Energy (BLE) and receive real-time notifications on the Android ST BLE Sensor app. How can I achieve this? Are there any examples or libraries available for BLE communication on STWINBX1?

  2. Wi-Fi Alternative: If BLE is not the best approach, how can I send this anomaly detection data over Wi-Fi? Are there example implementations for sending real-time alerts via MQTT, HTTP, or another protocol?

Since STWINBX1 includes BlueNRG-M2 (BLE 5.0) and EMW3080 (Wi-Fi), I believe there should be an efficient way to integrate wireless communication with my anomaly detection system. Could someone guide me with the best approach and available example projects?

Thanks in advance for your help!

Best regards,

2 REPLIES 2

As already noted in your previous thread, the AI part is immaterial - this is really just a question of how to send any data over BLE (or WiFi).

So have you looked at the available examples for the BlueNRG-M2 and/or EMW3080 and/or the STWINBX1 ?

Did you see the pinned post, Please go and visit our wiki pages to support your projects on our wireless product families ?

Hello @Andrew Neil ,

Yeah, you're right—I just need to send messages like "normal" or "abnormal" wirelessly, and this has nothing to do with NanoEdge AI Studio. It’s purely in the main code: (for example)

if (anomaly_detection == 1) {
printf("anomaly");
} else {
printf("normal");
}

I want to be notified with this wirelessly, but I’m not sure how to implement it. Since my project is focused on edge computing, I’m checking the pinned post and the link you shared. Hopefully, I’ll find something relevant.

Thanks for your help!

Best regards,