microsoft / microsoft/pxt-microbit

Experimental Bluetooth Download not working in V2

Open
#3,891 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bluetooth experiments P2
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

Describe the bug

The experimental feature "Bluetooth Download" is not working in micro:bit V2.

To reproduce

Steps to reproduce the behavior:

  1. Open this project in MakeCode. It is a test project that prints "Hello World", with Bluetooth configuration "No Pairing Required".
  2. Program the HEX file associated to this project to the micro:bit using USB drag and drop.
  3. Now open this project in MakeCode. It is a "catch the dot" game, with Bluetooth configuration "No Pairing Required".
  4. Enable the experimental feature Bluetooth Download in MakeCode (go to "More..." > "About..." > "Experiments").
  5. Reset the micro:bit while pressing A+B (a LED animation appears and then the Bluetooth logo).
  6. Go to "More..." (gear symbol) > "Pair Bluetooth" and then select the micro:bit.
  7. Check the Bluetooth icon appears in the browser tab. Click "Download".
  8. See error: instead of flashing the program via Bluetooth, the HEX file is downloaded to the computer.

This happens just with micro:bit V2. With micro:bit V1, it works as expected.

Expected behavior

In step 8. the program should have been flashed to the micro:bit via Bluetooth.
As with micro:bit V1.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the linked MakeCode projects on a micro:bit V2, following the Bluetooth Download experiment steps and confirming that Download saves a HEX file instead of flashing it. Compare the same flow on micro:bit V1 and trace the Bluetooth Download and Download actions to identify where the V2 path diverges; done means the program flashes over Bluetooth as it does on V1.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.