Migrating to the Raspberry-Pi

As expected, migrating from a x86-64 Windows environment to the ARM Raspbian environment isn’t going as easily as copy-paste the code…
… no, there were:
– java code conversions
– git versioning problems
– database access problems
– Serial bus (UART) detection problems
– software deployment problems
– and off course local network problems (because I didn’t had these yet…)

But, we’re getting closer!

2013-04-30-134240

Raspberry-Pi running an IO-service which saves data from remote sensors in a local database

system architecture

Below I’ve added a quick drawing which shows you more or less the current status of the project. At this moment I’m still running on Windows but I received the Raspberry-Pi last week so we can soon start with porting all the code to the Raspbian operating system. That I can hopefully start with next week, so far the administrative website can display IO data that has been stored in the MySQL database but my next goal is to let the individual services talk to each other so that the admin can send XBee commands from the admin website. That will be the goal for this week.
server_application_schets

Buraka @ Casa da Música

Aside of the amazing 60’s party we had on sexta-feira, and the marvelous Brazilian churrasco (with Caipirinha’s included) we had on domingo, this weekend we also found the time to visit the amazing Casa da Música. Here, we attended a Optimus clubbing event which transformed the Casa da Música into a gaint club with multiple bars an places to dance and party. In the main concert room we attended a live performance from Buraka Som Sistema, a Portuguese band that produces mainly electronic dance music. Thanks to their uptempo rhythms we had a very good evening and a very good fim-de-semana, I can highly recommend to attend one of the Optimus clubbing events yourself, even if you’re not very much into electronic music. É muito fixe!

fotos maravilhosas

As promised, a more visual introduction to the city of Porto, I hope you like the analog film effect as this is how them come out of the Canon AT-1 camera 😉

Something about Porto

porto_karte     Porto_kart
Porto (sometimes referred to as Oporto in English) is the second-largest city of Portugal and is located more to the north of the country. It’s build near the Douro river estuary and it is one of Europe’s oldest cities.

Porto dates back many centuries, first traces of civilization were found many even before the birth of Christ. During Roman occupation the city become an important commercial port but become later in occupied by the Moors in the 9th century. Later Porto was recaptured and a military alliance with England was set up. In the 14th and 15th century Porto contributed to the development of Portuguese shipbuilding. Building these ships the age of Portuguese discovery began. During the 18th century the first English trading posts for port wine was established, it was also during this century that Italian architect Nicolau Nasoni designed the beautiful baroque Clérigos tower. It was during the 18th and 19 the century that Porto become an important industrial center and also its population grew a lot. In the 19th century Napoleon captured the city but it was later on recaptured by the 1st Duke of Wellington. It was also then when the first bridges across the Douro river were build (for example the Ponte D. Maria which was designed by Gustave Eiffel) and when the marvelous stock exchange (Bolsa do Porto) was build. During the 20th century Porto was the capital of Monarchy of the North, a 1 month during kingdom in the year 1919, but it is Lisbon which has been the capital of Portugal since the middle ages. In recent years UNESCO recognized the historical Porto center as a World Heritage Site.

Palacio da Bolsa-(69)-Salao Arabe
As for me, when I first arrived here I found the city kind of dirty, degenerated, neglected compared to Gent, the city where I used to study in Belgium. Many buildings are painted over with ugly graffiti while others collapsed on the inside or are about to collapse anywhere soon. For sure all the many rain and the lack of money for repairing leaks must have something to do with it. But living the everyday live I really started to appreciate Oporto, as there are still many nice places to be at or to visit. The city has much potential to become even prettier, if all classic buildings were to be returned to their original state Porto would for sure be one of the nicest cities in the world that you would love from day 1. At night one should really visit the riverside at Ribeira or the big avenue Aliados in the city centre. During the day one could visit many of Oporto’s churches and historical buildings in the old city center, or go to the ‘Nuovo Ville de Gaia ‘ at the other side of the Douro river to try the port wine in the many port houses. On sunny days the beach is always an option as by bus it takes less than half an hour to get to the Praia do Matishinhos, or you can walk there alongside the Douro river which is also very nice to do. The airport is only half an hour by metro, at the other side of the city there is the big football stadium of football club FC Porto which may sometimes play in the Uefa Champions League and near the city center the is also the ultramodern opera house ‘Casa Da Musica’ which I will visit next week when attending a Buraka Som Sistema performance. I also like the many ‘confeitarias’ where you can get ‘um café e um pastel de nata’ for very cheap prices, and off course there is also the bruising nightlife where I always tend to end up in. I might have more pictures soon, I  really got to know the analog camera by now, I only have to scan some of the pictures I took last few weeks…

So as you can see, I’m very happy to have chosen Porto for my Erasmus, até logo!

Star Wars, we’re nearly there!

A FEL (Free Electron Laser) weapon in development, and tests of similar weapons (Naval Sea Systems Command de Laser Weapon System) by the US army indicate that the future is now, Star Wars is just the next step!

Video:

Tweakers.net (Naval Sea Systems Command de Laser Weapon System – LaWS): http://tweakers.net/nieuws/88357/amerikaanse-marine-gaat-met-lasers-op-drones-schieten.html

Wikipedia (free electron laser): http://en.wikipedia.org/wiki/Free-electron_laser

XBee data collecting

So, before I take a few days of vacation to explore the city with some of my friends, a few words about my XBee project. Last week I made a XBee API coordinator node which collected IO sampels from remote XBee devices in AT mode. The analog data was generated by connecting a potentiometer to the AD0 port, with one end tied to Vcc (3.3V) and the other end to ground. Afterwards I collected all the data in a imaginary database by writing all data into a textfile. Data packages I save in the ‘database’ look more or less like this:

4-apr-2013 16:11:43#0008#ZNET_IO_SAMPLE_RESPONSE#0x40,0x2e#0x00,0x13,0xa2,0x00,0x40,0x79,0x5a,0xff#

Last week I also set up a TomCat webserver on which I’m running a .JSP website. When requesting the web page I’m at this moment reading from the text file that is used as database, and afterwards I sort all data in a Treemap<String, TreeSet>. Then, I use the RGraph library which shows the analog sample in a nice interactive graph. A dropdown list lets you select the data from each individual network node, as you can see from the picture below:

chart_firstTest

Parque Nacional da Peneda-Gerês

It takes only a 2 hour drive from Porto to reach the Parque Nacional da Peneda-Gerês, one of Portugal’s nicest places to spend some time in nature. I’m not quite used to living in a city like Porto so for me being away from the busy traffic and carbon dioxide exhaust gasses was really a refreshment. Badly enough we had a lot of rain and the place we stayed at during the night was muito muito frio! Anyway, the park itself is really, really nice and highly recommended for every Erasmus student in Porto. You can either explore it by food but even by car you can catch quite a lot of the park’s treasures (although spending some time in nature and driving a car are more or less the opposite of each other).  The park is rich of natural waterfalls, woods and trees and rocks at the higher altitudes and it is close to the Spanish border (actually the park continues into Spain) so if you never been to Spain either this might be a first time. Though, I prefer the Portuguese part of the park as it seems that nature is left more untouched there.

Viva Porto 011

We also passed the city of Braga and Alveiro (which people call the Venice of Portugal) both when you’ve been in Porto both cities don’t have much more to add. And we also took a lot of rain there so being outside in general was not so good of an idea last week. We also shot a ‘where is Geoffrey’ photo, can you spot him?

Viva Porto 021