Editing Documentation/Maemo 5 Developer Guide/Using Multimedia Components/FM Transmitter API Usage

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
__FORCETOC__
__FORCETOC__
-
The [[N900 FM radio transmitter|FM Transmitter]] is controlled by <code>fmtx-middleware</code> program via D-Bus API. API includes functions to enable transmitter, change transmitting frequency and station name. Please note that available frequencies may vary by sales region and FM Transmitter may be disabled in certain sales regions. Transmitter is also disabled when external devices are connected to Maemo device, excluding charger and Bluetooth devices. When FM Transmitter is enabled, fmtx-middleware will route audio automatically to the transmitter and enforce proper transmission power allowed in sales region. Fmtx-middleware will emit beeping tone when no other audio is being transmitter to comply with legislature. API documentation is in the [http://maemo.org/packages/view/fmtx-middleware-doc/ fmtx-middleware-doc] package.
+
FM Transmitter is controlled by <code>fmtx-middleware</code> program via D-Bus API. API includes functions to enable transmitter, change transmitting frequency and station name. Please note that available frequencies may vary by sales region and FM Transmitter may be disabled in certain sales regions. Transmitter is also disabled when external devices are connected to Maemo device, excluding charger and Bluetooth devices. When FM Transmitter is enabled, fmtx-middleware will route audio automatically to the transmitter and enforce proper transmission power allowed in sales region. Fmtx-middleware will emit beeping tone when no other audio is being transmitter to comply with legislature. Api documentation is in the fmtx-middleware-doc package.
== API documentation ==
== API documentation ==
-
;Service
+
<pre>
-
: <code>com.nokia.FMTx</code>
+
Service: com.nokia.FMTx
-
;Interface
+
Interface: com.nokia.FMTx.Device
-
: <code>com.nokia.FMTx.Device</code>
+
Object path: /com/nokia/fmtx/default
-
;Object path
+
</pre>
-
: <code>/com/nokia/fmtx/default</code>
+
 
===Properties===
===Properties===
{| class="wikitable"
{| class="wikitable"
-
|+ D-Bus properties
+
| version
-
|-
+
-
! Name
+
-
! Type
+
-
! Flags
+
-
! Description
+
-
|-
+
-
| <code>version</code>
+
| Uint32
| Uint32
| Read only
| Read only
| Version number of <code>fmtx-middleware</code>
| Version number of <code>fmtx-middleware</code>
|-
|-
-
| <code>frequency</code>
+
| frequency
| Uint32
| Uint32
| Read/write
| Read/write
| Frequency in kHz. Returns <code>DBUS_GERROR_INVALID_ARGS</code> error, if frequency is not allowed
| Frequency in kHz. Returns <code>DBUS_GERROR_INVALID_ARGS</code> error, if frequency is not allowed
|-
|-
-
| <code>freq_max</code>
+
| freq_max
| Uint32
| Uint32
| Read only
| Read only
| Returns maximum allowed frequency in kHz
| Returns maximum allowed frequency in kHz
|-
|-
-
| <code>freq_step</code>
+
| freq_step
| Uint32
| Uint32
| Read only
| Read only
| Returns the minimum step between frequencies in kHz
| Returns the minimum step between frequencies in kHz
|-
|-
-
| <code>state</code>
+
| state
| String
| String
| Read/write
| Read/write
Line 53: Line 46:
May return <code>DBUS_GERROR_FAILED</code> if transmitter can’t be enabled
May return <code>DBUS_GERROR_FAILED</code> if transmitter can’t be enabled
|-
|-
-
| <code>startable</code>
+
| startable
| String
| String
| Read only
| Read only
| Returns message about can the transmitter be enabled at current time. Messages are: true Device is in offline mode Headphones are connected USB device is connected
| Returns message about can the transmitter be enabled at current time. Messages are: true Device is in offline mode Headphones are connected USB device is connected
|-
|-
-
| <code>rds_ps</code>
+
| rds_ps
| String
| String
| Read/write
| Read/write
| Get/Set RDS Station name (displayed on rds capable radios). To avoid problems with some radios, use text which length is dividable by 8. Pad with spaces if necessary
| Get/Set RDS Station name (displayed on rds capable radios). To avoid problems with some radios, use text which length is dividable by 8. Pad with spaces if necessary
|-
|-
-
| <code>rds_text</code>
+
| rds_text
| String
| String
| Read/write
| Read/write
-
| Get/Set RDS text (displayed alternating with station name. Maximum length is 64 characters. Returns <code>DBUS_GERROR_INVALID_ARGS</code> is set if the text is too long
+
| Get/Set RDS text (displayed alternating with station name. Maximum length is 64 characters. Returns <code>DBUS_GERROR_INVALID_ARGS</code> is set text is too long
|}
|}
Line 72: Line 65:
{| class="wikitable"
{| class="wikitable"
-
|+ D-Bus signals
+
| Changed
-
|-
+
-
! Name
+
-
! Type
+
-
! Description
+
-
|-
+
-
| <code>Changed</code>
+
| None
| None
| Some fmtx property was changed
| Some fmtx property was changed
|-
|-
-
| <code>Error</code>
+
| Error
| String
| String
| FM transmitter was disabled by one of the following reasons: <ul><li>Device entered offline mode</li><li>USB device was connected (excluding charger)</li><li>Headphones were connected</li><li>TV-Out cable was connected</li></ul>
| FM transmitter was disabled by one of the following reasons: <ul><li>Device entered offline mode</li><li>USB device was connected (excluding charger)</li><li>Headphones were connected</li><li>TV-Out cable was connected</li></ul>
|}
|}
-
Properties are manipulated with <code>org.freedesktop.DBus.Properties</code> interface. For more information see [[Documentation/Maemo 5 Developer Guide/DBus|D-Bus documentation]].
+
Properties are manipulated with <code>org.freedesktop.DBus.Properties</code> interface. For more information see D-Bus documentation.
[[Category:Development]]
[[Category:Development]]
[[Category:Documentation]]
[[Category:Documentation]]
[[Category:Fremantle]]
[[Category:Fremantle]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)