BlackBerry 10 , BlackBerry OS 7.1 手机通过蓝牙串口读取Arduino 蓝牙传过来的温度 湿度信息
目标:BlackBerry手机通过蓝牙串口读取Arduino 蓝牙传过来的温度 湿度信息
硬件:Arduino主板 + DHT11温湿度传感器 + 蓝牙模块,开发工具C语言
手机:BlackBerry 9360手机,OS 7.1,开发工具Java
手机:BlackBerry 10 Alpha手机,OS 10.0.xxx,开发工具BlackBerry 10 NDK
通讯:手机和Arduino通过蓝牙连接
BlackBerry 9360手机上面的显示:湿度41,温度11(哈冷啊。。。。。。。。。。。。。。。。)
Arduino代码参考这里 http://playground.arduino.cc/Main/DHTLib
代码如下:
参考:
蓝牙串口服务 UUID '{00001101-0000-1000-8000-00805F9B34FB}'
https://bluetooth.org/Technical/AssignedNumbers/service_discovery.htm
http://www.cnblogs.com/lyout/archive/2011/04/11/2012175.html
BlackBerry 10 NDK Bluetooth API
http://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bluetooth/topic/manual/btspp.h_functions_overview.html
BlackBerry 10 NDK蓝牙例子(Bluetooth SPP Chat Example)说明
http://blackberry.github.com/Cascades-Samples/bluetoothsppchat.html
BlackBerry 10 NDK例子代码(包括蓝牙)下载
https://github.com/blackberry/Cascades-Samples/
安卓手机和Arduino蓝牙通讯例子 Data transfer between Android and Arduino via Bluetooth
http://english.cxem.net/arduino/arduino5.php