fredag den 25. april 2014

Setup and remote connection

I use Putty to connect to the Pi, as I enabled SSH access during the first setup.
I will now try to setup the piface module using this guide. Just follow the guide.
This step went rather smooth, you can see the remote commands comming in on your terminal.

To install the CEC capability, we install libcec by following this guide.  If you don't have root privileges, put "sudo " in front of each command.
Compiling will take a good half hour.
This turns out not to have any python API, so I used this instead.

To get the yaml commands running, install
 sudo apt-get install python-yaml

For the LIRC bindings to python:
sudo apt-get install python-lirc

Don't forget to update your software once in a while:
sudo apt-get update
sudo apt-get upgrade all

(This is equivalent to your Windows update)

Using the Raspberry Pi as an IR remote interceptor

In this blog, I will document my effort to use the Raspberry Pi computer as a Anynet + Controller.
I own a Samsung Soundbar which does not "play nice" with the rest of the TV setup, requiring different remotes.  So I will try to intercept IR remote commands from my TV remote and convert them to Anynet + commands, sent over the HDMI cable.  Anynet is just Samsungs interpretation of the HDMI CEC standard, so this might be of interest to equipment of other manufacturers, supporting for example Bravia Link or Easy Link.

The hardware I bought is the Raspberry Pi B model and the Piface display, which contains an IR receiver.
I used the preinstalled noobs sd card and after connecting everything chose the default Raspbian OS.
I connected the Ethernet cable during the very long and boring setup process but should not have done that.  The Pi crashed and refused to reboot.  Keeping the Shift key down during reboot allowed me to go back to the original menu and redo the installation.  I will keep the Ethernet cable off until the install is finished.

As the font is unreadable small on the TV, and my keyboard is crap, my first priority is to establish remote control so I can control the Pi from my PC over telnet or SSH.
At the first boot in Raspbian, it comes up with a configuration menu.  Apart from the usuals, such as keyboard and timezone, I went in the advanced menu and found the option to enable SSH and also an option for loading modules needed by Piface.