microsoft / microsoft/pxt-microbit

Real time data I/O for simulator (not real device)

Open
#4,518 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

extension Simulator
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

We have some students who do not have access to a real microbit, so the sim is their only tool. Although our projects ultimately use the real microbit to drive simple vehicles, for development we want to provide students with a separate virtual environmental sim (visualization) where data is piped in from the microbit sim, processed/rendered, and updated "sensor" state is piped back into the microbit sim. At the moment, I can't figure out how to get *** real time *** data to/from the sim and an external process. Is there a simple mechanism already built-in for this? If not, is it problematic to create an extension that connects to an external process via functions, shared objects, sockets, or other means? The external process can change (HTML/JS, local, remote, native) based on what is possible.

Attached is a diagram of what we're after. The "TEXT DATA" is the pipe I would like to have. Does such a mechanism already exist?

microbit_diagram

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the simulator's existing extension or I/O documentation and tracing how simulator data is currently exposed. The issue does not name source files or tests, so first identify the relevant simulator entry points. Done would require a defined, documented bidirectional real-time mechanism for connecting the simulator to an external environmental process.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.