q.
Click Disconnect, then click Start Scan to discover available devices.
r.
Select IPS from the list of available devices.
s.
Observe the charged advertisement packet and data in the Raw Data and Log windows. The packet contains only the
values of Latitude, Longitude, and Floor Number, as set earlier.
If you have problems with using the CySmart Central Emulation Tool, see the
6.
The CySmart mobile app (Android/iOS) does not have Indoor Positioning Service implementation, but still can be used in
the GATT Data Base mode for testing this example. You can repeat the test flow for CySmart mobile app mentioned in
step 5. For more details. see the
7.
Use the UART debug port to view verbose messages:
a.
The code example ships with the UART debug port enabled. To disable it, set the macro DEBUG_UART_ ENABLED in
common.h to DISABLED and rebuild the code.
b.
The output of the debug serial port looks like the sample below:
BLE Indoor Positioning Service Code Example
CY_BLE_EVT_STACK_ON, StartAdvertisement
CY_BLE_EVT_SET_DEVICE_ADDR_COMPLETE
CY_BLE_EVT_LE_SET_EVENT_MASK_COMPLETE
CY_BLE_EVT_GET_DEVICE_ADDR_COMPLETE: 00a050000020
CY_BLE_EVT_SET_TX_PWR_COMPLETE
CY_BLE_EVT_SET_TX_PWR_COMPLETE
CY_BLE_EVT_GAPP_ADVERTISEMENT_START_STOP, state: 2
Latitude - 49.808804. Longitude - 24.041500
CY_BLE_EVT_GAP_KEYS_GEN_COMPLETE
Latitude - 49.808808. Longitude - 24.041500
Latitude - 49.808813. Longitude - 24.041500
Latitude - 49.808817. Longitude - 24.041500
Latitude - 49.808821. Longitude - 24.041500
www.cypress.com
Figure 9. Advertisement Packet
Android
and
iOS
CySmart User Guide.
Document No. 002-17647 Rev.**
BLE Indoor Positioning with PSoC 6 MCU with BLE Connectivity
CySmart User Guide
.
8
Need help?
Do you have a question about the CY8CKIT-062-BLE and is the answer not in the manual?