Microbit as Eddystone beacon

Posted on
  • OK, I am not an expert on Eddystone beacons. I have got two ordered from China so I can actually see how they use Eddystone-URL.
    I have seen it demonstrated in this post (true, not with micro:bit) and since I managed to get the micro:bit work as an iBeacon, this (have it behave like an Eddystone-URL) sounded easy.
    I failed to get the mBed code working, although this page does have nice documentation, and when trying to adapt the BLE API code that Dough posted I also failed up to now.

    I used the Eddystone URL script to create:

    setInterval(function() {
      NRF.setName('Testing Espruino');
        0x10 : [
            0x03,  // Length of Service List
            0x03,  // Param: Service List
            0xAA, 0xFE,  // Eddystone ID
            0x13,  // Length of Service Data
            0x16,  // Service Data
            0xAA, 0xFE, // Eddystone ID
            0x10,  // Frame type: URL
            0xF8, // Power
            0x03, // https://
    }, 30000);

    The name-change works, but as soon as I scan it, I receive an error:

    Uncaught Error: Got BLE error code 12
     at line 25 col 15
    in function called from system

    It only happens when I use an app, not right away. The name-change does work however. No Eddystone related info is shown though.
    If I make the URL short enough, no error is thrown, but the lack of info remains and no tools that scan for beacons recognise the microbit as a beacon.

    That is as far as I got. Hope you can help me. Thanks! :)

    1 Attachment

    • Screenshot_2016-07-27-13-56-24.png
  • Looks like the conversation has now moved to: http://forum.espruino.com/conversations/­284474/#13123443

    Sorry about that :)

  • Just in case someone comes looking for the answer here. The video + write-up are available: Turn your BBC micro:bit into an Eddystone-URL beacon using Espruino

    1 Attachment

    • Eddystone_beacon_screenshot_video.png
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Microbit as Eddystone beacon

Posted by Avatar for Pierre @Pierre