C代码通过linux中的蓝牙串口配置文件从nonin Pulse Oximeter设备读取数据

时间:2023-02-10 15:09:51

I am trying to communicate to the Nonin Pulse oximeter device to read the data (Pulse rate and SPO2 level) via Bluetooth. Nonin device supports SPP and HDP profile. I want to communicate through SPP profile. I am able to scan and pair with the device by the sample code available in Bluez. Please tell me next steps how to send command and read data from the device. I have got struck at this point.

我正在尝试与Nonin Pulse血氧仪设备通信,以通过蓝牙读取数据(脉冲率和SPO2水平)。 Nonin设备支持SPP和HDP配置文件。我想通过SPP个人资料进行交流。我可以通过Bluez中提供的示例代码扫描并与设备配对。请告诉我下一步如何从设备发送命令和读取数据。我在这一点上受到了打击。

1 个解决方案

#1


0  

I realize this is a late response, but I recently setup data acquisition from a Nonin PalmSAT 2500A VET unit. I am using the RTC-1000 cable and an RS232 to USB converter.

我意识到这是一个迟到的反应,但我最近设置了从Nonin PalmSAT 2500A VET单元获取数据。我正在使用RTC-1000电缆和RS232转USB转换器。

This is straight from the manual:

这直接来自手册:

"Information from the device, in the real-time mode, is sent in an ASCII serial format at 9600 baud with 9 data bits, 1 start bit, and 1 stop bit. The data are output at a rate of once per second.

“来自设备的信息,在实时模式下,以9600波特的ASCII串行格式发送,有9个数据位,1个起始位和1个停止位。数据以每秒一次的速率输出。

NOTE: The 9th data bit is used for odd parity in memory playback mode. In real-time mode, it is always set to the mark condition. Therefore the real-time data may be read as 8 data bits, no parity.

注意:第9个数据位用于存储器播放模式中的奇校验。在实时模式下,它始终设置为标记条件。因此,实时数据可以被读取为8个数据位,没有奇偶校验。

Real-time data may be printed or displayed by devices other than the pulse oximeter. On power up a header is sent identifying the format and the time and date. Thereafter, the data are sent once per second in the following format:

可以通过除脉搏血氧计之外的设备打印或显示实时数据。上电时会发送标题,标识格式,时间和日期。此后,数据每秒发送一次,格式如下:

SPO2=XXX HR=YYY

where “XXX” represents the SpO2 value, and “YYY” represents the pulse rate. The SpO2 and pulse rate will be displayed as “---” if there are no data available for the data reading."

其中“XXX”表示SpO2值,“YYY”表示脉搏率。如果没有可用于数据读取的数据,SpO2和脉率将显示为“---”。

Link to manual: http://www.proactmedical.co.uk/proshop_support_docs/2500aman.pdf

链接到手册:http://www.proactmedical.co.uk/proshop_support_docs/2500aman.pdf

What model oximeter are you working with?

您正在使用什么型号的血氧计?

#1


0  

I realize this is a late response, but I recently setup data acquisition from a Nonin PalmSAT 2500A VET unit. I am using the RTC-1000 cable and an RS232 to USB converter.

我意识到这是一个迟到的反应,但我最近设置了从Nonin PalmSAT 2500A VET单元获取数据。我正在使用RTC-1000电缆和RS232转USB转换器。

This is straight from the manual:

这直接来自手册:

"Information from the device, in the real-time mode, is sent in an ASCII serial format at 9600 baud with 9 data bits, 1 start bit, and 1 stop bit. The data are output at a rate of once per second.

“来自设备的信息,在实时模式下,以9600波特的ASCII串行格式发送,有9个数据位,1个起始位和1个停止位。数据以每秒一次的速率输出。

NOTE: The 9th data bit is used for odd parity in memory playback mode. In real-time mode, it is always set to the mark condition. Therefore the real-time data may be read as 8 data bits, no parity.

注意:第9个数据位用于存储器播放模式中的奇校验。在实时模式下,它始终设置为标记条件。因此,实时数据可以被读取为8个数据位,没有奇偶校验。

Real-time data may be printed or displayed by devices other than the pulse oximeter. On power up a header is sent identifying the format and the time and date. Thereafter, the data are sent once per second in the following format:

可以通过除脉搏血氧计之外的设备打印或显示实时数据。上电时会发送标题,标识格式,时间和日期。此后,数据每秒发送一次,格式如下:

SPO2=XXX HR=YYY

where “XXX” represents the SpO2 value, and “YYY” represents the pulse rate. The SpO2 and pulse rate will be displayed as “---” if there are no data available for the data reading."

其中“XXX”表示SpO2值,“YYY”表示脉搏率。如果没有可用于数据读取的数据,SpO2和脉率将显示为“---”。

Link to manual: http://www.proactmedical.co.uk/proshop_support_docs/2500aman.pdf

链接到手册:http://www.proactmedical.co.uk/proshop_support_docs/2500aman.pdf

What model oximeter are you working with?

您正在使用什么型号的血氧计?