Skip to content

Commit 2460429

Browse files
author
Sean Lyons
committed
Merge pull request #70 in SA/ble_examples from feature/peripheral_observer_1_40 to develop
Squashed commit of the following: commit cdf9be53242faa48a2385a0420bb0581e32da85c Author: Gerardo Gomez Martinez <gerardo@ti.com> Date: Fri Dec 8 15:14:15 2017 -0800 Update how scan results are displayed on readme See: LPRFAPPS-859 commit 65405d3e4652a7251fe444a8b717511f9ee4aba6 Author: Gerardo Gomez Martinez <gerardo@ti.com> Date: Fri Dec 8 14:56:26 2017 -0800 Update cfg file to not import other configurations See: LPRFAPPS-859 commit 4606b5af12e75f0821077c9a1df73d8601070888 Author: Gomez Martinez <gerardo@ti.com> Date: Mon Nov 20 13:48:40 2017 -0800 Add Simple Peripheral Observer to main README See: LPRFAPPS-859 commit 881f072ea8e4e4f0765aea6cd71f4b2f780c5b91 Author: Gomez Martinez <gerardo@ti.com> Date: Mon Nov 20 10:27:54 2017 -0800 Add readme to Simple Peripheral Observer See: LPRFAPPS-859 commit d0352c49e53e1229a86686967fb521c19c84ae21 Author: Gomez Martinez <gerardo@ti.com> Date: Thu Nov 16 15:29:32 2017 -0800 Add Simple Peripheral Observer Initial commit to add simple peripheral observer, adds the needed application, startup and profile files. Also adds CCS and IAR project files. See: LPRFAPPS-859
1 parent 6cee083 commit 2460429

18 files changed

+12865
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,20 @@ Extension with OAD support:
201201
* [CCS Project Files](examples/rtos/CC2640R2_LAUNCHXL/bleapps/spp_ble_server/tirtos/ccs)
202202
* [Source](examples/rtos/CC2640R2_LAUNCHXL/bleapps/spp_ble_server/src)
203203

204+
### Simple Peripheral Observer BLE Example
205+
206+
This sample project is used to add observer role to a BLE peripheral device to
207+
show scanning functionality in a peripheral based project.
208+
209+
The example supports Bluetooth 4.2:
210+
211+
* simple\_peripheral\_observer
212+
* [Documentation](examples/rtos/CC2640R2_LAUNCHXL/bleapps/simple_peripheral_observer/readme.md)
213+
* [IAR Project Files](examples/rtos/CC2640R2_LAUNCHXL/bleapps/simple_peripheral_observer/tirtos/iar)
214+
* [CCS Project Files](examples/rtos/CC2640R2_LAUNCHXL/bleapps/simple_peripheral_observer/tirtos/ccs)
215+
* [Source](examples/rtos/CC2640R2_LAUNCHXL/bleapps/simple_peripheral_observer/src)
216+
217+
204218
### Apple Notification Center Service (ANCS) Demo
205219

206220
This is an example that demonstrates the use and functionality of the ANCS. ANCS is a GATT
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Purpose / Scope
2+
===============
3+
4+
This sample project is used to add observer role to a BLE peripheral device to
5+
show scanning functionality in a peripheral based project. The project is based
6+
on simple_peripheral. This project is configured to run on the CC2640R2
7+
Launchpad.
8+
9+
10+
Method
11+
======
12+
13+
1. Compile and load the projects:
14+
- First build `simple_peripheral_observer_cc2640r2lp_stack_library`
15+
- Next build and load `simple_peripheral_observer_cc2640r2lp_app`
16+
17+
2. Connect to the LaunchPad via PuTTY (or other serial console emulator).
18+
19+
3. After connecting you will notice that the device is advertising, the terminal will display as below. (note that your BD_ADDR may be different)
20+
21+
BLE Peripheral Observer
22+
0xB0B448D09105
23+
Advertising
24+
25+
4. You may initiate scanning at any time by pressing KEY\_LEFT (BTN-1), scanning may be canceled via KEY\_RIGHT (BTN-2). Scan reports are displayed on the terminal as
26+
27+
Scanning Off
28+
Devices discovered: 14
29+
Advertising Addr: 0x4EFF5168AE58 Advertising Type: Connectable undirected
30+
Advertising Data: 02:01:1A:0A:FF:4C:00:10:05:01:90:74:DB:90:00:B6:E2:7D:A1:55:68:64:1D:2E:1E:B5:35:2D:34:20:
31+
32+
33+
5. Additionaly the device can support a peripheral role connection while scanning, once connected to a peer, the terminal will show. Note your peer addr will be different
34+
35+
Num Conns: 1
36+
0x45C8713837B3

0 commit comments

Comments
 (0)