Methods for data synchronization between a sensor hub and an application processor and apparatuses using the same
AssigneeVia Alliance Semiconductor Co., Ltd.
InventorsJiangze Chen, Dongxing Wu, Deming Gu, Guixiang He, Kangning Zhu
Life of this patent
Estimating the term…
Abstract
The invention introduces a method for data synchronization between a sensor hub and an application processor, which contains at least the following steps: generating and adding a plurality of absolute time stamps in a sensor-data stream; and generating and adding a plurality of pieces of sensor data and a plurality of relative time stamps in the sensor-data stream between the moments of generating each two adjacent absolute time stamps, wherein each relative time stamp is associated with one piece of sensor data.
Claims9
A method for data synchronization between a sensor hub and an application processor, comprising:
- generating and adding a plurality of absolute time stamps in a sensor-data stream;
- generating and adding a plurality of pieces of sensor data and a plurality of relative time stamps in the sensor-data stream between the moments of generating each two adjacent absolute time stamps, wherein each relative time stamp is associated with one piece of sensor data;
- receiving raw data from a micro-sensor;
- determining whether a value of an RTC (Real-Time Counter) of the sensor hub exceeds a counter threshold;
- when the value of the RTC of the sensor hub exceeds the counter threshold, generating and storing a time unit and a data unit in a ring buffer;
- and
- when the value of the RTC of the sensor hub does not exceed the counter threshold, generating and storing the data unit in the ring buffer,
- wherein the time unit comprises the absolute time stamp, the data unit comprises the sensor data and the relative time stamp, and the sensor data is associated with the raw data.
An apparatus for data synchronization between a sensor hub and an application processor, comprising:
- a memory storing a sensor-data stream;
- and
- a sensor hub, coupled to a micro-sensor and the memory, generating and adding a plurality of first absolute time stamps in the sensor-data stream;
- and generating and adding a plurality of pieces of first sensor data and a plurality of first relative time stamps in the sensor-data stream between the moments of generating each two adjacent first absolute time stamps, wherein each first relative time stamp is associated with one piece of first sensor data;
- wherein the sensor hub receives raw data from the micro-sensor;
- determines whether a value of an RTC (Real-Time Counter) of the sensor hub exceeds a counter threshold;
- when the value of the RTC of the sensor hub exceeds the counter threshold, generating and storing a time unit and a data unit in a ring buffer;
- and when the value of the RTC of the sensor hub does not exceed the counter threshold, generating and storing the data unit in the ring buffer, and wherein the time unit comprises the first absolute time stamp, the data unit comprises one piece of first sensor data and the first relative time stamp, and the piece of first sensor data is associated with the raw data.
Dependencies are inferred from the claim text.