How-to: Receive Acceleration SnippetsΒΆ

This example outlines the steps to connects to an ANURA vibration sensor and configures it to send acceleration waveform data in the form of snippets.

  1. Scan for the Device: Scan to find the sensor node, which will be advertising the AVSS UUID.

  2. Connect and Subscribe: Connect to the sensor and set up subscriptions to the Control Point and Report characteristics.

  3. Retrieve Firmware Info: Execute the Get Firmware Info command and note the response. Although not mandatory, displaying this information can be useful for troubleshooting.

  4. Configure Settings: Execute the Write Settings command and await the response. The sensor will ignore any unknown or malformed parameters, and the response will indicate the number of ignored parameters.

  5. Apply Settings: Execute the Apply Settings command and await the response. If the sensor needs to reboot, the will_reboot parameter will be set. The client should handle this by reconnecting.

  6. Subscribe to Snippet Reports: Execute the Report Snippets command to subscribe to snippet reports.

  7. Trigger Measurements: Send a Trigger Measurement command to initiate measurements, even if the sensor is stationary. To extend the measurement period beyond the maximum of 60 seconds, issue repeated Trigger Measurement commands. These can be sent before the previous measurement period has ended.