METHOD AND DEVICE FOR SYNCHRONIZING SENSORS
20180146269 ยท 2018-05-24
Inventors
Cpc classification
H04Q2209/845
ELECTRICITY
International classification
Abstract
A method for synchronizing sensors. A ratio of a first data rate of the first sensor to the second data rate of the second sensor is 2.sup.n, where n is an element from the set of natural numbers. A central timer is started. A first countdown timer is generated based on the central timer and the first data rate, and a second countdown timer is generated based on the central timer and the second data rate. The first countdown timer and the second countdown timer are started periodically. The measurement by the first sensor begins at the latest when a first latency equals the value of the first countdown timer, and the measurement by the second sensor begins at the latest when the second latency equals the value of the second countdown timer.
Claims
1-14. (canceled)
15. A method for synchronizing sensors, comprising: (a) determining at least one first latency of a first sensor and a second latency of a second sensor; (b) acquiring at least one first data rate of the first sensor and a second data rate of the second sensor, a ratio of the first data rate to the second data rate being 2.sup.n, where n is an element from the set of natural numbers; (c) starting a central timer; (d) generating a countdown timer as a function of a value of the central timer and of the first data rate, and generating a second countdown timer as a function of the value of the central timer and of the second data rate; (e) providing the first countdown timer for the first sensor and providing the second countdown timer for the second sensor, a measurement by the first sensor beginning at the latest when the first latency equals a value of the first countdown timer, and a measurement by the second sensor beginning at the latest when the second latency equals the value of the second countdown timer; and (f) synchronously outputting a first measured value of the first sensor and a second measured value of the second sensor.
16. The method as recited in claim 15, wherein at least one of: (i) the first latency is determined in method step (a) by measuring the duration from the response by the first sensor until the output of the first measured value, and (ii) the second latency is determined in method step (a) by measuring the duration from the response by the second sensor until the output of the second measured value.
17. The method as recited in claim 14, wherein at least one of: (i) the first latency is determined in method step (a) by ascertaining from a table a duration from a response by the first sensor until the output of the first measured value, as a function of the configuration of the first sensor, and (ii) the second latency is determined in method step (a) by ascertaining from a table a duration from a response by the second sensor until the output of the second measured value, as a function of a configuration of the second sensor.
18. The method as recited in claim 14, wherein the first countdown timer and the second countdown timer are generated in method step (d) by inverting a value of the central timer bit by bit, and utilizing a first number of lower bits for the first countdown timer as a function of the first data rate, and utilizing a second number of lower bits for the second countdown timer as a function of the second data rate.
19. The method as recited in claim 14, wherein at least one of: (i) the first sensor is placed into a sleep mode after the first measured value is output, when the first latency is less than a reciprocal of the first data rate, and (ii) the second sensor is placed into a sleep mode after the second measured value is output, when the second latency is less than a reciprocal of the second data rate.
20. The method as recited in claim 14, wherein at least one of: (i) the first sensor is awakened at the latest when the value of the first countdown timer corresponds to the first latency, and (ii) the second sensor is awakened at the latest when the value of the second countdown timer corresponds to the second latency.
21. The method as recited in claim 14, wherein the first measured value and the second measured value, which are output at the same time, are combined into a data packet, the data packet being provided with a time stamp.
22. The method as recited in claim 21, wherein the data packet is transmitted to a FIFO memory.
23. A device for synchronizing sensors, the sensors including at least one first sensor and a second sensor, the device comprising: a central timer; and a processing unit, wherein the device is configured for determining a first latency of a first sensor and a second latency of a second sensor, and the first sensor being configured for outputting a first measured value and the second sensor being configured for outputting a second measured value in synchronization with one another, and wherein the processing unit is configured to acquire a first data rate of the first sensor and a second data rate of the second sensor, a ratio of the first data rate to the second data rate being 2, where n is an element from the set of natural numbers, start the central timer, generate a first countdown timer as a function of a value of the central timer and of the first data rate, and generate a second countdown timer as a function of the value of the central timer and of the second data rate, and provide the first countdown timer for the first sensor and provide the second countdown timer for the second sensor, the measurement by the first sensor beginning at the latest when the first latency equals a value of the first countdown timer, and the measurement by the second sensor beginning at the latest when the second latency equals the value of the second countdown timer.
24. The device as recited in claim 23, wherein at least one of: (i) one of the first sensor or the processing unit is configured to determine the first latency by measuring a duration from a response by the first sensor until the output of the first measured value, and (ii) one of the second sensor or the processing unit is configured for determining a second latency by measuring a duration from a response by the second sensor until the output of the second measured value.
25. The device as recited in claim 24, wherein at least one of: (i) one of the first sensor or the processing unit is configured to determine the first latency by ascertaining from a table the duration from the response by the first sensor until the output of the first measured value, as a function of a configuration of the first sensor, and (ii) one of the second sensor or the processing unit is configured to determine the second latency by ascertaining from a table the duration from the response by the second sensor until the output of the second measured value, as a function of the configuration of the second sensor.
26. The device as recited in claim 23, wherein at least one of: (i) the first sensor is configured to go into a sleep mode after the first measured value is output, when the first latency is less than a reciprocal of the first data rate, and (ii) the second sensor is configured for going into a sleep mode after the second measured value is output, when the second latency is less than the reciprocal of the second data rate.
27. The device as recited in claim 26, wherein at least one of: (i) the first sensor is configured to be awakened at the latest when the value of the first countdown timer corresponds to the first latency, and (ii) the second sensor is configured to be awakened at the latest when the value of the second countdown timer corresponds to the second latency.
28. The device as recited in claim 23, wherein the device includes a FIFO memory, the processing unit being configured to transmit the first measured value and the second measured value, which are output at the same time, as data packets to the FIFO memory, the data packet being provided with a time stamp.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0031]
[0032]
DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS
[0033]
[0034] In one alternative exemplary embodiment not depicted, first sensor 30 and second sensor 40 are connected to processing unit 20 in such a way that data may be transmitted only from processing unit 20 to sensors 30, 40. In this case, however, first sensor 30 and second sensor 40 include a data line which may be led out of device 10 and externally tapped to be able to acquire the first measured value and the second measured value.
[0035] In another alternative exemplary embodiment not depicted, device 10 may also include any desired number of additional sensors which, the same as first sensor 30 and second sensor 40, are connected to processing unit 20.
[0036]
[0037] After method step f, first sensor 30 is optionally placed into a sleep mode in a method step g when the first latency is less than the reciprocal of the first data rate, or also second sensor 40 is placed into a sleep mode when the second latency is less than the reciprocal of the second data rate. Due to the condition that the latency is less than the reciprocal of the data rate, it is ensured that the time period between the response by the sensor and the output of a measured value is shorter than the time period between which a measured value of the sensor is to be acquired in each case. Optionally, between method step d and method step e a method step h may also run, in which first sensor 30 is awakened at the latest when the value of the first countdown timer corresponds to the first latency, or also in which second sensor 40 is awakened at the latest when the value of the second countdown timer corresponds to the second latency. It may be necessary to take into account, in addition to the latency, a time period until the sensor is ready to start with a measurement.
[0038] The method is terminated after method step f, or after method step g, if it is carried out. Optionally, the method may be continued, for example, with method step h, or also with method step a.
[0039] In one alternative exemplary embodiment not depicted, after method step f a further method step may take place in which the first measured value and the second measured value are combined into a data packet, the data packet preferably being provided with a time stamp. In a subsequent method step, the data packet may also optionally be transmitted to a FIFO memory 60, which may be externally accessed with the aid of a computer, for example.