Hi there,
I am wondering. Is there any way to plot a graph with DA14580 when the value is sent through custom profile of BLE? Do any apps that can help? I am having difficulty in analysing the data i am obtaining through BLE which the development kit is connected to a ECG module. The output of the ECG module is fed into the development kit and I am having problem to analyse since the value that I have obtained from BLE scanner from ADC VAL 1 in the custom profile is in hexadecimal value and it is an ECG signal. I need to analyse the r-r intervals in order to get the heart rate since there are many signal in the ECG where they are the PR segment, QRS complex and so on. Thanks for the help.
Device:
Hi herochua617,
Officially we don't have any debug tool to graph a veriable in real time for 580 now as far as I know, someone correct me if I'm wrong on this as I'm also kinda new to Dialog. Is your analysing work has to be done in real time? I mean if it's not neccessary to do this in real time you can always log the data for a period of time and then import to any kind of app that can plot graph or perform further analysing such as MATLAB, there should be a bunch of software that can do this.
谢谢Qinjiny_Dialog,
我懂了。我实际上在论坛上一直在问很多疑问。哈哈霍哈克。一般来说,我的项目就长期监测的ECG嵌入式系统。然而,我ADC的信号输出是由于心率是一个R_R间隔的度量,而不是直接等于心率的ECG信号形式,但是我希望获得心率的结果。我认为心率曲线适合我,因为它适用于那些直接产生心率的装置。我确实尝试通过使用BLE_APP_PERITIVELAL示例使用自定义BLE配置文件,但主要问题是,当通知打开时,来自ADC Val 1特性的值为十六进制。我无法分析我应该采取的R-R间隔来检测心率。我真的需要帮助,我对所有帮助对话都有深刻的赞赏。谢谢!
我看到,你需要某种算法将信号流转换为周期性尖峰,到这些尖峰之间的时间间隔,那么你可以使用时间间隔来计算实时呼吸率是的,可视化的输出应该使这很容易但是
a. I'm not able to provide such tool for now, perhaps my colleagues know such tools but I have no idea on this
b. you still need to process these data to get the actual intervals.
What I recommend is you log these values, graph it and find a proper algorithm to compute a threshold in order to identify the spikes, then you can use this threshold to record the comming of the spikes, thus you have the interval you need I suppose.
Hi there,
谢谢for the explanation. You've helped a lot. By the way, I would like to ask : how do you print out values in decimal from the ADC VAL 1 in the custom profile since the value will be in hexadecimal and also do you have any tutorials on how to get a log file from the development kit? Thanks.
Hi, another option that may be helpful - you can use the uart to print out values and capture this in a terminal window. You could capture the values over the ADC, then print out over uart using arch_console.h. You would just need to do the following: include arch_console.h in your application code. Make sure the following is defined CFG_PRINTF_UART2 in your config files. In user_periph_setup.h, make sure the UART is set P0_4 and P0_5.
现在,您可以直接使用ARCH_PRINTF()直接打印出您的值,并将其从终端复制到文本或CSV文件中。如果使用CSV文件,则应使用分隔符打印出来,说逗号和Excel将这些值解析为不同的块。
Also, the heart rate profile does support R-R intervals. Please reference the BT SIG documentation:https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=239865
谢谢!
//Jon
Hi there,
另一个问题,我怎么能改变displ价值ay in the BLE Scanner to be decimal values?
谢谢
Hi there,
我找到了这个。我想用它来做图表绘图。https://www.mathworks.com/matlabcentral/fileexchange/28941-real-time-dat.... Meanwhile, I have error in the MATLAB. Just wondering, will the uart connection be available if I want to boot from the flash memory?
谢谢。
Hi,
Supporting Matlab and BLE Scanner is outside the scope of the form. arch_printf() acts as the typical C library printf, so you can cast values to decimal - however, you are printing over UART so you will need the ASCII equivalent - the web should have plenty of information on how to do this.
Utilizing the UART will not have any impact on the bootloader. The bootloader will run on reset, and when using cli_programmer or Smart Snippets Toolbox, you will be prompted for a reset.
谢谢,
//Jon
Hi there,
I have asked something about the BLE scanner topic in another topic since this topic will be unrelated. Please refer to hishttps://support.dialog-semicondiondiondum/forums/post/dialog-smartbond-bl .... Thanks!