[Feature request] MeshCore app: let other apps on the phone share the radio (Local API)
Les mainteneurs répondent en général sous 2 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 12/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- c
- Domaine
- api, mobile-dev, networking
Piste de recherche
This is a protocol design proposal, not a scoped code change, and it points to an external spec at jooray/meshcore-local-api plus a fork (zjs81/meshcore-open#628) that already implements it. Start by reading that specification and Appendix B, then decide whether the work belongs in the MeshCore app or in a separate client. Done would mean a maintainer decision on the design, not a patch from a newcomer.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
A companion radio has one BLE connection, and the MeshCore app holds it. Another app that wants to use the mesh (a tracker, a road-event beacon, a bridge to the internet, a bot) has to take the radio away from the chat app, or ask the user to disconnect. In practice MeshCore on a phone serves one app at a time.
Reticulum solves this with a local daemon. One app holds the interface, and other apps on the same device talk to it. I'd like the MeshCore app to offer the same thing, with a protocol that other MeshCore apps implement too. Then a client app doesn't care which MeshCore app the user runs.
There is a written specification, test vectors and client libraries (Kotlin, Python, JS):
https://github.com/jooray/meshcore-local-api
In short:
- A WebSocket on
127.0.0.1only. It is off by default and refused to browsers (any request with anOriginheader). - Each app pairs once with a P-256 key. The user approves it in a dialog that shows the app's name and the key's fingerprint, and can revoke it later.
- Apps subscribe to channel data by channel and
dataType(for example0x0150Road Events), and send channel data and text. Sends go through the app's normal send path, flood scope and rate limits. The API can't change radio settings, contacts or keys. The only change it can ask for is adding a hashtag channel, and the user confirms that in a dialog. - Optional features are announced as capabilities, so an app can start with the core only. Examples: regions, zero-hop or direct paths, replay of data received while the client wasn't running, contacts and direct messages.
Where it runs today:
- MeshCore Open, in a fork proposed upstream as zjs81/meshcore-open#628. Test build: https://github.com/jooray/meshcore-open/releases/tag/localapi-test-10
- meshcored, a daemon for a USB radio on Linux and macOS.
- Clients: Roadbeacon, Roadstr, LibreTag, a Nostr bridge and a bot.
Appendix B of the spec is a short checklist for adding it to an app. I'd be glad to help, or to change the spec where it doesn't fit the MeshCore app.
- Langage dominant
- C
- Étoiles
- 3.9k
- Forks
- 1.5k
- Merge moyen
- 2 j 19 h
- PR mergées (30 j)
- 61
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de meshcore-dev/MeshCore
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
meshcore-dev/MeshCore#4015 ·
Les mainteneurs répondent en général sous 2 jours
-
CMD_SET_DEFAULT_FLOOD_SCOPE leaves an older, longer name's tail after the new namePeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
meshcore-dev/MeshCore#3891 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
meshcore-dev/MeshCore#3826 ·
Les mainteneurs répondent en général sous 2 jours
-
App Preset Australia: NTOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
meshcore-dev/MeshCore#3825 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
meshcore-dev/MeshCore#3781 ·
Les mainteneurs répondent en général sous 2 jours
Toutes les issues de meshcore-dev/MeshCore
Issues similaires
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
389ds/389-ds-base#8251 ·
Les mainteneurs répondent en général sous 1 jour
-
bug data-types
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
ClickHouse/clickhouse-cpp#645 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ROCm/hrx-system#3628 ·
Les mainteneurs répondent en général sous 1 jour