I am developing an android application for an embedded device that uses android 2.1. The bluetooth protocol stack is bluez. I cannot find any documentation related to bluez, and the source code is quite hard to read as it is not commented at all! There seems to have been a bluez wiki, but that site has been down for some time now...
我正在开发一个使用android 2.1的嵌入式设备的Android应用程序。蓝牙协议栈是bluez。我找不到任何与bluez相关的文档,源代码很难阅读,因为它根本没有评论!似乎有一个bluez维基,但该网站已经停止了一段时间......
Any help regarding where I might be able to find any help/documentation regarding how the bluez stack functions will be appreciated.
任何有关我可能能够找到有关bluez堆栈功能的任何帮助/文档的帮助将不胜感激。
Thanks!
谢谢!
3 个解决方案
#1
7
Actually not all Android devices use BlueZ stack as the underline bluetooth stack. It would be a good idea to stick with Android SDK bluetooth API if you want portability.
实际上并非所有Android设备都使用BlueZ堆栈作为下划线蓝牙堆栈。如果你想要可移植性,坚持使用Android SDK蓝牙API是个好主意。
This being said, http://people.csail.mit.edu/albert/bluez-intro/ is a nice bluez tutorial.
这就是说,http://people.csail.mit.edu/albert/bluez-intro/是一个很好的bluez教程。
#2
2
Aniruddha, you may want to try using DBus Interface to invoke BlueZ APIs.
Aniruddha,您可能想尝试使用DBus接口来调用BlueZ API。
#3
0
For Android application you should refer to the Android APIs. http://developer.android.com/reference/android/bluetooth/package-summary.html
对于Android应用程序,您应该参考Android API。 http://developer.android.com/reference/android/bluetooth/package-summary.html
Application need not know the underlying BlueZ libraries and its functionalities
应用程序无需了解底层的BlueZ库及其功能
#1
7
Actually not all Android devices use BlueZ stack as the underline bluetooth stack. It would be a good idea to stick with Android SDK bluetooth API if you want portability.
实际上并非所有Android设备都使用BlueZ堆栈作为下划线蓝牙堆栈。如果你想要可移植性,坚持使用Android SDK蓝牙API是个好主意。
This being said, http://people.csail.mit.edu/albert/bluez-intro/ is a nice bluez tutorial.
这就是说,http://people.csail.mit.edu/albert/bluez-intro/是一个很好的bluez教程。
#2
2
Aniruddha, you may want to try using DBus Interface to invoke BlueZ APIs.
Aniruddha,您可能想尝试使用DBus接口来调用BlueZ API。
#3
0
For Android application you should refer to the Android APIs. http://developer.android.com/reference/android/bluetooth/package-summary.html
对于Android应用程序,您应该参考Android API。 http://developer.android.com/reference/android/bluetooth/package-summary.html
Application need not know the underlying BlueZ libraries and its functionalities
应用程序无需了解底层的BlueZ库及其功能