yashsingh1/xdaforums huggingface dataset:
[HD2 General] BLAST3RR:
Did some verification on my test results;

The datasheet of the BCM4329 says it supports 802.11n up to the MCS7 rate.

This rate is specified as 65Mbit, which is the same as my router indicates the signal is running on.

The sheet also states that it's FM radio unit is connected through high-speed UART and I2C to control the unit. They have put the FM recv. and transm. part in the same box, with the same controls/host communications specified. So it must be connected to the hardware already because it will probably use the same bus as the FM receiver. Also, the sheet states it offers bi-directional communication over these busses.

The only thing we would need is a driver/controller app, I think. Correct me if I'm wrong.

Link to datasheet: http://www.datasheetdir.com/BCM4329+Bluetooth
[HD2 General] Tung_meister:
seems correct mate, it should just be a case of a driver and app - possibly the current driver may already interface with the transmitter and all that would be needed would be some calls to access it.
[HD2 General] hoss_n2:
very good and simple data sheet every thing is explained good work
[HD2 General] harddisk_wp:
hm we need to find out how the chip is controlled. someone up to a bit reverse engineering in the FM radio app?
[HD2 General] hoss_n2:
we need some programming experts to see this post and tell their opinion
[HD2 General] azahoth:
This is going to sound silly I know but so please excuse me (heavy night). Haven't got the HD2 here but I wonder, if you turn radio app on and say tune to a radio station, then go to another radio in the house and then scan the higher frequencies, would you be able to pick up the HD2 transmission? I`m presuming rx and tx are both enabled at the same time.

edit: to clarify, when radio App is on and in rx mode (naturally) has Tx mode been surreptitiously enabled at the same time

Turn radio application ON > Tune into a radio station > Goto a different radio unit > Scan frequencies > Do you pick up station the HD2 is locked on?
[HD2 General] hoss_n2:
i don't understand what you want to say
[HD2 General] xnes:
Well Azahoth, I made the test and definitely if you set the radio in a RX frequency, it does not transmit in the same frequency. I tried some misused frequencies and my radio did not find any reception there.

But if you think more about, it kind not make sense for 2 reasons:

- if you transmit in the same frequency you are receiving, you'll mess your own reception of the radio station (afterall you'll also be a station as well)

- it's not reasonable for a device that must preserve the energy consumption to transmit fm always when you are listening to the radio, afterall, it takes a lot more energy to transmit then to receive.

Was a good guess but we gonna need some hacker to make a program to try to use this transmitter if it exists!

PS: Would be great to have a fm transmitter on the HD2, but sometimes the best way is to go to store and buy a device only to that function... I have a fm transmitter on my car and works flawless on HD2, a must have device.
[HD2 General] xmoo:
What is the fm Transmiitter about?

I do know and can confirm that the HD2 has a internal antenna for the FM Radio....

So It can work without earpieces!
[HD2 General] ralphfx:
Maybe it's an idea to post some sort of a driver request in the Themes and Applications section or in the Rom section?
[HD2 General] hoss_n2:
FM TRANSIMITTER IS AN OPTION TO LET YOU TRANSFERE ANY thing you are listning at your device to any radio station ex (when you are listning to music on your device you can listin to what you are listning at on your car radio through an empty channel without needing to connect your hd2 to the car radio just adjust the transmitter to the frequency of the empty channel and it will transmit radio waves to the car channel ) this option has been used for a long time in nokia phones
[HD2 General] Archer:
Heh .
[HD2 General] elyl:
You've managed to get the HD2 to receive FM transmissions without the use of an antenna? How so?
[HD2 General] xiamilo:
this is really fun……expecting
[HD2 General] hoss_n2:
what is fun the previous post or the original post
[HD2 General] flywhc:
BLAST3RR guided me here.

In my FM RDS thread we tried to do reverse engineer on this device.

It is part of broadcomm bluetooth stack and very difficult to debug.

we only traced FM control data from FMradioSDK.dll into BTTray process but don't know which module.

I hope a talent developer could join us to find out the way to control this chipset.
[HD2 General] hoss_n2:
again we need this post to be sticky
[HD2 General] Archer:
I wouldn't worry about that (and don't actually agree with stickying this thread - you should only sticky information, not questions - unless it's FAQ). If there's enough support (which there appears to be) then this thread will stay high on page 1 anyway.

I can't see it disappearing for quite some time.
[HD2 General] hoss_n2:
i hope so ................
[HD2 General] BLAST3RR:
Just be sure to bump it a couple of times.

Also, hoss_n2, please make a summary of all 'useful' posts in the first post so developers won't have to search for this information in between all unuseful posts..
[HD2 General] manicotti:
Does the HD2 support just 2.4 GHz 11b/g/n or also 5GHz 11a/n?
[HD2 General] BLAST3RR:
According to Broadcom:

HOWEVER (yes, thats a BIG however), the datasheet displays 2 'types'. One does support 5Ghz (H), the other (G, which is probably in the HD2) does not.

So I'd guess that's a no.
[HD2 General] hoss_n2:
did you mean that hd2 has the chip that doesnot support wifi n as it is reported to work with some or just does not the 5ghz type and does the both chips have fm transmitter
[HD2 General] BLAST3RR:
Both chips have the N capability and FM transmitter/receiver. The 'H'-type however adds additional support for 802.11a and 802.11n-5Ghz bands.
[HD2 General] hoss_n2:
thanks it is clear now (i have updates the post and mentioned your good work with us have you seen it )
[HD2 General] xmoo:
Have you tried using the HTCFM app?? From the HTC Debug Tools.

Think you will find some interesting stuff there!
[HD2 General] hoss_n2:
can you upload it so every one could test it
[HD2 General] xmoo:
Yes Busy with it

give me couple mins
[HD2 General] BLAST3RR:
Looks good. I will also place some links to posts that might be useful for the devs in the 2nd post once we know more.

A FM Radio Debug Package? Definitely interesting...
[HD2 General] xmoo:
http://xdaforums.com/showthread.php?p=5446085

Have fun ya'll
[HD2 General] hoss_n2:
i have posted it in the update list
[HD2 General] harddisk_wp:
Too bad. "FM Tx" says "Not Implement Yet!"

F*** them.
[HD2 General] hoss_n2:
what programm told you that
[HD2 General] xmoo:
The app,

Also remmeber guys. Using these tools on your ROM will make diffrence.

Every rom has an other based.....

I would prefer you guys using it on 2.01 T-Mobile rom.
[HD2 General] harddisk_wp:
The FM Test app from these debug tools, try urself. I gonna disassemble it, maybe I find some info.
[HD2 General] hoss_n2:
why t mobile rom
[HD2 General] xmoo:
Cause it's based on SPL 2.x and 2.x Kernell, and that's newer.

2.01 You can use, 2.02 you can only use 1 time (1 time boot protection, but in this ROM the Debug Tools are included).
[HD2 General] hoss_n2:
you mean that t mobile us users will have this program built in in the software
[HD2 General] harddisk_wp:
no, the 2.02 rom was a leaked test version
[HD2 General] hoss_n2:
after the new release of usa hd2 i am very disapointed aand i hope to hear somme good news soon
[HD2 General] mooooooa:
hope that the hd2 has the fm transmitter.. keep up researching :D
[HD2 General] hoss_n2:
it seems like the post is dying
[HD2 General] waxfresh:
should definitely be sticked!
[HD2 General] BLAST3RR:
My initial findings with the debug tools.

It definitely has an audio path to the TX part for the FM radio, as it is listed in the 'WceSetAudioDev'.

Among the options is a 'I2S TX'. I therefore assume this is the path needed to feed the transmitter audio.
[HD2 General] hoss_n2:
i will add this to updates
[HD2 General] ralphfx:
Maybe a tip to make this thread stand out more (and not being stickied): use capitals in the thread title for FM TRANSMITTER, or put fm transmitter in front.. Just a thought :)
[HD2 General] BLAST3RR:
I'll do some logging from the BT drivers to see what gets through once accessing FM radio functions/I2C commands.
[HD2 General] BLAST3RR:
That is, as soon as I got it to logging anything.. :rolleyes:
[HD2 General] flywhc:
what I found before:

There is a Bt common DLL file. it has class MsgQueueUtils provides many message queue functions.

The client of BT Stack such as FMRadioSDK send/receive IPC message by using this class.

BTTrayCE process loads many DLLs to handle different type of messages.

Every user of this class will register/retrieve a named global windows message, such as "WIDCOMM_WM_STACK_LOAD..." you can find then from string table. WPARAM and LPARAM used for events ID and other data.

see http://xdaforums.com/showpost.php?p=5221677&postcount=813

There was an idea that get the PS/RT etc from FMRadioSDK, or get PI of a channel, then search in BTTrayCE process. 6Fg8 found this memory but she didn't find the code.

I have an idea that write an IDA pro script on a message queue function or even write our DLL injection program to hook into BTTrayCE process to find that code user of that memory. However I don't have this device. This has to be done by someone has HD2.

good luck
[HD2 General] hoss_n2:
thanks or your effort
[HD2 General] hoss_n2:
how to add this to updates
[HD2 General] BLAST3RR:
It was merely an observation.. Now we need someone who is able to take a look into the DLL files/know how to do it.

@flywhc PM me what I'd need to do to give you the information you need to further investigate the HD2's FM capabilities. I'd be glad to help.
[HD2 General] hoss_n2:
it seems that the post is not visible enough for developers to join us
[HD2 General] graememk:
just bought my hd2, and i really hope it has the fm transmitter! subscribed!
[HD2 General] Du-z:
Bump to the top and subscribing!
[HD2 General] hoss_n2:
thanks................
[HD2 General] azahoth:
subscribed
[HD2 General] hoss_n2:
does subscribing helps in making this post sticky it is only a question as i don't knoe how to make this post sticky
[HD2 General] BLAST3RR:
No. But seen none of this kind of posts gets stickied, we will just have to bump it all the time.
[HD2 General] hoss_n2:
iam working on that i writes a coment when i see it begins to get to the second page but iam afraid people get bored from me
[HD2 General] harddisk_wp:
'course it has much more references to fmapi.dll, because it uses lots more features from it, not just radio itself.
[HD2 General] BLAST3RR:
Don't really see what more features it could use than the current HTC original radio would be using. Especially since the TX part 'wasn't implented yet..'..

We need to find out what commands have to be sent to the chip (basically in the same way the FM receiver gets controlled) in order to control FM transmit functions. There is currently not really much way to find out because there are no drivers to reference this with. Well, there are, but they do not have the FM transmit part inside of them.

Anyone here that knows someone who works @ Broadcom? We need those command strings.
[HD2 General] ralphfx:
Just a thougt (again :))

I presume command strings/lines to communicate with the broadcom chips are no secret (why would it be since there must be a way to develop a driver/software for the chip..)? So why doesn't someone who is able to program a FM transmitter app/driver just ASK broadcom for let's say the "user manual" of their chip?

Just a thought though.. :D
[HD2 General] cscoot03:
subscribed *
[HD2 General] BLAST3RR:
Yes, this has also crossed my mind.

It's worth a try I guess..
[HD2 General] emigrating:
I'm still not convinced the HD2 actually contains the BCM4329 chip though, in which case such an exercise would be fairly useless. The Google Nexus One does include the 4329 chip and it has been one of the main things highlighted in reviews. If in fact the HD2 includes the same chip I would have thought at least one review of the handset would make note of this (especially since the Nexus One did not come with Wifi N enabled either).

The information I have seen so far seems to suggest the HD2 includes the BCM4325 which is more or less identical to the 4329 apart from FMtx and N support.
[HD2 General] BLAST3RR:
Please read the whole topic first..

On top of that; the HD2 is a bit less easier to dissemble and assemble, else we would have had this info way before.. The Nexus One had someone disassemble it who was at least kind enough to post high quality pictures. And if you look at those reviews carefully, you'll notice that they're all using the same source.

No-one would be crazy enough to tear up his/her HD2 just in the name of science.

But as we already concluded, the HD2 has N support so it can't be the BCM4325.
[HD2 General] ralphfx:
The HD2 has been proven to be able to connect to a wireless N acces point. So it is safe to assume it has wireless N, because if it didn't, connecting to a wireless N acces point would be impossible.

Furthermore: http://www.broadcom.com/products/Bluetooth/Bluetooth-RF-Silicon-and-Software-Solutions/BCM4325

The BCM4325 does NOT support wireless N, the BCM4329 does and is the only one so far that does.
[HD2 General] flywhc:
many things in this mobile/embeded industry are pretty ugly. Chipset/solution providers often only give partial programming documents or wrapping in a driver to device manufactures.

And Device manufactures have to sign an agreement that do not leak those info.

This is one of reason many HTC devices have very good 3D/2D chipset but poor graphic performance due to lack of drivers.

Through my reverse engineer I believe that Broadcomm provided a wrapper driver as part of its bluetooth driver to HTC, and didn't provide full capability to HTC.

Update: I need HTCFM.DLL to investigate more on this project. This file cannot be simply copied from ROM because it is ROM!

If you are ROM chef, or you have a ROM kitchen, and know the trick to get file from ROM, please upload this file.

Thanks

I suggest that do not spam the thread otherwise useful info will be flushed.
[HD2 General] emigrating:
I have read the whole thread and yes, I have seen the "tests" where it will connect to a N-only router. Not having tested this myself I'm not saying either way for sure - just pointing out that all the official information said the HD2 included the BCM4325 chip.

I just find it interesting that the Nexus One was reported (all over the place) as having wifi N capabilities (although disabled) whereas nothing was ever said about the HD2.
[HD2 General] hoss_n2:
i searshed all over the net and didnot find a confirmation that hd2 has the bcm4325 chip this chip doesnot support n wifi and it is old even the old iphone 3gs have the bcm 4329 chip
[HD2 General] mgear:
Update

Well, i have a wireless-n accespoint. When i set the accesoint to wireless n only and i use the registry setting on the hd2 for wireless-n I can connect. When i remove the " n" setting on my hd2 it is unable to connect. This must be proove that the hd2 DOES accept and works on wireless-n mode when enabled trough bios settings. The troughput is also higher, when i do some speedtesting i can aquire more speed with the n setting then i get from the g setting (also my router has been set on mix-mode then).
[HD2 General] harddisk_wp:
The "more features" is e.g. the UM/MU stuff (whatever this setting does), and HCD stuff (again, whatever a hcd is. I guess frequency tables, or firmware for the FM radio part).
[HD2 General] BLAST3RR:
The HCD stuff didn't even work and MU/UM is simply muting.
[HD2 General] Jack E:
It can't connect to my router if i set it to n only, even if I 'enable' N on the HD2 :(
[HD2 General] BLAST3RR:
Even after a soft reset? :confused:

Is your router operating on 20Mhz or 40Mhz N-mode? Maybe even 5Ghz?
[HD2 General] waterskier33:
Keep up the research I thing FM transmitter is great feature. My old one is going to die in no time I was just planning to buy a new one when I saw this thread.
[HD2 General] Jack E:
2.4ghz with 20/40mhz enabled
[HD2 General] BLAST3RR:
Try fixing it to 20Mhz.
[HD2 General] Jack E:
Still doesn't connect :(
[HD2 General] flywhc:
Hi Guys, say something useful. spamming just flush useful information.

I need I need HTCFM.DLL to investigate more on this project. This file cannot be simply copied from ROM because it is ROM!

If you are ROM chef, or you have a ROM kitchen, and know the trick to get file from ROM, please upload this file.

Once I get this file, maybe I can tell you how control this chipset
[HD2 General] BLAST3RR:
I'm trying to get this off my device as we speak.
[HD2 General] 6Fg8:
here's HTCFM.dll from 1.61.468.12 ROM
[HD2 General] harddisk_wp:
have also fmradiosdk.dll?
[HD2 General] 6Fg8:
sure ... :D
[HD2 General] BLAST3RR:
Also found them.. I opened all of the possible files that could be containing references to the transmitter functions. Found none, sadly.

Seems like this isn't built into the API's. :(

Oh, I took the 1.66 ROM files btw.
[HD2 General] harddisk_wp:
the point is to find out how to communicate to the chip first, then we can fuzz around a little bit.
[HD2 General] hoss_n2:
we must think about a driver to activate the fm transmittence before thinking of a program to use this function as activating the chip is the hardest step then all comes after first does any windows mobile has fm transmitter to take drivers from it
[HD2 General] BLAST3RR:
Not as far as I know, which is actually what's the most challenging part here.

As long as we don't know how to communicate with the chip, an app is useless. As long as we don't have the drivers that have the commands to control the chip, we are still stuck and first need to know where it responds to (if it even responds).
[HD2 General] hoss_n2:
the problem of this post is the shortage of technical experts that are found in tp2 and hd forums as not allot of them get hd2 as it is still new and not allot of people got it let's wait for them to join us
[HD2 General] emigrating:
Are there no other WinMo phones utilizing the BCM4329 chip that we could 'borrow' the driver from? It may break FM reception using the HTCFM app but with an actual driver to RE we may actually be able to get somewhere.

As for artificially bumping the thread; while I sort of was doing that - I still do have doubts about the HD2 actually containing the chip in question. Pretty much every other device that uses it can easily be found by googling - the HD2 does not show up other than in a few threads on various forums all leading back to this one... As we have now seen there are some folks that say their N-only router will let it connect fine whereas others say it will not - one of those are clearly wrong :) I'll see if I can dig out a N-AP later and run my own tests.
[HD2 General] harddisk_wp:
Well there are some Android devices with the BCM4329. We could adapt whatever these drivers use to communicate, to the HD2 and WM.
[HD2 General] bulanula:
Trust me, I have opened my device and the chip is indeed the BCM4329. Stop discussing about this issue and focus on the FM transmitter function. BUMP !
[HD2 General] hoss_n2:
that is the best news i heard today after the possibility of existence of extra rams in hd2
[HD2 General] bulanula:
Why ? Is there extra RAM or not ???
[HD2 General] emigrating:
You tell us - since you've opened your handset you can easily find out by checking the partno's on the memory chips...

If you can't - just take some hi-res photos and I'll find out for you

...of course, none of this applies if you really haven't opened your phone.
[HD2 General] harddisk_wp:
I want a kid of you. Lol, srsly, you rock :) Have any photos?
[HD2 General] bel_z_bub:
N mode is not working on HD2.. period.. just because there's a key in the registry, doesn't mean it works.. I have an N router at home and it looks like it does N, but in fact it still connects to the narrow band channel.. g/b is channel 7 on my router, n is channel 11.
[HD2 General] zSpinner:
n confirmed here too.

I concur. Set my linksys 320 thingy to N only, worked fine. Couldn't find the router when put in 5 ghz mode, regular 2,4 ghz works fine though. My house is not big enough to test range (on the 2rd floor too, so no garden).

Outward is 20 mbit, so could not test 54mbit+ speeds, wonder if the hd2 is capable of handling data at those speeds. I do have a fast sd card.
[HD2 General] Archer:
Just to clear it up once and for all.
[HD2 General] bel_z_bub:
there's no such thing as N only.. it's backwards compatible..
[HD2 General] bulanula:
Is it still backwards compatible on the 5 GHz band with 40 MHz channels ? I stand corrected if it is.
[HD2 General] Archer:
I stand corrected :)
[HD2 General] hoss_n2:
we now returned to zero level we even don't know if it supports n wifi or not
[HD2 General] bel_z_bub:
no most N mode routers transmit in two channels, a wide (N) and a narrow.. I've tried about 3 different N routers and they all tell me the same..
[HD2 General] hoss_n2:
what is the same it works or not
[HD2 General] bulanula:
Basically, there are 2 types of N routers :

-Dual radio ( N radio and G/B radio )

-Single radio ( N radio only )

If you have a dual radio one then N devices connect on 5 GHz and G/B on 2.4 GHz, thus backwards compatible.

I have single radio operating with N at 5 GHz. This is not backwards compatbile with G/B on 2.4 GHz.

Anyways, the HD2 is fully N compliant so let us get to the FM transmitter bit. There is no point, I saw the chip inside. If you believe me / do not believe me then fine. Let's just get the FM working !
[HD2 General] hoss_n2:
and it worked with you on hd2
[HD2 General] bulanula:
Yes, look here :

http://www.9to5mac.com/broadcom-BCM4329-iphone-802.11n-FM

I switched router to pure, clean 5 GHz mode then connected HD2 in 5GHz band. I also opened up and saw the chip. We are wasting time arguing here when we could be searching for the transmitter.
[HD2 General] harddisk_wp:
"As they pointed out, the component upgrade adds power savings and new support for 802.11n features, including the ability to find and join 5GHz networks. "

...

"including the ability to find" => you see. the 4325 wouldn't even be able to SEE n wlans, let alone pose as such (Wifi Router).
[HD2 General] hoss_n2:
then this actually means that we have the BCM4329 CHIP
[HD2 General] Chainfire:
To be entirely unhelpful and further dilute the thread, it depends on the region. All N operates on 2.4ghz over here for example.

Continue with interesting things, though :)

To further be actually helpful, someone on IRC just mentioned opening their device as well and finding the chip in question. (dunno perhaps it was you)
[HD2 General] hoss_n2:
i need to know now does hd2 has the 4329 chip or not so as to continue

and does it supports the n wi for not please definit answer
[HD2 General] Jack E:
Mine can see my access point in N only but can't connect :( It could just be my router though because others can connect.
[HD2 General] nutmegy:
stupid question but have you enabled it in the registry? works well on mine
[HD2 General] ralphfx:
If I'm correct shouldn't you be able to use your phone as a wireless N acces point and see a data connection of 65Mbit on you pc?

Unfortunately I can't try this myself because my HD2 is out for repairs/replacement.
[HD2 General] bulanula:
No that guy on the IRC was not me. We now have double confirmation. What else is needed to begin FM transmitter work ?
[HD2 General] harddisk_wp:
Bottles of vodka, a insider @ broadcom or an enormously skilled reverse engineer.
[HD2 General] flywhc:
what a mess here...

A bad news: HTCFM.exe - the debug app, uses HTCFM.DLL calls FmRadioSDK.dll. It just another version of FMRadioWrapper dll.

So we still have to crack the bluetooth stack driver.
[HD2 General] bel_z_bub:
chip or not.. you don't have the antenna(s) you need for N. not to speak about a driver but that could be solved.

Not saying it is needed for the FM transmitter, I'm just talking Wireless N mode. Besides why would it be turned off in Windows Mobile, that wasn't made just for one device.