Roalt Dot Com
Technology
Asus HDP-R1 media player Print
Sunday, 04 April 2010

Choosing a media player

I've just acquired the ASUS O!Play HDP-R1 media player for about 90 EUROs. Media players have become really cheap and there are a number of popular choices including the Western Digital WD TV Live, the Popcorn hour (C-200 or A-200), and the Xtreamer.

I didn't want an expensive one, just one to play my media files and one that could mount my network shares on my server. Further more, I have my Harmony 885 remote, so the remote should work with infrared so I could replace it (that knocked out the Popcorn C-200 that works on radio/frequency, except that it is too expensive for my need).

Valid options were the WD, the Asus, and the Xtreamer. I really wanted to play DVD media files that are stored as .iso and use the DVD menu functionality. Only the ASUS HDP-R1 supports this functionality which made my choice easy. The ASUS also has an ethernet connector (no wireless, therefore you need the Asus HDP-R3 one) and an e-SATA connector for a fast external hard-drive connection (next to the more commonly found USB connectors).

Connecting the ASUS O!Play HDP-R1 to your local (SAMBA) shares

It's quite simple to adjust the HDP-R1 to your needs because it runs linux. Of course, it's a scaled down version, based upon Venus linux, and you see this when you logon using telnet. Just use root as username name with no password.

The storage devices are mounted under /tmp/ramfs/volumes, and to add your own storage device, just create a mount point there and use mount:

# mkdir -p /tmp/ramfs/volumes/media
# mount -t cifs -o username=my_username,password='my_password' //my_server_ip_address/media /tmp/ramfs/volumes/media/

In this example, you have to replace my_username, my_password, and my_server_ip_address with the settings from your own server and network. And, of course, you have to replace media by the name of the share you use. Additional shares can be added just as easy.

After this effort, you will see your share appear in the list of Storage devices when playing movies or other media.

Keeping your shares active after a power-outage

The HDP-R1 does have a power button (via the remote), but does not have a physical switch. When turning it off, it only goes into a sleep mode, which has the advantage that after turning you device on again, your shares are still mounted. But when you remove the power cord from the wall and put it back in, you will see that your shares (and even your created mount-directory) will be removed.

To get your shares back after a power outage, we have to modify the boot process. The /etc/init.d directory is read-only, but you can add your own script at the end of the /usr/local/etc/rcS script:

 
echo 2 /tmp/hdd/volumes/HDD1/ > /sys/realtek_boards/misc_operations
# here end the regular rcS script


(. /usr/local/etc/mount_shares.sh ) &

I've created a separate shell-script that contains the above-mentioned mkdir&mount commands and stored it in  /usr/local/etc/mount_shares.sh

This files looks as follows:

echo "Start mount_shares.sh" >>/tmp/ramfs/mount_shares.log
date >>/tmp/ramfs/mount_shares.log
mkdir -p /tmp/ramfs/volumes/media
# first make sure Asus has right IP address
ifconfig >>/tmp/ramfs/mount_shares.log
ifconfig eth0 10.0.0.81 netmask 255.255.255.0
route add default gw 10.0.0.138
echo "modified IP address" >>/tmp/ramfs/mount_shares.log
ifconfig >>/tmp/ramfs/mount_shares.log
# After that make sure CIFS is mounted correctly
mount -t cifs -o username=my_username,password='my_password' my_server_ip_address/media /tmp/ramfs/date >>/tmp/ramfs/mount_shares.log                                               
echo "End mount_shares.sh" >>/tmp/ramfs/mount_shares.log

Note that my ip address for the device is configured for 10.0.0.81. This caused me a bit of a headache, because when you power-up the Asus device, it does not have this address until you first turn it off using the remote and then turn it on again. The strange thing is that after the reboot, the device (on the television) presents itself on this 10.0.0.81 address but it does not react to ping commands. I assume this is a bug in the device. To circumvent this, I set the IP address manually. 

So after this script, the media player mounts my SAMBA devices quickly and I can use it to watch my video collection, mp3 music and show my photos to friends. And as it is a linux-device, it will have a range of hacking opportunities for the future... 

Add Comments
 
 
Garmin forerunner 305 under linux Print
Sunday, 28 December 2008

Very short because my fully typed blog entry just did a
"session expired: on me :-(

 

See following entry on the technical issues, ubuntu bug #114565:

Make following entry to give permissions to user in Ubuntu Hardy:

  /etc/udev/rules.d/45-garmin.rules

SUBSYSTEM!="usb", GOTO="garmin_rules_end"ACTION!="add", GOTO="garmin_rules_end"
ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", MODE="0660", GROUP="plugdev"
LABEL="garmin_rules_end"

There are two kind of interfaces:

  • Native USB interface (mostly supported, specify usb: for instance for gpsbabel)
  • Serial interface using kernel's garmin_gps module

Note that Ubuntu has the latter one blacklisted as it disables the first one.

There is also a discussion going on over the Forerunner on Ubuntu Forum

 

Following linux tools:

  • Viking (works directly with usb-babel but cannot import google maps as it should) 
  • qlandkarte
  • gpsbabel (command-line), outputs garmin XML format
  • pytrainer (looks promising but version 1.5.0.0.1 looks like it's missing some essential garmin importing and file importing options)


Update:
pytrainer seems to work OK, just use the version from Ubuntu Gutsy Gibbon in my Hardy Ubuntu. If you get the error "Cant open garmin device" Make sure to make the following modification to get the Garmin working with Heart rate monitor (the one without works): (following is a patch file, you can also manually change the line with the '-' into the one with the '+'.

 # diff -u /usr/share/pytrainer/plugins/garmin-hr/main.py.orig /usr/share/pytrainer/plugins/garmin-hr/main.py--- /usr/share/pytrainer/plugins/garmin-hr/main.py.orig    2009-01-01 15:03:34.000000000 +0100+++ /usr/share/pytrainer/plugins/garmin-hr/main.py    2009-01-01 15:08:05.000000000 +0100
@@ -29,7 +29,7 @@
 tmpgpx = "/tmp/reg.gpx"
 dummy = 0
 
-if not os.path.exists(options.device):
+if (not os.path.exists(options.device) and not options.device == "usb:"):
     f = os.popen("zenity --error --text='Cant open garmin device. Check your configuration or connect the device correctly.'");
 
 else :

One thing I'm still looking at is importing all my track at once.

 

View Comments (1)
Add Comments
 
 
Linux support Garmin Forerunner 3 Print
Sunday, 28 December 2008

To get the Garmin forerunner working under linux (Ubuntu 8.04 in particular) take care of the following:

There are two different drivers to access it:

  • A native usb driver, for tools like gpsbabel specify usb: as device
  • A serial-to-usb convertor driver, supported by a kernel module called garmin_gps. Note that this module is blacklisted by default in /etc/modprobe.d/blacklist (See bug #114565)


To make sure your GPS program can access the usb port of the garmin without being (or acting as) root, install the following udev-rule:

Create /etc/udev/rules.d/45-garmin.rules file:
SUBSYSTEM!="usb", GOTO="garmin_
rules_end"
ACTION!="add", GOTO="garmin_
rules_end"
ATTRS{idVendor}
=="091e", ATTRS{idProduct}=="0003", MODE="0660", GROUP="plugdev"
LABEL="
garmin_rules_end"

The following program support some GPS functionality:

  • viking (managed to import directly from Garmin, but was unable to import google map data as well)
  • qlandkarte: Did not manage to import from Garmin
  • pytrainer: Looks promising, but seems I'm using a version (1.5.0.0.1)where some functions are missing like importing from file or from garmin.
  • gpsbabel: Command-line tool that was able to import and show the Garmin XML format.
  • www.bikexperience.de : Not yet tested, screenshots look okay.

 

Add Comments
 
 
My Vondelpark run in Google Earth Print
Wednesday, 26 December 2007

The latest version of Garmin Training Center also includes an export  to KML format, the XML-based format for Google Earth. This creates a wonderful view of my last run, in this case a round through Amsterdam's Vondelpark. 

Image

 

You can also open the KML file directly by clicking on this link, as long as you have the .KML file connected to your Google Earth application. 

As you can see in Google Earth, each square represents a logging from my Garmin forerunner 305 GPS. It records ran distance, heartbeart and speed.

Add Comments
 
 
Garmin forerunner 305 Print
Wednesday, 24 October 2007

ImageThe garmin forerunner 305 is a perfect companion to do your lonely running exercises: It has a very accurate GPS and compared to the older 301 model it is a lot smaller, just a bit more fat than an average full-featured digital watch.

I used it to do one of my favourite training run of exactly 5.4km (which I now know thanks to the 305). It can also measure my heartbeat by wirelessly connecting to a belt around your chest.

The windows software package can project your course and that's where the -until now- one minus point is: it projects some highways but as you can see in the picture, the highway is a bit too much to the right as I did not go under the Dutch A2 but just walked in parallel with it. 

One of the nicest things in here (and as I only used it once I did not yet test it) is that you can run against yourself: you can give up your previous run and it will project on the watch where you ran the last time.

So who says that running is no fun?

Add Comments
 
 
<< Start < Prev 1 2 Next > End >>

Results 1 - 9 of 11
© 2010 Roalt Dot Com