Skip to content

matthias95/rcsocket

Repository files navigation

rcsocket

Library and sample application for controlling 433MHz remote controlled sockets using raspberry pi. The transmitter is controlled via bit banging depending on WiringPi for GPIO access. The project might be easily ported to arduino because of the similarity between WiringPi and arduino interface for GPIO access. \

Every application build with this lib requieres super user permissions in order to access GPIO ports

Dependencies

Build

Build everything:
make

Build sample application:
make switchrcsocket

Build lib only:
make libRCSocket.a

Install sample application (must be executed as root):
make install copies the executable to /usr/bin and sets the suid bit. This might be a security risk due to possible flaws in my sample applction

Usage:

Every application build with this lib requieres super user permissions in order to access GPIO ports

For usage of the library see sample application switchrcsocket.c.

Use of sample application: Switch socket with system code 0 and socket id 0 on:
./switchrcsocket 00000 0 1
Switch socket with system code 0 and socket id 0 off:
./switchrcsocket 00000 0 0

About

Library and sample application for controlling 433MHz remote controlled sockets using raspberry pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published