Add drivers for Manchester coding, SYN115 and SYN480R OOK radio modules
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- go
- Ambito
- embedded-iot
Direzione di ricerca
The proposal names the manchester, syn115, syn480r, and examples/manchester packages, plus CONTRIBUTING.md; read the contribution guidance and review PR #947, which is already linked. The issue says a local implementation exists and requests feedback on package layout and interfaces, so the work is already underway and its next steps depend on that review.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I want to add drivers for Manchester coding, SYN115 and SYN480R OOK radio modules
Following the "Some specific hardware you want to use does not appear to be in the TinyGo drivers" section of CONTRIBUTING.md, I want to check that nobody is already working on this, and then add support for cheap 433 MHz OOK/ASK radio modules.
Motivation
The SYN115 transmitter and SYN480R receiver are widely available 433 MHz modules. They have no protocol of their own: the MCU keys the transmitter carrier and reads the demodulated level from the receiver. That makes them useful, but also means every project has to write the same timing code again.
Manchester coding solves the DC balance problem of raw OOK links and gives a simple way to detect invalid symbols, so it makes sense to ship it together with the two pin drivers.
Hardware
- SYN113/SYN115 ASK transmitter. A single data pin turns the carrier on and off.
Datasheet: https://www.openimpulse.com/blog/wp-content/uploads/wpsc/downloadables/SYN115-ASK-Transmitter-Datasheet.pdf - SYN470R/SYN480R ASK receiver. A single data pin outputs the demodulated level.
Datasheet: https://www.lcsc.com/datasheet/C916347.pdf
Proposed packages
manchester: line coding plusEncoderandDecoderbuilt on smallTransmitterandReceiverinterfaces, so other OOK modules can reuse it.syn115: transmitter driver,Set(high bool)keys the carrier.syn480r: receiver driver,Get() boolreturns the demodulated level, with anInvertoption for modules with inverted output.examples/manchester: a send and receive example.
API sketch
tx := syn115.New(machine.GP4)
tx.Configure()
rx := syn480r.New(machine.GP5)
rx.Configure()
enc := manchester.NewEncoder(tx, manchester.Config{BitRate: 2000})
dec := manchester.NewDecoder(rx, manchester.Config{
BitRate: 2000,
Timeout: 500 * time.Millisecond,
})
enc.Write([]byte("hello"))
n, err := dec.Read(buf)
Config also has a Preamble field. Each frame is prefixed with zero bytes so the receiver can settle and find the first rising edge. The default is 2 kbps and a 4 byte preamble.
Limitations
- The decoder samples half-bits in a busy loop, so the bit rate is limited by the target. 2 kbps is a safe default for the SYN480R.
- No hardware timer or interrupt support yet. That could be a follow-up if there is interest.
Status
I have a working local implementation of all three packages and the example. Before opening a pull request against dev, I would like to confirm there is no duplicate effort, and get feedback on the package layout and the interfaces.
I am happy to adjust the API if the maintainers prefer a different split between the coding layer and the pin drivers. Tests and a smoketest.sh entry can be included in the PR.
- Lingua principale
- Go
- Stelle
- 756
- Fork
- 251
- Merge medio
- 7g 12h
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tinygo-org/drivers
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
tinygo-org/drivers#927 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 22/100
tinygo-org/drivers#901 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
tinygo-org/drivers#886 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
tinygo-org/drivers#877 ·
I maintainer di solito rispondono entro 3 giorni
-
240Mhz Support For ESP32-S3Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
tinygo-org/drivers#876 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di tinygo-org/drivers
Issue simili
-
release
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
github/gh-aw-mcpg#17603 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
tinygo-org/tinygo#6727 ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
oras-project/oras-go#1827 ·
I maintainer di solito rispondono entro 1 giorno
-
docs: database/sql Sessions example never commits its batch, and its "Full Example" link is a 404Apertadocumentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
ClickHouse/clickhouse-go#2185 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs triage receiver/podman
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
open-telemetry/opentelemetry-collector-contrib#53700 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno