Systems and methods of modifying a phase of data capture via a sensor
Systems and methods for projecting transmission occasions include a device that may determine a duration in which data is in a queue prior to transmission to an endpoint. The device may modify a phase of data capture via a sensor according to the duration. The device may capture via the sensor subsequent data according to the phase. The device may transmit the subsequent data from the queue to the endpoint.
1 . A method, comprising:
determining, by a device, a duration in which data is in a queue prior to transmission to an endpoint;
modifying, by the device, a phase of data capture via a sensor, according to the duration reduced by a predefined offset, the sensor capturing the data according to the phase and a common sampling frequency;
capturing, by the device via the sensor, subsequent data according to the phase modified according to the duration reduced by the predefined offset and at the common sampling frequency; and
transmitting, by the device from the queue, the subsequent data to the endpoint.
2 . The method of claim 1 , wherein determining the duration comprises:
determining, by the device, a first timestamp associated with the data being added to the queue;
determining, by the device, a second timestamp associated with the data being transmitted from the queue to the endpoint; and
determining, by the device, the duration according to a difference between the first timestamp and the second timestamp.
3 . The method of claim 1 , wherein determining the duration comprises:
determining, by the device, configuration information including a wake time and a frequency of a modem for the device;
determining, by the device, from an application executing on the device, the common sampling frequency; and
determining, by the device, the duration according to the configuration information, the sampling frequency, and an average data processing duration.
4 . The method of claim 3 , further comprising:
determining, by the device, the average data processing duration according to one or more first timestamps for previous data captured via the sensor and one or more second timestamps for the previous data being added to the queue for transmission.
5 . The method of claim 1 , wherein the data is first data, and wherein the first data and the subsequent data are captured at the common sampling frequency set by an application executing on the device.
6 . The method of claim 1 , wherein the device transmits the subsequent data from the queue to the endpoint according to a connected mode-discontinuous reception (C-DRX) schedule.
7 . The method of claim 1 , wherein the sensor comprises at least one of an imager or a microphone.
8 . The method of claim 1 , wherein the duration is a first duration, the method further comprising:
adding, by the device, the subsequent data to the queue for transmission to the endpoint; and
transmitting, by the device, the subsequent data from the queue to the endpoint, after a second duration in which the subsequent data is in the queue, the second duration being less than the first duration.
9 . A device, comprising:
at least one processor configured to:
determine a duration in which data is in a queue prior to transmission to an endpoint;
modify a phase of data capture via a sensor, according to the duration reduced by a predefined offset, the sensor capturing the data according to the phase and a common sampling frequency;
capture, via the sensor, subsequent data according to the phase modified according to the duration reduced by a predefined offset and at the common sampling frequency; and
transmit the subsequent data from the queue to the endpoint.
10 . The device of claim 9 , wherein to determine the duration, the one or more processors are configured to:
determine a first timestamp associated with the data being added to the queue;
determine a second timestamp associated with the data being transmitted from the queue to the endpoint; and
determine the duration based on a difference between the first timestamp and the second timestamp.
11 . The device of claim 9 , wherein to determine the duration, the one or more processors are configured to:
determine configuration information including a wake time and a frequency of a modem for the device;
determine, from an application executing on the device, the common sampling frequency; and
determine the duration according to the configuration information, the common sampling frequency, and an average data processing duration.
12 . The device of claim 11 , wherein the one or more processors are configured to:
determine the average data processing duration according to one or more first timestamps for previous data captured via the sensor and one or more second timestamps for the previous data being added to the queue for transmission.
13 . The device of claim 9 , wherein the data is first data, and wherein the first data and the subsequent data are captured at the common sampling frequency set by an application executing on the device.
14 . The device of claim 9 , wherein to transmit the subsequent data, the one or more processors are configured to transmit the subsequent data from the queue to the endpoint according to a connected mode-discontinuous reception (C-DRX) schedule.
15 . The device of claim 9 , wherein the sensor comprises at least one of an imager or a microphone.
16 . The device of claim 9 , wherein the duration is a first duration, wherein the one or more processors are configured to:
add the subsequent data to the queue for transmission to the endpoint; and
transmit the subsequent data from the queue to the endpoint, after a second duration in which the subsequent data is in the queue, the second duration being less than the first duration.
17 . A non-transitory computer readable medium storing instructions that, when executed by one or more processors, cause the one or more processors to:
determine a duration in which data is in a queue prior to transmission to an endpoint;
modify a phase of data capture via a sensor, according to the duration reduced by a predefined offset, the sensor capturing the data according to the phase and a common sampling frequency;
capture, via the sensor, subsequent data according to the phase modified according to the duration reduced by a predefined offset and at the common sampling frequency; and
transmit the subsequent data from the queue to the endpoint.
18 . The non-transitory computer readable medium of claim 17 , wherein the duration is a first duration, wherein the instructions cause the one or more processors to:
add the subsequent data to the queue for transmission to the endpoint; and
transmit the subsequent data from the queue to the endpoint, after a second duration in which the subsequent data is in the queue, the second duration being less than the first duration.