[英]Process the data received from bluetooth on android device
I am writing an application for a project, which detects light intensity and etc. The application is supposed to send out command from android device to Arduino board and receive data from it. 我正在为一个项目编写应用程序,该应用程序可以检测光强度等。该应用程序应该从android设备向Arduino开发板发送命令并从中接收数据。 It serves as a bluetooth terminal, which I have already finished.
它用作一个蓝牙终端,我已经完成了。
Now, I want to process the data I received. 现在,我要处理收到的数据。 I want: 1, graph the data;
我要:1,绘制数据图; 2, only show data in xxx range.
2,仅显示xxx范围内的数据。
Can anyone give me a hint to start? 谁能给我提示开始吗? Like what method I should use or website I can look into?
像我应该使用哪种方法或可以进入的网站?
1, graph the data : you can use java canvas methods or some library like http://www.android-graphview.org/ (which most likely uses canvas methods due to bad svg performance on mobile devices), or svg 1,绘制数据图 :您可以使用Java canvas方法或某些库,例如http://www.android-graphview.org/ (由于移动设备上的svg性能不佳,很可能使用canvas方法)或svg
2, only show data in xxx range : don't really get the question... why not simply drop the values on arduino(dont even sent them) or on andoid? 2,仅显示xxx范围内的数据 :并没有真正解决问题...为什么不简单地将arduino(甚至不发送它们)或andoid上的值删除?
Besides that there is already an application which does exactly what you want to do (sending data to arduino and plotting data on android): https://play.google.com/store/apps/details?id=sakulstra.androidbluetooth&hl=de and most likely some others (google for "android bluetooth graph") 除此之外,已经有一个应用程序可以完全满足您的要求(将数据发送到arduino并在android上绘制数据): https : //play.google.com/store/apps/details? id=sakulstra.androidbluetooth &hl=de和最有可能的其他一些(Google代表“ android蓝牙图表”)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.