Pocketpc Developer >> Programmatically change Bluetooth virtual com port?

by G » Thu, 19 Apr 2007 23:14:36 GMT

Hi,
I am looking for a way to programmatically change the Bluetooth
virtual com port between various devices on my Axim x51v (WM5). The
problem is twofold: 1) I need to query for a list of paired devices;
2) I then need to be able to delete and reassign COM ports to any of
these devices.

As background, my company has developed a series of Bluetooth
devices. It wasn't until the third device was developed that we
discovered the two port limitation. While we only need a max of two
ports running concurrently at any one time, there is occasionally the
need to swap in a third device. In other words, if device 1 is
assigned to COM7 and device 2 is assigned to COM8, I want the ability
to delete COM8 and assign device 3 to it instead. To date, this was
done manually but there was desire expressed to have this done
automatically.

I am using Visual Studio 2005 SP1 and am working in a native c++/MFC
framework. Many of the seemingly useful Bluetooth functions available
to me are located in a btdrt.lib file which does not come with any of
my SDKs. I've done extensive research the past several days but I'm
too much of a Bluetooth novice to piecemeal together a solution. Your
feedback would be greatly appreciated.

Regards,
George



Similar Threads

1. bluetooth and virtual com ports - Pocketpc Developer

2. Bluetooth Virtual Com Port

I've seen numerous postings about struggles with Bluetooth Virtual Com 
Ports.  The MS documentation and examples are inaccurate.  After three days 
of searching the internet, I finally discovered the secret sauce.  Give me a 
shout if you need help in this area. 


3. Use of USB port as virtual serial COM port - Pocketpc Developer

4. Virtual Com Port setup

Hi i just bought a bluetooth GPS device and i can't seem to pair it with my 
pda which is running on windows mobile 5.
Everytime i try to assign a virtual com port to the bluetooth device, it 
only shows com port 6 and 7.
As my mapping software will only accept com port 2 and 9, is there any other 
way for me to modify the com port settings in WM5? 


5. Registered Virtual COM ports - Pocket PC

6. Using a virtual COM port for the Active Sync on Pocket PC 2002/2003

Hi,
 
I am writing a VCOM driver on Wince 4.2.
 
This driver exposes 2 virtual COM ports.
I want to start Active Sync from one of these ports instead of the
standard COM1.
 
The Active Sync on Pocket PC 2002 has the listing for USB etc under
the "Default Connections" setting in the Registry.
 
However, any new value added here does not appear in the COM listing
options of Active Sync.
 
I want to know under which registry key should the new COM ports be
placed to get the listing under the COM Ports for Active Sync.
 
Bhanu

7. Map existing USB connection to virtual COM Port - Pocketpc Developer

8. problem connecting virtual com port

Hi, i'm using the virtual com port to connect my ipaq to another device. In 
HP product, the setting of com (COM)and bluetooth (BTC) can be obtained in 
the registry

 [HKEY_LOCAL_MACHINE\Drivers\BuiltIn]

but i'm in trouble to connect Toshiba e830 with bluetooth connection because 
the setting is different with HP.

Somebody knows about it ?

Riki Risnandar