同步MoveSense样本率。

huangapple go评论95阅读模式
英文:

Synchronize movesense sample rates

问题

我同步了两个与此方法有关的传感器。
之后,我记录了原始数据并检查了峰值。
同步似乎在开始时有效,但随着时间的推移开始迅速漂移。
我尝试了13 Hz、26 Hz 和 25Hz。在要求更高的采样率时,漂移变得更严重。
此外,我检查了时间戳并估算了采样率。
对于一个传感器,采样率不是恒定的(例如,对于52Hz,它在50和51 Hz之间变化)。
一个传感器始终比另一个传感器“快”。

有没有一种方法可以将它们同步?

提前感谢您。

英文:

I synchronized two sensors regarding this method.
Afterwards I logged the raw data and checked the peaks.
The synchronization seems to work at the beginning but it starts to drift rapidly by time.
I tried 13 Hz, 26 Hz and 25Hz. The drift gets worser when asking for higher sample rates.
Also I checked the timestamps and estimated the sample rates.
For one sensor the sample rate is not constant (e.g. for 52Hz it varies between 50 and 51 Hz).
One sensor is always "faster" than the other one.

Is there a method to synchronize them?

Thank you in advance

答案1

得分: 1

以下是翻译好的部分:

"Since especially the **IMU unit (Acc/Gyro/Magn) sampling is timed by the LSM6DSL's internal RC oscillator, the diff of timestamps can vary and the real samplerate is +-10% of the nominal given in the subscription parameter. The ECG samples are accurate since that chip uses the clock signal from the stable oscillator"

"So the samples will drift due to the limitation of the IMU sensor hardware."

"To mitigate that the measurement API's include the crystal stabilized timestamps which enable the synchronization of the data streams from different sensors:

  • At simplest it could be so that you'd skip a sample from the stream that is behind the other by more than a sample length. This method causes timing jitter of the samples but is simple to implement.
  • A more complex way is to re-sample both streams and picking the samples using the interpolated values based on timestamps.

Full disclosure: I work for the Movesense team"

英文:

The link in the question you linked contains the following:

> Since especially the IMU unit (Acc/Gyro/Magn) sampling is timed by the LSM6DSL's internal RC oscillator, the diff of timestamps can vary and the real samplerate is +-10% of the nominal given in the subscription parameter. The ECG samples are accurate since that chip uses the clock signal from the stable oscillator

So the samples will drift due to the limitation of the IMU sensor hardware.

To mitigate that the measurement API's include the crystal stabilized timestamps which enable the synchronization of the data streams from different sensors:

  • At simplest it could be so that you'd skip a sample from the stream that is behind the other by more than a sample length. This method causes timing jitter of the samples but is simple to implement.
  • A more complex way is to re-sample both streams and picking the samples using the interpolated values based on timestamps.

Full disclosure: I work for the Movesense team

huangapple
  • 本文由 发表于 2020年1月6日 16:39:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/59608970.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定