sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
464 stars 179 forks source link

Blend Micro: Device not discoverable by Android BLE Controller app #14

Closed AndrazP closed 9 years ago

AndrazP commented 9 years ago

I tried BLEControllerSketch and SimpleChat example on Blend Micro, but I can't connect to the board with BLE Controller app for Android. The board is not discoverable. I don't have this problems with Read bear lab examples. I'm doing something wrong? I see pins are already set correctly for blend micro.

AndrazP commented 9 years ago

The same story with LigthBlue app for Mac. With this library examples the device is not discoverable, RBL examples work fine.

sandeepmistry commented 9 years ago

@AndrazP works for me when I open the serial monitor. Can you please try this?

I think the while(!Serial) {} needs to be removed.

AndrazP commented 9 years ago

No, this is not a problem. Because I get "BLE UART Peripheral" string which is printed on the end of setup(); loop() is also working, but I can connect to the board because it's not visible.

sandeepmistry commented 9 years ago

Weird, both examples are working for me, and I can see the device from my Mac (OS X 10.10) and iPhone (iOS 8.1.2).

Can you run we debug on, uncomment: https://github.com/sandeepmistry/arduino-BLEPeripheral/blob/master/nRF8001.cpp#L3

AndrazP commented 9 years ago

Tried once more and it can be detected with every BLE app, with my Android app, only with Red bear lab BLE Controller app not. Thanks for great library!

sandeepmistry commented 9 years ago

@AndrazP thanks for the followup.

Just to clarify, you we're trying to use this example app? https://github.com/RedBearLab/Android/tree/master/Examples/BLEController

AndrazP commented 9 years ago

Demo app from play store: https://play.google.com/store/apps/details?id=com.redbear.redbearbleclient

sandeepmistry commented 9 years ago

@AndrazP I'm seeing the same thing with my Nexus 7 running 5.0 and the app. Couldn't see anything obvious in the Android SDK they open sourced.

However, their iOS app detected the Blend Micro running the RBL contributed examples.