As you know,Windows Mobile 6.0 SDKBuilt-inCellular emulatorAndFake GPSSo that we can debug it on the simulator.RadioLevelPhone callAnd based onGPS. A few days agoMVPDmitry klionskyWrittenArticle《Bluetooth for Microsoft device emulatorAs described inWindows MobileI think this is very useful for Developing Bluetooth communication on mobile devices.
Let's look at the implementationBluetoothArchitecture, refer to the figure1 (SourceBluetooth for Microsoft device emulator), Mainly includingEmulatorEnd andPCTerminal:
Figure1:EmulatorAndPCOn implementationBluetoothCommunication Architecture
1.EmulatorEnd
Bluetooth HCI Transport Driver
Serial Port driver
Microsoft Remote tools framework Remote Agent
2. PCEnd
Microsoft Remote tools framework desktop plugin
Freebt USB driver Runtime
Freebt USB driver
Connected Bluetooth USB device
Note: The author usesFreebtThis open-source project is controlledBluetooth.
In Windows MobileThe simulator uses BluetoothThe following conditions are required:
1. Visual Studio 2005 with SP1OrVisual Studio 2008
2. Windows Mobile 5.0 Pocket PC/Smartphone SDK and/or Windows Mobile 6 standard/professional SDK emulator Images
3.Device emulator 3.0
4.Microsoft Remote tools framework 1.00
5.AUSBInterfaceBluetooth dongle
InWindows MobileThe steps for using Bluetooth on the simulator are as follows (For details, referBluetooth for Microsoft device emulator):
1.InPCInstall and downloadFreebtThe blue tooth drive, the method is naturally through"WindowsDevice Manager, which is a new hardware device (that is, connectedBluetooth USB device) Add the downloaded Driver (mainly findFbtusb. infFile ).
2.InRemote tools framework pluginRunningBthemulmanager. cetoolTo establish a connection with the simulator.
3.Information about the bluetooth device after the connection is established(Address, manufacturer, HCI version, LMP Version)It will be displayed on the interface,2As shown inBluetooth for Microsoft device emulator).
Figure2: Information on the simulator after a Bluetooth connection is established
4. Microsoft Remote tools frameworkAllow us to enable two simulators at the same time, so if there are twoBluetooth USB dongleThen, we can debug the Bluetooth transceiver communication on two simulators.
Reference link:
Dmitry klionsky:Bluetooth for Microsoft device emulator
Msdn:Bluetooth HCI Transport Driver
Msdn:Serial Port driver
Open Source:Freebt
Device emulator 3.0
Microsoft Remote tools framework 1.00