cancel
Showing results for 
Search instead for 
Did you mean: 

Real-time Notification for Anomaly Detection on STWINBX1 via Bluetooth or Wi-Fi

Mahdouch
Associate

Hello STM32 Community,

I am working with an STM32 project using NanoEdge AI Studio, where I’ve trained models based on data from several sensors and deployed them to my STWINBX1 for anomaly detection. The models have been successfully integrated into the STM32 code, and I’m looking to send notifications or real-time data regarding whether the behavior is "normal" or "abnormal."

My question is: how can I communicate this data (such as "normal" or "abnormal") via Bluetooth? Specifically, I’d like to use the Android ST BLE Sensor app to monitor and receive notifications from the STM32 device. Is this feasible? If Bluetooth is not the best option, I am also open to alternatives like Wi-Fi. How would Wi-Fi work in this scenario, and what steps should I take to implement it?

Any help or guidance would be greatly appreciated!

Best regards,

@SimonePradolini 

1 ACCEPTED SOLUTION

Accepted Solutions
Julian E.
ST Employee

Hello @Mahdouch ,

 

As NanoEdge we don't have example code with any sort of wireless communication. But there is not really any link with NanoEdge. Now that you can get the prediction of the model, it transmission is unrelated, meaning that you just need to learn how to work with wireless communication.

 

It seems that the STWINBOX has On-board Bluetooth® Low Energy v5.0 wireless technology (BlueNRG-M2), Wi-Fi (EMW3080), and NFC (ST25DV64K).

 

I advice you to ask the wireless forum where you can find example of application that uses wireless. As you've probably seen, adding a NanoEdge library is pretty easy.

So I would start from a wireless example application and add the NanoEdge functionality. I would not do it the other way around.

 

STM32 MCU wireless forum board: https://community.st.com/t5/stm32-mcus-wireless/bd-p/mcu-wireless-forum

 

Have a good day,

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Julian E.
ST Employee

Hello @Mahdouch ,

 

As NanoEdge we don't have example code with any sort of wireless communication. But there is not really any link with NanoEdge. Now that you can get the prediction of the model, it transmission is unrelated, meaning that you just need to learn how to work with wireless communication.

 

It seems that the STWINBOX has On-board Bluetooth® Low Energy v5.0 wireless technology (BlueNRG-M2), Wi-Fi (EMW3080), and NFC (ST25DV64K).

 

I advice you to ask the wireless forum where you can find example of application that uses wireless. As you've probably seen, adding a NanoEdge library is pretty easy.

So I would start from a wireless example application and add the NanoEdge functionality. I would not do it the other way around.

 

STM32 MCU wireless forum board: https://community.st.com/t5/stm32-mcus-wireless/bd-p/mcu-wireless-forum

 

Have a good day,

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

@Mahdouch wrote:

how can I communicate this data (such as "normal" or "abnormal") via Bluetooth?  


Just like you'd communicate any data via Bluetooth !

As @Julian E. said, the fact that the data happened to come from NanoEdge AI is entirely immaterial to the Bluetooth - as far as the Bluetooth is concerned, it's all just data.

Hello @Julian E. ,

Thank you for your reply and guidance! I understand that NanoEdge AI is independent of the transmission process. I’ll look into existing wireless communication examples and start from there.

I’ll also post my question in the STM32 MCU Wireless section for further assistance.

Appreciate your help!

Best regards,
Mahdouch


Follow-up post here: https://community.st.com/t5/stm32-mcus-wireless/real-time-wireless-notification-for-anomaly-detection-on/td-p/772640