element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
microbit
  • Learn
  • Learning Center
  • STEM Academy
  • microbit
  • More
  • Cancel
microbit
microbit Forum Bluetooth basic problem with the micro:bit
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join microbit to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 15 replies
  • Answers 4 answers
  • Subscribers 53 subscribers
  • Views 9030 views
  • Users 0 members are here
  • bluetooth
  • ble
  • bbc micro:bit
  • bbc microbit
Related

Bluetooth basic problem with the micro:bit

neilk
neilk over 8 years ago

I've recently received my micro:bit and worked through most of the projects in jlucas 's blog - great start.

 

I'm keen to code on my Android tablet and smartphone and then use bluetooth to flash the .hex file to the micro:bit, but I'm not having any success.

 

I've downloaded the SAMSUNG app to both my phone and my tablet and after a lot of fiddling around, I can pair both devices to the micro:bit. I'm sure youngsters will get very very frustrated with this process!! I failed so many times to even start the pairing process that I found and downloaded a ble checker to both my phone and tablet - yes they both support ble - but not all phones/tablets do & that could be a problem for some users.

 

However, before I can flash the .hex file across, I have to connect to the micro:bit. Both the phone and the tablet repeatedly refuse to connect to the micro:bit, so I am stymied.

  • Sign in to reply
  • Cancel

Top Replies

  • tony1tf
    tony1tf over 8 years ago in reply to neilk +2
    Very clever - Neil. This worked for me - I was getting the "GATT ERROR" but following your workaround in exactly the given order enable me to upload some previous compiled code for driving a model car…
  • henrikbirkholm
    henrikbirkholm over 8 years ago +1
    Hi. We would love to hear about your work around. How you get it to sync everytime. After we transfered our first Python, the bluetooth sync functionality is gone. The pairing functionality was also gone…
  • neilk
    neilk over 8 years ago in reply to henrikbirkholm +1 verified
    Hi henrikbirkholm Hello Henrik Unforunately, installing a MicroPython script ALWAYS destroys the bluetooth pairing ability and the "workround" (courtesy of Joe Finney, Lancaster University) will NOT work…
Parents
  • neilk
    0 neilk over 8 years ago

    And I have resolved it!

     

    I was using the PXT editor which is more sophisticated than the simple Blocks Editor. At the time of making the original post, the default configuration of the PXT editor did not support Bluetooth connection, although the micro:bit would still pair, unless you explicitly loaded the Bluetooth package.

     

    I have now been advised of a "workround" which ensures that you can ALWAYS pair and connect, irrespective of the contents of the current program installed on the micro:bit.

     

    Please contact if you would like details.

     

    This post edited 3 March 2017

     

    This post edited again 07 November 2018 and UNMARKED as "Correct Answer"

     

    Correct Answer now points to the Detailed Instructions on the pairing Workaround in a later post

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ksilver
    0 ksilver over 8 years ago in reply to neilk

    Hi Neil,

     

    I am trying to pair my microbit to my Samsung, but I'm not getting the pairing message on the microbit. I hold down the A and B buttons , then press the reset on the back for a second and let go. Absolutely nothing happens... could you send me details of the workaround you mentioned?

    I just have the microbit connected to a Windows 10 machine, and I flash code successfully to it from Mu.

     

    P.S. Is this what you meant by contact?

     

    Thanks!

    Melissa

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • ksilver
    0 ksilver over 8 years ago in reply to neilk

    Hi Neil,

     

    I am trying to pair my microbit to my Samsung, but I'm not getting the pairing message on the microbit. I hold down the A and B buttons , then press the reset on the back for a second and let go. Absolutely nothing happens... could you send me details of the workaround you mentioned?

    I just have the microbit connected to a Windows 10 machine, and I flash code successfully to it from Mu.

     

    P.S. Is this what you meant by contact?

     

    Thanks!

    Melissa

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • neilk
    0 neilk over 8 years ago in reply to ksilver

    Hi ksilver.

     

    Melissa - the problem you describe is one step further back from the problem I reported - you can't even put your micro:bit into pairing mode!

     

    I have found the following to be the most reliable method of putting the micro:bit into pairing mode:

     

    press and hold down the A and B buttons. Then press AND HOLD DOWN the reset button. Keep the reset button held down until the pairing message appears.

     

    If this still doesn't work and you are powering the micro:bit connected from USB, try swapping to battery power, or vice-versa. In theory you can have both USB and battery connected at the same time, but I never do - just in case!

     

    If you still can't get the pairing message it's possible that your micro:bit is faulty. Do you have access to anyone local to you who has a micro:bit? They might be able to help.

     

    By the way, unless I am actually flashing the micro:bit, I  run it on battery power - it seems to run cooler that way and I have already had 2 micro:bits fail because of overheating.

     

    Hope this helps!

     

    if you still need the workaround to achieve a connection, then contact again through this post thread - and yes this is what I meant by contact.

     

    Good luck

     

    Neil

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ksilver
    0 ksilver over 8 years ago in reply to neilk

    Hi, thanks for the reply image

     

    I have three microbits, and I've tried it with them all. Literally nothing happens ... I tried them with a battery pack, too, but now I will see if I can get some better quality batteries when I nip out for lunch... hopefully then!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • neilk
    0 neilk over 8 years ago in reply to ksilver

    Hi Melissa

     

    Any luck?

     

    it's worrying that all 3 micro:bits are showing the same problem!

     

    Have you, by any chance, flashed with a MicroPython script as mentioned by henrikbirkholm?

     

    If so, then you need to reinstate the DFU code, as described here:

     

    https://support.microbit.org/support/solutions/articles/19000026073-how-to-re-instate-bluetooth-after-previously-using-micropython.

     

    Best wishes

     

    Neil

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube