BLUE
Profile banner
JM
James Munns
@jamesmunns.com
Notable Protocol Enjoyer. Doing stuff, mostly in Rust and on Embedded systems. Need help with that? Hire me @ onevariable.com DMs (matrix): @jamesmunns:beeper.com DMs (signal): jamesmunns.255 DMs (here): open he/him Kein Ort für Nazis
994 followers438 following3.1k posts
JMjamesmunns.com

Yeah, it would definitely work over UART, but you'd probably lose some of the nice autodetection. postcard-rpc is sort of like diet CoAP, and I typically use COBS for framing, but HDLC could work as well. Basically if you have a way to transport bidirectional frames, the rest is easy.

2

DCdcoles.net

I had a bit of a brain-fart and was conflating COBS with HDLC. Incidentally: /me searches for COBS on crates.iogithub.com/jamesmunns/c... 😁🙌

0
JMjamesmunns.com

When I say "lose autodection", that means "plug in a device, it automatically gets polled". You could still manually add a device (like /dev/ttyACM0), and you'd still get the cool capability + schema autodetection/negotiation stuff I'd work on. You just wouldn't have nice hotplug support.

1
Profile banner
JM
James Munns
@jamesmunns.com
Notable Protocol Enjoyer. Doing stuff, mostly in Rust and on Embedded systems. Need help with that? Hire me @ onevariable.com DMs (matrix): @jamesmunns:beeper.com DMs (signal): jamesmunns.255 DMs (here): open he/him Kein Ort für Nazis
994 followers438 following3.1k posts