ST意法半导体
直播中

李娜

7年用户 199经验值
私信 关注
[问答]

无法将LIS2MDL置于低功耗模式

你好,
我在传感器集线器模式下使用LSM6DSL和LIS2MDL,使用IKS01A2中的示例我已经设法激活LIS2MDL并从中读取数据。
我目前的问题是我无法将LIS2MDL置于低功耗模式,我尝试使用'LSM6DSL_ACC_GYRO_SH0_WriteByte'功能,但它在等待'LSM6DSL_ACC_GYRO_SENS_HUB_END_OP_COMPLETED'的while循环中陷入困境
你能帮忙吗?
谢谢,
迈克尔

以上来自于谷歌翻译


以下为原文




Hello,
I'm using LSM6DSL in sensor hub mode with LIS2MDL, using the example in IKS01A2 I have managed to activate the LIS2MDL and read data from it.
My current issue is that I can't put the LIS2MDL in low power mode, I tried using 'LSM6DSL_ACC_GYRO_SH0_WriteByte' function but it get stuck in the while loop waiting for 'LSM6DSL_ACC_GYRO_SENS_HUB_END_OP_COMPLETED'
Can you please assist?
Thank you,
Michael

回帖(6)

曾玲娟

2019-4-26 14:47:16
你认为你可以分享整个项目吗?

以上来自于谷歌翻译


以下为原文




Do you think you can share the whole project?
举报

张茜

2019-4-26 15:04:12
我的猜测是主设备和从设备之间没有正确的I2C连接,并且该功能挂起,因为它没有从从传感器获得ACK。
您确定设备已正确连接,并通过Vcc上拉吗?您是否有可能检查I2C通信的逻辑电平(使用逻辑分析仪)? HW的原理图也可以帮助诊断。
另外,检查是否使用传感器的正确I2C地址。

以上来自于谷歌翻译


以下为原文




My guess is that there is not a correct I2C connection between the master and slave devices and the function hangs, because it doesn't get an ACK from the slave sensor.
Are you sure that the devices are properly connected, with pull-ups to Vcc? Do you have a possibility to check the logic levels of the I2C communication (using a logic analyzer)? Schematics of your HW could also help with a diagnose.
Also, check whether you use the correct I2C addresses of the sensors.
举报

曾玲娟

2019-4-26 15:22:17
Koudela.David.001
“我不这么认为,因为Michael写道'我已经设法激活LIS2MDL并从中读取数据',因此他能够使用LSM6DSL作为传感器集线器从磁力计读取数据。我不认为I2C地址或连接有任何问题。但是这个功能非常复杂,有些操作可能很棘手。
 
 注意:原始帖子包含大量线程对话,只能迁移到第9级

以上来自于谷歌翻译


以下为原文





Koudela.David.001
‌ I don't think so, because Michael wrote 'I have managed to activate the LIS2MDL and read data from it' so he is able to read data from the magnetometer using LSM6DSL as sensor hub. I don't expect any issue with I2C address or connection. But this feature is quite complex and some operations can be tricky.

Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level
举报

李娜

2019-4-26 15:37:27
嗨,
不幸的是我无法分享项目,但我已经使用了传感器集线器示例
IKS01A2 SDK没有任何更改,对于LIS2MDL空闲命令我使用 - ''

以上来自于谷歌翻译


以下为原文




Hi,
Unfortunately I can't share the project, but I have use the sensor hub example from
IKS01A2 SDK without any changes, and for the LIS2MDL idle command i use - ''
举报

更多回帖

发帖
×
20
完善资料,
赚取积分