4.0 100+

micro:bit Gateway

Bluetooth data exchange for micro:bit devices
Ferdinand Stueckler
Communication
How to use micro:bit Gateway on PC
Last Updated: 2023-08-05
com.ble.microbit.gateway
Download apk

Use LDPlayer to Play micro:bit Gateway on PC

micro:bit Gateway is a Communication application developed by Ferdinand Stueckler, but with the best Android emulator-LDPlayer, you can download and play micro:bit Gateway on your computer.

Running micro:bit Gateway on your computer allows you to browse clearly on a large screen, and controlling the application with a mouse and keyboard is much faster than using touchscreen, all while never having to worry about device battery issues.

With multi-instance and synchronization features, you can even run multiple applications and accounts on your PC.

And file sharing makes sharing images, videos, and files incredibly easy.

Download micro:bit Gateway and run it on your PC. Enjoy the large screen and high-definition quality on your PC!

This app establishes a channel between two micro:bit devices. The channel will be handeled as UART communication. You have to develope a programm on each micro:bit device with UART transfer.

Indication aktive: BLE Indication (Default)
Indication inaktive: BLE Notification

Silent aktive: No visual logging
Silent inaktive: Logging

Requirements:
- Min. Android 4.4
- Bluetooth Low Energy (BLE)
- Paired devices
- micro:bit programm (developed by yourself)


MBED example:

#include "MicroBit.h"
#include "MicroBitUARTService.h"

MicroBit uBit;
MicroBitUARTService *uart;

int connected = 0;

void onConnected(MicroBitEvent e)
{
uBit.display.scroll("C");

connected = 1;
}

void onDisconnected(MicroBitEvent e)
{
uBit.display.scroll("D");
connected = 0;
}

void onButtonA(MicroBitEvent e)
{
if (connected == 0) {
uBit.display.scroll("NC");
return;
}
uart->send("Yes");
uBit.display.scroll("Y");
}

void onButtonB(MicroBitEvent e)
{
if (connected == 0) {
uBit.display.scroll("NC");
return;
}
uart->send("No");
uBit.display.scroll("N");
}

void onButtonAB(MicroBitEvent e)
{
if (connected == 0) {
uBit.display.scroll("NC");
return;
}
uart->send("SK");
uBit.display.scroll("SK");
}

void processBLEUart() {
uint8_t readBuf[22];
while (1) { // loop for ever
if ((!connected) || (!uart->isReadable())) {
uBit.sleep(50); // wait 50mS and check again
continue; // loop;
}
//else we are connected AND there is some input to read
if (uart->isReadable()) {
while (uart->isReadable()) {
int charCount = uart->read(readBuf, 22, ASYNC);
if (charCount != 0) {
for (int i = 0; i < charCount; i++)
uBit.display.scroll((char) readBuf[i]);
}
}
}
}
}


/*
IMPORTANT !!!
Oherwise you will run out of memory !

Recommend disabling the DFU and Event services in MicroBitConfig.h since they are not needed here:
microbit->microbit-dal->inc->core->MicroBitConfig.h

#define MICROBIT_BLE_DFU_SERVICE 0
#define MICROBIT_BLE_EVENT_SERVICE 0
#define MICROBIT_SD_GATT_TABLE_SIZE 0x500
*/

int main()
{
// Initialise the micro:bit runtime.
uBit.init();

uBit.messageBus.listen(MICROBIT_ID_BLE, MICROBIT_BLE_EVT_CONNECTED, onConnected);
uBit.messageBus.listen(MICROBIT_ID_BLE, MICROBIT_BLE_EVT_DISCONNECTED, onDisconnected);
uBit.messageBus.listen(MICROBIT_ID_BUTTON_A, MICROBIT_BUTTON_EVT_CLICK, onButtonA);
uBit.messageBus.listen(MICROBIT_ID_BUTTON_B, MICROBIT_BUTTON_EVT_CLICK, onButtonB);
uBit.messageBus.listen(MICROBIT_ID_BUTTON_AB, MICROBIT_BUTTON_EVT_CLICK, onButtonAB);


uart = new MicroBitUARTService(*uBit.ble, 32, 32);
uBit.display.scroll("Go");
create_fiber(&processBLEUart); // create fiber and schedule it.

release_fiber();
}
Open up

Screenshots and Videos of micro:bit Gateway PC

With LDPlayer, you can download and run micro:bit Gateway on PC, simultaneously managing multiple apps and multiple accounts. Become a master of time management, balancing work and entertainment effortlessly.

Why Play micro:bit Gateway on PC with LDPlayer?

LDPlayer is a lightweight and free Android emulator that supports various Windows systems and most popular applications and games. It has established partnerships with over 1,000 gaming companies globally, earning their trust, and has exceeded 270 million downloads. Moreover, LDPlayer is based on Android 9.0, providing optimized performance for both Intel and AMD devices, ensuring a better experience in micro:bit Gateway.
Multi-Instance
Transform your computer into several LDPlayers, allowing you to run multiple applications or accounts on your PC. Coupled with a synchronizer, it assists you in managing multiple micro:bit Gateway accounts!
File Transfer
Effortlessly transfer files between Android emulators and your computer, making sharing images, videos, and documents in micro:bit Gateway incredibly easy.
Extended Battery Life
When running micro:bit Gateway on your computer, you need not worry about low battery or device overheating issues. Enjoy playing for as long as you desire.
Virtual GPS
By using LDPlayer to run micro:bit Gateway, you can alter your location, unlocking app content specific to certain regions, hiding your real geographical information to prevent privacy breaches.
Large Screen
Offering a high-definition experience for micro:bit Gateway on a large screen, animations and images are smoother, allowing for more comfortable content browsing and video watching.
Ample Memory
With larger memory than smartphones, you no longer need to worry about insufficient memory hindering micro:bit Gateway operations. Download as many applications as you desire effortlessly.

How to Download&Play micro:bit Gateway on PC?

1

Download and install LDPlayer on your computer

2

Locate the Play Store in LDPlayer's system apps, launch it, and sign in to your Google account

3

Enter "micro:bit Gateway" into the search bar and search for it

4

Choose and install micro:bit Gateway from the search results

5

Once the download and installation are complete, return to the LDPlayer home screen

6

Click on the game icon on the LDPlayer home screen to start enjoying the exciting game

Want to download micro:bit Gateway APK? Click here to download the APK.

If you've already downloaded the APK file from another source, simply open LDPlayer and drag the APK file directly into the emulator.

If you've downloaded an XAPK file from another source, please refer to the tutorial for installation instructions.

If you've obtained both an APK file and OBB data from another source, please refer to the tutorial for installation instructions.

Search Recommendation