1

Hi Raspberry Pi Community,

I would like to use radio remote's control to trigger an events on my Raspberry pi.

I guess I'll go with 433Mhz as I believe they are the most common available ?

So I will need a 433Mhz RX/TX Module to connect on the GPIO, so far I get it...

But how properly secure the communication between those remotes and the RPI to avoid any anyone to sniff the transmitting and replay it. In other words spoof it.

Wubba Lubba dub-dub...

top 13 comments
sorted by: hot top controversial new old
[-] RandomUser@lemmy.world 0 points 1 month ago

Rolling codes may protect you from a replay attack, but if the attacker is more sophisticated and has worked out the algorithm, then they can send the commands and effectively lock you out.

Is Bluetooth no good? Lots of protection baked in already.

[-] Rick_C137@programming.dev 1 points 3 weeks ago

I'm open to all solutions :) But it there some ready Bluetooth remote pilot existing ?

[-] RandomUser@lemmy.world 1 points 3 weeks ago

Not really read up on it yet, but can you do serial over Bluetooth? Quick Google gave me this: https://raspberry-projects.com/pi/pi-operating-systems/raspbian/bluetooth/serial-over-bluetooth

There may even be an android app that could help. Suppose it depends on the scope of your project.

Funnily enough I may have to do something with this tech myself later in the year.

[-] hendrik@palaver.p3x.de 0 points 1 month ago* (last edited 1 month ago)

You'd use one of the rolling code mechanisms like in a keyless entry system, garage door opener or a car key fob. Maybe symmetric or asymmetric cryptography instead or on top. Depends on the exact use-case. But you'd have to build the remote yourself, I don't think that's in the readily available consumer products.

If you want it less complicated, have a look at Bluetooth or ESP-NOW. Wifi and Bluetooth and other protocols have encryption handled for you.

[-] Rick_C137@programming.dev 1 points 3 weeks ago

Thanks hendrik

But you’d have to build the remote yourself

maybe in the future, but I don't have the time for it now...

\

have a look at Bluetooth or ESP-NOW. Wifi and Bluetooth and other protocols have encryption handled for you.

So it their Bluetooth or WiFi remote pilot existing for that ?

[-] Zachariah@lemmy.world 0 points 1 month ago

Might be a good use for PGP. The signal can be snooped and spoofed, but the messages should be end-to-end encrypted.

[-] ExperimentalGuy@programming.dev 0 points 1 month ago

Only problem with just using just pgp is that the signal would be vulnerable to a replay attack. I feel like a rolling code that's encrypted using PGP might be the way so that the replay attack part is gotten rid of.

All that's to say, there's probably some technical paper that details the best way to set up a system like this.

[-] Zachariah@lemmy.world 0 points 1 month ago

Could it only accept serialized messages? Once it’s received a message, never accept the same exact message again.

[-] tapdattl@lemmy.world 0 points 1 month ago

Well then you'd have to keep track of all messages recieved. An easier option might just be to sign the current system time, make sure the clocks are synchronized, and accept a +/- 1 second wiggle

[-] Zachariah@lemmy.world 0 points 1 month ago

Wouldn’t it just need to know which is the highest message number it has seen? And then don’t accept that one or any lower ever again?

If the count is within the encrypted message, no one can spoof anything higher.

[-] Rick_C137@programming.dev 1 points 3 weeks ago

I don't think this work's if you have multiple remote pilot tough...

[-] Zachariah@lemmy.world 1 points 3 weeks ago

Each remote could have an ID number it sends.

[-] elmicha@feddit.org -1 points 1 month ago

Does it have to be radio? Maybe infrared would be enough? You could use a TSOP 2438 as a receiver and any old IR remote.

this post was submitted on 02 Jun 2025
1 points (100.0% liked)

Raspberry Pi

2282 readers
3 users here now

Welcome to the programming.dev Raspberry Pi community!

Raspberry Pi is a series of small single-board computers. It is widely used in many areas because of its low cost, modularity, and open design. It is typically used by computer and electronic hobbyists.

Rules

Members of this community are expected to exhibit mature and respectful behavior.

Those who fail to uphold these standards may find their posts or comments removed, with repeat offenders potentially facing a permanent ban.

Please keep discussions in English so that they can be appropriately moderated.

Links

founded 2 years ago
MODERATORS