[HTC EVO 3D] 1branchonthevine:
Great work on other HTC phones, not sure it applies here...

Sounds like HTC uses an all in one bluetooth/fm radio chipset... possibly broadcom, this fella has gotten somewhere!

follow here: http://xdaforums.com/showthread.php?t=497977

APP:17FEB10:RDS FM Radio R&D: Get radio text, Alt Freqency, free TMC etc

Microsoft hasn't defined a tuner API for Windows Mobile platform (yet) and manufactures such as HTC do not publish their API for FM radio.

GFMAPI is an FM Radio interface that designed to be used on different models of Windows Mobile devices.

It makes all FM RDS based applications such as Radio players, Radio Alarm, TMC navigation works on different devices.

What's new?

Download EtenTest and GFMAPI 1.0.

Currently it works with M900 and M800, tested with PowerRadio and hyperGPS.

This is for Eten/Acer devices only.

End-User and application developers (Downloads)

User should try to use the GFMAPI in the application package because it may need to signed with privileged certificate and version of interface may be different.

App Developers can find FMAPI.h and a test application APITest in the GFMAPI for HTC devices 1.6. Source code is included to help your development.

The interface is defined in C language with sample code.

Thank for NetRipper made a .Net CF library for GFMAPI.

Note: the latest FMAPI.h is in GFMAK and the GFMAPI will be updated. They only has minor differences.

Supported Devices

* BRF6350 Chipset:

HTC Diamond, HTC Raphael (not CDMA), HTC Blackstone, HTC Polaris, HTC Topaz, SE Xperia X1

NOTE: if your X1 has new media panel that integrated with FM Radio function, you may have to disable this panel (I don't know how).

Download GFMAPI for HTC devices 1.6

* BCM432x Chipset:

HTC Rhodium, HTC Leo, HTC Mega

Supports radio functions if renaming FMSDKWrapper.dll to FMS_API.dll with the above driver. RDS data cannot be received.

We are working on this device. Related thread: FM Transmitter on HD2

* SI470X Chipset:

HTC Artemis: NOT supported.

Samsung Omnia: Samsung i9x0 Omnia

Samsung Omnia II: GFMAPI.dll for Omnia II and its Cab format This is an excellent work done by phjz.

Eten/Glofiish/Acer M800/M900/V900/X900/X650/S200: see "what's new". Please help me test it.

Device adaption developers

Generic FMAPI Adaption Kit will help you implement the driver for your device. Use APITest in the GFMAPI to test your driver.

Please read readme.txt in the package. Feel free to ask me if you need help.

If you have a device that is not supported by GFMAPI

I currently only have a HTC Raphael so I need your help to get your device supported.

First of all, you should Search in this Thread to check anybody posted it before.

Extract FM radio related files and upload to the forum.

Note: You cannot simply copy files from/to device. You need dump the ROM then extract files from the ROM. Search this forum to find how.

If you have good VC++ and IDA pro with ARM skills, please join us to discover FM Tuner API on those devices then make RDS application working on your device.

* HTC Rhodium/TP2, HTC Leo/HD2, HTC Mega/Touch2:

http://xdaforums.com/show...&postcount=783

http://xdaforums.com/show...&postcount=813

http://xdaforums.com/show...&postcount=794

Rhodium Test

Current status: 6Fg8 identified that raw RDS data is in the Broadcomm BTTray process, not in the FmRadioSDK.DLL. Still not trace it down to function/module level.

* Artemis:

Artemis Test

Far far away from any progress and not many users.

BBCBBA uploaded FM radio related file for Gigabyte GSmart S1200. This device supports RDS by using deviceIoControl directly communicating with the driver. I can see it is possible to make a GFMAPI driver just need a lot of effort.

Applications based on GFMAPI

* FM TMC driver for navigation: Beember's HyperGPS.

* A powerful RDS FM Radio application: 6Fg8's Power Radio

This project focuses on RDS API now. TMC related topic has been moved to the TMC thread because it is too attractive and posts will flood the thread.

Origin research project

Many people ask questions related to FM radio in the forum have been solved by this project:

* Does FM Radio supports RDS text and traffic information?

* Does FM Radio supports more than 20 saved channels and give a friendly alias, such as "BB Radio 4" rather than 920.2MHz ?

* Does FM Radio supports automatically or manually change frequency when signal getting pool during traveling?

* Does FM Radio support RDS-TMC traffic information for navigation system?

The answer is yes. The Bluetooth/FM radio chip BRF6350 on your phone is very powerful but HTC FM radio only provides basic functionality.

Unfortunately HTC doesn't publish FM Service API to us.

So I disassembled FM player by using IDA pro and know usages of FMS api.

After a week sleepless night, I wrote my FM radio tool, xFMRadio, utilizes most functions provided by FMS API, provides RDS and other data for further research.

With help from this thread, we have exposed most secret of FM and RDS system on HTC devices and we can make useful applications now.

This application is written for research so that UI is not nice. It only works on BRF6350 based HTC devices.

Download xFM Radio v0.4

If doesn't have sound on your device, try xFM Radio v0.4B, which removed audio volume initialization.

Brief user guide for xFMRadio

Default settings: Audio Source: 1 (earphone), RDS =1, Verbose =1, AF = 1. ( but I don't know if automatic AF is working. have to verify during long distance traveling.)

Verbose: 0 -no log; 1 - status only; 2 - TMC raw data; 3 - all types of log

Row 1: Input argument. Set Frequency in KHz, AF list: alternative frequencies for the current station.

Row 2: Frequency, station name, Band: World/Japan - use this to listen police station etc

Row 3: Signal Strength, Stereo/Mono, UTC Date/Time (update once per min if supported)

Row 4: -100KHz, Previous Channel, Next Channel, +100Hz, Mute, Mono/Stereo

Row 5: Headset/Speaker, De-emphasis, Stereo blend

Row 6: Radio Text

Row 7: status such as Music/Speech, TP, TA, PTY, TMC etc

Check if the channel support TMC: ROW 7 should display [TMC]. You can see TMC data by setting the top left input box to 2, and click on Menu->Verbose.

The current xFMRadio v0.4 does not display RDS raw data anymore.

You can use Save log menu to save log data.

FMS API version is displayed in the About dialog. Mine is 1.2.

xFMRadio 1.4 Debug...​