STMicroelectronics / BlueSTSDK_Android

Bluetooth low energy Sensors Technology Software Development Kit (Android version)
https://www.st.com/en/embedded-software/bluest-sdk.html
BSD 3-Clause "New" or "Revised" License
92 stars 46 forks source link

Accelerometer event type not being recognized in android app (ST BLE Sensor) #29

Open Luktronics opened 2 years ago

Luktronics commented 2 years ago

In the firmware I am sending the notification regarding the accelerometer event in this way: STORE_LE_16(NotifyAccEventCharData, 4000); //TimeStamp NotifyAccEventCharData[2]=0x08; // Tilt event STORE_LE_16(NotifyAccEventCharData+3 ,5000); //Steps Custom_Acceventchar_Send_Notification(); However, in the app (ST BLE Sensor) it shows the accelerometer event type being the value 264 (0x108) instead of 8 (0x08). The TimeStamp and Steps values are displayed correctly. What can I do to fix this problem?

Thanks in advance!

saurabh-eegrab commented 1 year ago

Hi @Luktronics , Hope you are doing good. I just want to know whether you able to get Accelerometer data in your android application. If yes , It will be great if you can share the solution. Thanks

PezzoniL commented 1 year ago

yes... take a look on the plot demo where you can display the acc data that the board is sending if it's sending it. and if you select the "start logging" pressing the the "3 dots" menu on the top right of the screen.... it starts to saving what is receiving on .csv on your phone... and when you press the "stop logging" the application will ask to you if you want to share that .csv files using mail or something else

But remember what you could see on android application is function of what the board is sending using ble Ciao Luca

Il giorno mer 1 feb 2023 alle ore 06:11 saurabh-eegrab < @.***> ha scritto:

Hi @Luktronics https://github.com/Luktronics , Hope you are doing good. I just want to know whether you able to get Accelerometer data in your android application. If yes , It will be great if you can share the solution. Thanks

— Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/BlueSTSDK_Android/issues/29#issuecomment-1411477851, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMVJZSYZOX2HY544IEITADWVHV6TANCNFSM5P4MU2OA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Luca Pezzoni