|
Controlling
the Bluetooth Radio
|
||||||||||
|
Update 10/3/05 Is radio control really even needed!??? We recently did more testing with radio control and found some very surprising results - even when you use the Bluetooth Manager to turn the bluetooth "off", you can still use our BTAccess library just fine! You can connect to the stack. You can search for and find devices. You can connect and disconnect from those devices. You can set security options. In other words, it looks like you don't NEED a way to turn the radio on if it's off - BTAccess will work anyway. Maybe the radio really is off, but our use of the internal functions makes it turn on (though it doesn't change the icon state on the Today screen); or maybe when you turn it off with Bluetooth Manager it doesn't really go off. In any case, I can use BTAccess and StackDemo just fine regardless of the radio state. |
||||||||||
|
Posted 11/1/04 The Sad History of Radio Control When the very first bluetooth-enabled iPAQs came out they used the Widcomm bluetooth stack v1.2. These models offered an API interface for radio control - IsRadioOn, RadioOn, RadioOff, - as well as letting you receiving notification when the user turned the radio off, removed the old bluetooth sleeve, or powered-on the PDA. These features were all made available through the use of the original user-interface and underlying security manager which was created by Philips Electronics on contract to Compaq/HP. This was the state of affairs right up to the iPAQ 39xx models. With the introduction of the 5xxx iPAQ models HP executives chose to use a newer version of the Widcomm stack (v1.3) and also began using Widcomm's own user interface and underlying security manager. Unfortunately the Widcomm software did not offer all these very useful functions and notifications. BTAccess was therefore no longer able to support them. Current Functionality What about iPAQUtil.dll? As a public service to our customers we would like to summarize what they contain here. Note - the header files and help files are no longer free from HP. To obtain them you need to sign up with HP's Developer program at www.ipaqdeveloper.com iPAQUtil SDK Contents (as of 11/1/04):
In all cases (except in the h1900 SDK) the following Bluetooth functions are present (and some others dealing with version info): IPAQUTIL_API BOOL iPAQSetBlueToothRadio(DWORD *lpdwValue); IPAQUTIL_API BOOL iPAQSetBlueToothReset(); What's BTAccess Going To Do About It? In our humble opinion what really needs to happen is for Widcomm, whose stack is in all these PDAs, to put back in all the proper radio control and events that developers demand. When and if that will happen, now that they've been bought out by BroadCom and hardly ever answer their tech support lines, is anybody's guess! :) |