https://github.com/apiel/rcswitch
I plug the receiver on the GPIO 21.
To run:
- Code: Select all
./vorc -s -m /sys/class/gpio/gpio%d/direction -a /sys/class/gpio/gpio%d/value -i 21
But first you need libpthread.so.0 and to copy libc.so.0 to libc.so
To compile:
- Code: Select all
./OpenWrt-Toolchain-ramips-for-mipsel_24kec+dsp-gcc-4.8-linaro_uClibc-0.9.33.2/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-g++ -o vorc rc.cpp RCSwitch.cpp WProgram.cpp -std=c++0x -pthread -ldl
I also tried to use https://github.com/apiel/GpioRF but this failed as well.
May be the problem come from the internal time of the vocore (gettimeofday(&t, NULL))?
Actually I don't really understand why it's not working. Any idea??