RF RCswitch on vocore
Posted: Sat Sep 19, 2015 5:38 pm
I try to use a library RCswitch on the vocore. This library allow you to decrypt signal received on a RF433 receiver. I ported it on the board OrangePi and it work perfectly but when I try to use it on Vocore it doesn't work. I tested the GPIO and they work well.
https://github.com/apiel/rcswitch
I plug the receiver on the GPIO 21.
To run:
But first you need libpthread.so.0 and to copy libc.so.0 to libc.so
To compile:
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??
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??