Notices


Reply
Thread Tools
Posts: 455 | Thanked: 278 times | Joined on Dec 2009 @ Oregon, USA
#11
Originally Posted by tomster View Post
I wonder if it's possible to also send some sort of navigational output via RDS to your car's radio. I haven't tried OVI maps (on any phone) yet, but I guess there will be some sort of guidance text along with the voice prompts.
Have no idea though on how responsive RDS would be in "time-critical" navigational terms. Just a thought...
Well for starters, there are no voice prompts for Ovi Maps on Maemo... We can all thank Nokia for that.
 
Posts: 197 | Thanked: 101 times | Joined on Dec 2009 @ Netherlands
#12
I had some problems with FM RDSnotify. It seems to drain the n900 battery even when not using mediaplayer.

So as a learning exercise I created a small python script that just shows the mediaplayer title/artist/album on RDS.

Note that it uses RDS PS for the artist name and RDS TEXT for title + album.
Code:
#!/usr/bin/env python

#
# A small script to learn and play with python, dbus,
# mediaplayer and FM RDS
#
# Author: Mirakels (marcel@mesa.nl)
# Date: april 2010
# 
# Setup dbus connections to mediaplayer en FMTx. Wait for 
# signals from mediaplyer and use them to show info on your
# RDS capable audio system. It uses the RDS station name to
# show the artist, and the RDS text field to show album and
# title info of te current song.
#
# Note that mediaplayer also sets RDS when the FM transmitter
# is enabled (at least it does so in PR 1.1.1). But it shows
# artist/album/title as the RDS station name. This will be
# 'overwritten' by this script.
#
# Just run this script in the background from an xterm:
#
#      $ ./mp_rds.py &
#
# When you enable the FM transmitter in mediaplayer 
# RDS messages will be send to your radio...
#

import gobject, dbus
from dbus.mainloop.glib import DBusGMainLoop

album  = ""
title = ""

#
# Just some console fun to see what mediaplayer is doing
#
def handle_state(state):
    if (state == 0):
        print "Media player stopped"
    elif (state == 1):
        print "Media player start playing"
    elif (state == 2):
        print "Media player paused"
    elif (state == 3):
        print "Media player transitioning"
    else: 
        print "Media player unknown state %d" % state
        
#
# Set RDS info based on mediaplayer tag info
#
def handle_meta(meta, state, data):
    # print "meta change meta=%s, state=%d data=%s" % (meta, state, data)
    global album
    global title
    if (meta == "artist"):
        artist = data
        fmtx_iface.Set("com.nokia.FMTx.Device", "rds_ps", dbus.String(u'%s' % data , variant_level=1))
    if (meta == "title"):
        title = data
        info = title + ' / ' + album
        fmtx_iface.Set("com.nokia.FMTx.Device", "rds_text", dbus.String(u'%s' % info , variant_level=1))
    if (meta == "album"):
        album = data
        info = title + ' / ' + album
        fmtx_iface.Set("com.nokia.FMTx.Device", "rds_text", dbus.String(u'%s' % info , variant_level=1))
        

DBusGMainLoop(set_as_default=True)
#
# Connect to mediaplayer
#
bus = dbus.SessionBus()
bus.add_signal_receiver(handle_state, path='/com/nokia/mafw/renderer/gstrenderer', dbus_interface='com.nokia.mafw.renderer', signal_name='state_changed')
bus.add_signal_receiver(handle_meta,  path='/com/nokia/mafw/renderer/gstrenderer', dbus_interface='com.nokia.mafw.renderer', signal_name='metadata_changed')

#
# Create connection to FM transmitter
#
sysbus = dbus.SystemBus()
fmtx = sysbus.get_object('com.nokia.FMTx', '/com/nokia/fmtx/default', False)
fmtx_iface = dbus.Interface(fmtx, dbus_interface='org.freedesktop.DBus.Properties')

gobject.MainLoop().run()

#
# The End
#
 

The Following 2 Users Say Thank You to mirakels For This Useful Post:
Posts: 169 | Thanked: 41 times | Joined on Apr 2010 @ Portugal
#13
Hi all,
I tryed this app, it works for call and songs, but i cant activate SMS, it doesent scroll down to activate it !? I've tried with my finger, with down keys, i only see the options to activate music and call : \
Any tip, plese ?
 
Posts: 169 | Thanked: 41 times | Joined on Apr 2010 @ Portugal
#14
Nobody ?

Thank you.
 
Posts: 1,667 | Thanked: 561 times | Joined on Feb 2010
#15
ANybody tried this with PR 1.2?
 
Posts: 87 | Thanked: 112 times | Joined on Feb 2010
#16
Hi,

I've created this application, looks like it is no more needed with latest firmware to display songs tags on radio car system.

I ve stopped the devel for a moment as i ve some sending text problem when a call occur.

I will try another time this motnh


Fabrice
 
Posts: 55 | Thanked: 76 times | Joined on Dec 2009
#17
Any news on a PR1.2 compatible version?
 
Posts: 87 | Thanked: 112 times | Joined on Feb 2010
#18
It is already compatible on pr1.2 version and look like the pr1.2 did not broadcast natively tags to fm.

So my applciation is needed again
 
jehan's Avatar
Posts: 55 | Thanked: 14 times | Joined on Mar 2010
#19
hi! since version 0.4-1 the fmrdsnotify widget refuses to start after addition to the desktop. even after a reboot the widget doesn't start automatically althogh i can start it from the shell.

anyone else has experienced this behaviour and knows of a solution for that?
 
Posts: 189 | Thanked: 53 times | Joined on Aug 2010 @ Netherlands
#20
Hi!, i also installed FM RDS Notify 0.4.1 , everthing worked ok until reboot n900, now widget is gone!! Can't find it anymore. App. is stil in app. manager. Any ideas?? Reinstall didn't help.
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:06.