Add drivers for Manchester coding, SYN115 and SYN480R OOK radio modules
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- go
- Área
- embedded-iot
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 756
- Forks
- 251
- Merge medio
- 7 d 12 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de tinygo-org/drivers
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
tinygo-org/drivers#927 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 22/100
tinygo-org/drivers#901 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
tinygo-org/drivers#886 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
tinygo-org/drivers#877 ·
Los mantenedores suelen responder en 3 días
-
240Mhz Support For ESP32-S3Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
tinygo-org/drivers#876 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de tinygo-org/drivers
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sresarehumantoo/cc-artex#456 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ollama/ollama#20021 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
factory:subtask
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
release
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
github/gh-aw-mcpg#17603 ·
Los mantenedores suelen responder en 1 día
-
avr: SPI Mode2 runs as mode 1Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
tinygo-org/tinygo#6727 ·
Los mantenedores suelen responder en 1 día