BrickPi Over at Kickstarter

So far I've been using my RasPi for virtual applications such as hosting my own cloud services. But the Pi can do much more and I've been thinking about using one to control something in the real world beyond my music streaming setup with Squeezeplug. Interfacing with the real world requires inputs and outputs, of which the Pi has plenty. Driving motors and reading sensor input requires some special hardware though and there are a couple of add-on boards available for the purpose. Thanks to a tip of a friend I just found the add-on I really want to have for that purpose:

The BrickPi: LEGO® Bricks with a Raspberry Pi Brain

The BrickPi is a board and a casing for the Pi to integrate into Lego Mindstorms. I can already imagine building a couple of robots to do some fun stuff, like a robot on wheels with a web cam on top that I can send through my house to see what's going on when I am not at home. No problem with a Wi-Fi enabled Raspi on the robot that controls the wheels. Incidentally, the Raspberry foundation has just announced the availability of a small camera add-on module. Ultimately, though, what I have in mind with it is to give it to my nephews and nice as a computing and construction learning tool.

Note that the BrickPi is not a finished product yet, it's a kickstarter project and in case the people behind the project don't deliver your money's gone. Well, they have my 55 dollars now.  With 648 backers at the time of writing, $37.600 in funding and a company behind the project that has been working on similar products before I think chances are quite high that they deliver on their promise.

The delivery date is foreseen for August. Time enough to dream of further things to do with it for myself and how to pitch it to my nephews and nice as a Christmas present.

SqueezePlug on the Raspberry Pi

Since I discovered how I could use cloud services such as file sharing as well as calendar and address book synchronization with ownCloud and a Raspberry Pi from my own home without having my data stored I keep having revolutionary experiences with this low cost, low power hardware that runs Linux. My latest own-use discovery is SqueezePlug.

I've been looking for a web radio solution for quite a while now. While I have an off the shelf web radio with a display in the kitchen I wanted to have a somewhat more embedded and hackable version for the living room that connects to my Hi-Fi set and can be controlled from my PC and mobile phone. There are quite a number of proprietary solutions out there but they come at a relatively high price and remote controlling the devices always seems to go via a cloud service outside my home. Particularly the later part is not my cup of tea.

Then I stumbled over SqueezePlug which is Logitech's Media Server (LMS) and a Streaming Client both running on a Raspberry Pi. With a nice looking and easy to use web interface, I can now remotely control my stereo set over Wi-Fi without the need of an external web service. For additional sofa comfort, there's 'Squeezer', an Android App to switch channels and to control the volume. The source can be found here and is available in the Google Play store here.

At a power cost of around 6 euros a year for the Raspi (!) I can even keep it running 24/7 to compensate for the somewhat long delay before the LMS is available after power-on. So for 40 Euros for the Pi, 10 euros for a nice casing and 10 euros for a USB sound adapter I have a full fledged and remote controllable web radio in the living room. Perfect!

P.S.: You might wonder why an external sound adapter was necessary!? For some strange reason the Raspi's analog line out that works o.k. with other software produced some strange crackling sounds when using with the SqueezePlug software. No problem over HDMI or over an external USB sound card. I tried two different ones and both were recognized by the Raspian Linux OS without the need for installing anything.

Android Stability: Over 1000 Hours to Reboot

On my desktop PC I proud myself with only having to reboot perhaps once a week. While I consider this as a sign of operating system stability I recently noticed that I could not remember when I last rebooted my Android based smartphone. Even though I use a lot of apps such as the web browser, Google maps for navigation, the Kindle App and FB-Reader for ebooks, K-9 for email, the weather app, train table lookup app, etc. etc. it took over 1000 hours to finally come to a point when a reboot was necessary. That's over 40 days the OS was running non-stop. A new personal record as my previous phones usually rebooted in some sort of self-defense mechanism every now and then.

Remote Cloud Reset with a GSM Power Socket

It doesn't happen often but it does happen: Just when you are on the other side of the world, your cloud services at home hangs up. The DSL router looses sync, the VPN gateway has decided to go belly up or one of the servers stops cooperating. So what can be done? If one could only perform a reset…

In the past I've used a power socket with a timer to cut power once during the night to reset everything. Crude but effective with the slight disadvantage that in the worst case I have to wait till the next morning for my services to come back. Another slight disadvantage is that late at night local time is not necessarily a convenient time in another timezone for the VPN service to go down for a couple of minutes during local daytime. So I was looking for a more sophisticated solution and have found a cool "out of band" way to reset my network at home, a GSM Power Socket.

In Germany the GSM power socket is sold under the brand name of "GSM-One", for example via Amazon for 89 euros. To switch power on or off a simple SMS with a command code inside is used. The power socket then returns a status message to confirm the command. Very cool. Even cooler is the the SMS alert message when a power outage occurs and an SMS status report once power returns. Very nice, this puts me back in the drivers seat again no matter where I am.

In other countries, the device is sold under different brand names. In the UK for example it Sells as "Lindy GSM Power socket" for a shocking 142 UK pounds. For those not familiar with currency exchange rates between pound and euro, it's around 1.1 at the moment. Quite a hefty surcharge to order it in the UK…

A Raspberry Pi, Asterisk and Ekiga a Skype Alternative?

The previous post on the Raspberry Pi as a GSM gateway has made me think of what other uses such a setup could have. A bit of a thorn in my privacy and open source loving heart is Skype. Closed source and controlled by Microsoft is about as far away from privacy and open source as one could imagine. But it works and I use it quite often and especially with its video calling option I didn't see real alternatives. That is until now…

Perhaps the following setup should do the trick:

  • A Raspberry Pi hosted at home
  • Asterisk on the Pi, 25 Mbit/s down and 5 Mbit/s offers ample capacity for voice calls
  • Ekiga for SIP telephony between two PCs. According to the Ekiga page, HD voice and HD video streaming are supported.

So on paper this looks pretty cool as it would cover my application of making video calls between two PCs, one usually in my home network and the other somewhere on the Internet. With the SIP telephony server running in my own network and the voice and video stream running peer to peer it's about as private and open source as it gets. But how well does it work in practice? There are lots of unknowns beginning on the PCs and how well Ekiga runs on them down to the network layer and how Ekiga can handle the NATs in between. With a spare RasPi available I wonder how long I can resist giving it a try!? 🙂

A Raspberry Pi as a GSM Gateway

I've been running my ownCloud server on a Raspberry Pi for quite some time now and to say I am enthusiastic about it is rather an understatement. The Raspberry's versatility is incredible and I've recently come across another application that could come in quite handy in the future: Running Asterisk PBX on a RasPi and using it as a GSM Gateway.

Here's a post over at the Carrier-Connect blog that describes such a setup to forward calls over IP for a person's mobile number of country A to the person's mobile number of country B with the help of two Raspberry Pis and two 3G/GSM data sticks that are also circuit switched voice capable. And to make the Asterisk setup as painless as possible there's even ready to go Raspberry Debian (Raspbian) image and documentation available here. Amazing!

I’ve Seen A Foreign ownCloud

From what one reads on the web, OwnCloud seems to have become quite popular. While I have two small Owncloud servers of my own at home I had yet to see someone else use it, too. And to my surprise it happend faster than I thought.

When I recently passed by the desk of one of my co-workers I noticed the familiar ownCloud design in his web browser. It turned out that it was the ownCloud of a company that wanted to share a number of documents with him without using a public storage provider.

Very nice so now I know for a fact now I am not alone. While Dropbox or similar services would have spared the company the effort to set up their own server it looks like privacy and confidentiality were ranked higher than convenience.

How nice!

International Bandwidth Equalization

Here's a link to an interesting post over at Telegeography titled "International bandwidth demand is centralizing". The figure at the top of the post nicely visualizes the two key messages:

Not surprisingly lit (used) capacity of undersea cables continues to increased at a staggering pace, around 50% year over year. Between Europe and the US, for example, capacity of around 12 Tbit/s was added in the past 5 years. Terabits…

The second point of the figure is that unlike in previous years, bandwidth additions have been pretty much equal across the globe and are no longer focused just between Europe and the US. I would have thought differently with the majority of cloud and video streaming services being operated by US companies. But perhaps not so surprising at all with companies such as Akamai making sure content is not streamed across undersea cables but from a server as close to the user as possible.

ownCloud and Bookmarks

Remember Delicious? Once upon a time I used Delicious quite a lot to store bookmarks I didn't want to have in the bookmark menu of my web browser and which, in all likelihood, I would never need again anyway. But one never knows and there are pages which are not easily to be found with a search engine and every once in a while I was glad I could go back to my "bookmarks dump".

Then in 2011 Delicious as we knew it faded away and morphed into something different and I had to re-import the bookmarks into my web browser which was an adventure all by itself. This worked quite well for some time but for some reason the bookmark search algorithm in Firefox was really slow and I had to delete the better part of my bookmark pile. But now I'm back in the game again with the ownCloud bookmark application.

After all my posts on ownCloud in the last couple of months you must either have one of your own by now or be weary of my ramblings on it. But I can't help it, I just like it and it proves more and more useful every day for sharing documents as well as calendar and address book synchronization. With a little bookmarklet in the browser I can now save bookmarks again in the cloud with a single click and search through them when needed in ownClouds browser based GUI.

Just like in the good old Delicious days but with privacy added as the data is stored on my server at home. Perfect!

Beware of a Carrier Grade NAT (CGN) Near You

IPv4 addresses are slowly running out. As a consequence a number of ADSL and cable network providers have now started to give customers non-routable private IP addresses and perform Network Address Translation (NAT) at their border gateway to the rest of the Internet. As the NAT is performed on their turf they call it Carrier Grade NAT or CGN.

While being state of the art in wireless networks for many years now CGNs certainly have one advantage, they shield mobile devices from unsolicited packets from the Internet and hence keep power consumption down. Unfortunately there is a major disadvantage as well which is especially troublesome for fixed line connections at home: Your network is not reachable anymore for incoming connection requests.

Many people won't notice but as soon as you are running your own services such as an Owncloud server you are out of luck. Verizon, for example, is switchng to CGNs and private IP addresses and some German cable operators have started doing it as well. While Verizon at least offers a way to opt it seems that others are less flexible. Too bad when you signed a one year contract… I wouldn't be surprised if some will even start asking for extra money for a public IP address. Market economy, scarce resources, you get the idea…

IPv6 is obviously the solution but networks, devices and VPN gateways supporting it are still scarce. Therefore make sure before changing your home network provider that you will really get a public IP address!