Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    BHI 160无法产生Host Interrupt信号

    BHI 160无法产生Host Interrupt信号

    zhouy
    Member

    当使用ACTIVITY_RECOGNITION功能时,如果不读取FIFO,Host Interrupt信号一直不会产生,需要一直读取FIFO,INT引脚才会发出中断信号。但是这样就无法通过INT引脚唤醒MCU,另外,ORIENTATION功能也是这种情况,无法在读FIFO之前发出Host Interrupt信号。

    以下是配置代码:

    if (bhy_install_sensor_callback(VS_TYPE_ACTIVITY_RECOGNITION,  VS_WAKEUP,  sensors_callback_basic))
    {
            return -GERRNO_INTER_M_ERR;
    }

    if (bhy_enable_virtual_sensor(VS_TYPE_ACTIVITY_RECOGNITION,  VS_WAKEUP,  1,  0,  VS_FLUSH_NONE,  0,  0))
    {
            return -GERRNO_INTER_M_ERR;
    }

    8 REPLIES 8

    您好:

              非常感谢,按照您的建议修改代码后,对Host Interrupt的疑问已经解决。但是现在还有一个小问题,刚开启VS_TYPE_ACTIVITY_RECOGNITION功能时,会有2~4次的误触发,就是传感器处于静止状态也会检测到运动,读FIFO后在回调函数判断sensor_id是VS_TYPE_ACTIVITY_RECOGNITION,2~4次误触发后,运动检测功能才正常工作,后续不会有误触发,请问有什么方法可以解决误触发的问题吗?

    BSTRobin
    Community Moderator
    Community Moderator

    Hello zhouy,

    加载完固件之后会收到几次中断,这是activity的初始状态。你可以在软件上不处理刚加载完固件的那几次中断,但FIFO要读。

    您好:

            请问有什么方法可以改变虚拟传感器ACTIVITY_RECOGNITION的检测灵敏度吗,测试的时候发现有些不剧烈的运动不能被检测到。另外,虚拟传感器ACTIVITY_RECOGNITION的采样率好像不能通过sample_rate参数进行设置,这导致有些运动检测结果报告延迟时间较长。

    BSTRobin
    Community Moderator
    Community Moderator

    Hello zhouy,

    ACTIVITY_RECOGNITION是固件里面的算法对一类活动的识别,算法只输出结果,不支持参数配置。

    Activity recognition data.png

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist