在 android 台设备上处理从蓝牙接收的数据

Process the data received from bluetooth on android device

我正在为一个项目编写一个应用程序,它检测光强度等。 该应用程序应该从 android 设备向 Arduino 板发送命令并从中接收数据。它作为蓝牙终端,我已经完成了。

现在,我想处理收到的数据。 我想: 1、绘制数据; 2、只显示xxx范围内的数据。

谁能给我一个开始的提示?比如我应该使用什么方法或我可以查看的网站?

1,绘制数据:您可以使用java canvas 方法或某些库,例如http://www.android-graphview.org/(最有可能使用canvas 方法,因为移动设备上的 svg 性能不佳)或 svg

2,仅显示 xxx 范围内的数据:没有真正理解问题...为什么不简单地将值放在 arduino 上(甚至不发送它们)或机器人?

除此之外,已经有一个应用程序可以完全按照您的意愿执行(将数据发送到 arduino 并在 android 上绘制数据):https://play.google.com/store/apps/details?id=sakulstra.androidbluetooth&hl=de 很可能还有其他应用程序(google 对于 "android bluetooth graph")