I’ve delayed looking into the Raspberry Pi for quite some time now. I’ve known how awesome it is, but also know that I didn’t have a lot of time to tinker around with it. However, recent developments in late 2013 convinced me that I needed to spend time with this tiny computer. Since the past holiday season up to today, I have bought two Raspberry Pis, each with an enclosure, all the nifty tiny USB hardware that extends its functionality, and even a real-time-clock extension attaching to the GPIO pins.
The things that convinced me to look into it are the developments related to cable TV (i.e., Comcast, Time Warner, FIOS). There’s this cable tuner, called HD Homerun Prime, that you can purchase through the retail market. Like TiVo devices, it takes in a CableCARD and attaches to your home router. Cable providers are required by law to allow you to request a CableCARD if you have a subscription with them. It’s normally free for one CableCARD, or sometimes they charge a minimal fee for it like $1/month.
With this CableCARD and the HD Homerun Prime, your cable tuners (3 in the HD Homerun Prime) are made available to your home network through DLNA/UPnP. HD Homerun Prime had this UPnP capability made available in its firmware in late 2013.
We have a room in our house that doesn’t have a cable outlet. Coincidentally, we have a combo TV/DVD there. The only way we could get cable into that TV was by using a low-tech A/V sender/receiver that uses some RF frequency – the one that is highly susceptible to microwave signals (that is, the A/V signal craps out when the microwave is in use).
In 2013, the media center usage for Raspberry Pi took a dramatic upturn. First, they made available a per-unit license for MPEG2 decoding for a low price of £2 (about $4). A lot of cable providers encode their streams as MPEG2 (whilst I think most dish providers use MPEG4). Another development was that they enabled CEC capability in the HDMI socket on the Raspberry Pi. With that, the media center distributions for Raspberry Pi, like RaspBMC and OpenElec, provided all that I needed to switch over to a full UPnP solution to my isolated TV.
I installed the OpenElec distribution image. It’s smaller and customized for a lean media center so a lot of software packages are not present. But that’s why I bought another Pi just for general-purpose tinkering and relegated the first Pi for my isolated TV. OpenElec can easily fit in an SD card with a small capacity. I used a 2GB SD card. I attached a nano-sized WiFi USB dongle (150Mbps), temporarily attached a USB keyboard/mouse, and connected the HDMI port to our main TV for testing.
OpenElec boots directly into XBMC. There are several XBMC skins out there to customize its appearance, but I just stuck with the standard out-of-the-box skin “Confluence”. First thing I noticed is that the HD Homerun Prime is detected as a UPnP source. So I added the Favorites subfolder as an XBMC video source. I’ve pre-selected the channels that would appear in the HD Homerun Prime Favorites subfolder through the small web interface exposed by the HD Homerun Prime, the same web interface where you can read the codes off when you set it up with your cable provider over the phone with their tech support. I set up the Favorites so I could see a list of channels shorter than the full list of channels available to me. Who watches those home shopping channels anyway?
The Raspberry Pi feature that caught me by surprise is the CEC capability. With CEC, I actually didn’t even need a temporary USB/mouse keyboard to set up OpenElec. The cursor movement buttons on most modern TV remotes are received by the TV infrared receiver, and passed through the HDMI cable using this CEC feature. The other device at the end of the HDMI cable, which is the Raspberry Pi, receives the cursor movement and uses that to navigate the XBMC interface.
One hiccup was that when I moved over the setup to the isolated TV, I found that my small TV/DVD device didn’t have the CEC feature. It was a no-brand small 22” LCD TV, and from what I’ve read, some older smaller TVs do not have CEC. So what’s available as a remote control for OpenElec/XBMC? I didn’t want a full keyboard/mouse because it felt too geeky.
First, I tried Bluetooth and it worked. I had a tiny Bluetooth USB dongle which the Pi readily recognized. From OpenElec’s Bluetooth setting, I was able to pair an extra Wiimote controller that we have. I tried pairing a no-name Wiimote clone, but it would only recognize the four cursor keys. With an original Nintendo Wiimote, it was able to recognize the cursor keys, Enter and Cancel keys, and even the volume keys. So that would have worked, but using a Wiimote still felt geeky.
I read that certain inexpensive RF remote controls (the ATI All-in-wonder remotes) would work, and it won’t cost more than $15; I also read that most media center IR remotes would work and are actually less expensive. In the end, I decided I want to use the existing remote control from that no-brand TV. I ended up buying Flirc, sort of a universal learning IR receiver. The Raspberry Pi easily recognized the Flirc dongle, and I was able to program/teach the dongle with the TV remove using the Windows application available from their site. Very easily too. I had to pick a remote button that the TV would not recognize. I picked the “Guide” button and had it mapped to sending a “Ctrl-Home” keyboard equivalent to the Raspberry Pi. In the Raspberry Pi XBMC layout (I had to use SSH or the command-line to do this), I added a mapping in the keyboard layout to make Ctrl-Home bring up the mapped HD Homerun Prime Favorites source. What this accomplished was that the “Guide” button on the remote served as a go-back-to-the-top-level-menu command, then with the arrow keys in the remote, you can scroll through and select from your favorite channels.
With the UPnP streaming, I could even access my cable (each of the 3 tuners will be reserved as it is accessed) channels through UPnP players on any of our phones, tablets, or computers. For Windows, you can easily see the HD Homerun Prime as a UPnP device and browse through the Favorites folder (it plays the cable channel in Media Player). For Android devices, I use the combination of Skifta and WonderPlayer.
I opted to use the SD channels because it was using the wireless network. I heard that HD channels, although possible, could put a strain in your wireless network. Streaming HD channels to the Pi should not be an issue over a wired network though. Also, I’ve yet to set up a new 802.11ac router to see if it provides enough bandwidth to switch over to using HD for my setup.
I’m now ready to return my cable box to my cable provider, and save on that $10-something they charge me monthly for it. I will miss the DVR capability right now (also an additional $10-something per month that they charge), but also had set up a small Windows media center box to be my DVR. I’ve yet to see if I can configure Windows and/or the motherboard to allow the media center to sleep/wake on-demand without the need to use some Wake-On-Lan software to explicitly wake it up. I’ve tested it with WOL, but I really want it to automatically wake when something else in the home network makes a request to any of its services. Having that media center setup also means that I could make it host the electronic program guide that can be accessed by my isolated TV. But that media center setup is another story.
If only the HD Homerun Prime had an additional HDMI socket to directly connect one of the TVs that sit close to it. But I’m not complaining.