Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Luktronics opened this issue Mar 4, 2022 · 1 comment

Comments

@Luktronics
Copy link

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!

@PezzoniL
Copy link
Collaborator

PezzoniL commented Mar 7, 2022

Ciao, which FW are you modifying and which Board ID are you using?
Because in function of the Board ID, we add a list of possible HW event for any board
because the type of detectable HW event is function of the accelerometer type present on that board

and I think that you could not send one number of Steps with one Tilt Event...
probably you need to send before one TILT event and then send one Pedometer Event with the number of steps
let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants