skvamme / rfxtrx

Erlang implementation of rfxtrx433 protocol - on Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RFXtrx is a handy 433.92 MHz transmitter and reciever. Use it to control and sense in a smart home, smart car, smart farm you name it.
http://www.rfxcom.com/ It connects to a USB port.

Install ser2net on your raspberry pi.

sudo apt-get install ser2net

Configure ser2net, edit /etc/ser2net.yaml. 

Change the first connection group to:

connection: &con0096
 accepter: tcp,10001
 enable: on
 options:
  kickolduser: true
 connector: serialdev,
  /dev/ttyUSB0,
  38400n81,local

Save the file, connect the rfxtrx433(E) and restart the raspi.


Clone rfxtrx.git on your LINUX server, or if you are on your Raspberry Pi, then you can use localhost for RFXTRX_IP in rfxtrx.erl.

sudo apt-get install git

git clone https://github.com/skvamme/rfxtrx.git

cd rfxtrx

edit src/rfxtrx.erl. Change line 10 -define(RFXTRX_IP,"192.168.0.20"). to your actual raspberry pi ip address. Save the file.
make
erl -pa ebin
rfxtrx:start().



About

Erlang implementation of rfxtrx433 protocol - on Raspberry Pi


Languages

Language:Erlang 98.6%Language:Makefile 1.4%