Introduction
******************************Introduction ***********************************
The PXP-Monitor example application bring-up the Proximity profile defined by the Bluetooth SIG which would receives the proximity information from Proximity reporter enbled BLE device. The Proximity monitor example application supports the following features:
- Device discovery and disconnection.
- Services and characteristics discovery.
- Services : Link Loss Service, Immediate Alert Service and TX Power Service.
- Setting up path loss and link loss.
- RSSI sampling.
Supported Evolution Kit -
- ATSAML21-XPRO-B + ATBTLC1000 XPRO
- ATSAMD21-XPRO + ATBTLC1000 XPRO
- ATSAMG55-XPRO + ATBTLC1000 XPRO
- ATSAM4S-XPRO + ATBTLC1000 XPRO
- ATSAMR34-XPRO + ATBTLC1000 XPRO
Running the demo -
- 1. Build and flash the binary into supported evaluation board.
- 2. Open the console using TeraTerm or any serial port monitor.
- 3. Press the Reset button.
- 4. Wait for around 10 seconds for the patches to be downloaded device will initialize and start-up.
- 5. Initializes the proximity monitor applications.
- 6. Device will start scan and will displays the list of all BLE devices which are advertising. Proximity reporter devices(GATT server role) are indicated with tag "--PXP".Select the appropriate index number of the proximity reporter The Proximity Monitor will then connect to the selected peer device.
- 7. Once connection is established the PXP-Monitor will set link loss alert value to high alert and starts monitoring the RSSI value of the reporter device. The proximity reporter supports also ‘Immediate Alert Service’ and ‘Tx-Power’ service. The Atmel Proximity Reporter application referred in this example supports both these optional services.
Modules
***************************** MODULES *****************************************
- BLE Manager -
- The Event Manager is responsible for handling the following:
- Generic BLE Event Handling:-
- BLE Event Manager handles the events triggered by BLE stack and also responsible for invoking all registered callbacks for respective events. BLE Manager handles all GAP related functionality. In addition to that handles multiple connection instances, Pairing, Encryption, Scanning.
- Handling Multi-role/multi-connection:-
- BLE Event Manager is responsible for handling multiple connection instances and stores bonding information and Keys to retain the bonded device. BLE Manager is able to identify and remove the device information when pairing/encryption gets failed. In case of multi-role, it handles the state/event handling of both central and peripheral in multiple contexts.
- Controlling the Advertisement data:-
- BLE Event Manager is responsible for generating the advertisement and scan response data for BLE profiles/services that are attached with BLE Manager.
- BLE Profile-
- BLE Platform Services -
- Interface Settings -
- Connect ATBTLC1000 XPRO to SAML21-XPRO-B -> EXT1
- Connect ATBTLC1000 XPRO to SAMD21-XPRO -> EXT1
- Connect ATBTLC1000 XPRO to SAMG55-XPRO -> EXT1
- Connect ATBTLC1000 XPRO to SAM4S-XPRO -> EXT1
- Serial Console COM port settings -
- Baudrate 115200
- Parity None, Stop Bit 1, Start Bit 1
- No Hardware Handshake
- 6-Wire Mode Connection Setup -
- Pins are 1:1 match with SAML21/D21 Xpro EXT1 Header to BTLC1000 XPro Header
- UART(No Flow Control)-SAM L21/D21 XPro Pins (Rx-Pin13, Tx-Pin14)
- UART(With Flow Control)-SAM G55 Xpro Pins (Rx-Pin13, Tx-Pin14, RTS-Pin5, CTS-Pin6, Rx-Pin16, Tx-Pin17)
- BTLC1000 Wakeup Pin-SAM G55 XPro Pins(Pin4)
- BTLC1000 Chip Enable Pin-SAM G55 XPro Pins(Pin10)
- BTLC1000 Vcc Pin-SAM L21/D21/G55 Xpro Pins(Pin20)
- BTLC1000 GND Pin-SAM L21/D21/G55 Xpro Pins(Pin19)
- 4-Wire Mode Connection setup -
- UART(With Flow Control)-SAM L21/D21 XPro Pins (Rx-Pin15, Tx-Pin17, RTS-Pin16, CTS-Pin18)
- BTLC1000 Wakeup Pin-SAM L21/D21 XPro Pins (Rx-Pin6)
- BTLC1000 Chip Enable Pin-SAM L21/D21 XPro Pins (Rx-Pin4)
- UART(With Flow Control)-SAM G55/4S Xpro Pins (Rx-Pin13, Tx-Pin14, RTS-Pin5, CTS-Pin6)
- BTLC1000 Wakeup Pin-SAM G55/4S XPro Pins(Pin4)
- BTLC1000 Chip Enable Pin-SAM G55/4S XPro Pins(Pin10)
- BTLC1000 Vcc Pin-SAM L21/D21/G55/4S Xpro Pins(Pin20)
- BTLC1000 GND Pin-SAM L21/D21/G55/4S Xpro Pins(Pin19)
Package
***************************** BluSDK Package *****************************************
- BluSDK -
- ATBTLC1000 -
- Developement kit -
- Applications -
- Support and FAQ visit -