Skip to content

RF 433MHz Wireless power sockets controller LKM for Orange Pi Zero

Notifications You must be signed in to change notification settings

iboguslavsky/rf433

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Loadable Kernel Module to control 433MHz transmitter. Uses High Resolution kernel timer to provide accurate timing for the generated waveforms. Tested successfully to work with Etekcity power outlets. Takes arbitrary full frame (or "codeword" in Princeton Technology parlance) - or a separate address + command combination.

Works with Orange Pi Zero (Uses PG06 / UART1_TX pin on 26-pin connector). Tested under Legacy Kernel only (3.4.X).

Uses popular Princeton Technology's PT2262/PT2272 style bit representation and encoding scheme illustrated here:

To compile:

> git clone https://github.com/iboguslavsky/rf433.git
> cd rf433
> make all
> insmod ./rf433.ko

After the module loads:

> cd /sys/class/rf433/rf0
> echo "00f0fff10001" > codeword  # Command "01" ("ON"), address "00f0fff100"
> echo "1" > send                 # Send it out

Alternatively, you can supply address and command separately:

> cd /sys/class/rf433/rf0
> echo "00f0fff100" > address  # Set address to "00f0fff100"
> echo "01" > command          # Set command to "01" ("ON") 
> echo "1" > send              # Send it out

Trasmitter used: RCT-433-UTR (Mouser P/N: 509-RCT-433-UTR):

About

RF 433MHz Wireless power sockets controller LKM for Orange Pi Zero

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published