woensdag 3 mei 2017

micro bit pairing bluetooth problems

microbit

1 problems

I flashed code into my micro:bit via Bluetooth and it no longer works.

2 Can my phone /tablet pair with the micro:bit?

Since the BBC micro:bit employs the low energy version of Bluetooth wireless communication, the iPhone or iPad running the app must have Bluetooth low energy capability. Unfortunately this excludes some older models. Basicly all new android phones/tablet and apple device will work.

3 Normal pairing how does it work?

The method of pairing requires holding down buttons A and B and pressing and releasing the RESET button. Normally, A and B need to be held until the message “PAIRING MODE..” begins to scroll across the LEDs. The requirement of entering a pattern and 6-digit code ensures security in an environment where there may be several micro:bits.

4 re-instate Bluetooth after previously using MicroPython

5

A compiled HEX file contains not only your script code but also ‘runtime’ and ‘bootloader’ code. Bluetooth communication depends upon the runtime and bootloader code in micro:bit. If the runtime or bootloader code in micro:bit is corrupted or overwritten with incompatible code, Bluetooth flashing and pairing will fail, and the only method of restoring it is to flash a suitable HEX file from a computer via a USB cable. Touch Develop and the Block Editor compile suitable HEX files. Currently, HEX files compiled from python scripts are not compatible with Bluetooth. From time to time the runtime and bootloader code from the website is updated, so it is good practice to create fresh HEX files by re-compiling your scripts.

6 What if I do not want to pair?

Bluetooth pairing takes time. n your project folder's root, you should have a file called config.json. All you need to do is ensure there's a property of the bluetooth json object called 'open' which has a value of 1. open=1 means 'no security'. Here's the first part of my config.json file:
{
    "microbit-dal": {
        "bluetooth": {
            "enabled": 1,
            "pairing_mode": 1,
            "open": 0,
            "dfu_service": 0,
            "event_service": 0,
            "device_info_service": 1
        },
        "gatt_table_size": "0x700"
    }
}

7 Is your micro:bit board in Maintenance mode by mistake?

Author: 10A
Created: 2017-05-04 Thu 11:53
Emacs 25.0.50.1 (Org mode 8.2.10)

Geen opmerkingen:

Een reactie posten