Microchip Technology ATBTLC1000 Series Скачать руководство пользователя страница 12

1.20 

iBeacon Application

The iBeacon application is used to advertise iBeacon specific packets that include UUID, major and minor numbers.
Any beacon scanner application can be used for finding the beacon device. The iOS Microchip SmartConnect app
can be used to find the beacon devices in the vicinity.

This profile defines the following roles:

• Monitor – Device (iOS/Android) to search for beacon packets
• Reporter – Device that continuously advertises the beacon packet as a part of advertisement data

1.21 

AltBeacon Application

The AltBeacon application advertises packets that include MFG ID, Beacon code, Beacon ID, Reference RSSI, and
MFG reserved value. Any AltBeacon scanner application can be used to find the AltBeacon device based on the
beacon code. The supplied iOS demo app can be used to find the AltBeacon devices in the vicinity. The profile
defines the following roles:

• Monitor – Device (iOS/Android) to search for AltBeacon packets
• Reporter – Device that continuously advertises the AltBeacon packet as part of advertisement data

1.22 

Eddystone Beacon Application

The Eddystone

 is an open Bluetooth Smart beacon format from Google that works across Android and iOS

devices. The Microchip SmartConnect BLE BluSDK software solution provides full support for this beacon format on
the ATBTLC1000-MR/ZR devices.

The Eddystone beacon application supports UID, URL, and TLM frame types. The application can be configured as
follows using the 

APP_TYPE

 define:

• Set 

APP_TYPE

 to 

EDDYSTONE_UID_APP

 to send UID and TLM beacon frames at regular beacon intervals

• Set 

APP_TYPE

 to 

EDDYSTONE_URL_APP

 to send URL and TLM frames. This also supports the URL

configuration service that enables the beacon to be configured dynamically from a mobile application

The Eddystone application is completely configurable using the 

conf_eddystone.h

 file. The 

#defines

 present in

the 

conf_eddystone.h

 file are supplied with default values, which can be changed by the user to meet the

requirements. In addition to this compile time configuration, the frame fields like the UID value, URL, transmit power
at 0 meters, and so on can be changed using the APIs provided in 

eddystone.h

 file.

1.23 

Direct Test Mode Application

The Direct Test Mode (DTM) application is used to establish and test the Direct Test mode between two
ATBTLC1000-MR/ZR modules. Windows-based ATBTLC1000-MR/ZR characterization software is used at both ends.
The ATBTLC1000-MR/ZR Xplained Pro extensions are connected to a compatible MCU host device such as the
SAM L21, SAM D21, SAM G55 or SAM 4S. The Performance Analyzer (PC tool) communicates with the
ATBTLC1000 using a serial bridge application running on the MCU.

Serial Bridge Application

Sends the DTM commands to the ATBTLC1000-MR/ZR to enable the DTM performance analyzer application. The
supported hardware platforms (see 

Table 2-1

) can act as a serial bridge between the ATBTLC1000-MR/ZR and Atmel

Studio performance analyzer tool. Once the SAM L21 (or other supported hardware platforms) is powered on or
Reset, it initializes the Wake-up and Chip Enable to download the patch file into the ATBTLC1000-MR/ZR and
completes the initialization procedure of the BLE module. After the ATBTLC1000-MR/ZR initialization, the application
initializes the SAM L21 to act as a serial bridge.

 ATBTLC1000

Functional Overview

©

 2019 Microchip Technology Inc.

 User Guide

DS50002640B-page 12

Содержание ATBTLC1000 Series

Страница 1: ...to be used in conjunction with the ATBTLC1000 MR ZR evaluation boards see Table 2 1 The part number of the BTLC1000 ZR Xplained Pro XPro board is ATBTLC1000ZR XPRO and the part number of the BTLC1000...

Страница 2: ...Report mode keyboard Battery Service Application Simple Broadcaster Application Device Information Service Custom Serial Chat CSC Profile Application Device discovery and disconnection Pairing bondin...

Страница 3: ...Android iBeacon Application RSSI sampling Beacon advertising iBeacon demo app for iOS Android AltBeacon Application AltBeacon advertising AltBeacon demo app for iOS Android Eddystone Beacon Applicati...

Страница 4: ...Status Profile Application 10 1 16 Alert Notification Profile Application 10 1 17 Multi Role Peripheral Multi Connect Application 11 1 18 L2CAP Throughput Application 11 1 19 Health Thermometer Profil...

Страница 5: ...BluSDK Software Architecture 77 9 Hardware Flow Control for 4 Wire Mode eFuse Write Procedure 78 10 Document Revision History 81 The Microchip Website 82 Product Change Notification Service 82 Custome...

Страница 6: ...Indicator RSSI and transmits the power The Proximity Monitor continuously evaluates the Path Loss and creates an immediate alert in the Proximity Reporter device when the Path Loss crosses threshold v...

Страница 7: ...e Alert Notification profile customized by Apple For more details on Alert Notification refer to the Alert Notification Profile Application 1 5 Scan Parameters Service Application The Scan Parameter s...

Страница 8: ...services This example application simulates the device battery level from 0 to 100 with the step of 1 every second 1 9 Simple Broadcaster Application The Simple Broadcaster application is used for co...

Страница 9: ...he heart rate measurements are sent to the monitor on a value change if the monitor has enabled the notifications The body sensor location is read by the monitor via its body sensor location character...

Страница 10: ...ringer setting information of a mobile phone can be received and modified by the phone alert status service The device can also use this profile to configure the ringer status on the mobile phone Phon...

Страница 11: ...ct with seven GAP central devices simultaneously The Multi Role Peripheral Multi Connect application initially starts advertising using connectable advertisement packets as a GAP peripheral and if any...

Страница 12: ..._APP to send URL and TLM frames This also supports the URL configuration service that enables the beacon to be configured dynamically from a mobile application The Eddystone application is completely...

Страница 13: ...ATSAML21 XPRO ATBTLC1000ZR XPRO Atmel Studio v7 0 and IAR SAM D21 ATSAMD21J18A ATBTLC1000 MR ATBTLC1000 ZR ATSAMD21 XPRO ATBTLC1000 XPRO or ATSAMD21 XPRO ATBTLC1000ZR XPRO Atmel Studio v7 0 and IAR S...

Страница 14: ...ate samples of ATBTLC1000 MR and ATBTLC1000 ZR kit details displayed in the Atmel Studio Figure 3 1 ATBTLC1000 MR Figure 3 2 ATBTLC1000 ZR 3 2 SAM L21 Xplained Pro Setup The following figure illustrat...

Страница 15: ...nfiguration 3 3 SAM D21 Xplained Pro Setup The following figures illustrate the connection between the ATBTLC1000 MR and ATBTLC1000 ZR Xplained Pro Extension Boards connected to the SAM D21 Xplained P...

Страница 16: ...r to the preceding figure 3 4 SAM G55 Xplained Pro Setup The following figures illustrate the connection between the ATBTLC1000 MR and ATBTLC1000 ZR Xplained Pro Extension Boards connected to the SAM...

Страница 17: ...to the SAM G55 Xplained Pro Note The connection for the SAM 4S Xplained Pro with the ATBTLC1000 ZR Xplained Pro Extension Board is similar to the preceding figure 3 5 SAM 4S Xplained Pro Setup The fol...

Страница 18: ...or the console UART and SERCOM 0 to connect to BTLC1000 The connection mapping is shown in the following table Table 3 1 SAMR34 XPRO to BTLC1000ZR XPRO Connection Mapping SAMR34 XPRO FTDI TTL 232R 3V3...

Страница 19: ...LE TXD 5 Yellow FTDI Yellow Cable RXD Console UART J200 17 PA23 S5 CONSOLE RXD 4 Orange FTDI Orange Cable TXD Console UART J200 19 GND 1 Black J100 19 GND J200 20 VCC J100 20 Power 1 SERCOM 5 is used...

Страница 20: ...the Atmel Studio Release Notes available on the Microchip web page 4 2 Build Procedure Perform the following steps to build an example project This example build procedure is developed using the SAM L...

Страница 21: ...the License Agreement checkbox and then click Finish 4 Atmel Studio generates the project files for the selected application example that can be used in the SAM L21 Xplained Pro board 5 Go to Project...

Страница 22: ...refer to Hardware Flow Control for 4 wire Mode eFuse Write Procedure The configurations for 4 wire and 6 wire are as follows 6 wire UART_FLOWCONTROL_4WIRE_MODE false UART_FLOWCONTROL_6WIRE_MODE true 4...

Страница 23: ...bol based on the following For Android devices TP_ANDROID For iOS devices NTP_ANDROID Note This step is applicable only for the Time Information Profile application Figure 4 5 Configuring the UART Flo...

Страница 24: ...ata type configuration is necessary 7 To build the solution go to Build Build Solution Figure 4 6 Building Solution for Selected Application Example 8 The generated solution is downloaded into the SAM...

Страница 25: ...n refer to Running the Demo 2 In the case of HID and Broadcaster applications refer to the following configuration sections 4 2 1 HID Mouse and HID Keyboard Application Configuration The user needs to...

Страница 26: ..._sdk ble_profiles hid_device The list of macros that must be modified by the user are 1 By default the application supports Report mode If the application requires only Boot mode support the user can...

Страница 27: ...dvertisement data types Complete list of 16 bit service class UUIDs Complete local name Appearance The configuration and advertisement data types listed above can be changed by using the macros provid...

Страница 28: ...icrocontroller to acts as a Proximity Reporter ANCS Profile Application Supported by the Microchip SmartConnect application for only iPhone devices to act as a Notification Provider Supported by the A...

Страница 29: ...ension board and microcontroller to act as Heart Rate Sensor Blood Pressure Profile Application Supported by the Microchip SmartConnect application for iPhone Android devices to act as a Blood Pressur...

Страница 30: ...ZR extension board and microcontroller to act as a Receiver Rx Test Board BLE performance analyzer tool connected with target board using COM port 5 2 Console Logging For the purpose of debugging a lo...

Страница 31: ...hone application 1 Open the Microchip SmartConnect application and click the Bluetooth Smart in an application dashboard as illustrated in the following figure Figure 5 2 Dashboard of Microchip SmartC...

Страница 32: ...Pair The mobile app displays Successful connection upon successful completion of pairing Figure 5 4 Pairing Request 4 On the device side the console displays the successful completion of the pairing...

Страница 33: ...ver application demo 1 Follow the steps 1 and 2 from Initializing the Device 2 The device is now ready to be used as an Observer and starts to scan for nearby BLE devices 3 The following figure shows...

Страница 34: ...h the connection between the device and mobile phone using the procedure listed in Running the Demo 2 Select the desired service Link Loss or Immediate Alert for alert level characteristics configurat...

Страница 35: ...is plotted on the zone radar using RSSI values received from the Proximity Reporter Based on the zone the Proximity Monitor sends the corresponding alert level The console log on the Proximity Reporte...

Страница 36: ...ng until the Link Loss pop up appears The console log on the Proximity Reporter displays the corresponding alerts and when Link Loss occurs it reports the disconnection and the on board status LED beh...

Страница 37: ...ablished by moving the mobile phone closer to the reporter 6 The Tx Power service is used to retrieve the Tx Power of the Proximity Reporter Click Tx Power service icon in the services screen The Prox...

Страница 38: ...ce Address BD in the console window The Proximity Reporter device found during the scan is displayed in the console log window refer to the following figure Select the index number of that device to e...

Страница 39: ...e console as shown below Figure 5 14 Proximity Monitor Setting Alert Levels 5 3 4 ANCS Application Perform the following steps to run the ANCS application demo 1 Follow the steps from Initializing the...

Страница 40: ...ll alert is indicated on the device side console log window Once the call is terminated the device waits for a new alert to occur as shown in the following screen Figure 5 18 Console Display for Notif...

Страница 41: ...vice side as shown in the following figure Figure 5 20 Updated Scan Interval Window Characteristic Value on Device 5 3 6 Time Information Profile Application Perform the following steps to run the Tim...

Страница 42: ...Console Display All Supported Characteristic Values 5 3 7 HID Mouse Device Application Perform the following steps to run the HID Mouse Device application demo 1 Follow the steps from Initializing th...

Страница 43: ...the user can click on the SW0 button to simulate mouse movement 7 For every press of the button the user can see a corresponding cursor movement on the HID host as described below First 5 button press...

Страница 44: ...ice supporting HOGP is used The HOGP profile is natively supported in Android version 4 4 Android KitKat and higher The mobile phone must include a Bluetooth chip set supporting Bluetooth 4 0 or highe...

Страница 45: ...pairing and connection procedure is shown in the console log Figure 5 32 HID Keyboard Device Console Log 6 After the device is connected start any notepad application on the mobile phone 7 Click the...

Страница 46: ...ications by disabling notifications as shown in the following figure Figure 5 34 Battery Level Characteristic Notification Options 4 On the device side the console log displays the periodic battery le...

Страница 47: ...mation service characteristics as shown in the following screen Figure 5 36 Display of Device Information Service Characteristics 4 The user can refresh the page to get the updated characteristic valu...

Страница 48: ...ype the text that is to be sent to the remote device and also see the text coming from the remote device 4 Chat text Hello Atmel send to remote device Figure 5 37 Sending Data to Device 5 The user can...

Страница 49: ...ponding mobile app The LED on the SAM L21 board starts blinking while sending notifications Notification Enabled Heart Rate 50 bpm RR Values 100 300 msec User Status Idle Heart Rate 51 bpm RR Values 5...

Страница 50: ...ted in Running the Demo 2 When the device is connected the application displays Blood Pressure Device Information Service and Generic Information 3 On entering the Blood Pressure service page the mobi...

Страница 51: ...pressure values as notifications and then sends the final blood pressure measurements as indication The blood pressure measurements sent by the blood pressure sensor are simulated values The following...

Страница 52: ...rocedure listed in Running the Demo 2 After the device is connected the application displays a service page that includes Immediate Alert Service and Generic Information 3 Since the service level conn...

Страница 53: ...tus Service page 3 Notifications are automatically enabled and the application reads the values of the Alert Status Ringer Settings and Ringer Control Point characteristics which are updated on the mo...

Страница 54: ...n connected the application displays the Alert Notification service page The console log displays the new and unread alert categories Figure 5 48 Alert Notification Categories 3 Enable the notificatio...

Страница 55: ...the advertisement data Perform all the steps from Battery Service Application 2 The device starts scanning and displays the devices found as shown in the following figure Figure 5 51 Multi Role Periph...

Страница 56: ...ntral sends battery level notifications to the device connected as a GAP Peripheral and also starts advertising with Connectable advertisement packets Figure 5 53 Device acting as Multi Role to accept...

Страница 57: ...tion demo 1 Follow the steps 1 and 2 from Initializing the Device for both devices 2 The device initializes and start up 3 The Central device starts scanning and subsequently connects with the desired...

Страница 58: ...g steps to run the Health Thermometer Profile application demo 1 Establish the connection between the device and mobile phone using the procedure listed in Running the Demo 2 When paired the applicati...

Страница 59: ...ation press the user button SW0 on the SAM L21 The new value is updated in the application 5 On the Microchip SmartConnect application going back to the scanning screen disconnects the device with mob...

Страница 60: ...given beacon This mode also shows the corresponding product related information that is configured for this particular beacon device Distance used to indicate the distance between the beacon device an...

Страница 61: ...optionally close the message by clicking on close Figure 5 63 Beacon Radar Application in Proximity Mode 5 3 22 AltBeacon Application Perform the following steps to run the AltBeacon application demo...

Страница 62: ...Mode 5 In proximity mode the application opens the configured URL whenever the user comes in close proximity to the configured beacon device When the user moves away from the beacon device the configu...

Страница 63: ...m the following steps to run the Eddystone Beacon application demo 1 Follow the steps 1 and 2 from Running the Demo 2 The beacon application initialization is displayed on the console Initializing BTL...

Страница 64: ...D_APP Namespace ID and Instance ID is shown Figure 5 68 Eddystone Beacons both UID and URL beacons ranged by Microchip SmartConnect Application 5 Click the beacon pop up window to view detailed inform...

Страница 65: ...connected the configurable beacon parameters are listed out as shown in Figure 5 71 Figure 5 70 Connecting to Beacon in Configuration Mode Figure 5 71 Beacon Configuration Screen 8 Update the URL Tx P...

Страница 66: ...o https google github io physical web The following demo shows how the Eddystone application running on an ATBTLC1000 MR ZR device works seamlessly with the Physical Web Android application 1 Install...

Страница 67: ...guration service as shown in the following figure Change the URL value to a different one make sure to use a shortened URL as the size of encoded URL is limited to 17 bytes Google s URL shortener can...

Страница 68: ...yzer Tool Window 2 Next initialize the UART Enter the COM port number and press Init UART A successful initialization is indicated by receiving a chip response as shown in the following figure Tip Che...

Страница 69: ...t in order not to miss any packets The user must see non zero packets received at the Rx side notifying successful transmission and reception Note Any side can be replaced by standard compliant test e...

Страница 70: ...aving both Tx and Rx options Click Start Rx Test and ensure that the packets are transferred for a certain time period from the Tx device Figure 5 80 Starting Rx Test 6 Click Stop Test to display the...

Страница 71: ...ant The PER is calculated assuming that the transmitter side sends 1500 packets for testing using R S CBT equipment For peer testing ignore the PER reading ATBTLC1000 Application Demo 2019 Microchip T...

Страница 72: ...own in the following figure Figure 6 1 Invoking ASF Wizard 2 In the ASF Wizard window enter BLE in the search box as shown in the following figure Figure 6 2 ASF BLE Services and Components Window 3 S...

Страница 73: ...fo_type dis characteristic type to be updated param in info_data data need to be updated return ref AT_BLE_SUCCESS operation completed successfully return ref AT_BLE_FAILURE Generic error at_ble_statu...

Страница 74: ...LE_FAILURE Generic error at_ble_status_t dis_primary_service_define dis_gatt_service_handler_t dis_primary_service ATBTLC1000 Adding a BLE Standard Service 2019 Microchip Technology Inc User Guide DS5...

Страница 75: ...ristic is readable with authentication and writable with authentication 3 If BLE_PAIR_ENABLE is set false then the security permission of Endpoint characteristic is none 7 3 Endpoint The Endpoint char...

Страница 76: ...following figure illustrates the sequence flow diagram of Custom Serial Chat profile Figure 7 1 Sequence Flow Diagram ATBTLC1000 Custom Serial Chat Service Specification 2019 Microchip Technology Inc...

Страница 77: ...Architecture for implementing various applications The External host can be supported hardware platforms and IDEs see 2 Supported Hardware Platforms and IDEs Figure 8 1 BluSDK Software Architecture AT...

Страница 78: ...board to power it up For the J108 location refer to the following assembly drawing Ensure that the ATBTLC1000 chip enable and Wakeup pin are driven high throughout the eFuse process Figure 9 1 ATBTLC1...

Страница 79: ...re flow control eFuse configuration use command EfuseBlockProgram exe v 5 3 The example output shown in following figure is for reading the eFuse Figure 9 4 Reading eFuse Values 6 Writing and verifyin...

Страница 80: ...ue eFuse to be configured in Hex v For verification of a programmed block 6 3 To enable the ATBTLC1000 UART hardware flow control 4 wire mode Bank 5 and Block 3 must be written as 10000000 inputs are...

Страница 81: ...History Revision Date Section Description B 08 2019 Table 2 1 Updated 3 6 SAM R34 Xplained Pro Setup Added Figure 4 5 Updated A 07 2017 Document Initial Release ATBTLC1000 Document Revision History 20...

Страница 82: ...is available through the website at http www microchip com support Microchip Devices Code Protection Feature Note the following details of the code protection feature on Microchip devices Microchip pr...

Страница 83: ...lus ProASIC Plus logo Quiet Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProvider Vite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the U S A...

Страница 84: ...7252 China Xiamen Tel 86 592 2388138 China Zhuhai Tel 86 756 3210040 India Bangalore Tel 91 80 3090 4444 India New Delhi Tel 91 11 4160 8631 India Pune Tel 91 20 4121 0141 Japan Osaka Tel 81 6 6152 7...

Отзывы: