Hello everyone!
我正在尝试使用物联网传感器实现一个自由落体检测器,我希望自由落体检测中断取代任何运动检测。< br / >我试过,但一直不工作,这是我的代码:在用户sensor.c: < br / > < / p > < p >空白user_bmi160_config_low-g_intr (void) {< / p > < p > bmi160_set_low_g_enable (BMI160_ENABLE); < / p > < p > bmi160_set_low_high_g_source (0 x01); < / p > < p > / * BMI160数据表pg 63,int1嗨水平活跃——推挽输出* / < br / > bmi160_set_intr_1_output_enable (BMI160_ENABLE); < br / > bmi160_set_intr_1_output_level (BMI160_LEVEL_HIGH); < br / > bmi160_set_intr_1_output_odrn_pshpll (BMI160_OPEN_DRAIN); < br / > bmi160_set_intr_1_output_edge_level (BMI160_EDGE); < / p > < p > bmi160_set_intrs_latched (BMI160_LATCH_DUR_2_5_MILLI_SEC); < / p >
bmi160_set_reg_int_map_1(0x00);
bmi160_set_reg_int_map_2(0x00);
bmi160_set_low_g_threshold(0xff);
#define BMI160_INT_STATUS1_LOWG_INT_FLAG 0x08
void wkup_intr_non_connected_cb(void)
{
uint8_t bmi160_int_status=0;
if(GetBits16(SYS_STAT_REG,PER_IS_DOWN)) {< br / > periph_init (); < br / >} < br / > arch_ble_ext_wakeup_off (); < / p > < p > / / bmi160_get_reg_int_status_2(及bmi160_int_status); < br / > bmi160_get_reg_int_status_1(及bmi160_int_status); < br / > / / bmi160_get_reg_int_status_0(及bmi160_int_status); < / p > < p > DBG_MSG1(“科幻% x \ r \ n”醒来,(int) bmi160_int_status); < / p > < p > # ifdefUSE_low_g_WAKEUP
if(bmi160_int_status&BMI160_INT_STATUS1_LOWG_INT_FLAG){
wrbl_env. conf;
bmi160_soft_reset();
EXECUTE_DEFAULT_OPERATION_VOID(default_operation_adv);
}
#else
if(bmi160_int_status&
bmi160_set_sensor_state(ACC_SUSPEND);
bmi160_set_sensor_state(GYR_SUSPEND);
EXECUTE_DEFAULT_OPERATION_VOID(default_operation_adv);
Hello!
我正在尝试连接两个对话物联网传感器在一起。基本上,其中一个将是每个文档描述的从属,
但另一个将扮演主角色,我找不到任何文档描述的东西。有什么地方可以找到关于这个话题的有用信息吗?
谢谢大家!< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / iot-sensor-development-kit”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >物联网传感器开发工具包< / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords / da14583”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > da14583 < / > < / div > < div class =”field-item甚至“> < a href = " / resource-keywords / da14580”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > DA14580 < / > < / div > < / div > < / div > < div class =”字段field-name-field-device field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >设备:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / forum-post-device / DA14580”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > DA14580 < / > < / div > < / div > < / div >
我读取样本代码,发现默认的采样率是25hz。
是否有配置文件可以调节传感器的采样率和范围?
你能给我一些提示吗?谢谢。< / p > < p >问好,猫王< br / > < / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / iot-sensor-development-kit typeof =“skos:概念”property="rdfs:label skos:prefLabel" datatype="">IOT Sensor development kit