#asknostr I have a request for the hardware / Pi developers out there.

I want to run a small Go or Rust (khatru, haven, rs-nostr-relay, or chorus) based relay on a Raspberry PI, obviously its going to be using web sockets but I want to also connect to it over a USB serial interface like the https://github.com/lnbits/nostr-signing-device

My goal is to build a personal pocket relay that can connected to wifi (and discoverable) or connected via USB to a computer and managed from there.

Bonus points if we could also find a way to talk to it over Bluetooth, although I doubt ble has enough bandwidth

Reply to this note

Please Login to reply.

Discussion

bluetooth has plenty of bandwidth, it can stream out data at nearly CD quality, pretty sure bluetooth 5 is over 100mbit

here ya go: https://www.bluetooth.com/blog/exploring-bluetooth-5-how-fast-can-it-be/

so, bt4 you get 1/3 mbit, 1mbit for 4.2 and 2mbit for 5... so that works out to ... about 56kbit for bt4, 100kbit for bt4.2 and ~ 250kbit for bt5

this is duplex of course, if you have it running alternate simplex it would be twice that

The issue here is that web apps don't have access to the full bluetooth API so I would need to build a mobile or desktop app. I'm mostly looking to experiment so I'm probably going to stick with a web app

check out PAN... there is a specific network mode for bluetooth

Be cool to do this on a zero

yeah, a small pi zero with a battery would be very easy to carry around

Workinonit 🫡

whats the request? 🤔🐧

I was to focused on explaining what I wanted to build I forgot to ask.

I need some systemd script or background process that can watch the serial interface and bridge messages from it to a local web socket server

gotcha.. seems doable. the meshtastic onboarding is neat how it does serial via a browser.. unsure if that works on a phone usb plug tho.

web serial does not work on phones but it does on desktop, which is good enough for experimenting