In order to test the sketch described on the previous page, you can use a free UART application from Nordic Semiconductors that's available in Apple's app store for recent iOS devices or Android's Play Store for Android 4.3 or higher devices.
Android: nRFUART 2.0
- Go to the Play Store and search for nRFUART 2.0, then install the application. If you can't find this application, your Android device probably doesn't support BLE or isn't running Android 4.3+!
- Load the 'callbackEcho' sketch onto your Arduino (File > Examples > Adafruit_nRF8001 > callbackEcho)
- Run the sketch and open the Serial Monitor (Baud Rate = 9600)
Be sure to use the 2.0 version of the app on Android. The earlier (non 2.0) version is based on a proprietary BLE stack for certain Samsung devices, which was created before Google added official support for BLE in Android 4.3.
Once the device starts advertising, you can open the nRFUART 2.0 application, and you should be able to connect to the 'UART' device, similar to the screenshot below:
Once you're connected, you can click on the 'send' textbox at the bottom, and any data you send out should show up in the Serial Monitor, and also get echoed back to the Android application, as seen below:
You will need an Android device running Android 4.3 or higher with BLE support to use this application. Nexus 4, Nexus 5 and Nexus 10 devices running the latest version of Android can all use this application, but other devices will need to be verified for BLE support.
If you wish to create your own Android BLE UART project, you can have a look at some Android source code from Tony Dicola that works with our UART service here: https://github.com/tdicola/BTLETest
iOS: nRF UART
If you are using a BLE-enabled iOS device (recent iPhones, iPod Touch models, iPads, etc.), you can also test this on iOS.- Download nRF UART application from Apple's App Store.
- Load the 'callbackEcho' sketch onto your Arduino (File > Examples > Adafruit_nRF8001 > callbackEcho)
- Once the sketch is running, open up the Serial Monitor at 9600 baud.
Page last edited March 04, 2014
Text editor powered by tinymce.