Skip to content

Instantly share code, notes, and snippets.

@hbradio
Last active September 21, 2021 01:15
Show Gist options
  • Save hbradio/bd6804a3395e7c4b7e670c482e0c639d to your computer and use it in GitHub Desktop.
Save hbradio/bd6804a3395e7c4b7e670c482e0c639d to your computer and use it in GitHub Desktop.

micro-bit V2 connection debugging

Ubuntu, alpha

Chrome:

Uncaught (in promise) DOMException: Connection failed for unknown reason.

Micro:bit display:

From R to blank

Micro:bit serial port:

MicroBitBLEService::onConnect
MicroBitBLEService::onConnect
BLE_GAP_EVT_CONNECTED 1
bleConnectionCallback 0

MacOS, alpha and 130b24c

Chrome:

Uncaught (in promise) DOMException: GATT operation failed for unknown reason

or once,

Uncaught (in promise) DOMException: GATT Error: Not supported

or sometimes,

rover.js:56 Uncaught TypeError: Cannot read properties of null (reading 'gatt')

Micro:bit display:

From R to smiley

Micro:bit serial port:

MicroBitBLEService::onConnect
MicroBitBLEService::onConnect
BLE_GAP_EVT_CONNECTED 1
bleConnectionCallback 0
PM_EVT_CONN_SEC_FAILED
MicroBitBLEService::onWrite 13
MicroBitBLEService::onWrite 13
PM_EVT_CONN_SEC_FAILED

Possible help links?

Ubuntu, 130b24c

Chrome:

Uncaught (in promise) DOMException: GATT Server is disconnected. Cannot retrieve services. (Re)connect first with `device.gatt.connect`

Micro:bit display:

From R, flash, back to R

Micro:bit serial port:


MicroBitBLEService::onConnect
MicroBitBLEService::onConnect
BLE_GAP_EVT_CONNECTED 1
bleConnectionCallback 0
PM_EVT_CONN_SEC_FAILED
MicroBitBLEService::onDisconnect
onDisconnect
advertise
MicroBitBLEService::onConnect
MicroBitBLEService::onConnect
BLE_GAP_EVT_CONNECTED 1
bleConnectionCallback 0
PM_EVT_CONN_SEC_FAILED
MicroBitBLEService::onDisconnect
onDisconnect
advertise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment