Month: January 2010

Getting started to HCS08 BDM programming

I decided to reprogram my wash machine. Then after my wife used the machine for the first time I opened it and realized it uses a Freescale MC9S08AW16 microcontroller.

Now I got some sample of this uC and will learn how to use BDM interface to program it. Fortunately I found a nice site with tips about how to program it:

http://www.physics.mcmaster.ca/phy4d6/MCU/MC9S08/MC9S08QG8%20Getting%20Started.htm

Other very interesting link specially for Linux users:
http://www.sparetimelabs.com/funwith08/funwith08.html

MicroSD WiFi with Linux support

I like Motorola A1200 too much, in fact I think it was the first Linux cell phone released at many countries. This cell phone has some drawback as missing WiFi and GPS support.

But at least the WiFi problem could be solved using this microSD card:
http://www.spectec.com.tw/sdw823.htm

This microSD card uses a WiFi chip developed by a Japanese company called KeyStream. Hopefully this company was acquired by Renesas and it release it Linux driver as OpenSource:
http://en.qi-hardware.com/wiki/Renesas_KeyStream_Wi-Fi_Driver_for_Linux

I didn’t test it until now, but I am considering to buy one to test it on my A1200 cell phone.

Installing Babylon dictionaries on Ktranslator

Currently I use Ubuntu as main operating system, it is based on Gnome, but I was missing a great software when I was using KDE few years ago. This is Ktranslator a great translator software developed by a Brazillian guy.

Using Ktranslator you just select the word you want to translate and press Ctrl, then will appear a pop-up showing the translation.

Hopefully there is Ktranslator on Ubuntu repository:
$ sudo apt-get install ktranslator

Now you need to install dictionaries, we can use a free dictionary, but Babylon dictionary is more complete. Then first download BGL files (Babylon_English_Portuguese.BGL and Babylon_Portuguese_English_dic.BGL), I will not point you to site where you will find it, just search on google, you will find a page with many BGL files.

Now you need to convert it to .dic, first install the converter:
$ sudo apt-get install dictconv

Now execute the converter tool:
$ dictconv -o Babylon_English_Portuguese.dic Babylon_English_Portuguese.BGL

Remove some unused characters:

$ cat Babylon_English_Portuguese.dic | sed 's/\$[0-9][0-9]*\$\t/\t/' > Babylon_English_Portuguese_novo.dic

Now convert it to Startdict format, first install stardict tools to get to converter:
$ sudo apt-get install stardict-tools

Then run the converter:
$ /usr/lib/stardict-tools/tabfile Babylon_English_Portuguese_novo.dic

It will create 3 files:

Babylon_English_Portuguese_novo.dict.dz
Babylon_English_Portuguese_novo.idx
Babylon_English_Portuguese_novo.ifo

This is time to run ktranslator application, it will ask to configure the directory. Then choose an intuitive name as Babylon_English_Portuguese and press Next. Now select Stardict format and browser to the directory where you place the above files.

Ktranslator will filter other files, you will see only the “Babylon_English_Portuguese_novo.ifo”, select this one and complete the instalation.

Now you can select any word and press Ctrl to get it translated instantaneously.

Source: This page was very useful
http://www.vivaolinux.com.br/dica/Convertendo-os-dicionarios-do-Babylon-para-o-Stardict