Did you enable Location in the device settings?
Good day Anke.
Yes.
No, sorry, as a in-house rule, I do not install apks from third parties
Hi Peter.
On what Android version have you tested please ?
Thanks
As you can see, there is also an AIA in post #24.
So again, did you try the APK (built from my test AIA)?
Thanks for caring Anke, especially at this time of the day.
I know it must be annoying when you spend time helping and you get the feeling people do not read 100% of what you write.
It is running fine now.
The trick was to go to android settings and allow for location BEFORE running the app, and NOT run the app then wait for location permission question as it would not work even when the question is answered.
Hi Phil,
It was quite a while ago but I believe it would have been Android 11 and subsequently Android 12. I don't think I had to allow for location before running the app though.
Cheers, Peter
On Android 12+.
Yes, but you only need to reload the screen.
Hello Anke,
I am trying to connect microbit to mobile phone (Android ver 12).
I have created microbit app and mit app inventor mobile app.
But unable to establish BT connectivity.
My microbit device is listed in the mobile app but while trying to connect Error 507: Unable to connect id displayed.
I can share my both applications if you wish to see them.
Please help me. My son have to submit his application for a competition.
If you really want help, post an .aia which shows the error.
I have enough micro:bits but only Android 11, so I am not sure I can recreate the problem.
Can you also post the .hex file you have on your micro:bit? You need to have the permissions there set right too.
Hi Ghica,
PFA hex and aia files for your reference.
aia (MIT App Inventor is courtesy from Anke) but I've modified it a little to display message received from microbit in a label.
I am not getting any connectivity error displayed but the message from microbit is not displayed in the label.
BLE_permissions_allAndroidVersions (2).aia (192.2 KB)
microbit-BTConn.hex (1.3 MB)
I tried using your app using ai2 too and mine with some tweaking to make it similar to yours and yet it isn't working. All permissions were also granted using my phone as well.
Please help
@Sudarshan_Gupta ever heard of debugging? Did you get a message that the micro:bit is connected? (Put in a notifier for example). Did the block that gets activated when text is received really get activated? On the micro:bit side, did it get a connection message? If yes, did it get a uart message?
I may not have time to look at your apps today, but there is so much that you can do yourself, like pinpointing where things go wrong.
What are the symptoms of “it is not working”?
I am very confused. You still never actually connect to your micro:bit AND you are trying to get text from the micro:bit using classic BT???
At least you also need a micro:bit extension to use UART, take the one I posted in the tutorial.
Then, in the micro:bit display a happy face upon connect, so that you know the connection succeeded.
Once you have achieved that, you can consider sending messages with UART.