【问题标题】:Arduino not forming Bluetooth connection/sending sensordata from arduino to androidArduino没有形成蓝牙连接/将传感器数据从arduino发送到android
【发布时间】:2015-07-18 02:29:21
【问题描述】:

我正在使用 arduino Mega ADK 和 RedBear BLE shield。 目标是让arduino通过蓝牙将传感器数据发送到androidphone(nexus 7)。传感器应为加速度计/陀螺仪类型。

我使用 RedBears SimpleChat 作为起点来了解它是如何工作的,但我遇到了一些问题。当我使用来自 google play store 的 RedBears 自己的应用程序和他们分发的示例时,一切正常。应用程序找到了 arduino,我可以通过这种方式连接到它。 但是没有应用程序我无法连接到 arduino,它只是......拒绝它。我已经尝试过更改我的平板电脑设置,但这似乎是不可能的。

另外,如果我将任何其他代码(不是我的意思是来自 redbear)运行到 arduino,平板电脑将无法再通过蓝牙连接找到 arduino,任何具有 BT 查找属性的应用程序也无法找到。

所以我想弄清楚的是:

  • 一种无需 redBear 应用即可将平板电脑连接到 arduino 的方法。
  • redBear BLE 防护罩是否会以某种方式阻止其他代码通过?
  • redBear 是否有某种比其他人更好的 BT 方法?

非常感谢任何帮助、示例或答案。 抱歉英语不好-_-

【问题讨论】:

  • “但是我无法在没有应用程序的情况下连接到 arduino,它只是......拒绝它”-您在没有应用程序的情况下尝试连接到 arduino 的内容和方式。
  • 因为你使用BLE?您需要一个适当的接口来在电路板和电话之间进行通信。 BLE 不像普通的蓝牙,它不能用作串口。

标签: android bluetooth arduino android-sensors arduino-ide


【解决方案1】:

这是 RedBearLab 为 Android https://github.com/RedBearLab/Android 提供的 SDK。它还包含示例。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-12-15
    • 2013-10-26
    • 1970-01-01
    • 1970-01-01
    • 2014-07-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-17
    相关资源
    最近更新 更多