This document describes the FM transmitter support for RDS data.
This document shows you how to set and get RDS data, radio text data and radio text plus data.
Required Background
The FM Transmitter Library Overview provides an overview of the FM Transmitter library.
Introduction
Radio Data System (RDS) is the European standard for broadcasting data about a radio station within specific FM frequency band. RDS data provides information such as, station name and type of programme being broadcast. The North American standard for broadcasting data is called RBDS.
CMMRdsTransmitterUtility class provides methods to access the RDS capabilities of the transmitter device. It supports both RDS and RBDS standards.
The following tasks will be covered in this tutorial:
Basic Procedure
The high level steps to set RDS data are shown here:
Create an instance of CMMRdsTransmitterUtility object using the CMMTransmitterUtility::CreateRdsTransmitterUtilityL method.
See also Creating Scanner and RDS Utilities.
Get the RDS capabilities of the device using the CMMRdsTransmitterUtility::GetCapabilitiesL method.
The client application uses CMMRdsTransmitterUtility::SetRdsDataL method to send a request to set the transmitted RDS data.
Set appropriate flags in the parameter whichData to set the data required by client.
This call sets the data supported by transmitter and the parameter success returns the RDS data set successfully.
If the call fails, the client is notified with appropriate error messages.
Basic Procedure
The high level steps to get RDS data are shown here:
Get the current status of the transmitted RDS data using the CMMRdsTransmitterUtility::GetRdsDataL method.
This call returns the RDS data sent by the transmitter and a subset of valid RDS data.
Set the transmitted radio text data using the CMMRdsTransmitterUtility::SetRadiotextL method.
Set the transmitted radio text plus data using the CMMRdsTransmitterUtility::SetRadiotextPlusL method.
Use theCMMRdsTransmitterUtility::ClearRadiotextData method to clear the radio text data, which is set earlier.