MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.

How to tune a FM radio station

209 posts in this topic

Posted (edited) · Report post

Works perfectly on rooted froyo.

@paullong

thank's for the fm hcitool

@moneytoo

@Reecemac

@XsCode

Thanks for all your efforts and time!!!

EDIT

I yanked the FM app off cyanogen and tried to run it on froyo. FCd as expected.

Edited by watermelun
0

Share this post


Link to post
Share on other sites

Posted · Report post

Hello all,

Where does one need to write this code on dell streak?

Sorry! But i am new to android

Look forward for a reply.

0

Share this post


Link to post
Share on other sites

Posted · Report post

thanx to all for this thread contribution.......only due to this thread i can able to start FM on my Mighty Dell Streak....

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Thanks to all. I have the app running on my Streak now.

Would be great to get volume control to work with with the regular phone speaker, big speaker and bluetooth. Apparently you can buy an antenna to fit into the 3.5mm port. That would allow reception, just need the sound sent somewhere else!

$(KGrHqV,!lkE2EPD5(NvBNqR(hJD7g~~0_3.JPG

Mobile_Phone_External_FM_Antenna_Adapter_for_Sony_Ericsson_Nokia_Motorola_SamsunLG_under_developed.jpg

Edited by keithwwalker
0

Share this post


Link to post
Share on other sites

Posted · Report post

Based on your files fm_hcitool

i've got it made GUI

my English is poor sorry

Chinese interface

Thanks your job

FM_radio.rar

1

Share this post


Link to post
Share on other sites

Posted · Report post

Hello all,

Where does one need to write this code on dell streak?

Sorry! But i am new to android

Look forward for a reply.

use eclipse write code

0

Share this post


Link to post
Share on other sites

Posted · Report post

nice job!

much better than my effort :P

Based on your files fm_hcitool

i've got it made GUI

my English is poor sorry

Chinese interface

Thanks your job

0

Share this post


Link to post
Share on other sites

Posted · Report post

Can someone post a screenshot? Thanks!

nice job!

much better than my effort :P

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

It can not control the volume, please tell me how can I set up to control the volume. Thank you!

Edited by dbsjacky
0

Share this post


Link to post
Share on other sites

Posted · Report post

It can't

It can not control the volume, please tell me how can I set up to control the volume. Thank you!
0

Share this post


Link to post
Share on other sites

Posted · Report post

Can someone post a screenshot? Thanks!

here you go !

post-739392-1306957205_thumb.png

0

Share this post


Link to post
Share on other sites

Posted · Report post

EXCELLENT! :) works perfectly.

Thanks

0

Share this post


Link to post
Share on other sites

Posted · Report post

I've been playing with StreakRadio a bit… well, a lot. Works mostly fine on rooted 2.2 with setuid+setgid fm_hcitool here, though sometimes the audio hardware and/or the audio drivers in the kernel get stuck.

I haven't tested with it invoking fm_hcitool via a root shell (since I have su locked down and slightly out of the way). It does prefer su, though I suspect that it'll need to read from the root shell's stdout & stderr…

If anybody knows how to set the radio volume level, I'd like to know. (I do know that it'll be done via SetVolumeControlStream(), but it doesn't seem to be any of 0…9, and 10 causes the volume control tool to abort.)

I would attach the source, but I need clarification here: there's no licence information in the archive which I downloaded (from this thread) therefore no rights are granted (in addition to any granted by law) so technically I have no rights to distribute it.

XsCode – want to clarify the licensing?

As for setuid+setgid fm_hcitool (assuming that it's in /system/bin):

# chown 0.0 /system/bin/hci_tool

# chmod 6755 /system/bin/fm_hcitool

0

Share this post


Link to post
Share on other sites

Posted · Report post

You can't change the volume without the fm_hcitool source, it doesn't hook into the android volume API's and my app just acts as a GUI to it..

The source is completely opensource and Licenceless as long as it's not compiled and stuck on the market to make money..

If anybody knows how to set the radio volume level, I'd like to know. (I do know that it'll be done via SetVolumeControlStream(), but it doesn't seem to be any of 0…9, and 10 causes the volume control tool to abort.)

XsCode – want to clarify the licensing?

0

Share this post


Link to post
Share on other sites

Posted · Report post

You can't change the volume without the fm_hcitool source, it doesn't hook into the android volume API's and my app just acts as a GUI to it..

Hmm… Source or relevant details?

The source is completely opensource

Fine so far. (OSI definition?)

and Licenceless

No licence == no rights granted. What's needed is you saying what's permitted, be it here or in a text file in the source archive.

as long as it's not compiled and stuck on the market to make money..

That to me looks like a licence condition.

If you've done anything to it since 6 Oct, could you perhaps post a diff or fresh source?

On the assumption that you won't object, here's what I've done to it. Licence is… basically up to you: what I've done to it I consider to be modifiable and redistributable, but if you distribute the binary, you must also make available the corresponding source (ref. GPLv2 and later). I provide it as is, without warranty of any sort.

Source (no .apk) streakradio.zip

It's still far from ideal: for instance, typed values aren't handled until you use an adjustment button, and leaving the UI doesn't yet work well. But it does work on 2.2 :)

I just hope that it doesn't cause nasal demons. B)

0

Share this post


Link to post
Share on other sites

Posted · Report post

https://market.andro...mikersmicros.fm

would this app work with the streak? .... Nevermind, answering my own question.

"No. No it won't."

it will work with the streak PROVIDED you load any one of the two working applications before hand , ie load fm_radio.rar , then load the spirit fm ,

a tricky workaround but it works with rds etc

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

it will work with the streak PROVIDED you load any one of the two working applications before hand , ie load fm_radio.rar , then load the spirit fm , a tricky workaround but it works with rds etc
<BR><BR>how do you do that ? <BR>"load fm_radio.rar" ? <BR>"then load the spirit fm" ? <BR><BR>I'd love to have a working radio solution with RDS... please let us know how to make it work... <BR><BR>thx <BR><BR><BR>edit:<BR>I've installed the Spirit FM application and it works great on Steve's 1.9.1 ROM.<BR>RDS is also working.<BR> Edited by mrmrmrmr
0

Share this post


Link to post
Share on other sites

Posted · Report post

It worked as you guys said it would. Thanks alot!!!!!. I have downloaded the code and will look at it to see what i can learn.

0

Share this post


Link to post
Share on other sites

Posted · Report post

it will work with the streak PROVIDED you load any one of the two working applications before hand , ie load fm_radio.rar , then load the spirit fm ,

a tricky workaround but it works with rds etc

Hi. I'm the author of the Spirit FM Radio app.

------

First I have a question. :) Could anyone point me to or send me the bcom_fm.h file I've read here about ? I can't find it in any of the files linked on this thread.

I don't know if this is part of the source code for fm_hcitool (or fm_hcitool_speaker), but if anyone has the source for that it would be wonderful.

If not I will eventually reverse engineer the Ioctls used for setting the audio paths to headset or speaker etc.

I've seen references to arch/arm/mach-msm/include/mach/bcom_fm.h but Google can't find me that source code tree.

--------

In the latest version of my app on the Market, I added an Audio Method setting of "fm_hcitool". At present it just calls this binary that I embedded in my app.

In this post on my XDA thread, cedarman reported success without loading any other FM app: http://forum.xda-developers.com/showpost.php?p=15740471&postcount=738

But he also reported it's only working with the speakers. For the speaker mode I run "fm_hcitool 9 2" and for headset "fm_hcitool 9 1". I'm not sure why headset isn't working.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi. I'm the author of the Spirit FM Radio app.

------

First I have a question. :) Could anyone point me to or send me the bcom_fm.h file I've read here about ? I can't find it in any of the files linked on this thread.

I don't know if this is part of the source code for fm_hcitool (or fm_hcitool_speaker), but if anyone has the source for that it would be wonderful.

If not I will eventually reverse engineer the Ioctls used for setting the audio paths to headset or speaker etc.

I've seen references to arch/arm/mach-msm/include/mach/bcom_fm.h but Google can't find me that source code tree.

--------

In the latest version of my app on the Market, I added an Audio Method setting of "fm_hcitool". At present it just calls this binary that I embedded in my app.

In this post on my XDA thread, cedarman reported success without loading any other FM app: http://forum.xda-dev...1&postcount=738

But he also reported it's only working with the speakers. For the speaker mode I run "fm_hcitool 9 2" and for headset "fm_hcitool 9 1". I'm not sure why headset isn't working.

Hi,

Updated Spirit FM works on my Dell Streak with fm_hcitool method. However, as stated it only outputs to the Speaker. Before that I was able to run it just after starting another radio app which uses fm_hcitool. IF Irun that way, I can get sound to headphones.

Just let me know if you want me to test anything else.

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

https://github.com/c.../mach/bcom_fm.h

this isn't the file i referred to tho.. i'll keep looking for that..

Edit: Found the file i was working with before i gave up...

https://github.com/CyanogenMod/android_frameworks_base/blob/gingerbread/core/jni/android_hardware_fm_bcm4325.cpp

Hi. I'm the author of the Spirit FM Radio app.

------

First I have a question. :) Could anyone point me to or send me the bcom_fm.h file I've read here about ? I can't find it in any of the files linked on this thread.

I don't know if this is part of the source code for fm_hcitool (or fm_hcitool_speaker), but if anyone has the source for that it would be wonderful.

If not I will eventually reverse engineer the Ioctls used for setting the audio paths to headset or speaker etc.

I've seen references to arch/arm/mach-msm/include/mach/bcom_fm.h but Google can't find me that source code tree.

--------

In the latest version of my app on the Market, I added an Audio Method setting of "fm_hcitool". At present it just calls this binary that I embedded in my app.

In this post on my XDA thread, cedarman reported success without loading any other FM app: http://forum.xda-dev...1&postcount=738

But he also reported it's only working with the speakers. For the speaker mode I run "fm_hcitool 9 2" and for headset "fm_hcitool 9 1". I'm not sure why headset isn't working.

Edited by XsCode
0

Share this post


Link to post
Share on other sites

Posted · Report post

https://github.com/c.../mach/bcom_fm.h

this isn't the file i referred to tho.. i'll keep looking for that..

Edit: Found the file i was working with before i gave up...

https://github.com/C..._fm_bcm4325.cpp

Thanks a lot !

I saw android_hardware_fm_bcm4325.cpp long ago, but was hoping bcom_fm.h would reveal more "secrets" about Broadcom FM.

I DID find a few new bits of information in the bcom_fm.h you linked. It's too bad Broadcom keeps their chip specs so secret.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

Updated Spirit FM works on my Dell Streak with fm_hcitool method. However, as stated it only outputs to the Speaker. Before that I was able to run it just after starting another radio app which uses fm_hcitool. IF Irun that way, I can get sound to headphones.

Just let me know if you want me to test anything else.

Hopefully when I reverse engineer fm_hcitool, I will learn more about that.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hopefully when I reverse engineer fm_hcitool, I will learn more about that.

I noticed that if I run your app and then exit, my battery drains faster.

To stop the drain, I have to restart phone after exiting app.

I believe radio power stays runningbackground.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.