完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,
我在传感器集线器模式下使用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个回答
|
|
|
|
|
|
|
|
|
我的猜测是主设备和从设备之间没有正确的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. |
|
|
|
|
|
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 |
|
|
|
|
|
嗨,
不幸的是我无法分享项目,但我已经使用了传感器集线器示例 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 - '' |
|
|
|
|
|
谢谢你重播大卫,
传感器集线器功能用于从LIS2MDL读取数据,问题是当我尝试关闭LIS2MDL时,命令卡在等待传感器集线器寄存器。 我也试过LIS2MDL的空闲1,空闲2和单模,但我得到了相同的结果。我还看到在idle命令之后当前消耗没有下降。 电路非常小,我不能使用逻辑诊断。 在切换到空闲模式之前,我可能需要做更多的操作 以上来自于谷歌翻译 以下为原文 Thank you for replay David, The sensor hub function is working for data reading from the LIS2MDL, the issue is when I try to power down the LIS2MDL the command is stuck waiting for the sensor hub register. I also tried idle 1, idle 2 and single mode of the LIS2MDL but I got same result. I also see that the current consumption doesn't drop down after the idle command. The circuit is very small and I cant use logic diagnose. Maybe I need to do more operations before I switch to idle mode |
|
|
|
|
|
更新:
我可以进入LIS2MDL进入空闲模式,但现在我无法重启它 以上来自于谷歌翻译 以下为原文 Update: I can enter the LIS2MDL to idle mode, but now I cant restart it |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
663浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 12:23 , Processed in 0.883108 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1576