亲爱的对话框,
This is Vishnu, we purchased IoT Sensor Dongle Module long back in July. Initially, we tried to connect this Senor Dongle to our smartphone by provided IoTsensor app, we are able to see the 3D movement and graphs of raw data. After a while, we thought that we want to read raw data values of each sensor which presents in Sensor Dongle module. For that, we used an external module to read the raw sensors data via a Bluetooth connection. We successfully connected to the external module and able to display some data on our debug window of the external module.
32字节的数据在我的调试窗口显示AS:02 01 06 03 02 A7 2E 0B 09 49 6F 54 2D 44 4B 2D 53 46 4C 06 FF D2 00 00 00 00 00 00
问题是我应该如何确保上面显示的数据是连接的传感器加密狗的数据?当我移动时,此数据不会更改,旋转传感器加密狗模块。
在任何手册中有任何具体定义IOT传感器加密狗的原始数据值。
The way which I followed is correct or by any other method, I can read the raw sensor data? please mention if any other method exists.
谢谢。
Vishnu.
Hi vishnuatdialog,
我没有完全获取要描述的外部模块,但您可以连接到通用BLE应用程序并获取设备发送到蓝牙的原始值(您必须触发IoT传感器应用程序发送的相应命令)。这已经解释说明如何在较旧的帖子中进行,在点(7)中。
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...
关于UART上的值的打印并能够意识到通过BLE界面发送的值与UART侧的打印相同,没有默认的功能,允许您这样做,但是您可以添加一些代码才能打印通过BLE发送的值,例如,您可以在user_add_sensor_report_acc_gyro_mag()函数中放置一些打印指令,以便打印推出朝向BLE界面的数据。例如,通过放置以下代码(DBG_MSG3(“ACC数据x:%i,Y:%i,z:%i \ n \ r”,sensor_data.accel_xyz.x,sensor_data.accel_xyz.y,sensor_data.accel_xyz.z);)在pdrc-> val_z = sensor_data.accel_xyz.z下方右侧;指令将打印在BLE报告中推送的值。
谢谢mt_dialog.
亲爱的对话框,
正如您在我的旧版中的第NO:7中提到的那样,我将IoT-DK-SFL传感器加密狗模块连接到通用应用程序(NRFConnect)。通过使用Control Point WR命令,我写了0x01,之后我能够看到所有传感器以十六进制格式的实时特征值。我附上的图片在这里突出显示了加速度计(Acc_hexdecimal_data)和温度传感器(Temp_hexdecimal_data)的日志信息。如果我想将这些十六进制值转换为原始数据:2G for ACC,10°C TEMP。
How should this conversion happen?
My second question is, before connecting IoT-DK-SFL sensor dongle module to the nrfconnect app, nrfconnect shows the nearby advertising devices like in the attached picture(advertising_devices). When I tap on the IoT-DK-SFL it showing the all device information. In that what is mean by RAW and Incomplete list of service UUID, which I was highlighted in the picture(advertisng_devices)?
录制后原始它向我展示了32个字节的数据hich was mentioned in my first comment of this post. I am attaching a picture of this RAW data also, please find it with the picture name "RAW 32-bytes data".
现在来开始这篇文章,我提到的是我通过Server-Client方式通过蓝牙连接将IoT-DK-SFL模块连接到外部蓝牙模块。在我的外部蓝牙模块的调试窗口中,我能够查看IoT-DK-SFL传感器加密狗模块的名称,RSSI值,蓝牙地址和32字节原始数据。但我无法看到我们传感器的服务和特征UUID和价值观。
附件由ZIP格式的所有图片组成。
谢谢。
Vishnu.
Hi vishnuatdialog,
这取决于您在连接的另一端使用的应用程序(与IOT连接的客户端),您获得的值是十六进制的小endian格式,并且应用程序也将标题应用于该值为了标记从外设发送到设备的数据(您能够在UM-B-063DA14583 IOT传感器开发套件中找到数据的结构和通知包中的值)。因此,让我们掌握从Acc_hexadecimal_data.png中获得的第一个数据,第一个通知是(0x)01-02-03-1F-03-CA-FF-30-40,如果您解码您将获得:
Regarding interpreting those data as acceleration, temperature and angular velocity, that depends on the settings that you have on each sensor, the datasheet of the sensor indication the proper conversions in order to get what you need.
Regarding the values that you get on the device, i suppose that the RAW is a functionallity of the application and if you press it will indicate the advertising data of the device without the application parsing the tags of the advertising string, for example the tag 0x02 means that the following data are a list of 16-bit UUID services that the device supports but the there are also additional services not mentioned in this list. Please check the advertising flags in the BLE specification.
我不确定我得到最后一个问题,我想你将你的设备连接到通用蓝牙客户端加密狗,所以你能够连接到设备,但你不能看到服务和数据,顺序井为了能够看到外围设备的服务,客户端应该发起发现过程,以便“发现”外围设备的特征,在客户端设备知道设备的可用特征之后,它应该按顺序发送一些命令对于IoT传感器加密狗开始向客户报告(与您使用手机与通用应用程序完全一样)。
谢谢mt_dialog.
你好Vishnu,
can you please tell us how to get the log file using nrfconnect app?
如果您可以为我们提供一个步骤,我们可以获得日志。
have you tried to capture sensor fusion data as well or you just capture raw data?
Thanks,
Divya
Hi Divya Panchal,
首先,您必须在Android Mobile上安装NRF Connect,NRF Logger应用程序。
Now connect your IOT sensor dongle to the nrfconnect app. Then by using control point WR command write 0x01 in nRF connect app, with this you have triggered the sensor dongle for sending the raw data to the nRF connect app. Now go to individual UUID of sensors and it the down arrow for reading raw sensor data. The raw sensor data is in hexadecimal format and it is changing rapidly. After this when disconnecting the dongle from the nRF connect app there you will get a message on the screen for saving the log, click yes. Now the log data saved in the nRF Logger app. That's it there you can see your log information.
No, I haven't tried for capturing the sensor fusion data.
谢谢
D.Vishnu