物联网套件 - INT1,INT2,DRDY未使用?

Learn MoreFAQsTutorials

10 posts / 0 new
Last post
gme_johannes
Offline
Last seen:3 days 14 hours ago
加入:2017-12-22 10:09
物联网套件 - INT1,INT2,DRDY未使用?

有关IOT套件的快速问题,具有SDK Project DA1458x_iot v5.160.1.19。

我注意到在DA14583_IoT_Sensor_Board_Schematic.pdf INT1, INT2, DRDY are connected from the Bosch sensors to the DA14583.
However in the Keil project, I can see they are defined (user_periph_setup.c, 103..107) but not used anywhere else in the project - provided I have used the search function correctly.
I assume now that if I want to port this implementation to similar hardware, the connections INT1, INT2, DRDY are not needed.

那是对的吗?

最好的祝福,
Johannes

Device:
PM_Dialog
Offline
Last seen:15 hours 51 min ago
Staff
加入:2018-02-08 11:03
Hi gme_johannes,

Hi gme_johannes,

I am checking with the H/W group if it’s a correct implementation and I will let you know as soon as possible.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:15 hours 51 min ago
Staff
加入:2018-02-08 11:03
Hi gme_johannes,

Hi gme_johannes,

操作两种设备(BMI160和BMM150)是安全的,而不具有中断(INT1,INT2)或已连接的数据(DRDY)。这是投票方式。

Thanks, PM_Dialog

gme_johannes
Offline
Last seen:3 days 14 hours ago
加入:2017-12-22 10:09
谢谢您的回答!

谢谢您的回答!
我预计使用遗传和中断,可以在读数中保存一些能量。
我会牢记未来。

gme_johannes
Offline
Last seen:3 days 14 hours ago
加入:2017-12-22 10:09
After inspecting code from v5

从V5.160.119中检查代码后,我会看到很多用于设置和反应中断的函数,此外#define使用_motion_wakeup。
I must have made a mistake when I stated that they don't seem to be used in the code.

Also it is clear from the IOT sensor that the motion wakeup is indeed active and functioning (sensor will start blinking after it has rested and the LED went off).

Could you please give me some short instruction how to disable interrupt routines? Is it enough the UNDEF USE_MOTION_WAKEUP?

最好的祝福,
Johannes

PM_Dialog
Offline
Last seen:15 hours 51 min ago
Staff
加入:2018-02-08 11:03
Hi gme_johannes,

Hi gme_johannes,

Could you please let me know in which project are you working on? In the SFL Project the interrupt service routine receives a BMI160 FIFO watermark’ (WM) interrupt, which signals that the FIFO level has reached a certain number of bytes. In the RAW Project the interrupt service routine receives a BMI160 DATA READY interrupt, which signals that a set of data is ready. The CPU then reads the data from the sensors and sends it to user space using a DWS_SENSOR_DATA_RDY_IND message. For more information, you can check the7.3 General Operationparagraph of theDA14583 IoT SensorDevelopment Kit (UM-B-063)document.So, in case you want use the sensors, the interrupt routines are mandatory. If you undefined the USE_MOTION_WAKEUP, you will disable the motion wakeup procedure. Could you please explain what you want to do by disabling interrupt routines?

Thanks, PM_Dialog

gme_johannes
Offline
Last seen:3 days 14 hours ago
加入:2017-12-22 10:09
Hi,

Hi,
I am working on a project which features Murata ZY (DA14580) and Bosch BMI160/BMM150.
For the firmware development, I will base it on the IoT SDK v5.160.1.19 (probably the SFL version, seems it provides what we need).

In my initial question I asked whether DRDY/INT pins are required for the operation with this project (as it is).
我是在印象中,他们不是必需的(因为我没有仔细检查代码),你已经确认了。
However your interpretation of my question must have been whether in principal it is possible with those Bosch sensors, whereas I was asking if it is possible with the IoT firmware.

Thanks for pointing me to UM-B-063 which I didn't read to the full extend previously.
I understand now that the IoT SDK v5.160.1.19 project does not feature a polling mode but relies on the interrupts from the Bosch sensors.
Hence I will have to make quite some modifications in the code to have a polling mode, or work on a new prototype.
It is very unfortunate that the Murata ZY offers such a limited amount of GPIOs which led me to dismiss those pins.

Best regards
Johannes

PM_Dialog
Offline
Last seen:15 hours 51 min ago
Staff
加入:2018-02-08 11:03
Hi gme_johannes,

Hi gme_johannes,

I am sorry for the confusion, but I misunderstood you question. I thought that you want to port the IoT implementation to a custom hardware, that’s why I mentioned that you can use the sensors in polling mode. Regarding he IoT firmware, the polling mode is not supported.

Thanks, PM_Dialog

gme_johannes
Offline
Last seen:3 days 14 hours ago
加入:2017-12-22 10:09
感谢澄清。

感谢澄清。
I have now found the following:

(1)仅使用BMI160的INT1输出和SFL模式(水印中断以及通过该引脚提供数据就绪中断)。
原因:
-In the code I have found "WKUPCT_PIN_SELECT" only for the pin connected to INT1 of BMI160
-It is my understanding from UM-B-063 7.3

(2) for BMM150, neither INT nor DRDY are used in the project.
原因:
-use_mag_drdy_intr未在项目中定义
-WKUPCT_PIN_SELECT is not used
-UM-B-063 7.3 states that the magnetometer works in "forced" mode

(3) On startup of BMI160, INT1 is disabled as output (I assume it will be High-Z) according to BMI160 datasheet section 2.11.20
因此,如果我确保使用BMI160_RETURN_FUNCTIZ_TYPE BMI160_SET_INTR_1_OUTPUT_ENABLE_U8(U8 v_output_enable_u8)相应地设置SYS_CTRL_REG [DEBUGGER_REG [DEBUGGER_REG [DEBUGGER_REG [DEBUGGER_REG [DEBUGGER_ENABLE]

Could you please confirm?

Best regards
Johannes

PM_Dialog
Offline
Last seen:15 hours 51 min ago
Staff
加入:2018-02-08 11:03

Hi gme_johannes,

Yes, I confirm the (1) and (2). According to UM-B-063 document your conclusion is correct. Regarding the (3), if am able to understand correctly, you want to replace the INT1 (P0_6) to one of the SWDIO/SWCLK pins of the 583? In case you want to do something like that, you should activate and deactivate the INT1 under conditions, because you will have two signal in one line, so you should manage it. Otherwise, you will have an interference between these signal and the sensor will toggle unexpectedly.

谢谢pm_dialog.