HOW TO CHECK IF THE BLUETOOTH STACK IS LOADED
This project is contained in the source code zip file for this project in the directory BTStackCheck. The code snippets used here are also in source code zip file as chapter30Code.txt.
In this activity you create a native code application that attempts to see if the Bluetooth stack is loaded. This checks only to see if the operating system Bluetooth stack drivers have been loaded, regardless of whether the Bluetooth hardware device is present. For this activity a suitable Bluetooth USB dongle is required that has the Cambridge Silicon Research (CSR) hardware (as many do) because this is the default Bluetooth hardware driver that is included in the catalog. The help documentation says that no hardware driver is provided, just everything in the stack above; but the CSR one is there, as bthcsr.dll.
First, you need to check that your Bluetooth dongle works:
1. Insert it into your desktop system and let it load the drivers.
2. Examine it under Device Manager/Bluetooth Radios. You should see two entries:
Now create the test application and try it out on the OS before the Bluetooth stack has been added:
1. Start with a Compact 7 Retail image that runs on hardware.
2. Add a new a new native code application: