Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Error when running sample acc_bluetooth_beacon

Hi,

Trying to run one of the Acconneer samples I get the errors below: 

service_handle = acc_service_create(envelope_configuration); returns a NULL handle, all up to this point looked fine...

The errors in the debug window shows:

"<error> app: sensor_protocol:Timeout waiting for event on sensor 1
<error> app: cpd_cbank_and_vana_calibration:Failed to get result for vana setting=0
<error> app: cpd_cbank_and_vana_calibration:Get Vana result failed
<error> app: sensor_manager:Calibration failure for sensor 1
<info> app: Could not create envelope service"

Segger Compiler

nRF5_SDK_15.3.0_59ac345

nRF52840DK as Debugger connected with 10pin cable to the XB122.  I am logging the error here as it is failing on the sensor calibration it seems.

The actual code preceding the error was:

acc_service_configuration_t envelope_configuration = acc_service_envelope_configuration_create();

if (envelope_configuration == NULL)
{
printf("Could not create envelope configuration\n");
success = false;
}

if (success)
{
acc_service_requested_start_set(envelope_configuration, range_start_m);
acc_service_requested_length_set(envelope_configuration, range_length_m);
acc_service_power_save_mode_set(envelope_configuration, SELECTED_POWER_SAVE_MODE);
acc_service_profile_set(envelope_configuration, SELECTED_SERVICE_PROILE);
acc_service_hw_accelerated_average_samples_set(envelope_configuration, HWAAS);
acc_service_envelope_downsampling_factor_set(envelope_configuration, DOWNSAMPLING_FACTOR);

service_handle = acc_service_create(envelope_configuration);

Now service_handle == NULL; with above errors thrown from the inner libraries.

Any idea where to start looking for this problem?

Thanks

Cheers

Andreas

Parents Reply Children
No Data
Related