Hello, I have a problem, I am not sure what the meaning of timestamp is here, because when I run the program, in bsc_integration.c if I enter bsec_sencor_control (...) with any timestamp value, it only exits this function with the bsec_status = BESC_OK the first time I enter after bsec_iot_init (...), the next times I enter the function bsec_sencor_control (...) exits with bsec_status = BSEC_W_SC_CALL_TIMING_VIOLATION. Can someone help me understand what value I have to return in get_timestamp_us () for everything to work ok. Waiting for an answer, best regards, Luis Valseca
bme680 timestamp
Best reply by 1uisvalseca
I still don't understand what happens, if I exit the get_timestamp_us () function with a timestamp of 200 milliseconds, that is, 200,000 microseconds, I multiply by 1000 to convert into nanoseconds. Now I enter the function ret.bsec_status = bsec_sensor_control (time_stamp, & sensor_settings); for the first time. I returned
bsec_status = BSEC_OK, but the following times it returns me
bsec_status = BSEC_W_SC_CALL_TIMING_VIOLATION. I ask again, with what value should I enter bsec_sensor_control () so that it always returns bsec_status = BSEC_OK.?
pleasde, help
Luis Valseca
5 replies
Resolved