[Feature request] MeshCore app: let other apps on the phone share the radio (Local API)
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 12/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- c
- Domínio
- api, mobile-dev, networking
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C
- Estrelas
- 3.9k
- Forks
- 1.5k
- Merge médio
- 2d 19h
- PRs com merge (30d)
- 61
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de meshcore-dev/MeshCore
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
meshcore-dev/MeshCore#4015 ·
Mantenedores costumam responder em até 2 dias
-
CMD_SET_DEFAULT_FLOOD_SCOPE leaves an older, longer name's tail after the new nameTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
meshcore-dev/MeshCore#3891 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
meshcore-dev/MeshCore#3826 ·
Mantenedores costumam responder em até 2 dias
-
App Preset Australia: NTAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
meshcore-dev/MeshCore#3825 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
meshcore-dev/MeshCore#3781 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de meshcore-dev/MeshCore
Issues semelhantes
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
389ds/389-ds-base#8251 ·
Mantenedores costumam responder em até 1 dia
-
bug data-types
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
ClickHouse/clickhouse-cpp#645 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ROCm/hrx-system#3628 ·
Mantenedores costumam responder em até 1 dia