Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shield sample sensorhub does not produce and meaningful data #35911

Closed
nashif opened this issue Jun 3, 2021 · 5 comments
Closed

shield sample sensorhub does not produce and meaningful data #35911

nashif opened this issue Jun 3, 2021 · 5 comments
Assignees
Labels
area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@nashif
Copy link
Member

nashif commented Jun 3, 2021

Describe the bug

���[00:00:00.002,000] <dbg> LIS2DW12.lis2dw12_set_power_mode: Apply default Power Mode
[00:00:00.004,000] <inf> LSM6DSO: Initialize device LSM6DSO
[00:00:00.008,000] <inf> LSM6DSO: chip id 0x6c
[00:00:00.017,000] <inf> LSM6DSO: shub: start sensorhub for LSM6DSO

To Reproduce
Steps to reproduce the behavior:

  1. west build -b frdm_k64f samples/shields/x_nucleo_iks01a3/sensorhub/ -- -DSHIELD=x_nucleo_iks01a
  2. west flash
  3. See output, no sensor data at all

Expected behavior
expecting some sensor data

@nashif nashif added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug area: Sensors Sensors labels Jun 3, 2021
@avisconti
Copy link
Collaborator

@nashif
Did you put the x_nucleo_iks01a3 shield in Mode2 (sensorhub)?
See info on how to configure jumpers here:
https://docs.zephyrproject.org/latest/boards/shields/x_nucleo_iks01a3/doc/index.html

@nashif
Copy link
Member Author

nashif commented Jun 3, 2021

aha, switched now and I am getting output, looks like I am on the surface of the sun :-)

LIS2DW12: Accel (m.s-2): x: -0.306, y: 0.077, z: 9.571
LSM6DSO: Accel (m.s-2): x: 0.000, y: 0.000, z: 0.000
LSM6DSO: GYro (dps): x: 0.000, y: 0.000, z: 0.000
LSM6DSO: Magn (gauss): x: 4.363, y: 536871436.025, z: 46801.000
LSM6DSO: Temperature: 44231.9 C
LSM6DSO: Pressure:46352.000 kpa
16:: lsm6dso acc trig 0
16:: lsm6dso gyr trig 0
16:: lsm6dso temp trig 0

The above with latest main which fixes other sensor issues.

@avisconti
Copy link
Collaborator

OK, I'll take a look at it

@avisconti
Copy link
Collaborator

avisconti commented Jun 3, 2021

aha, switched now and I am getting output, looks like I am on the surface of the sun :-)

LIS2DW12: Accel (m.s-2): x: -0.306, y: 0.077, z: 9.571
LSM6DSO: Accel (m.s-2): x: 0.000, y: 0.000, z: 0.000
LSM6DSO: GYro (dps): x: 0.000, y: 0.000, z: 0.000
LSM6DSO: Magn (gauss): x: 4.363, y: 536871436.025, z: 46801.000
LSM6DSO: Temperature: 44231.9 C
LSM6DSO: Pressure:46352.000 kpa
16:: lsm6dso acc trig 0
16:: lsm6dso gyr trig 0
16:: lsm6dso temp trig 0

The above with latest main which fixes other sensor issues.

No, wait, I know the issue!
Values are bad because I think the irq-gpios for lsm6dso in DT is wrong for that particular board (i.e. frdm_k64f). Does it make sense to you? So, you may want to check the irq_gpios definitions in standard mode (which seems to work) and in sensorhub mode.

@nashif
Copy link
Member Author

nashif commented Jun 3, 2021

ok, makes sense. lets close it then.

@nashif nashif closed this as completed Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

2 participants