The FCALLBOX3 Remote Display Box is controled by a remote control which can be Radio like X10 Marmitek - UR86EL or Infrared or a phone under Android.Its driver is based on the LIRC package which the web site can be found here.
NOTE : if you have installed the Fcallbox with the automatic script described
here
You can ignore the procedure below.
First, update your system, by connecting to the box in ssh an by typing :
sudo rpi-update
sudo apt-get update
sudo apt-get upgrade
|
Radio REMOTE INSTALLATION
|
Load the librairy :
apt-get install libusb-dev
apt-get install dialog
|
Download the LIRC source code :
sudo wget http://sourceforge.net/projects/lirc/files/LIRC/0.9.0/lirc-0.9.0.tar.bz2 -P /var
cd /var/
tar jxf lirc-0.9.0.tar.bz2
|
Configuration :
sudo -i
cd /var/lirc-0.9.0
./configure
|
Do : type 1 -> USB devices -> ATI/NVidea/X10 RF Remote (userspace) -> Save configuration & run configure
Compilation :
make
make install
mkdir /var/run/lirc
lircd
|
add the line folowing to
/etc/modprobe.d/raspi-blacklist.conf
echo "blacklist ati_remote" >> /etc/modprobe.d/raspi-blacklist.conf
|
Download the here file ur86el.conf
And copy it in /etc/lirc/lircd.conf :
cp ur86el.conf /etc/lirc/lircd.conf
|
Launch the command
irw and press some keys on the remote control, you should see :
00000020ee11420d 00 num_2 microapp6in1
00000020ee11420d 01 num_2 microapp6in1
00000020ee11420d 02 num_2 microapp6in1
00000020ee11420d 03 num_2 microapp6in1
00000020ee11820d 00 num_1 microapp6in1
00000020ee11820d 01 num_1 microapp6in1
|
INFRARED REMOTE INSTALLATION
|
Install
lirc :
sudo apt-get install lirc
|
modify /etc/modules :
echo lirc_dev >> /etc/modules
echo "lirc_rpi gpio_in_pin=4" >> /etc/modules
|
change /etc/lirc/hardware.conf with the content following :
########################################################
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput"
# Don't start lircmd even if there seems to be a good config file
# START_LIRCMD=false
# Don't start irexec, even if a good config file seems to exist.
# START_IREXEC=false
# Try to load appropriate kernel modules
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
########################################################
|
Restart lirc :
sudo /etc/init.d/lirc stop
sudo /etc/init.d/lirc start
|
modify /boot/config.txt with the command following :
echo "dtoverlay=lirc-rpi,gpio_in_pin=4" >> /boot/config.txt
|
Launch the command
sudo /etc/init.d/lirc stop followed by
mode2 -d /dev/lirc0
you should see something like that when pressing some keys :
space 16300
pulse 95
space 28794
pulse 80
space 19395
pulse 83
|
If you have a remote control Total Media in Hand
Download the file here totalmedia.conf
And then copy it to /etc/lirc/lircd.conf :
cp totalmedia.conf /etc/lirc/lircd.conf
|
If not, you will have to generate it with
irrcord as follow :
irrecord -d /dev/lirc0 ~/lirc.conf --disable-namespace
|
And then copy it to /etc/lirc/lircd.conf :
cp ~/lirc.conf /etc/lirc/lircd.conf
|
Launch the command
irw then press a key, you should see the codes displayed :
0000000000001004 00 num_4 Total_media_in_hand
0000000000001004 01 num_4 Total_media_in_hand
|
INSTALLATION ON MOBILE OR TABLETTE ANDROID
|
Download here the apk file to install on the Android mobile