Topfield PVR 5100

Download programs from the box

I have added file name encoding option to file transfer program puppy which allows you to upload and download files with non-printable characters in their names between toppy and a Linux machine.

The challenge with puppy was to access a file with non printable characters in its name. Toppy seems to insert few control characters in a file name and Finnish TV program names tend to have national non-ASCII characters like ä and ö. Combine those national chars with whatever happens to be you current locale setting and you will miss your target file in the box.

This issue might be just my box (firmware), as some of my friends do not have similar problems.

So here is a patch to puppy which will encode and decode file names to contain only ASCII characters. Encoding scheme is the same as in URLs, a '%' followed by two hex digits.

Using it is simple (you may need to run puppy with enough privileges to access USB), just add -e flag for all commands and you may easily copy / paste file names.

% puppy -c dir DataFiles
f           1776693248 Mon Sep 18 23:35:00 2006 Maaginen Freddie Mercury.rec
f            740497408 Tue Sep 19 20:35:00 2006 El^[%G��^[%@i el^[%G�^[%@met: Koirani vai min^[%G�^[%@.rec
f            868710400 Wed Sep 20 19:30:00 2006 Simpsonit-10.rec
f            910004224 Thu Sep 21 19:30:00 2006 Simpsonit-11.rec
f           4060078080 Fri Sep 22 23:05:00 2006 Syv^[%G�^[%@oki (K15).rec

% puppy -e -c dir DataFiles
f           1776693248 Mon Sep 18 23:35:00 2006 %05Maaginen%20Freddie%20Mercury.rec
f            740497408 Tue Sep 19 20:35:00 2006 %05El%ffm%ffni%20el%ffimet%3a%20Koirani%20vai%20min%ff%3f.rec
f            868710400 Wed Sep 20 19:30:00 2006 %05Simpsonit%2d10.rec
f           4060078080 Fri Sep 22 23:05:00 2006 %05Syv%ffjoki%20%28K15%29.rec

% puppy -e -c get DataFiles/%05Syv%ffjoki%20%28K15%29.rec