通过支持蓝牙的微控制器通过 Android 手机拨打电话
我的最终目标是拥有一个带有蓝牙的微控制器,可以通过蓝牙通过任何支持蓝牙的手机拨打电话。我目前有一部 Android 手机,如果我可以拨打电话就太好了,但我愿意购买任何手机。
这是我的高级设计,我对手机的内部结构缺乏了解。我目前可以从我的微控制器与名为 BlueTerm 的 Android 应用程序进行通信,该应用程序只是蓝牙终端,所以我知道微型端已准备就绪。
我假设要通过电话拨打电话,您使用 AT 命令吗?
Android 看到我的蓝牙设备,但显示“已配对,但未连接”。我假设有一些标准协议并允许手机同步到蓝牙设备?
我对这个问题了解不多。如果您能提供任何帮助或能为我指明正确的方向,我将不胜感激。
my end goal is have a microcontroller with bluetooth make calls through any bluetooth enabled phone via bluetooth. I currently have an android phone and it would be great if i could place calls onto that, but i am willing to purchase any phone.
This is for my senior design and i have a lack of knowledge when it comes to the guts of cell phones. I currently can talk from my microcontroller to an Android app called BlueTerm, which is just a terminal for bluetooth, so i know the micro side is ready to go.
Im assuming that to place calls through a phone, you use AT commands?
The android sees my bluetooth device, but says "paired, but not connect". Im assuming there is some standard protocol and allow the cell phone to sync to the bluetooth device?
I dont konw much on this subject. If you could be of any assistance or could point me in the right direction, it would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许首先是“坏”消息:
Android 本身不提供任何类型的“调制解调器”功能或类似功能。意思是:没有内置AT命令来通过蓝牙控制手机。
好消息是:Android 手机几乎可以通过适当的应用程序以任何您能想到的方式进行控制。
因此,您可能想要的方式(如果您想坚持使用 Android)是编写自己的特定 Android 应用程序,该应用程序
要开始 Android 应用程序开发,您可以访问 http://developer.android.com/index.html 。如果您之前没有编写过 Android 应用程序,请准备好学习很多新概念。
也许您可以利用一两个示例应用程序,例如“蓝牙聊天”。
这仅表明您的 µC 蓝牙模块与手机之间配对成功,并且手机存储了配对信息,以便将来连接时无需重复输入 PIN。 “未连接”部分应该意味着当前没有与指定设备建立连接,但是,在我的手机上我从未见过“配对并连接”或类似的内容。不知道为什么。
对于 Android,Google 决定仅实现 RFCOMM 蓝牙连接,其中一个特殊的连接是 SPP 串行端口仿真,这可能正是您的 BT 模块和 BlueTerm 使用的。
Maybe the "bad" news first:
Android itself does not provide any kind of "modem" functionality or the like. Means: There are no AT commands built in to control the phone via bluetooth.
The good news is: The Android phone can be controlled in almost any way you can think of by an appropriate app.
The way you might want to go (if you want to stick to Android) is thus to write your own specific Android app which
For a start on Android app development, you may go to http://developer.android.com/index.html. If you haven't written Android apps before be prepared to learn a lot of new concepts.
Maybe you can leverage one or two of the example apps, like "Bluetooth Chat".
This is just the indication that pairing between your µC's Bluetooth module and the phone was successful and that the phone stored the pairing information to allow future connections without repeated input of a PIN. The "not connected" part should imply that there is no connection currently established with the named device, however, on my phone I have never seen a "paired and connected" or similar. Not sure why.
For Android, Google settled for implementing only RFCOMM Bluetooth connections, a special one of those being the SPP serial port emulation which is probably just what your BT module and BlueTerm use.