1. Introduction
The last article, "Windows 8.1 low-power Bluetooth development," describes how to create a Low-power Bluetooth application on the Windows 8.1 platform, and takes TI's sensor tag as an example, giving code steps and demos. In fact, many low-power Bluetooth application scenarios are connected with the user's mobile phone, such as TI's sensor tag official gave the Android and iOS client applications (unfortunately, there is no Windows Phone version of the, But now you can go to the store to download the personal developer development of the sensor tag application, some time ago just appeared in the U.S. market in the region. such as Millet just out of the 79-dollar hand ring, but also through Low-power Bluetooth and Android device connection. Today, let's look at how to develop Low-power Bluetooth applications on Windows Phone 8.1.
2. Equipment
Most of the Windows Phone 8 devices are hardware-enabled Bluetooth 4.0 BLE, provided the system has to be upgraded to Lumia devices, for example, above black. Moreover, from the information on the build assembly, most developers currently have Developer preview systems that do not support Bluetooth 4.0 ble on the software. But the Windows Phone 8.1 Update 1, just held in China yesterday, shows that 1520, 1320, 1020 and other devices are about to usher in this critical system update, and the Bluetooth 4.0 BLE application can be developed after the update. In addition, already in the market can buy Lumia 630 and Lumia 930 are native Windows Phone 8.1 system, they are supporting Bluetooth 4.0 ble. Here, I am using the Lumia 630 device, the system version number is 8.10.12359.845.
Bluetooth device is Nokia Treasure Tag, Taobao on sale, the domestic seems to have no travel goods. For this little thing, I think a lot of people may not know. In fact, this thing is more useful to those who carelessly love to throw things, we can put the car keys on the top, or it and the wallet and other important things together, while with the mobile phone through Bluetooth connection, as long as the distance between the tag and the phone more than a certain range, the phone and tag will issue an alert to remind users. And when the cell phone and treasure Tag distance is very far, you can map out the location by here. Store has a dedicated application of Nokia Treasure Tag, used to achieve the above functions. The following gives the equipment used in the experiment, the left is treasure Tag, the middle is Lumia 630, the right is the key to be traced, as shown in Figure 1.
Figure 1
3. Prepare
If you use Treasure Tag for the first time on Windows Phone, we need to match, and after the first use of the pairing, we don't need to do this again. First of all, in the set-> Bluetooth to open Bluetooth, waiting for Nokia Proximity sensor, and then click on the pairing, PIN is 0000, as shown in Figure 2 below.
Figure 2
After the connection, we can create the application.
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/