tandersson / rf-bitbanger Goto Github PK
View Code? Open in Web Editor NEWSimple tools for handling OOK (on-off-keyed) RF transmission/reception on ISM bands
License: GNU General Public License v2.0
Simple tools for handling OOK (on-off-keyed) RF transmission/reception on ISM bands
License: GNU General Public License v2.0
Does this only run on the Raspberry Pi, or can it also run on OpenWrt based systems with GPIOs such as routers?
I can write to /dev/null and rfbb_cmd runs without problems, but writing to the rfbb device exits with an error. I don't know how to get more debug info from a kernel module, I'm running 3.2.27+ on Debian Wheezy.
pi@raspberrypi ~/rf-bitbanger/rfbb $ rfbb_cmd -d /dev/rfbb -i RFBB -p SARTANO -c 1111110000 -l 1 -v
SARTANO protocol selected
Channel: 1111110000, on_off: 1
Selected RFBB interface (RF Bitbanger)
Writing 200 pulse_space_items, (800 bytes) to /dev/rfbb
Error writing to RFBB device: Invalid argument
pi@raspberrypi ~/rf-bitbanger/rfbb $ uname -a
Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux
pi@raspberrypi ~/rf-bitbanger/rfbb $
Hi, the make command gives this error:
$ make KERNELDIR=~/linux
make -C /home/pi/linux M=/home/pi/AanUit/rfbb/rf-bitbanger/rfbb modules
make: *** /home/pi/linux: No such file or directory. Stop.
make: *** [default] Error 2
Should I have/create a full kernel source in ~/linux?
As a test, I unpacked a full kernel source in ~/linux-source/linux-source-3.2/ and tried that:
pi@raspberrypi /AanUit/rfbb/rf-bitbanger/rfbb $ make KERNELDIR=/linux-source/linux-source-3.2/
make -C /home/pi/linux-source/linux-source-3.2/ M=/home/pi/AanUit/rfbb/rf-bitbanger/rfbb modules
make[1]: Entering directory `/home/pi/linux-source/linux-source-3.2'
WARNING: Symbol version dump /home/pi/linux-source/linux-source-3.2/Module.symvers
is missing; modules will have no dependencies and modversions.
Building modules, stage 2.
MODPOST 1 modules
CC /home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.o
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:8:1: error: variable ‘__this_module’ has initializer but incomplete type
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:9:2: error: unknown field ‘name’ specified in initializer
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:9:2: warning: excess elements in struct initializer [enabled by default]
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:9:2: warning: (near initialization for ‘__this_module’) [enabled by default]
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:10:2: error: unknown field ‘init’ specified in initializer
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:10:2: warning: excess elements in struct initializer [enabled by default]
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:10:2: warning: (near initialization for ‘__this_module’) [enabled by default]
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:14:2: error: unknown field ‘arch’ specified in initializer
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:14:10: error: ‘MODULE_ARCH_INIT’ undeclared here (not in a function)
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:14:2: warning: excess elements in struct initializer [enabled by default]
/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.c:14:2: warning: (near initialization for ‘__this_module’) [enabled by default]
make[2]: *** [/home/pi/AanUit/rfbb/rf-bitbanger/rfbb/rfbb.mod.o] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/pi/linux-source/linux-source-3.2'
make: *** [default] Error 2
pi@raspberrypi ~/AanUit/rfbb/rf-bitbanger/rfbb $
Any tips how to get rfbb on my Raspi? Would a ready-to-install rfbb.o / rfbb.ko work, or does it need hooks in the kernel? Or even recompiling the whole kernel?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.