第一个是在SmartBond无线测距(wia) SDK上创建的,另一个是基于RSSI的。DA14531社交距离应用程序也在DA14531 TINY模块上运行!
点击here了解更多详情!< / 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 / da1469x”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > DA1469x < / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords / da14531”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > da14531 < / > < / div > < div class =”field-item甚至“> < a href = " / resource-keywords / da14531-tiny-module”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > da14531很小模块< / > < / 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 / da14531”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > DA14531 < / > < / div > < / div > < / div >
通过读取寄存器,命令如下(参见附加的控制台会话):
AT+IOCFG= 9.7
AT+IOCFG=8,8
AT+I2CCFG=7,100,16
AT+I2CREAD=0x40,0xFE
这里0x40是传感器I2C地址,0xFE是传感器寄存器地址。这样应该读取2字节传感器的制造商ID。然而,只读取第一个ID字节,通过读取第二个字节,模块只向传感器输出8个SCL脉冲(而不是9个)并挂起。见附呈的逻辑分析仪图像。上拉I2C电阻是4.7K,所以它们不是问题。大约3分钟后,模块自身复位,并在终端窗口打印+READY。 All previous configuration of I2C pins is reset and forgotten.
By writing to the senswor config register, the module composes the right number of SCL pulses, but does not compose the STOP condition at the end of communication and leaves the SCL line low. The writing is done by the following command, see the logic analyser image attached:
AT+I2CWRITE=0x40,2,0
where 2 is the sensor register address, and 0 is the value to write.
I also tried other sensors and combinations of 1- and 2-byte registers. Nothing works as expected.
Question: is it a known issue with the module and one should wait for a new firmware release or there is a way to fix it?