Family, Work, Life

HTC Hero earphone jack problem and howto solve

November 29th, 2009 Ansi

Moin
Last week I had some problems with my HTC Hero Android phone. The mobile is awesome no question about that, but there is one funny “feature” which I don’t need at all and what caused me some trouble. The Hero (maybe other mobiles too) has the nice feature to switch from build-in loudspeakers to external earphones (via the jack on top) via software switch and not like other devices via hardware switch. This causes a problem when the process is not responding when you plug in the earphone. First impression is “hardware error” and you want to send back your phone to the repair center. But wait. This is a software bug (although the T-Mobile stores are not aware of that). Thanks to the Androidforum ere are two solutions for that.

  1. The easy but not always working way
    1. Turn off the phone by holding down the Hangup button for some time.
    2. Plug in your earphones
    3. Turn on the phone (if you see the earphone symbol everything is fine now)
  2. The not so easy but always working way
    1. Download the APKatcher App from the Market (market://search?q=pname:nEx.software.Apps.APKatcher
    2. Enable 3rd party apps on your mobile in order to accept apps from other locations then the market
    3. Get the toggleheadset application from google code.
    4. Send the app to your phone via email
    5. Install the app
    6. Add the toggleheadset widget to your phone desktop

After that you can toggle between your earphones and the internal loudspeaker.

  • Share/Bookmark

APRS igate running xastir

June 14th, 2009 Ansi

Moin

I just played a little bit with APRS igate on Linux. There are some igate software available on Linux but the most supported package (javAPRESSrvr) is not available today because of an error on Yahoogroups where the files are hosted.

Therefore I installed xastir from Sourceforge and connected the the local running instance with the APRS-IS network. Now DM1AS is visible on FINDU. :-)

Nice side effect on this, the server generates an Google Maps page every 5 minutes with APRS stations around my home. Maybe tomorrow I connect my radio to the igate and there will be more local stations available.

So far you can see the map here:http://tinyurl.com/nacc5k


View Larger Map

  • Share/Bookmark

Bikemap Routes on Garmin GPS

June 13th, 2009 Ansi

Moin

I love Peters Bikemap.net page. Using this service to plan all my bike tours. Unfortunately my Garmin (GPSmap 60) does not understand the gpx file from Bikemap export. I wrote this little script to modify and split the route into smaller routes. GPSmap 60 only handle 250 points per route. Therefore the script splits the route into smaller pieces, renames the note names into “rtept” resp. “rte” and uploads the route via USB to the connected garmin.

What you need to run this script are gpsbabel and the unix commands: sed, split,cut and head .

Here it is, as usually no guarantee.

#!/bin/bash
filename=$1

gpsbabel -i gpx -f ${filename} -o csv -F out.csv
split -l 200 out.csv splits
rm out.csv

for i in `ls splits*`
do
 gpsbabel -i csv -f ${i} -o gpx -F ${i}.gpx
 sed 's/wpt/rtept/' ${i}.gpx > out
 rm ${i}.gpx
 mv out ${i}.gpx
 rm ${i}

 linenumber=`wc -l ${i}.gpx | cut -d " " -f 1`
 let linenumber-=1

 sed -n 10,${linenumber}p ${i}.gpx >a.gpx

 rm ${i}.gpx

 cat ${filename} | head -n 9  >${i}.gpx
 echo "<rte>"                >>${i}.gpx
 cat a.gpx                   >>${i}.gpx
 echo "</rte>"               >>${i}.gpx
 echo "</gpx>"               >>${i}.gpx
 rm a.gpx

 sudo gpsbabel -r -i gpx -f ${i}.gpx -o garmin -F usb:0
 rm ${i}.gpx
done
  • Share/Bookmark

Planning a geekend

April 24th, 2009 Ansi

Moin

If you ever wondered if geeks are social here is the answer. Yes they are and they are very social and organising some very cool events which are called “geekends”. Combination of weekend and geek. Not just going for hiking with friends. No developing, building, ironing and coding very cool and geeky things.

As being a reader of the very cool MAKE magazin I read the article on a brain machine the other day. This project is great for a geekend. Something to build, some hardware, software and after all a great toy to play with.

The idea is to build one of these Brainwave (aka Light and Sound Machines) on your own with a little micro controller. Lets see if we can optimize the hard and software a little bit. The original one is based on an other project and therefore the hard and software is not optimizes for a LSM.

More Information on the original project you can find the the blog here.

Stay tuned to my blog to read more on this geekend.

  • Share/Bookmark

Pachube

January 9th, 2009 Ansi

Moin

Thanks to Oli (@EOLUS) I am now Beta Tester of Pachube. Cool Web 2.0 Service for Real Time Data exchange. People are streaming their measurement data with geographical informations in CSV or EEML XML format and can exchange their data.

I am now streaming my server temperature just for testing. Check out

http://www.pachube.com/api/1287.xml

Hope more will follow soon.

Its very easy to send your data from linux. For example with curl and csv:

/usr/bin/curl -X PUT -H “X-PachubeApiKey: abc123″ -d “`/bin/cat  /proc/acpi/thermal_zone/THRM/temperature | /usr/bin/cut -c 26-27`,” http://www.pachube.com/api/1287.csv

Important is your Pachube key in the header of the PUT request. And your feed ID. With this example I am catching the acpi CPU temp and send them to Pachube.

  • Share/Bookmark

New Nokia Phone N97

December 2nd, 2008 Ansi

Moin

Wow, its xmas time. Here is what I really really want. :-)

Video: Nokia N97 – Trailer (1:10)
  • Share/Bookmark