studying my hobby


AVR, Raspberry Pi, VW Beta: VAG CDC Faker

(4 votes, average: 5.00 out of 5)

I was tired connecting my cellphone with an old cassette adapter to my VW Golf with an Beta 5 in it. I needed something new, something cool. And here it is, a fully functional interface between the Beta 5 and any device you want to play the music with.

This project raised out of an ebay search: I just wanted to know if there is a solution to get an AUX input on the car radio. Yes there is, even complete mp3 players are available. But that's not what I wanted - at first!

Then I started digging the web for more info about the protocol the radio talks to cd changers.
The idea was to build a tiny thingy that fakes a cd changer and simply enables the AUX input (as it is available in several online stores). But during the development my ambition became greater and I wanted to read the keys pressed on the radio to remote control my RPi.

1. Understanding the Protocol

First of all this is the pinout of the radio:
The interesting cell is no. 3, the blue one.
DATA IN simply is MOSI of an 8bit SPI interface with special timings between the bytes
CLOCK is SCK of the SPI
DATA OUT is the key code of the pressed key on the radio itself

The radio needs a sequence of bytes to enable the AUX input and display CD# and TR#. It looks likes this:

frame cd#   tr#   time  time  mode  frame frame
0x34, 0xBE, 0xFF, 0xFF, 0xFF, 0xFF, 0xCF, 0x3C

cd# and tr# are sent inverted. So this sequence will display: CD1 TR00
mode sets the playmode (PLAY|SHFFL|SCAN)


FTDI: interfacing FT1248/FT220x over SPI

(2 votes, average: 4.50 out of 5)

In my current project I want to interface the FT220x over 1-bit SPI with an TI piccolo TMS320F28027.
After some trouble and various cups of coffee I managed the whole thing by implementing the SPI in pure software.

I wasn't able to get it working with the built in tri-wire hardware SPI as the FT uses MIOSIO and MISO to send/receive data and status respectively.

Because there is no sample code available on the web concerning this problem I decided to publish my library here. Take a look into the datasheet for further information!

Sending data over SPI to the FT1248/FT220x is quite easy: Just send a WRITE_REQ (0x00) followed by the payload on MIOSIO.

Reading is a bit more complicated: We need to know how many chars to read. Well, send a READ_REQ (0x02), evaluate MISO and read data on MIOSIO if the FIFO is not empty.

Filed under: C/C++, Hardware, Microcontroller, Software | 5,327 views Continue reading

Chrome Extension: DHL Track and Trace

(No Ratings Yet)

Do you often buy things in the internet? Are you annoyed of copy-pasting the tracking id from the delivery confirmation mail to the DHL website?
My extension makes this problem to be a thing of the past!

Rightclick on a selected tracking id: The context menu entry takes you directly to the DHL infopage of your parcel.
On the optionspage you can make a list of urls where this extension should be enabled. In addition the language of the DHL webpage is selectable.

You can find my extension right in the Chrome Webstore (DHL Track and Trace | DHL Sendungsverfolgung | Suivi des envois DHL).

Filed under: Chrome Extensions, Software | 3,793 views No Comments

Remote printing: Debian and Google Cloud Print

(8 votes, average: 4.75 out of 5)

Have you ever heard of google cloud print? It allows you to add your printers to the cloud and share them. You can print on them from any device supporting this service, even if you are on another network. This sounds pretty cool, I gave it a try and I am really amazed.

None of my printers doesn't support cloud print directly, so I need a google chrome installation to share the printer. But I don't want to have my computer to run when printing remotely. There is a project called Google CloudPrint on Linux which allows you to use this nice service from the command line. At this point the dockstar or the linkstation joines the game.


Android: pyLoad App

(2 votes, average: 3.50 out of 5)

Since I installed pyLoad on my dockstar I used Jabber to get download statuses and add new packages. Then I updated pyLoad to v0.4.5 and saw there is support of an Android app. It's pretty cool though, you see every info you want to see when using a remote app. These three sections of the web interface are available: Overview, Queue and Collector. More or less the whole web interface is put into this app. There are no problems so far, everything is working flawlessly.

If you want to install it on your phone, click the QR code or scan it with your android device.

Tagged as: , , | 3,117 views 2 Comments

Dockstar: new Kernel 2.6.38 ready to use

(4 votes, average: 5.00 out of 5)

During the last days I was playing around with several kernel-configs and different release versions. Today a new version came out and I built it with the last config I used. In my build I additionally enabled XFS filesystem support and USB sound. If you install my kernel, you don't have to change anything except the device ID concerning the LED if you come from gorgone's heavykernel.

If anybody knows how to build a kernel with gspca drivers for webcam support I would appreciate a short mail!

Tagged as: | 11,253 views Continue reading

Motorola Defy: instabile Verbindung bei WLAN 802.11n

(No Ratings Yet)

Auch mir ist aufgefallen, dass mein Defy oft die Verbindung verliert wenn eine Fritz!Box 7270 mit eingeschaltetem 802.11n benutzt wird.

Bei meiner wöchentlichen Beschau einiger Blogs bin ich auf einen Beitrag von dev-eth0 gestoßen, der WLAN-N im Handy abschaltet und so das Problem umgeht.
Zu dem Blogeintrag geht's hier:

Tagged as: , , | 18,788 views No Comments

Drag&Drop Renamer 1.0

(No Ratings Yet)
Es ist wieder an der Zeit den Ordner für die "Wallpaper-Diashow" zu erneuern.
Ich brauche ein Tool, welches mir ermöglicht schnell und unkompliziert verschiedene Dateien zu kopieren und gleichzeitig umzubenennen. Dies soll auch funktionieren wenn sich bereits bearbeitete Dateien im Zielordner befinden. Meine Lösung des Problems lautet D&D Renamer.


AutoCopy 1.0.3

(No Ratings Yet)
Es wurde die Aufgabe an mich herangetragen ein Tool zu schreiben. Sobald ein USB-Gerät angeschlossen wird, soll dies automatisch einen bestimmten Ordner kopieren. Warum sollte es nicht möglich sein das Vorhaben als Windowsdienst im Hintergrund laufen zu lassen? - Die Lösung: AutoCopy.


Luke DirWalker 1.1

(No Ratings Yet)
Als Grundidee für dieses Projekt dient der Gedanke eine Auflistung aller Dateien eines bestimmten Ordners, sowie dessen Unterordnern zu erstellen und als Textdokument speichern zu können. Daraus entstand in Zusammenarbeit mit den Betatestern folgendes Tool.

Nach dem Öffnen legt der Benutzer den zu durchsuchenden Pfad fest, klickt optional "scan Extensions..." um den Pfad auf alle vorkommenden Dateitypen und dessen Häufigkeit zu scannen.

Alle dort ausgewählten Endungen werden in der Textbox "Filter" gespeichert. Die dort aufgelisteten Endungen werden durch ',' oder ', ' getrennt. Das angebene Verzeichnis wird durch einen Klick auf "scan" unter Berücksichtigung des Filters durchsucht. Die gefundenen Dateien werden in der Box aufgelistet, in der sie zum Speichern ausgewählt werden können.

Mit Hilfe des save-Button lässt sich die erstellte Liste in einer Textdatei speichern.

Ab sofort steht die neue Version als Download zur Verfügung.


Filed under: C#, Software | 1,823 views Continue reading