background image

 

 

BLE Indoor Positioning with PSoC

 

6 MCU with BLE Connectivity 

 

www.cypress.com

 

Document No. 002-17647 Rev.** 

22 

Worldwide Sales and Design Support 

Cypress maintains a worldwide network of offices, solution centers, manufacturer’s representatives, and distributors. To find the 
office closest to you, visit us at 

Cypress Locations

. 

 

Products 

Arm

®

 Cortex

®

 Microcontrollers 

cypress.com/arm

 

Automotive 

cypress.com/automotive

 

Clocks & Buffers 

cypress.com/clocks

 

Interface 

cypress.com/interface

 

Internet of Things 

cypress.com/iot

 

Memory

 

 

cypress.com/memory

 

Microcontrollers 

cypress.com/mcu

 

PSoC 

cypress.com/psoc

 

Power Management ICs 

cypress.com/pmic

 

Touch Sensing 

cypress.com/touch

 

USB Controllers 

cypress.com/usb

 

Wireless Connectivity 

cypress.com/wireless

 

 

PSoC

®

 Solutions 

PSoC 1

 

PSoC 3

 

PSoC 4

 

PSoC 5LP 

PSoC 6 MCU

 

Cypress Developer Community 

Community

  

Projects

  

Videos

  | 

Blogs

  

Training

 

Components

 

Technical Support 

cypress.com/support

All other trademarks or registered trademarks referenced herein are the property of their respective owners. 

 

 Cypress Semiconductor 
 198 Champion Court  
 San Jose, CA 95134-1709 

©  Cypress  Semiconductor  Corporation,  2018.  This  document  is  the  property  of  Cypress  Semiconductor  Corporation  and  its  subsidiaries,  including 
Spansion LLC (“Cypress”).  This document, including any software or firmware included or referenced in this document (“Software”), is owned by Cypress 
under the intellectual property laws and treaties of the United States and other countries worldwide.  Cypress reserves all rights under such laws and 
treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual 
property rights.  If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing 
the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to sublicense) (1) under its 
copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce the Software solely for use with Cypress hardware 
products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly 
through resellers and distributors), sol

ely for use on Cypress hardware product units, and (2) under those claims of Cypress’s patents that are infringed 

by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for use with Cypress hardware products.  
Any other use, reproduction, modification, translation, or compilation of the Software is prohibited. 

TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD 
TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  No computing device can be absolutely secure.  Therefore, despite security 
measures implemented in Cypress hardware  or software products, Cypress does not assume any liability arising out of any security breach, such as 
unauthorized access to or use of a Cypress product.  In addition, the products described in these materials may contain design defects or errors known 
as errata which may cause the product to deviate from published specifications.  To the extent permitted by applicable law, Cypress reserves the right to 
make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or circuit 
described in this document.  Any information provided in this document, including any sample design information or programming code, is provided only 
for  reference  purposes.    It  is  the  responsibility  of  the  user  of  this  document  to  properly  design,  program,  and  test  the  functionality  and  safety  of  any 
application made of this information and any resulting product.  Cypress products are not designed, intended, or authorized for use as critical components 
in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or systems, other medical 
devices  or  systems  (including  resuscitation  equipment  and  surgical  implants),  pollution  control  or  hazardous  substances  management,  or  other  uses 
where  the  failure  of  the  device  or system could  cause  personal  injury, death,  or property  damage  (“Unintended  Uses”).   A critical component is  any 
component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to affect its safety 
or effectiveness.  Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising 
from or related to all Unintended Uses of Cypress products.  You shall indemnify and hold Cypress harmless from and against all claims, costs, damages, 
and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products. 

Cypress,  the  Cypress  logo,  Spansion,  the  Spansion  logo,  and  combinations  thereof,  WICED,  PSoC,  CapSense,  EZ-USB,  F-RAM,  and  Traveo  are 
trademarks  or  registered  trademarks  of  Cypress  in  the  United  States  and  other  countries.    For  a  more  complete  list  of  Cypress  trademarks,  visit 
cypress.com.  Other names and brands may be claimed as property of their respective owners.  

Содержание CY8CKIT-062-BLE

Страница 1: ...d the red LED indicates the connected state This example supports all the GATT sub procedures defined in the IPS specification Requirements Tool PSoC Creator 4 2 Programming Language C Arm GCC 5 4 201...

Страница 2: ...t 2 Open a terminal window and perform following configuration Baud rate 115200 Parity None Stop bits 1 Flow control XON XOFF These settings must match the configuration of the PSoC Creator UART Compo...

Страница 3: ...riate message You must upgrade the firmware before you can complete this step Follow the instructions in the window to update the dongle firmware d Select Configure Master Settings and then click Rest...

Страница 4: ...rt BLE advertisement if no device is connected or device is in Hibernate mode red LED is on Otherwise skip this step g Observe the simulated Latitude and Longitude values in the HyperTerminal program...

Страница 5: ...formats is listed in Table 1 Figure 5 CySmart Window Table 1 Accordance Between Different Formats of Latitude and Longitude Latitude Longitude 49 808800 0x46D6D4A5 24 041500 0x11189F1B 49 808804 0x46D...

Страница 6: ...establish a BLE connection between the CySmart Host Emulation Tool and your device Figure 6 CySmart Device Discovery and Connection l Click Pair Click Yes to a pairing request received from the peer d...

Страница 7: ...BLE Indoor Positioning with PSoC 6 MCU with BLE Connectivity www cypress com Document No 002 17647 Rev 7 Figure 8 Value Writing...

Страница 8: ...for CySmart mobile app mentioned in step 5 For more details see the Android and iOS CySmart User Guide 7 Use the UART debug port to view verbose messages a The code example ships with the UART debug...

Страница 9: ...us 140001 pending 1 Store bonding data status 140001 pending 1 Store bonding data status 0 pending 0 CY_BLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ handle 3 CY_BLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ handle...

Страница 10: ...used to receive events specific to the service s attribute operations The CYBLE_EVT_STACK_ON event indicates successful initialization of the BLE Stack After this event is received the Component star...

Страница 11: ...irmware controlled digital output pins that control LEDs General tab Uncheck HW connection Drive mode Strong Drive SysInt SW2_Int This Component is configured to extract interrupts from GlobalSignal D...

Страница 12: ...BLE Indoor Positioning with PSoC 6 MCU with BLE Connectivity www cypress com Document No 002 17647 Rev 12 Figure 12 GATT Settings...

Страница 13: ...LE Indoor Positioning with PSoC 6 MCU with BLE Connectivity www cypress com Document No 002 17647 Rev 13 Figure 13 GAP Settings Figure 14 GAP Settings Peripheral configuration 0 Advertisement Settings...

Страница 14: ...BLE Indoor Positioning with PSoC 6 MCU with BLE Connectivity www cypress com Document No 002 17647 Rev 14 Figure 15 GAP Settings Peripheral configuration 0 Advertisement Packet...

Страница 15: ...BLE Indoor Positioning with PSoC 6 MCU with BLE Connectivity www cypress com Document No 002 17647 Rev 15 Figure 16 GAP Settings Peripheral configuration 1 Advertisement Settings...

Страница 16: ...BLE Indoor Positioning with PSoC 6 MCU with BLE Connectivity www cypress com Document No 002 17647 Rev 16 Figure 17 GAP Settings Peripheral configuration 1 Advertisement Packet...

Страница 17: ...gle core Complete Component on CM0 only CM0 will be used Single core Complete Component on CM4 only CM4 will be used Dual core Controller on CM0 Host and Profiles on CM4 CM0 and CM4 will be used CM0 f...

Страница 18: ...ption Figure 19 Select CPU Core 2 Identify the CPU on which host files will run In the workspace explorer panel right click Host Files choose Properties Set the Cores property corresponding to the CPU...

Страница 19: ...on interrupts to the appropriate core in DWR Interrupts tab For Single core Complete Component on CM0 option BLE_bless_isr and peripheral interrupts on CM0 For Single core Complete Component on CM4 op...

Страница 20: ...U System Design Presents the theory and design considerations related to this code example Software and Drivers CySmart Bluetooth LE Test and Debug Tool CySmart is a Bluetooth LE host emulation tool f...

Страница 21: ...ypress com Document No 002 17647 Rev 21 Document History Document Title CE217647 BLE Indoor Positioning with PSoC 6 MCU with BLE Connectivity Document Number 002 17647 Revision ECN Orig of Change Subm...

Страница 22: ...compilation of the Software is prohibited TO THE EXTENT PERMITTED BY APPLICABLE LAW CYPRESS MAKES NO WARRANTY OF ANY KIND EXPRESS OR IMPLIED WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYI...

Отзывы: