Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 10 months ago.
IBeacon not working
Hey i was using the code from http://developer.mbed.org/teams/Bluetooth-Low-Energy/code/BLE_iBeacon/file/9e6dff2c4c70/main.cpp
I am using this chip ( http://i.imgur.com/q8EM4uq.jpg ), it is nordic nRF51822 but i exactly do not know its peripheral config but its not mKit. I am using stlink v-2 to flash the chip using openocd from my linux system. I am using CMake to make a .hex file which is flashed into the chip. Along with the main program , i am cmaking the libraries - https://github.com/mbedmicro/mbed,https://github.com/mbedmicro/BLE_API and https://github.com/mbedmicro/nRF51822 .
Here is a gist of my main.cpp program and CMakeLists.txt https://gist.github.com/dhruvagarwal/64317c5cb96e396f1421
The .hex that is get is flashed properly in the chip.
I am testing this on my android phone via nordic Beacon App and iBeacon Detector App ( https://play.google.com/store/apps/details?id=youten.redo.ble.ibeacondetector )
I want my chip to be detected as an Ibeacon but its only being detected as a bluetooth device.
Kindly tell what things i am missing / some fixes i should do to make things work as required.
Thanks in Advance
Question relating to:
1 Answer
9 years, 10 months ago.
I can't reproduce the problem you're reporting. I am able to build the BLE_iBeacon demo for the Nordic mKit and get it to function like an iBeacon. Please remember to set the platform in the IDE correctly. If there is an error in flashing the program, the interface firmware presents an error.html (or something similar) in the virtual USB filesystem upon reconnecting. You might want to reset/hard-power-cycle the board before the demo runs.