Triggering the collecting and/or using of calibration data
An alert indicates that a situation conducive to calibrating a barometric pressure sensor of the user device might have occurred. In response, calibration data is collected for calibrating the barometric pressure sensor. The calibration data is used to perform a calibration process and generate a calibration value for the barometric pressure sensor.
1 . A method comprising:
setting, by a client running on a computer processor of a user device, a trigger for an operating system of the user device to send an alert to the client when a trigger event occurs, the trigger event indicating that a situation conducive to calibrating a barometric pressure sensor of the user device might have occurred;
receiving, by the client running on the computer processor, the alert indicating that the situation conducive to calibrating the barometric pressure sensor of the user device might have occurred;
performing, by the client running on the computer processor, a trigger event check to confirm whether the trigger event has occurred;
in response to the trigger event check not passing, waiting, by the client running on the computer processor, for a next alert;
in response to the trigger event check passing, collecting, by the client running on the computer processor, calibration data for calibrating the barometric pressure sensor;
uploading, by the client running on the computer processor, the calibration data to a calibration server for the calibration server to perform a calibration process and generate a calibration value for the barometric pressure sensor;
receiving, by the client running on the computer processor, the calibration value from the calibration server; and
calibrating the barometric pressure sensor of the user device using the calibration value.
2 . The method of claim 1 , wherein:
the trigger event is a Wi-Fi connect trigger, which occurs when the user device is detected to have connected to a Wi-Fi access point.
3 . The method of claim 1 , wherein:
the trigger event is a Wi-Fi disconnect trigger, which occurs when the user device is detected to have disconnected from a Wi-Fi access point.
4 . The method of claim 1 , wherein:
the trigger event is a charging trigger event, which occurs when a battery of the user device is detected to be charging.
5 . The method of claim 1 , wherein:
the trigger event is a charging trigger event, which occurs when the user device is detected to have attached to an external power source.
6 . The method of claim 1 , wherein:
the trigger event is a significant motion trigger, which occurs when a detected motion for the user device exceeds a motion threshold value.
7 . The method of claim 1 , wherein:
the trigger event is a Wi-Fi RSSI-change trigger, which occurs when a strength of a Wi-Fi signal received by the user device as indicated by a Received Signal Strength Indicator (RSSI) is detected to have changed by more than a Wi-Fi RSSI-change threshold.
8 . The method of claim 1 , wherein:
the trigger event is a geofence trigger, which occurs when the user device is detected to have traversed a boundary of a geofence.
9 . The method of claim 1 , wherein:
the trigger event is a significant location change trigger, which occurs when a distance between two locations at which the user device has been detected to exceed a distance threshold value.
10 . The method of claim 1 , wherein:
the trigger event is an activity trigger, which occurs when the user device is detected to have experienced a predetermined activity.
11 . The method of claim 10 , wherein:
the activity trigger further occurs when a confidence level for the predetermined activity is greater than an activity confidence threshold value.
12 . The method of claim 1 , wherein:
the trigger event is an activity transition trigger, which occurs when the user device is detected to have experienced a predetermined activity transition.
13 . The method of claim 12 , wherein:
the activity transition trigger further occurs when a confidence level for the predetermined activity transition is greater than an activity transition confidence threshold value.
14 . The method of claim 1 , wherein:
the trigger event is a time period trigger, which occurs when a specified time interval is detected to have passed since a previous collection of calibration data.
15 . The method of claim 1 , wherein:
the trigger event is a specific time trigger, which occurs at a specified time point during a day.
16 . A method comprising:
setting, by a client running on a computer processor of a user device, a trigger for an operating system of the user device to send an alert to the client when a trigger event occurs, the trigger event indicating that a situation conducive to calibrating a barometric pressure sensor of the user device might have occurred;
receiving, by the client running on the computer processor, the alert indicating that the situation conducive to calibrating the barometric pressure sensor of the user device might have occurred;
in response to the alert, collecting, by the client running on the computer processor, calibration data for calibrating the barometric pressure sensor;
uploading, by the client running on the computer processor, the calibration data to a calibration server for the calibration server to perform a calibration process and generate a calibration value for the barometric pressure sensor;
receiving, by the client running on the computer processor, the calibration value from the calibration server; and
calibrating the barometric pressure sensor of the user device using the calibration value;
wherein:
the trigger event is an activity transition pair trigger, which occurs when the user device is detected to have experienced a predetermined activity transition pair.
17 . The method of claim 16 , wherein:
the activity transition trigger further occurs when a confidence level for the activity transition pair is greater than an activity transition pair confidence threshold value.
18 . A method comprising:
triggering, by a client running on a computer processor of a mobile device, collection of calibration data for calibrating a barometric pressure sensor of the mobile device in response to detecting an activity transition pair for the mobile device;
in response to the triggering, collecting, by the client running on the computer processor, the calibration data for calibrating the barometric pressure sensor;
uploading, by the client running on the computer processor, the calibration data to a calibration server for the calibration server to perform a calibration process and generate a calibration value for the barometric pressure sensor;
receiving, by the client running on the computer processor, the calibration value from the calibration server; and
calibrating the barometric pressure sensor of the mobile device using the calibration value.