Elecraft T1 ATU in FT 817: Done.

As described in http://www.ngunn.net/cyberworld/hamradio/t1/ I have successfully integrated a T1 tuner into my FT 817. My tuner was sensitive to noise on the 9V rail Рusing the 12V rail from the data port and some blocking capacitors I finally got the tuner working.evernote-camera-roll-20150207-145037


Hack for Archiving Google Drive

Problem: Archiving of Google Drive documents does not work with the google drive app. Why? Google Drive App stores only links to the cloud (i.e. .gdoc, .gsheet).
Solution: Write a script and use a cron job ūüôā

which gdrive >/dev/null || echo "Missing gdrive. Get it here: https://github.com/prasmussen/gdrive"
_archive_filetype ()
find "$google_drive_dir" -name "*.$from" -print0 | while read -d $'\0' file
id=$(sed 's/.*"doc_id": "//;s/".*//' "$file")
bd=$(dirname "$file")
cd "$bd"
gdrive download --id $id --format "$to" --force

_archive_filetype gdoc docx
_archive_filetype gslides pdf
_archive_filetype gsheet xlsx

Connect Morse Key to Iphone

How to connect morse key to an iPhone? Using the buttons on the standard headphones does not work, as the apple interface does not provide low-level access to low-level events like button-down. The idea (R1, R2) will be (1) put a signal to one stereo channel (2) receive the same signal on the input channel (small resistor will simulate mic) (3) detect tone level changes for input channel -> real time-morse (4) put side-tone & co to remaining stereo channel.

Pasted Graphic

  • 1(Tip) – Key (Ground)
  • 2 – Ear (Contact)
  • 3 – Ear (Ground)
  • 4(Ground) – R2(46,6k) – Key 1
  • 4(Ground) – R3(22k) – Key 2
  • 4(Ground) – R1(1k) – 3

I got a prototype running with irmc-ios (R4) and the same physical interface also works with iMorsix (R3).

(R1) Hijacking Power from […] Audio Interface
(R2) Sources: hijack-main
(R3) App: iMorsix
(R4) App: irmc-ios

Upgrade Audi Concert 2 to Bluetooth A2DP

Cars manufactured about 10 years ago often do not provide bluetooth audio support. Here I describe a proven setup with bluetooth (A2DP and HFP) for an Audi with the built-in radio “Concert 2” and the built-in hands-free system. I use two different audio devices for music (A2DP) and telephone (HFP).¬†For recent firmware versions (iOS 7.x) of the iPhone it is possible to use multiple bluetooth audio devices.

Audi Concert 2

Audi Concert 2 with Hands-Free System

HFP: I have chosen not to replace the built-in hands-free system, because the microphone position and the active noise canceling is way much better in this (old!) system, than in recent radios (i.e. JVC KW-AV60BT, SONY MEX-N500BT). The iPhone adapter charges the phone and connects to the roof-mount antenna inductively.

A2DP: The Concert 2 radio has a CD changer interface, which is used by the GBL3AU2¬†for providing A2DP (and HFP optionally). This way the original radio is preserved. Audio works very nicely and changing songs via steering wheel, too. For all other functions I use my iPhone. This is not a disadvantage for me, because even though other radios mentioned above claim to provide “full” iPhone support, they do not in reality (Errors in title names, errors in album names, wrong playlists, no covers, …).

I think the dension gateway is an elegant solution for a minimal invasive upgrade to bluetooth audio. The gateway is available for more cars.

XML Bandplan – Structured Amateur Radio Bandplan

As of today bandplan information for amateur radio is accessible in form of various spreadsheets, PDFs or even in Wikipedia. Of course this differs from country to country. Depending on the source, the bandplan may be outdated and it can be challenging to find a valid source for up-to-date information. While it is possible to find bandplan authoritative information on bandplan usage for the three different IARU regions, the best-practices for the member countries are even more difficult to find. In short: the information is difficult to find, exists in various formats and is not at hand when you really need it.

For my FT 817 remote control project I was in need of a digital bandplan for my C source code. Instead of hacking the information into the corresponding C structures I chose a different approach: I created a structured XML file with the bandplan information and used XSLT scripts to generate the corresponding C structures from the XML file:
Using (XSLT) scripts this information can be converted to C source code:
{“2200m”,13570,13780, NULL },
{“2200m: CW, QRSS, narrow digital modes”,13570,13780, NULL },
{“160m”,181000,185000, NULL },
Well I did not stop there: I implemented capabilities for handling different regions within the frequency bands, countries and licenses. In the XML files this looks like this:
In addition to the obvious bandplan informations it was also helpful to create channels on particular frequencies. These channels can contain a name or a mode information, i.e. for switching the TRX automatically.
During the implementation I realized, that all entries should have some generic information, i.e. the author of the entry, a version number, a timestamp and a reference. The references (i.e. HTML, PDF or spreadsheets) can be downloaded within the framework I have created, stored to the git repository and checked for updates using MD5 sums. Checking the bandplans for possible changes is easily done now  using the toplevel makefile:
$ make check_references

For such a structured document it is very important, that its syntax is correct. Therefore I have described the document structure in a DTD file. This DTD file is referenced in all the XML bandplan files:
<!DOCTYPE note SYSTEM “bandplan.dtd”>
It is possible to check the syntax of all bandplans using the top level makefile:
$ make xmltest

HTML Output

What can we do with this structured XML documents? Obviously I have used it for my Arduino project. Using this information source it is easy to create HTML bandplans, PDFs or structures in the programming language of your flavour for further work.
$ make html 


Frequency (MHz) Bandwidth (kHz) Mode License Reference Comment
3.500 – 3.580 2.700
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
3.500 – 3.510 0.200 CW
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
DE01 Intercontinental QSO
3.510 – 3.560 0.200 CW
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
DE01 Contest
3.555 CW DE01 QRS
3.560 CW DE01 QRP
3.560 – 3.580 0.200 CW
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
3.560 CW DE01 QRP
3.580 – 3.590 0.500 Digital
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
DE01 small bandwidth digital modes
3.590 – 3.600 0.500 Digital
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
DE01 small bandwidth digital modes, automatic digital stations
3.600 – 3.620 2.700 All
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
3.620 – 3.650 2.700 All
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
DE01 SSB contest
3.630 Digital DE01 Digital Speech
3.650 – 3.700 2.700 All
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
3.690 SSB DE01 QRP
3.700 – 3.800 2.700 All
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
3.735 Digital DE01 ATV
3.760 DE01 Emergency Region 1
3.775 – 3.800 2.700 All
Klasse_A: 750W (PEP)
Klasse_E: 100W (PEP)
DE01 Intercontinental QSO


Now there is a structured document framework, which can handle all bandplan information. So far I have implemented US and german bandplans. We now have one source for all the information we need. The XML bandplan project is a building block for your future ideas and projects. Feel free to contact me and contribute ideas, converters, updates and bandplan content.

Open Issues
Current Version (June 2013) v0.7.16

Morse Decoder Test – iPhone / iPad

There are three morse decoders in the App Store. Same test case for all of them: “CQ CQ CQ DE DG
D6FL DG6FL K” from memory of my palm paddle¬†with 20wpm.


  1. MorseDecoder (HotPaw Productions)
    Seems to work
  2. MorseDec (Luca Facchinetti)
    Room for improvement
  3. Morsepad (Black Cat Systems)
    Does not work at all

Converting LaTeX to ePub

In contrast to claims in the web (i.e. M. Kofler: Sackgasse LaTeX?) it is possible to create ebooks from LaTeX sources easily even with sophisticated formulas and custom stylesheets. Using calibre and tex4ht I was able to provide an ePub of my PhD thesis: Atomistische Simulation von Nanoindentation. The resulting output looks quite impressive (minor defects when it comes to image boundaries or subscripts in text blocks). For comparison the original PDF.

Cross Glide