RF Bitbanger IS BACK!

Building and connecting hardware to OpenNethome
Post Reply
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

RF Bitbanger IS BACK!

Post by Nasty76 »

Hello all nethome users I have today look is that possible to get rf bitbanger to work with new rpi image I found this.
https://github.com/notro/rpi-source/wiki
you can download rpi-source with this command:

Code: Select all

 sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source &&/usr/bin/rpi-source -q --tag-update
Warning you need look rpi-source page to get idea how u install correct gcc packet to get stuff work.

there is program rpi-source that give you current Linux header files which allow compile again rf bitbanger driver which found here:
https://github.com/tandersson/rf-bitbanger
I test physic connection tomorrow but all look good and driver compile normal and nethome again see bitbanger as device.
after compile drivers I edit nano /etc/rc.local and add lines there which load bitbanger driver at reboot.
sudo nano /etc/rc.local
sudo insmod /opt/nethome/bitbanger/rfbb.ko
sudo mknod /dev/rfbb c 248 0
sudo chown nethome:dialout /dev/rfbb
sudo chmod g+rw /dev/rfbb
ctrl + x to save file

Now I can again enjoy my aurel tx433mhz mid transmitter which has much better range than tellstick duo :D
there is datasheet for module http://www.farnell.com/datasheets/332707.pdf
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: RF Bitbanger IS BACK!

Post by Nasty76 »

OOOOH YEAH my bitbanger device working again , I m happy because Stefan " who make nethome" make some features MUCH better than tellstick , Ieft my tellstick as backup device if some why bitbanger again stop working. That aurel 3v mid 433mhz module is much powerfull than tellstick transmitter.
if some one wanna try this need one aurel 3v tx transmitter and some condensator to powerline in module and nothing else.
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: RF Bitbanger IS BACK!

Post by Nasty76 »

Oh my I test that audio receiver too with bigbanger and Stefan is awesome coder :P there is no delay when u take finger off lamp switch gaaabooooom lamp go on without delay. I don't know if we can hack tellstick firmware but that seems to be little slow to execute commands.
krambriw
Posts: 86
Joined: Sun Jan 04, 2015 8:48 am

Re: RF Bitbanger IS BACK!

Post by krambriw »

Hi Nasty76,
I have long and very good experience with the Aurel stuff. I built some transmitters and receivers already a couple of years ago. This aurel moduls are fantastic. Especially I remember I used a high power tx module and it could easily control devices inside my house from distance of more than 250 meters.
Some pictures of the old still working devices are here:http://wiki.nethome.nu/doku.php/homehw
Those designs where still using the audio device support of NetHome. I think it is better to use the bitbanger solution. Most likely is faster.

Have you seen any kind of similar solution for the rx part also using an aurel rx module?
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: RF Bitbanger IS BACK!

Post by Nasty76 »

I use this for my receiver http://wiki.nethome.nu/doku.php/walterreceiver gpio based receiver I not find , and yeah bitbanger is great when driver compile working :D . I have that used first via own made receiver and transmitter but some rpi update bitbang driver not compile and after 16h trying I buy tellstick duo.
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: RF Bitbanger IS BACK!

Post by Nasty76 »

WARNING BITBANGER NEED RECOMPILE AFTER RPI-UPDATE
if there come some update bitbanger probably not work.




today I start look if bitbanger work new minibian image , and this time stuff look good.
take minibian image -> there is nothing extra nano , git , etc need install manual.
first run
- apt-get install raspi-config
-expand file system
-apt-get update && apt-get upgrade
-apt-get dist-upgrade
-apt-get rpi-update
-rpi-update
-reboot
-apt-get install nano make gcc g++ git etc
-download kernel use uname -a I get answer 3.18.9+
then ->

Code: Select all

cd /usr/src
wget  https://github.com/raspberrypi/linux/tarball/rpi-3.18.y
mv rpi-3.18.y
tar xzf rpi-3.18.y

cd raspberrypi-linux-*
zcat /proc/config.gz > .config
make oldconfig
make modules_prepare
wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers
KSRC=`pwd`
pushd /lib/modules/`uname -r`
ln -s ${KSRC} source
ln -s ${KSRC} build
popd

pushd /usr/src
ln -s ${KSRC} linux-`uname -r`
ln -s ${KSRC} linux
popd
git clone https://github.com/tandersson/rf-bitbanger
cd rf-bitbanger/rfbb
nano rfbb.c 
and remove line include asm/system.h
check gcc --version if you not have  gcc 4.9 do next 
nano /etc/apt/sources.list
change wheezy to Jessie
apt-get update
apt-get install gcc g++
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
check if 4.9 is now default if not look google to help how upate alternatives correct
if that is 4.9 you can change back Jessie to wheezy to use stable apt provider
now after many smoke and coffee cup we can try compile bitbanger 
make KERNELDIR=/usr/src/Linux
and look mom my bitbanger compile and now that start again, rest is old way insmod xxxx etc.






-I use this to get newest gcc https://solarianprogrammer.com/2015/01/ ... -programs/
ps if bitbanger not connect look insmod rfbb.ko debug=1 that default 248 is my pi 247
Post Reply