[Q] Read ambient RSSI using Wifi - General Questions and Answers

Hi,
I am looking for an API that can read the current ambient rssi with Wifi interface even if there is no AP in the range. Current APIs only returns rssi for an associated AP. How can I add this API in a build? Any direction would be appreciated.
Thanks,
Hossen

What is an ambient RSSI?
If there is no AP in range, whose signal strength do you want to read?

Even if there is no AP, there is some noise signal available (ambient noise). I am working on a project where I need to read the ambient noise value.
Thanks.
Dark3n said:
What is an ambient RSSI?
If there is no AP in range, whose signal strength do you want to read?
Click to expand...
Click to collapse

Dark3n said:
What is an ambient RSSI?
If there is no AP in range, whose signal strength do you want to read?
Click to expand...
Click to collapse
Rssi stands for relitive signal strength indication. It is used to measure the received signal strength in a radio receiver.
So what they are looking for is a way to intercept the signal strength that the wifi is receiving from the wireless router and be able to show it on the screen.
Oh and by ambiant noise they are talking about the background noise from other transmitters that might be using the same radio frequencys that the wifi is using.
sent from my legend, currently using extream legend fuse™

asiful said:
Even if there is no AP, there is some noise signal available (ambient noise). I am working on a project where I need to read the ambient noise value.
Thanks.
Click to expand...
Click to collapse
This might be more appropriate to do research on radio transmitions rather than apps on a phone, for example, set yourself up with radio scanners and antennas that cover the radio frequency's that wifi uses.
P. S. I am a licenced radio ham as well as playing with my phone.
sent from my legend, currently using extream legend fuse™

Any moving on?
Hi, guys. I have almost the same problem.
I am working on a project which need to read signal strength in BCM4313.
I try to measure the wireless signal strength ( Adding noise and normal signal up) in the environment constantly. The sample rate is 1000 Hz, for example.
I was working on CC2420 chip-set (which supports 802.15.4). RSSI in CC2420 can does that thing. So I just wonder does RSSI in WiFi has the same functionality.
So I try to dig into the source code of driver , I still can't figure out how to do that.
Thanks for any help.
Best,
Nathan

I found the answer
After reading the source code of the driver for several days, I finally found the method.
There is no general API to do this job. We should dig into driver to obtain ambient rssi. So this is product dependent.
My NIC is Broadcom BCM4313.
I first download the driver from the website of Broadcom. However they don't provide interface to access the hardware. It cost me a lot of time to figure out this.
Then I turn to the open source driver: brcmsmac. It helps.
In the function wlc_phy_noise_sample_request(...) , in /phy/phy_cmn.c folder, I found the example for how to read ambient rssi.
Nathan

Related

Possible A2DP skipping solution!

Headset: Motorola S9-HD
ROM: Haykuro 6.0
Radio: ota-radio-2_22_19_26I
Issue: a2dp audio skips due to location of phone... or so it seemed. The audio would skip if the phone was placed across my body from the antenna or in a pocket.
Resolution: I began researching the bluez stack and found several places in the code that alluded to the hfp and a2dp being intertwined. This lead me to remember that android also attempts to switch between the hfp and a2dp for incoming calls.
I found that my headset was connected by default with both profiles active (not one at a time).
Thus after several test i found that disabling the hfp will eliminate the skipping.
Explanation: My best analysis is that the phone is keeping both profiles open at the expense of splitting the channel. Thus when the phone has gsm related events (incoming calls, tower hopping, background edge data) it is tying up the hfp by error thus causing a2dp to get reduced resources, low signal strength, and possibly packet collisions. Try for yourself. The skipping instantly stopped for me. Let me know how it goes for you! Thanks to all the devs for these great roms and info.
can i get an english translation lol jk...can u explain it in noob form
interesting, plausible explanation
where in the code do you make the change?
noob translation: turning off the headphone profile possibly frees up room for audio to stream uninterrupted...
ps. that might still confuse some... lol
alapapa said:
interesting, plausible explanation
where in the code do you make the change?
Click to expand...
Click to collapse
no changes were made yet... the bluez stack is written to have a bridge between a2dp and headphone profile. i think android is sending packets to the headset via hfp for gsm events. I would think android should discard the packets instead of sending them out and relying on the headset to ignore them.
i would think the code can't be changed without making LOTS of other changes... i would be essentially rewriting how android handles the two profiles at the same time. (ALOT of work)
if this ends up fixing it for everyone... then i might look into trying to increase a2dp's priority in transmitting or some other solutions...
crushsuitandtie said:
no changes were made yet... the bluez stack is written to have a bridge between a2dp and headphone profile. i think android is sending packets to the headset via hfp for gsm events. I would think android should discard the packets instead of sending them out and relying on the headset to ignore them.
i would think the code can't be changed without making LOTS of other changes... i would be essentially rewriting how android handles the two profiles at the same time. (ALOT of work)
if this ends up fixing it for everyone... then i might look into trying to increase a2dp's priority in transmitting or some other solutions...
Click to expand...
Click to collapse
i think I gotcha...you just killed the hfp profile on your PC or w/e...?
Menu button>Settings>Wireless Controls>Bluetooth Settings>(long press) Your headset name>Options...>uncheck phone....
thanks for that tip. i was cutting my grass the other day. g1 in rear pocket. stereo bluetooth headphones on. signal kept cutting out on me. i'm gonna try this and see if it helps.
crazythunder said:
thanks for that tip. i was cutting my grass the other day. g1 in rear pocket. stereo bluetooth headphones on. signal kept cutting out on me. i'm gonna try this and see if it helps.
Click to expand...
Click to collapse
No problem. I'm just trying to add something constructive around here. I'm still not even close to some of these guys.
Hey you're right! I just connected my S9 to "media" only (disabling the phone connection in bluetooth settings) and it doesn't skip anymore, even with wifi on! I'm going to give this a try on my sony head unit in my car when I get the chance and I'll report back.
DOHCtor said:
Hey you're right! I just connected my S9 to "media" only (disabling the phone connection in bluetooth settings) and it doesn't skip anymore, even with wifi on! I'm going to give this a try on my sony head unit in my car when I get the chance and I'll report back.
Click to expand...
Click to collapse
Glad to hear that! im back at work and its heavily laced with wifi and the building gets poor edge/3G signal.So if you walk out the entrance toward the parking lot, the phone would connect to the cell towers (plus the wifi antennas are strong here) and my headphones would skip almost non-stop. This no longer happens. I'm quite happy.
Interresting hypothesis. I have my phone relatively close to my headphones so it hasnt been a big problem. Wifi had to be off or it didnt matter how close.
Eventhough it defeats the purpose of my S9's I'm going to give it a try.
atoy74 said:
Interresting hypothesis. I have my phone relatively close to my headphones so it hasnt been a big problem. Wifi had to be off or it didnt matter how close.
Eventhough it defeats the purpose of my S9's I'm going to give it a try.
Click to expand...
Click to collapse
i kept wi-fi off because I was in the gym or walking to my car... it would skip an absurd amount and i would nearly throw my phone and headset 8 blocks from pure frustration. The crazy part is BT is easily strong enough to transmit from a pocket to a headset on my head. I like to think i am tall but not that tall and disproportionate that my pocket is over 30 feet from my head! lol.
any skipping from that short of a distance is actually indicative of a problem to me. Thats like putting on a normal earpiece and getting nothing but static from that distance.
1) tests with my Sony Ericcson K850i showed it wasn't the headset....
2) i sat the phone on the floor directly under me when i was benchpressing, and simply because i layed down and partially covered the back of the headset the music started skipping non-stop. covering the antenna can cause some interferance but honestly with the phone that close it really shouldnt matter...
Tried the same test with my K850... no skipping. Tried with hfp disabled.... no skipping. Turn on hfp and a2dp... skips heavily.
thats the short version of how i came up with the split bandwidth part of my theory.
crushsuitandtie said:
no changes were made yet... the bluez stack is written to have a bridge between a2dp and headphone profile. i think android is sending packets to the headset via hfp for gsm events. I would think android should discard the packets instead of sending them out and relying on the headset to ignore them.
i would think the code can't be changed without making LOTS of other changes... i would be essentially rewriting how android handles the two profiles at the same time. (ALOT of work)
if this ends up fixing it for everyone... then i might look into trying to increase a2dp's priority in transmitting or some other solutions...
Click to expand...
Click to collapse
The handsfree profile will periodically send out "indicators" for things such as battery status and signal strength. These are small packets, which in a well designed Bluetooth stack, should not cause any disruption in the A2DP stream. The thing to look for would be how data transmission is prioritized. If, for example, BlueZ simply sends data in a "round robin" style, then sending a small data packet may delay the transmission of an A2DP streaming packet just enough to cause the problems you are describing.
I'm using JF1.51 and am not experiencing any of the audio problems you describe, even with WiFi and Handsfree connections enabled. I ran some tests and used a Bluetooth sniffer to capture the data traffic. One time I did hear an audio dropout at about the same time that the phone sent a signal strength indicator, which doesn't exactly validate your theory, but does make me wonder. However, I only saw 5 indicators sent by the phone over a 30 minute session.
Does using this method affect you from using the headset for calls?
Am I understanding that you would use this to listen to music... and if a call comes in would would talk over the handset normal?
What I've found is using A2DP indoors works perfectly (with our without HFP.) The explanation I've read is that the 2.4GHz waves bounce off the walls enhancing reception. Once outside is when I see degradation of quality/drops which would support the theory.
You might be on to something. If the bandwidth is being cut to share data over two profiles then, once you step outside, you'll have less distance before data packets drop.
paesano said:
I'm using JF1.51 and am not experiencing any of the audio problems you describe, even with WiFi and Handsfree connections enabled. I ran some tests and used a Bluetooth sniffer to capture the data traffic. One time I did hear an audio dropout at about the same time that the phone sent a signal strength indicator, which doesn't exactly validate your theory, but does make me wonder. However, I only saw 5 indicators sent by the phone over a 30 minute session.
Click to expand...
Click to collapse
you might have misread one of my posts... what you descrribed is exactly what i was saying... gsm events are possibly clogging bandwidth for a2dp. the one time you heard it is what i am experiencing constantly in some areas.
it appears to be a combination of several factors that are somehow hitting some people all at once....
1)"gsm or phone events being broadcasted"
2) possible split BT channel for HFP and A2dp
3) weak overall BT signal strength from g1 (dialed down in drivers to save power?)
4) interference from other wifi sources (enterprise access points aka "High gain antennas")
P.S. I guess its obvious i'm a systems analyst... lol
this really does work!!!!
if you guys remember windows mobile , the BT stack by default is set with the bit pool min and max @ 31 ,it works great but the sound quality sucks.. if you use a registry editor and increase the max bit pool sound quality gets better, but if you go to high you would get the cliping that we now get . i used to do this with my wing , using this same S9 headphone ,the trick was not to go to high with max bitpool and to lower min to 12 and this worked great,, max was @ 46 min was @ 12 ,, no skipping at all.. and great sound . WE need to find a way to get these adjusted on android , this should fix
now i do believe the wing and G1 both use Broadcom stacks ,could be wrong>>
remember Schap's tools - Advanced Configuration this did the trick
crushsuitandtie said:
you might have misread one of my posts... what you descrribed is exactly what i was saying... gsm events are possibly clogging bandwidth for a2dp. the one time you heard it is what i am experiencing constantly in some areas.
it appears to be a combination of several factors that are somehow hitting some people all at once....
1)"gsm or phone events being broadcasted"
2) possible split BT channel for HFP and A2dp
3) weak overall BT signal strength from g1 (dialed down in drivers to save power?)
4) interference from other wifi sources (enterprise access points aka "High gain antennas")
P.S. I guess its obvious i'm a systems analyst... lol
Click to expand...
Click to collapse
Sorry, I must not have been very clear. I did understand what you were saying, and I confirmed seeing what you saw in the one dropout I heard. However, in my case, there were only 5 "GSM Events" during the duration of my test. Not really enough to cause a lot of trouble. I can see that if a lot of GSM events occur (The spec calls them indicators), then there could be a lot of errors. Perhaps this happens when the GSM signal is weak and constantly changing.
If you want to look at making changes to the Bluetooth software, here's my analysis of the 4 points above:
1) If a lot of indicators are being sent by the G1, then I can see that a Bluetooth stack implementation could have streaming audio problems if not properly implemented. Unfortunately, the only way to fix this problem is in software by only sending indicators (and any other data) "in between" the A2DP streaming packets. Streaming packets should never get delayed. It would be better to toss the streaming packet than to delay it.
2) When both HF and A2DP are connected, the signal is not actually split. They both have access to the full bandwidth of the Bluetooth stack. The only time that there would be a problem is when both are sending at the same time, which could cause an audio packet to get delayed in a transmit queue, causing a dropout (as described above). Perhaps BlueZ doesn't do a very good job of prioritizing data, so that audio data is never delayed by other data packets. In my opinion, #1 and #2 are the same problem.
3) A week BT signal would definitely cause this. I can reliably listen to stereo audio with my Sony headset at around 10-15 ft. Outside that range, I start to hear dropouts. Also, If I put my hands over the headset, I can cause dropouts at even 2 ft. So, your body will definitely cause problems if it gets in the way of the signal. Finally, the sensitivity of the radio on the headset will affect the range as well. It may or may not be possible to increase the TX power by sending the Bluetooth controller a command in the software. The only other solution is to try and not get in the way.
4) WiFi certainly can cause interference, as can a microwave oven. However, adaptive frequency hopping (AFH) should mitigate most problems. Perhaps AFH is not turned on for some reason, or there are multiple WiFi networks around, making it very difficult for the Bluetooth controller to find any reliable frequencies. AFH is turned on by sending the Bluetooth controller the command.

Bluetooth GPS

Many people are having problems with GPS. This thread is intended to discuss the different possibilities using an external bluetooth GPS.
I have just bought a Copilot GlobalSat BT359. I have tested it with Bluetooth GPS Provider V1.2.5 from the market.
I am very please to report this works very well. Got a fix in seconds and is very accurate. Need to test it on a long run.
Can people please post any info on bluetooth GPS's and any results they get.
The Copilot GlobalSat BT359 cost just £14 from eBay.
cool downloaded the program works fine with my bluetooth gps(holux) thnx very much! nice to have a backup! my internal gps works fine too!
Try oruxmap from the market. It supports external bluetooth gps. And working great.
I use a Nokia LD-3W bluetooth GPS module. It's nice and small and it works an absolute treat and locks on to satellites instantly. The battery lasts for ever and it also has the in car charger just in case lol. I use the copilot sat nav app as it has built in maps so I don't need to worry about data useage and it is available to buy from the market.
Edit: loads for sale on ebay HERE
symanuk said:
Many people are having problems with GPS. This thread is intended to discuss the different possibilities using an external bluetooth GPS.
I have just bought a Copilot GlobalSat BT359. I have tested it with Bluetooth GPS Provider V1.2.5 from the market.
I am very please to report this works very well. Got a fix in seconds and is very accurate. Need to test it on a long run.
Can people please post any info on bluetooth GPS's and any results they get.
The Copilot GlobalSat BT359 cost just £14 from eBay.
Click to expand...
Click to collapse
Just tested Copilot GlobalSat BT359 and it works great. Did have some phone crash problems. Fixed it i hope...
I've ordered a keyring gps:
http://www.handtec.co.uk/product.ph...gps-receiver/63a0c4b6f743d7f3f396c7497be2aa58
Testing with my Nokia phone as the gps device I found making the bluetooth connection was difficult. Once connected it worked great. Hopefully the Nokia was at fault there and not Android and the keyring device will connect every time.
snaff said:
I've ordered a keyring gps:
http://www.handtec.co.uk/product.ph...gps-receiver/63a0c4b6f743d7f3f396c7497be2aa58
Testing with my Nokia phone as the gps device I found making the bluetooth connection was difficult. Once connected it worked great. Hopefully the Nokia was at fault there and not Android and the keyring device will connect every time.
Click to expand...
Click to collapse
Thats a neat little device and handy it can clip on to your trouser belt or jacket etc. I notice that the website has some mark up on the Copilot UK maps! Its only about £27 from the Market!
Got the BlueNEXT BN-902MM today and took it for a short walk with My Tracks. All seems good. Look forward to running with it on Monday.
Importantly, the routine each time I want to use it is no more than 10 seconds:
* switch on the keyring
on the sgs:
* disable internal gps from the icon on the dropdown menu
* tap the Bluetooth GPS widget
and it's ready to go within a few seconds with no more fuss. Same in reverse to disconnect and go back to using the internal GPS.
I wanted to clarify that as if the connection is more like 30 seconds+ or is unreliable then you don't want to be doing that every day.
Does this work with all aplications, like Google Maps, trapster or Sportypal or only specific apps?
Thanks
t1mman said:
Does this work with all aplications, like Google Maps, trapster or Sportypal or only specific apps?
Thanks
Click to expand...
Click to collapse
In theory with all apps. The data is passed to the Android OS so any apps using the standard Android interface for reading positional data will get that which comes through the bluetooth link.
The only difference I've seen is in the GPS Status app which gets the positional data but not the debug data with regard to each satellite and its signal level, etc. I don't think any normal apps would need that sort of detail.
Here is my modded armband. It's an iphone band so I'd already butchered it to fit the SGS in and felt I had nothing to lose. First I made a hole to attach the keychain to, then unpicked the thread on part of the velcro strap so the GPS could slot behind that. Then I did a bit of sewing (no homo) to tidy it up.
snaff said:
In theory with all apps. The data is passed to the Android OS so any apps using the standard Android interface for reading positional data will get that which comes through the bluetooth link.
The only difference I've seen is in the GPS Status app which gets the positional data but not the debug data with regard to each satellite and its signal level, etc. I don't think any normal apps would need that sort of detail.
Click to expand...
Click to collapse
Good! So it's definitively my planB if it's not fix by next spring (I probably won't run outside that much in winter in Canada eh!)
Here is the Nokia LD 3W in action:
http://www.youtube.com/watch?v=BM2gm5DAOjM
But since I started working with the "gps status"app., the internal
gps is doing quite well as well....but I dont know if it's related,
« »
I'm overall happy with the external Bluetooth GPS.
I've used this app with many other gps apps. Like Google earth, maps, Cell mapper 2, c:geo, DRoute, G-Mon, GeoRecorder, GPS Status,Maps(-), My Tracks, Speedview and more. Only one states that gps is turned off but works anyway which is Waze and iGo won't start because it can't find a GPS-signal.
Accuracy with internal varies between 100m and 10m and external GPS between 10m and 1m.
For navigation in cities I use the external GPS and for rural navigation I use the internal GPS receiver.
Does this prove that the internal gps on the sgs has a hardware issue? Or there other factors involved?
I am just wondering if the issues can really be solved, by software updates?
householddog said:
Does this prove that the internal gps on the sgs has a hardware issue? Or there other factors involved?
Click to expand...
Click to collapse
It doesn't, because the drivers may be buggy, and external receivers do most the processing, so it isn't a timesensitive operation really.
householddog said:
Does this prove that the internal gps on the sgs has a hardware issue? Or there other factors involved?
I am just wondering if the issues can really be solved, by software updates?
Click to expand...
Click to collapse
Bluetooth gps navigation works very well on the sgs as you can see on video.
It is a hardware issue in the sense that most standalone gps receivers or external bluetooth gps receivers got more capable gps chipsets (like sirfstar chipsets) than most smartphones nowadays, so it is not an exclusive sgs's problem
It could be an antenna issue as well so a less serious hardeware problem...
Anyway I dont think this thread is the right one for that kind of discussion.
This thread I think is to show if bluetooth gps is working on the sgs and how.
Or why it is an option for some users and for others not...
Bluetooth gps works on my sgs and that's a fact.
For the other gps issues there are already enough threads with speculations, assumptions and facts like:
http://forum.xda-developers.com/showthread.php?t=821863
And more:
http://forum.xda-developers.com/showthread.php?t=732030
And so much more...
Let's keep this thread just to the point and that's bluetooth gps navigation.....
« »
sean2476 said:
I use a Nokia LD-3W bluetooth GPS module. It's nice and small and it works an absolute treat and locks on to satellites instantly. The battery lasts for ever and it also has the in car charger just in case lol. I use the copilot sat nav app as it has built in maps so I don't need to worry about data useage and it is available to buy from the market.
Edit: loads for sale on ebay HERE
Click to expand...
Click to collapse
Yes, that's interesting how long that battery goes without recharging!! How is that possible?
The specs say 3 days stand-by and 4 hours active...well on stand-by it lasts forever and during navigation is so many hours I dont even know exactly!!!
If its a software issue, I guess 6 months is not even close enough to fix it. Im already convinced that this is a hardware issue since my 5800 seems to have a very accurate GPS
hmm i want free GPS(w/o trial).. and also i want cheap bluetooth GPS with good quality
..
just tell me if you know any product

[Q] O2 Serra/Touch Pro FM radio tuner

Hi,
I've been trying to get the FM radio tuner working on my O2 serra which currently has radio version 1.14.25.32 on it. The tuner does work, but the reception is extremely poor and I have tried various different headphones, but none show any improvements. The thing is, I remember it working better than it does now, basically it seems to have degraded, but I don't know at what point, I'm not sure if flashing newer radio versions has affected it at all and therefore I have a couple of questions:
1) Does the radio version actually affect/control the BlueTooth/FM/wifi chip ?
2) Are there any settings or registry entires that can be changed to improve the reception ?
3) Is there a better radio version I should be using ?
When I start the FM radio app. there is a ot of static and the signal strength is full up and I can hear faint radio stations, it won't auto tune in to anything accept my FM transmitter use in the car, even then the signal strength only goes up to the 4th bar.
Sorry for all the basic questions but I've searched and read lots on here but nothing to really answer these question directly.
Regards,
Andy
P.S. I'm actually trying to get TMC working with hypergps, but the reception is making it useless. I even tried it connected to my car antenna with some improvement, but nowhere near enough.

[Q] Spirit FM radio on NEXUS s test

As I am a new user I can't post on specific thread so I post here my test
I installed Spirit PAK ver 01 07 and after turn on all device in my Nexus S I tried apk
Here some photos of test with stock ROM 2.3.4
It can be useful for developmetn ....
http :// imageshack.us/photo/my-images/27/dscf0009hc.jpg/
http :// imageshack.us/photo/my-images/18/dscf0011js.jpg/
http :// imageshack.us/photo/my-images/825/dscf0012su.jpg/
result : Signal are instable and no sound (
If can I help in some other way ....
The technical is in the next post.
Thanks for posting publicly. I prefer open discussion so that everyone can benefit and contribute.
I created my main thread in a forum dedicated to discussing apps, but didn't realise it was under a dev forum and thus users with less than 10 posts couldn't post. I wonder if I should create a 2nd thread...
You can't post full URLs either so here they are:
http://imageshack.us/photo/my-images/27/dscf0009hc.jpg/
http://imageshack.us/photo/my-images/18/dscf0011js.jpg/
http://imageshack.us/photo/my-images/825/dscf0012su.jpg/
BTW, screenshots are great !
The short answer is I don't think the Nexus S is capable of receiving or transmitting FM, but I would never say never without hard proof.
I've been asked a few times over the last several months, and if I recall correctly, every time I've Googled the issue I found no evidence that anyone has EVER made FM work on the Nexus S.
I think my app is probably the closest it will get. It WILL manipulate the FM registers over HCI and it will look like it works, to some extent. But no audio, not even static, will be heard.
And there will be no indications of reception, like a more or less steady RSSI reading on strong channels, and RDS data.
Samsung manufactured this phone, and it seems to be a derivative of the Galaxy S. The Galaxy S, like the Nexus S, has an FM/BT/WiFi combo chip from Broadcom. The stock Galaxy S supports FM, but via a dedicated Silicon Labs FM chip, which the Nexus S does not seem to have. (BTW, the FmTwoO app also works on Galaxy S.)
AFAICT it's not possible to use the Broadcom chip for FM on the Nexus S. The antenna and audio connections are to the Silicon Labs chip and not to the matching pins on the Broadcom chip. If the Nexus S PCB/circuitry is reasonably similar to the Galaxy S, then it probably won't work on the Nexus S either.
There are two Samsung devices that I've been trying to help owners get FM working on. that have a Broadcom chip, but no other chip. Thus far we've had no success with either the Galaxy Tab, or the Spica i5700. There are two problems:
(1) The RSSI signal strength shows strange values and may jump around. I think this is due to no antenna connection and/or some FM RF power pins may not be connected.
(2) No analog audio output has been achieved, not even static, despite trying the 8 or so Audio Methods my app currently supports, and ALSA as well.
(2) might be fixable if I ever achieve digital audio transfer or even direct audio to BT headsets within the chip.
But (1) might only be fixable with much investigation and soldering etc.
Sorry... I'd love to find out I'm wrong about this.
Other info for BCM4329 chip :
http :// www . datasheetdir.com/BCM4329+download
in these datasheet we can read
Code:
Host Interface support
- Host Controller Interface (HCI): High-speed UART
-Audio: PCM
- FM Control: HCI and BSC (I2C-compliant) ports
- FM Audio: Stereo analog input and output, bidirectional
I2S, and PCM ports
In schematic we can notice BT and wifi use same ant , FM has dedicated one ....
But SPI / I2C / I2s are the same of BT and WIFI so it's possible to comunicate with FM part in chip with no problem ....
Code:
FMHost Interface: High-speed UART, I2C for control
.....
if not mistaken spirit apk use only HCI .... not I2C !
magicko said:
Code:
FMHost Interface: High-speed UART, I2C for control
.....
if not mistaken spirit apk use only HCI .... not I2C !
Click to expand...
Click to collapse
All devices that uses the combo chip for Bluetooth support the HCI UART interface. That can be accessed via the BT stack or directly by reasonably standard and common methods.
I don't know what fraction of devices can use the other interface, but some don't. I believe the Galaxy Tab schematic showed a digital connection to the Wolfson audio chip...
The next issue would be accessing the interface, and I think that would require a device driver. If I wanted to support multiple devices and kernels by this method I'd have to create multiple device drivers.
So even if possible, I think the work required would be excessive.
But if somebody can figure this out, I'd be happy to hear about it.
EDIT: A digital audio connection MAY not be as hard as I envision, at least for some devices.
IF the ROM supports a digital / "SCO" connection to the chip, it might be possible to call an audio API to set this up.
I haven't worked with these SCO connections yet, so I don't know how easy or feasible it is, but I'll try to find out.
Hi mikereidis, I don't want flooding to be able write on developers section, as well be superfluous create a new topic on the DroidX tree so I would write here...
I tried the latest SpiritFM version on DroidX CM7. Several times I was able tune to the pre-programmed frequency and receive audio using FM_launch method. In most cases, I only get noise. To get the sound the speaker/headphones button should on and then off. Without such manipulation sound does not appear.
The big problem is that your program give low radio sensitivity. This is not a hardware problem because stock FM program allows 15 radiostations on the my area.
I also tried FM_launch2 but without success.
Here is the catlog with FM_launch, and then FM_launch2. I'm also ready to provide any logs or make any test if it helps you improve SpiritFM for Motorola phones.
evgenln said:
Hi mikereidis, I don't want flooding to be able write on developers section, as well be superfluous create a new topic on the DroidX tree so I would write here...
I tried the latest SpiritFM version on DroidX CM7. Several times I was able tune to the pre-programmed frequency and receive audio using FM_launch method. In most cases, I only get noise. To get the sound the speaker/headphones button should on and then off. Without such manipulation sound does not appear.
The big problem is that your program give low radio sensitivity. This is not a hardware problem because stock FM program allows 15 radiostations on the my area.
I also tried FM_launch2 but without success.
Here is the catlog with FM_launch, and then FM_launch2. I'm also ready to provide any logs or make any test if it helps you improve SpiritFM for Motorola phones.
Click to expand...
Click to collapse
Thanks for the log evgenln. I'll let you know what I find.
Some other people have enabled audio by toggling speaker/headset. It would be a hack, but perhaps I can create an option that toggles it automatically. But it would be better if I figure out what's happening, and fix it right.
Regarding signal strength: My guess would be that there is a function call required to enable the FM antenna, and that you are receiving without an antenna. I'll try to find out.
But since the headphone cable is the antenna, it's possible this is related to audio issues.
evgenln said:
I tried the latest SpiritFM version on DroidX CM7. Several times I was able tune to the pre-programmed frequency and receive audio using FM_launch method. In most cases, I only get noise.
Click to expand...
Click to collapse
It appears something has broken horribly for Texas Instruments FM chips. I can confirm the same errors you are having on my HTC Legend.
I can trigger the errors when I switch headset to speaker, and I'm not sure why yet.
Most phones have Broadcom chips, but I still don't understand why I haven't seen this problem before; it seems to go back at least a month.
Regardless, I've found a workaround that I hope will also work for you. If you deny SuperUser privileges to the app it will use hcitool instead of the daemon. It will consume more CPU/power when RDS is working and the screen is on though.
So, open the SuperUser app and select Spirit FM Radio and press Forget.
Then restart the app and when SuperUser asks for permission, select Deny and Remember.
Let me know, thanks !
I will determine the root cause and a fix.
Here's a preferable workaround for TI chip devices (and reason I wasn't seeing this issue).
This operation is useful for Broadcom based devices on CyanogenMod also because CM tries to use hcitool to set FM volume, so this can avoid some interference:
Remove or rename the hcitool binary. During audio switching, CyanogenMod (and likely some derivative ROMs) calls hcitool for some reason. This causes problems in the daemon mode.
The downside to this is that the CM FM app won't work.
I do this:
adb remount
adb shell mv /system/xbin/hcitool /system/xbin/hcitoo
My app can still use "hcitoo" if needed.
mikereidis said:
I do this:
adb remount
adb shell mv /system/xbin/hcitool /system/xbin/hcitoo
Click to expand...
Click to collapse
I tried this but without success. Still have on and then off the speaker/headphones button to get the sound.
In the attached files logs for the stock FM applications running on stock moto 2.2 and for the current SpiritFM on CM7.
evgenln said:
I tried this but without success. Still have on and then off the speaker/headphones button to get the sound.
In the attached files logs for the stock FM applications running on stock moto 2.2 and for the current SpiritFM on CM7.
Click to expand...
Click to collapse
OK thanks, I'm looking now.
To respond to your PM about Regional Band Russia frequency steps, it works OK for me as 100 KHz.
It's harder to see now though because the frequency up and down buttons have been removed in favor of the graphic thumbwheel. If you carefully nudge the thumbwheel you can see frequency move 0.1 MHz at a time, while for North America it's 0.2 MHz and odd frequencies.
The frequency step for seek might have a problem; it's done by the chip and there may be a problem there.
evgenln said:
I tried this but without success. Still have on and then off the speaker/headphones button to get the sound.
In the attached files logs for the stock FM applications running on stock moto 2.2 and for the current SpiritFM on CM7.
Click to expand...
Click to collapse
I've started a new thread here that should work for people with less than 10 posts: http://forum.xda-developers.com/showthread.php?p=15607830
Technically it's in a paid app forum and it's technically for the paid Unlocker (converts free app to paid app), but unless some moderator decides it's a really bad idea it's open for discussion of the free app also.

Car Radio signal level meter

Has anyone come across or developed a software or prog that will read the hardware mcu signal level or value from the car fm aerial?
Not wifi, bluetooth, gsm etc.
I've looked for ages for a simple hardware meter type thing to measure the signal from my antenna, but no luck.
Most meters 'out there' are either very professional and expensive or are for transeiver type swr.
Thanks
Is it an MTCD type unit
Hi, yes it is. Why I posted in this group. It's possible though someone has made a general android app that is universal.
If it's even possible.

Categories

Resources