Created by Sebastian on Mon, 27/04/2015 - 22:32 ![]() In my last entry about universal remote the subject was treated with the Arduino. Integration into FHEM for home control is made more difficult, has to that communication between the devices takes place. Instead of a comprehensive protocol for data communication, the universal remote control is directly related to the Raspberry Pi implemented. In contrast to the Arduino, the GPIO ports are unfortunately operated with 3.3V instead of 5V. HardwareThe hardware is similar to the Arduino directly connected to the GPIO ports. Here, the different availability of ports should be considered when the Raspberry Pi models. In this article, the terminal GPIO pin 22 is provided for the IR receiver and the GPIO pin 23 for the IR transmitter. LIRCInstead of a small library for IR detection and sending LIRC is used. "LIRC is the abbreviation for Linux Infrared Remote Control. This is a program for Linux that allows you can put commands from IR remotes in program instructions. What is needed is for only one infrared receiver. [...] To to decode the signals from remote controls correctly, you need a configuration file that is tailored to the respective remote control. you can either create this yourself, or download an appropriate file from the Internet. " (Source: Wikipedia ) Installation and setup on the Raspberry Pi there is an interesting article which serves for the following calls as a base. Installing LIRC done simply by apt-get.
To load the required modules manually and to test them there modprobe. In the lirc_rpi the correct assignment of the GPIO ports must be observed!
UPDATE: 27/04/2015: Immediately the module is no longer on / etc / modules GpsDrive but over /boot/config.txt
The modules are loaded at startup, this must be entered in the modules file.
The lirc device can be determined by ls in the dev directory.
In the config file of the LIRC device and the modules must be entered.
Restarting the daemon.
test receiverThe receiver can be tested to determine its basic functionality by using the LIRC daemon gestommt and by mode2 the RAW output is viewed by the device. Pressing any key on a IR remote control should turn space and pule entries appear.
testing stationsThe initial lircd.conf is empty. It can be used either existing configuration files, unless you record your own which are for the remote control, or.
Existing configuration fileIn the SourceForce remote project many remotes have already been recorded. Also provides with LIRC own files.
When YAMAHA RAX9 remote control, there is already a file in the project.
The program irw the inputs of the remote control can be read.
If there is no output appear the daemon testweise be started in the foreground. Errors or warnings are displayed Possibly here.
You can send faxes using irsend.
Create your own configuration fileThe daemon is stopped and a separate file for each remote is irrecord with the program recorded.
For SAMSUNG - AA59-00743A remote control a possible call would be as follows.
The program guides the user through the process of recording. The list of key codes helps correct assignment. After picking up the generated file is copied as new /etc/lirc/lircd.conf and restart the daemon. Agent irw as described above can be found in the pressed keys.
The same is for all other remote control performed (here, the LG - AKB73615701).
At the end of all the configuration files into one file and used as new lircd.conf.
or
FHEM EinbindungWith the module Remotcontrol a floorplan can be created. On the Floor Plan, all keys are stored. The Samsung remote control may be defined as follows.
The values and rc_iconpath rc_iconprefix define the path for the images. Agent rowXX the lines defined by the buttons. Each button is stored internally by EVENT: IMAGE. The notify treats the click of the button and sends the EVENT at irsend. Examples of the generated files
PROVISIONAL LG file! (Keys are missing!)
ProblemsAre there these are deleted in the line 1 must lircd.conf the entry #UNCONFIGURED. Otherwise, the following message appears at startup.
CommentsElqubanitos (not verified) Fr, 02.09.2016 - 14:47 Help ....:( I'm nearing despair root@ir:~# irsend SEND_ONCE tvpanasonic KEY_1 have constantly the message. Hopefully someone has an idea? Sebastian Fr, 23.09.2016 - 13:11 Hi, do you have a ...Hi, do you have an entry in the config file "begin remote" and "name tvpanasonic"?
Some links are Amazon affiliate links and support the development of the website. Thanks for your shopping on one of the links! I am also a small donation by PayPal.Me/SPech . |
R&D Publishing >