# Can I download the codes to EV3 via bluetooth?

**URL:** <https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501>\
**Category:** EV3\
**Created:** [August 31, 2019, 12:32am UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501 "2019-08-31T00:32:42Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [January 13, 2020, 7:43pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/21 "2020-01-13T19:43:46Z")

</div>

Hi Jeff, we’ve added a block to exit the program. Since MakeCode is an evented system, it’s not clear when the program is done.

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [January 13, 2020, 7:44pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/22 "2020-01-13T19:44:27Z")

</div>

Unfortunately, we do not have the bandwith to test this feature on Android. The Bluetooth support has been tested on MacOS and Windows successfully.

---

<div class="post-metadata">

**Author:** ![Rob](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@Rob](https://forum.makecode.com/u/Rob)\
**Post date:** [January 21, 2020, 7:59am UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/23 "2020-01-21T07:59:55Z")

</div>

Thank you for your answer.

Then I guess the same goes for Chromebook, or could it possibly work on that platform? I have tried and gotten the Bluetooth-button to appear in MakeCode, but unfortunately the bluetooth-connection keeps dropping so I’m not able to transfer anything.

I’m wondering if anyone has succeeded with Chromebook? The reality today is that few students have PC or Mac, while many are using Chromebooks or iPads, which I guess is due to the considerable price difference.

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [January 21, 2020, 3:04pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/24 "2020-01-21T15:04:23Z")

</div>

We pushed a fix for the BT connection over the weekend. Could you try again?

---

<div class="post-metadata">

**Author:** ![Rob](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@Rob](https://forum.makecode.com/u/Rob)\
**Post date:** [January 23, 2020, 12:23pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/25 "2020-01-23T12:23:05Z")

</div>

I tried again but did not get it to work. I have no problem getting it to work in the Lego app so the EV3 brick should be setup correctly for bluetooth transfer. I also have the latest 1.10E firmware installed.

I do the following steps in MakeCode for EV3:

1. Make a simple test program
2. Press the Download button.
3. Press the Bluetooth button in the “Download to you EV3” dialog.

A small window opens up that is supposed to show available units to connect to, but instead it writes “no compatible units found” and the “Connect” button is greyed out.

Do you have any idea what could be wrong?

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [January 23, 2020, 3:50pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/26 "2020-01-23T15:50:32Z")

</div>

Did you pair your EV3 brick with your computer before trying this in the browser? You should see the device once this is done.

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [January 23, 2020, 4:23pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/27 "2020-01-23T16:23:08Z")

</div>

Windows or Mac, what version? The WebSerial APIs are still in a beta quality phase so something might be up too there.

---

<div class="post-metadata">

**Author:** ![Allvodi](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Allvodi](https://forum.makecode.com/u/Allvodi)\
**Post date:** [March 10, 2020, 4:30pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/28 "2020-03-10T16:30:40Z")

</div>

Rob. I found that my Bluetooth dongle needed to have it’s settings changed: in Windows 10, Settings, Devices, Bluetooth, More Bluetooth Settings, Comm Port. Here you need to add your PC to the list of Comm ports.

---

<div class="post-metadata">

**Author:** ![maciejmrozinski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maciejmrozinski/32/1503_2.png) [@maciejmrozinski](https://forum.makecode.com/u/maciejmrozinski)\
**Post date:** [September 2, 2020, 9:42pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/29 "2020-09-02T21:42:31Z")

</div>

Hi,

I paired EV3 with my Windows 10 using 4-digit pair code (1234) and connection is successful. Then I ran MakeCode, did simple program and tried to upload it via bluetooth. All the time I receive errors like “download failed” (in attachments). I tried every combination of COM ports, pairing again, restarting brick, even stopping LabView Windows service and nothing helps. Can anyone help me with this issue?

![Screenshot (1)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/42887e5e34e076674d29684e810d50613fb89e12.png)

---

<div class="post-metadata">

**Author:** ![maciejmrozinski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maciejmrozinski/32/1503_2.png) [@maciejmrozinski](https://forum.makecode.com/u/maciejmrozinski)\
**Post date:** [September 2, 2020, 9:43pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/30 "2020-09-02T21:43:04Z")

</div>

Second error message

 ![Screenshot](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2abcb1557907b4064e7f8b0c28042bcde95e6e6b.png)

---

<div class="post-metadata">

**Author:** ![maciejmrozinski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maciejmrozinski/32/1503_2.png) [@maciejmrozinski](https://forum.makecode.com/u/maciejmrozinski)\
**Post date:** [September 3, 2020, 11:39am UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/31 "2020-09-03T11:39:18Z")

</div>

For anyone having the same issue as mine, the oldest fixing procedure works best: turn off and on again 😉 After restarting Windows (with stopped EV3 Device Manager service, startup type: manual) everything gone smooth 🙂

---

<div class="post-metadata">

**Author:** ![crimcol](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/crimcol/32/6258_2.png) [@crimcol](https://forum.makecode.com/u/crimcol)\
**Post date:** [May 20, 2022, 11:35pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/32 "2022-05-20T23:35:05Z")

</div>

I’m trying to make upload via Bluetooth but nothing works.  
I had EV3 Device Manager service is Running. After switching to Manual and even restarting a computer I still can’t connect.  
Does it work for anybody in 2022?

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [January 23, 2024, 5:38pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/33 "2024-01-23T17:38:45Z")

</div>

We are currently using MakeCode for Mindstorms in school, which work mostly fine, but still not able to download programs via Bluetooth.

Using Chromebooks, tried both regular and iOS mode on the EV3, tried different connection orders and able to choose the EV3 serial connection in the Chrome browser, but download doesn’t work and we get the same error message as in @maciejmrozinski’s image above.

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [January 23, 2024, 5:39pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/34 "2024-01-23T17:39:07Z")

</div>

Might it already have been fixed through this PR and issue by someone called @THEb0nny and approved by @peli, but not published to [https://makecode.mindstorms.com](https://makecode.mindstorms.com) yet?:

> <https://github.com/microsoft/pxt-ev3/pull/1033>
>
> 1. Add baudRate property and assign it with existing baudrate on connect.
> 2. Re…ad full packet from brick instead random one.
> 
> Corrected the code that was written by dmitryaleshin.
> 
> https://github.com/microsoft/pxt-ev3/pull/1031

> <https://github.com/microsoft/pxt-ev3/issues/998>
>
> I tried to load the bluetooth code into EV3. But now it cannot be done. An error… is always thrown. Try it yourself. Something might have been updated in Chrome.
> @pelikhan

---

<div class="post-metadata">

**Author:** ![THEb0nny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theb0nny/32/3500_2.png) [@THEb0nny](https://forum.makecode.com/u/THEb0nny)\
**Post date:** [January 24, 2024, 1:00am UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/35 "2024-01-24T01:00:30Z")

</div>

Check out the beta version. It’s included there. But it worked on my computer, and when I tried it on the computer at school, for some reason it didn’t work there, but I haven’t figured it out yet.  
There are a lot of changes in beta. Most likely the beta will never transition to a stable version, because… the developers no longer support the project themselves.

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [January 24, 2024, 6:11am UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/36 "2024-01-24T06:11:35Z")

</div>

Thanks again for your quick reply and information about the beta version, @THEb0nny!

So, the stable version is fixed forever at some time in the past(could @MakeCode confirm?), while the beta continues to get community updates and now includes a lot of snacks, like new core with function parameters etc., and other stuff like fixed bluetooth support and so on?

Very good to know and thanks for your efforts working on the beta!:

> **[LEGO® MINDSTORMS® Education EV3 - Blocks / Javascript editor](https://makecode.mindstorms.com/beta)**
>
> A Blocks / JavaScript code editor for the LEGO® MINDSTORMS® Education EV3.

---

<div class="post-metadata">

**Author:** ![THEb0nny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theb0nny/32/3500_2.png) [@THEb0nny](https://forum.makecode.com/u/THEb0nny)\
**Post date:** [January 25, 2024, 1:40am UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/37 "2024-01-25T01:40:54Z")

</div>

The beta version, although a modern editor, also has new functions. Now you can even program in static python. But there are bugs that are not in the stable version. The biggest problem is that the first port does not work with UART sensors, but it works with analog sensors (for example, a touch sensor) and i2c protocol sensors. This is the biggest bug that I couldn’t solve, maybe I’ll come back to it later, but there’s a bug not only in pxt-ev3, I think there’s a pxt-common-packages bug when working with Linux. Everything else is small stuff. But I’m still trying to add what was missing, i.e. new features.

---

<div class="post-metadata">

**Author:** ![THEb0nny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theb0nny/32/3500_2.png) [@THEb0nny](https://forum.makecode.com/u/THEb0nny)\
**Post date:** [September 1, 2026, 8:19pm UTC](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501/38 "2026-09-01T20:19:57Z")

</div>

Bluetooth uploading has been improved in the fork.

> <https://github.com/pxt-ev3-community/pxt-ev3/pull/66>
>
> This PR improves Bluetooth deployment to the EV3 over Web Serial and makes the c…onnection and deployment flow more reliable.
> 
> Changes
> 
> \- Rework the Web Serial transport around explicit connection states and a dedicated TransportManager.
> \- Improve Web Serial port handling, including automatic reuse of previously authorized ports and forced port selection when needed.
> \- Add handling for connection, permission and Bluetooth RFCOMM port errors, including retry support.
> \- Support project-specific deployment folders through the new deployFolder project option.
> \- Add RFCOMM communication support on the EV3 side by using the existing RFCOMM socket inherited from LMS2012.
> \- Add an RFCOMM receive thread that parses LEGO communication packets and handles multiple packets and fragmented reads.
> \- Add LEGO opNop handling to verify that the selected Web Serial port is actually connected to an EV3.
> \- Add PXT APP-specific RFCOMM ping and stop commands.
> \- Add request/reply handling for RFCOMM commands so the browser can confirm that the PXT APP received the stop command before continuing deployment.
> \- Detect whether a PXT APP is running before attempting to stop it, then continue with file removal, ELF/RBF upload and program execution.
> \- Improve command and reply logging in wrap.ts, including LEGO command/reply types, RFCOMM commands and reply statuses.
> \- Preserve DMESG logs between PXT APP launches to simplify debugging of Bluetooth/RFCOMM communication.
> \- Improve Bluetooth download troubleshooting instructions and clarify which EV3 applications and views should be closed before retrying.
> \- Update the Bluetooth download dialog and project initialization flow to support the new Web Serial deployment path.
> \- Deployment flow
> 
> The Web Serial deployment flow now verifies the EV3 connection first, checks whether the PXT APP is running, stops it when necessary, and then uploads the new ELF/RBF files and starts the program.
> 
> If the selected serial port does not respond as an EV3, the current deployment attempt is aborted and the transport is reset so that the browser can request a port again on the next attempt.
> 
> The changes started from this PR https://github.com/microsoft/pxt-ev3/pull/1035

[Previous page](https://forum.makecode.com/t/can-i-download-the-codes-to-ev3-via-bluetooth/501.md?page=1)
