views:

141

answers:

0

Hi folks,

I'm working on an application using embedded visual c++ 4.0 and MFC (yes, it's a legacy system) which runs on windows mobile 6.1 and needs to pair with an external 56k modem via bluetooth. The app uses BthPairRequest (http://msdn.microsoft.com/en-us/library/ms887871.aspx) to do the pairing and WSASetService(http://msdn.microsoft.com/en-us/library/aa916271.aspx) to register the DUN service. Everything goes ok, but no device is shown in Settings > Bluetooth Devices. Also, the device doesn't exist in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\Device".

The strange thing, is that the code used to pair and register the service works on other devices (other WM6 devices and cell phones). They're shown in the bluetooth settings, and everything is in the registry.

I've tried to manually add the device and the services to the registry, and now I can see the modem in the bluetooth settings, but no service is shown. Then I just click on "Refresh" button in the device settings, and the services are shown and I can connect to the modem.

I'm doing all the steps described on msdn to discover (http://msdn.microsoft.com/en-us/library/aa916165.aspx) and register a bt service, but nothing works with this modem.

This is the modem (http://www.psism.com/bluetooth.htm) and this is the wm6.1 mobile computer (http://www.intermec.com/products/cmptrcn50/index.aspx)

Have any of you had the same problem with any bluetooth device or can point me the directions to look for the problem's cause?