2023-10-21 12:26 PM
I have timestamp counter enabled and batching to FIFO with decimation=1. I can see the timestamp values are interleaved with the accelerometer values, but the timestamp values are always 0 like this (this is SPI trace):
22 00 00 00 00 00 0A
12 32 F7 2F FC 9A 41
24 00 00 00 00 00 0A
14 DE F6 AE FC 94 43
27 00 00 00 00 00 0A
17 9B F6 3E FC 23 40
21 00 00 00 00 00 0A
11 EE F6 46 FC A6 42
22 00 00 00 00 00 0A
12 49 F7 54 FC 69 42
The last byte 0A contains I guess the BDL (1010), and tag sensor is 0x4 so it should be timestamp value but why does it contain only zeroes ?
Solved! Go to Solution.
2023-10-23 06:21 AM
Hi @Federica Bossi , sorry my mistake as expected, I miswrote the address of the register where timestamp counter is enabled.
2023-10-23 02:55 AM
Hi @mete ,
Can you share a reg dump? I need to see what are you writing in each register.
Thanks
2023-10-23 06:21 AM
Hi @Federica Bossi , sorry my mistake as expected, I miswrote the address of the register where timestamp counter is enabled.
2024-02-12 08:40 AM
Hi @mete and @Federica Bossi, I am not sure if it's ok to "reply" to a resolved topic but it seems to me I have a very similar issue with the iis2mdc magnetometer. I am able to get the values of the magnetic fields (along x,y,z) but the timestamp is always 0.
root@linux:/sys/devices/platform/soc@0/soc@0:bus@30800000/30a50000.i2c/i2c-3/3-001e/iio:device2/buffer# hexdump -C /dev/iio:\device2
00000000 85 01 20 00 34 fe 00 00 00 00 00 00 00 00 00 00 |.. .4...........|
00000010 87 01 24 00 31 fe 00 00 00 00 00 00 00 00 00 00 |..$.1...........|
In your answers you talk about register addresses, could you please tell me where can I check these values?
Thanks
2024-02-13 12:58 AM
The register addresses are in the datasheet but I do not see timestamping is mentioned for IIS2MDC.