element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
microbit
  • Learn
  • Learning Center
  • STEM Academy
  • microbit
  • More
  • Cancel
microbit
microbit Forum Bluetooth basic problem with the micro:bit
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
microbit requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 15 replies
  • Answers 4 answers
  • Subscribers 18 subscribers
  • Views 1887 views
  • Users 0 members are here
  • bluetooth
  • ble
  • bbc micro:bit
  • bbc microbit
Related

Bluetooth basic problem with the micro:bit

neilk
neilk over 5 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.

  • Reply
  • Cancel
  • Cancel

Top Replies

  • tony1tf
    tony1tf over 5 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 5 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 5 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
  • henrikbirkholm
    0 henrikbirkholm over 5 years ago

    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 until we made a block editor program and transfered it by cable. Even though the pairing now works again, we can't transfere programs by Bluetooth.

     

    It seems like the block editor always includes the Bluetooth functionality, where as the python editor doesn't. Is it enough to import the radio module in a python program to the sync functionality back?

     

    Please tell us your work around :-)

     

    /Henrik

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Cancel
  • neilk
    0 neilk over 5 years ago in reply to henrikbirkholm

    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 with any MicroPython script, I'm afraid.

     

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

     

    The "workround" is designed to allow flashing (Pairing/synchronising/bonding should work anyway!) with a PXT compliled .Hex file that does not have the Bluetooth module loaded. It shouldn't be necessary with a .Hex file compiled with any other Blocks style editor.

     

    Here is Joe Finney's "workround", which will enable you to flash a .Hex file from the Samsung App:

     

    1. Flash micro:bit with a PXT compiled .HEX file that does not have Bluetooth enabled.
    2. Pair micro:bit with phone.
    3. Start Samsung micro:bit App
    4. Put micro:bit back into pairing mode.
    5. DO NOT try to CONNECT to micro:bit from Samsung App - it won't
    6. Go straight to FLASH from Samsung App - it should work!

     

    I hope this helps.

     

    Neil

     

    Edited 07 November 2018 and marked as Correct Answer

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • tony1tf
    0 tony1tf over 5 years ago in reply to neilk

    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 from an Andoid bluetooth app.

    Tony

    • Cancel
    • Up +2 Down
    • Reply
    • Verify Answer
    • Cancel
  • neilk
    0 neilk over 5 years ago in reply to tony1tf

    Hi tony1tf

     

    Glad it worked for you! - Your project sounds interesting; are you writing it up anywhere?

     

    Neil

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • jharris1993
    0 jharris1993 over 3 years ago in reply to neilk

    Neil,

     

    Geez!  Someone at embed - the people who wrote the firmware - must have a PhD from the Microsoft School of Obscurity - that has to be the absolute ugliest work-around I have ever seen!  I cannot imagine a less obvious way to do something. . . .

     

    I will have to try this myself though I give total respect and props to you for posting your detailed instructions - other postings allude to this but don't go into the detail you did.

     

    Suggestion:

    Would you please change the "correct answer" designation to point at the posting where you provided Henrik with the detailed list of instructions?  This should be what people look for when searching this article.

     

    Thanks!

     

    Jim "JR"

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • jharris1993
    0 jharris1993 over 3 years ago in reply to neilk

    Neil,

     

    Geez!  Someone at embed - the people who wrote the firmware - must have a PhD from the Microsoft School of Obscurity - that has to be the absolute ugliest work-around I have ever seen!  I cannot imagine a less obvious way to do something. . . .

     

    I will have to try this myself though I give total respect and props to you for posting your detailed instructions - other postings allude to this but don't go into the detail you did.

     

    Suggestion:

    Would you please change the "correct answer" designation to point at the posting where you provided Henrik with the detailed list of instructions?  This should be what people look for when searching this article.

     

    Thanks!

     

    Jim "JR"

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • neilk
    0 neilk over 3 years ago in reply to jharris1993

    Hi Jim

     

    Good Idea!

     

    Done

     

    Neil

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube