Skip to content

Commit 5233a50

Browse files
Bluetooth Applications v2.0.2
1 parent 5f68d22 commit 5233a50

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+12662
-7
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ This repository provides both SLCP projects (as External Repositories) and SLS p
8282
| 54 | Bluetooth - BTHome v2 - Server Example | [Click Here](./bluetooth_bthome_v2_server/) |
8383
| 55 | Bluetooth - HID Multiple Reports | [Click Here](./bluetooth_hid_multiple_reports/) |
8484
| 56 | Bluetooth - ESL Tag with E-Paper display 1,54inch 200x200 dots from Mikroe | [Click Here](./bluetooth_esl_tag_mikroe_eink154_e_paper_display) |
85+
| 56 | Bluetooth - RSSI - based position estimation for PEPS | [Click Here](./bluetooth_rssi_positioning_for_peps) |
8586

8687
## Requirements ##
8788

bluetooth_bthome_v2_light/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,6 @@ For testing, there should be at least 2 Silabs boards. One acts as a Switch devi
155155

156156
## Report Bugs & Get Support
157157

158-
To report bugs in the Application Examples projects, please create a new "Issue" in the "Issues" section of [third_party_hw_drivers_extension](https://github.com/SiliconLabs/third_party_hw_drivers_extension) repo. Please reference the board, project, and source files associated with the bug, and reference line numbers. If you are proposing a fix, also include information on the proposed fix. Since these examples are provided as-is, there is no guarantee that these examples will be updated to fix these issues.
158+
To report bugs in the Application Examples projects, please create a new "Issue" in the "Issues" section of [bluetooth_applications](https://github.com/SiliconLabs/bluetooth_applications) repo. Please reference the board, project, and source files associated with the bug, and reference line numbers. If you are proposing a fix, also include information on the proposed fix. Since these examples are provided as-is, there is no guarantee that these examples will be updated to fix these issues.
159159

160-
Questions and comments related to these examples should be made by creating a new "Issue" in the "Issues" section of [third_party_hw_drivers_extension](https://github.com/SiliconLabs/third_party_hw_drivers_extension) repo.
160+
Questions and comments related to these examples should be made by creating a new "Issue" in the "Issues" section of [bluetooth_applications](https://github.com/SiliconLabs/bluetooth_applications) repo.

bluetooth_esl_tag_mikroe_eink154_e_paper_display/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ The result on the E-Paper display 1,54" should be the following:
173173

174174
![result](image/result1.png)
175175

176-
## Report Bugs & Get Support ##
176+
## Report Bugs & Get Support
177177

178-
To report bugs in the Application Examples projects, please create a new "Issue" in the "Issues" section of [third_party_hw_drivers_extension](https://github.com/SiliconLabs/third_party_hw_drivers_extension) repo. Please reference the board, project, and source files associated with the bug, and reference line numbers. If you are proposing a fix, also include information on the proposed fix. Since these examples are provided as-is, there is no guarantee that these examples will be updated to fix these issues.
178+
To report bugs in the Application Examples projects, please create a new "Issue" in the "Issues" section of [bluetooth_applications](https://github.com/SiliconLabs/bluetooth_applications) repo. Please reference the board, project, and source files associated with the bug, and reference line numbers. If you are proposing a fix, also include information on the proposed fix. Since these examples are provided as-is, there is no guarantee that these examples will be updated to fix these issues.
179179

180-
Questions and comments related to these examples should be made by creating a new "Issue" in the "Issues" section of [third_party_hw_drivers_extension](https://github.com/SiliconLabs/third_party_hw_drivers_extension) repo.
180+
Questions and comments related to these examples should be made by creating a new "Issue" in the "Issues" section of [bluetooth_applications](https://github.com/SiliconLabs/bluetooth_applications) repo.

bluetooth_rssi_positioning_for_peps/README.md

Lines changed: 257 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
project_name: bt_rssi_positioning_for_peps
2+
package: Bluetooth
3+
label: Bluetooth - RSSI-based position estimation for PEPS
4+
description: >
5+
The project implements a rough RSSI-based position estimation for a Passive Entry Passive Start (PEPS) system.
6+
category: Bluetooth Examples
7+
quality: experimental
8+
9+
filter:
10+
- name: "Device Type"
11+
value: ["SoC"]
12+
- name: "Project Difficulty"
13+
value: ["Advanced"]
14+
- name: "Wireless Technology"
15+
value: ["Bluetooth"]
16+
17+
component:
18+
- id: app_assert
19+
- id: app_log
20+
- id: app_timer
21+
- id: bluetooth_feature_builtin_bonding_database
22+
- id: bluetooth_feature_connection
23+
- id: bluetooth_feature_connection_analyzer
24+
- id: bluetooth_feature_connection_phy_update
25+
- id: bluetooth_feature_extended_advertiser
26+
- id: bluetooth_feature_extended_scanner
27+
- id: bluetooth_feature_gatt
28+
- id: bluetooth_feature_gatt_server
29+
- id: bluetooth_feature_l2cap
30+
- id: bluetooth_feature_legacy_advertiser
31+
- id: bluetooth_feature_legacy_scanner
32+
- id: bluetooth_feature_nvm
33+
- id: bluetooth_feature_periodic_advertiser
34+
- id: bluetooth_feature_sm
35+
- id: bluetooth_feature_system
36+
- id: bluetooth_on_demand_start
37+
- id: bluetooth_stack
38+
- id: bootloader_interface
39+
- id: bt_post_build
40+
- instance: [inst]
41+
id: cli
42+
- instance: [inst]
43+
id: cli_storage_nvm3
44+
- id: cmsis_dsp
45+
- id: component_catalog
46+
- id: dmd_memlcd
47+
- id: ead_core
48+
- id: emlib_letimer
49+
- id: emlib_usart
50+
- id: gatt_configuration
51+
- id: gatt_service_device_information
52+
- id: glib
53+
- id: gpiointerrupt
54+
- id: in_place_ota_dfu
55+
- instance: [vcom]
56+
id: iostream_eusart
57+
- id: memlcd_eusart
58+
- id: mpu
59+
- id: mx25_flash_shutdown_eusart
60+
- id: printf
61+
- id: rail_util_pti
62+
- instance: [active, dclk, dout, rxsync]
63+
id: sl_radioprs
64+
- id: toolchain_gcc
65+
- id: toolchain_variant_arm
66+
67+
config_file:
68+
- override:
69+
component: gatt_configuration
70+
file_id: gatt_configuration_file_id
71+
path: ../config/btconf/gatt_configuration.btconf
72+
directory: btconf
73+
74+
readme:
75+
- path: ../README.md
76+
77+
include:
78+
- path: ../inc
79+
file_list:
80+
- path: app.h
81+
- path: env.h
82+
- path: lcd.h
83+
- path: lfxoctune.h
84+
- path: peps_common.h
85+
- path: peps_follower.h
86+
- path: peps_leader.h
87+
- path: system.h
88+
- path: ui.h
89+
- path: var.h
90+
- path: ../lin
91+
file_list:
92+
- path: sl_lin_common.h
93+
- path: sl_lin_master.h
94+
- path: sl_lin.h
95+
directory: "lin"
96+
- path: ../patch/dmadrv/inc
97+
file_list:
98+
- path: dmadrv.h
99+
directory: "gecko_sdk_4.4.2/platform/emdrv/dmadrv/inc"
100+
101+
source:
102+
- path: ../src/main.c
103+
- path: ../src/app.c
104+
- path: ../src/env.c
105+
- path: ../src/lcd.c
106+
- path: ../src/lfxoctune.c
107+
- path: ../src/peps_follower.c
108+
- path: ../src/peps_leader.c
109+
- path: ../src/ui.c
110+
- path: ../src/var.c
111+
- path: ../lin/sl_lin_common.c
112+
directory: "lin"
113+
- path: ../lin/sl_lin_master.c
114+
directory: "lin"
115+
- path: ../lin/sl_lin.c
116+
directory: "lin"
117+
- path: ../patch/dmadrv/src/dmadrv.c
118+
directory: "gecko_sdk_4.4.2/platform/emdrv/dmadrv/src"
119+
120+
other_file:
121+
- path: ../image/board_control.png
122+
directory: "image"
123+
- path: ../image/create_project.png
124+
directory: "image"
125+
- path: ../image/dmadrv_patch.png
126+
directory: "image"
127+
- path: ../image/iostream_config.png
128+
directory: "image"
129+
- path: ../image/lin_bus_wiring.png
130+
directory: "image"
131+
- path: ../image/logs.png
132+
directory: "image"
133+
- path: ../image/peps_location.png
134+
directory: "image"
135+
- path: ../image/PRS_active.png
136+
directory: "image"
137+
- path: ../image/PRS_dclk.png
138+
directory: "image"
139+
- path: ../image/PRS_dout.png
140+
directory: "image"
141+
- path: ../image/PRS_rxsync.png
142+
directory: "image"
143+
- path: ../image/system_overview.png
144+
directory: "image"
145+
146+
configuration:
147+
- name: SL_STACK_SIZE
148+
value: "65536"
149+
- name: SL_HEAP_SIZE
150+
value: "9200"
151+
- name: SL_BOARD_ENABLE_VCOM
152+
value: "1"
153+
- name: SL_BOARD_ENABLE_DISPLAY
154+
value: "1"
155+
- name: SL_BOARD_DISABLE_MEMORY_SPI
156+
value: "0"
157+
- name: SL_PSA_KEY_USER_SLOT_COUNT
158+
value: "0"
159+
condition:
160+
- psa_crypto
161+
- name: SL_IOSTREAM_EUSART_VCOM_FLOW_CONTROL_TYPE
162+
value: "eusartHwFlowControlNone"
163+
- name: RADIOPRS_ACTIVE_SOURCESEL
164+
value: "PRS_RACL_RX"
165+
- name: RADIOPRS_ACTIVE_CHANNEL
166+
value: "10"
167+
- name: RADIOPRS_ACTIVE_PORT
168+
value: "gpioPortC"
169+
- name: RADIOPRS_ACTIVE_PIN
170+
value: "5"
171+
- name: RADIOPRS_RXSYNC_SOURCESEL
172+
value: "PRS_MODEML_FRAMEDET"
173+
- name: RADIOPRS_RXSYNC_CHANNEL
174+
value: "11"
175+
- name: RADIOPRS_RXSYNC_PORT
176+
value: "gpioPortC"
177+
- name: RADIOPRS_RXSYNC_PIN
178+
value: "7"
179+
- name: RADIOPRS_DOUT_SOURCESEL
180+
value: "PRS_MODEML_DOUT"
181+
- name: RADIOPRS_DOUT_CHANNEL
182+
value: "14"
183+
- name: RADIOPRS_DOUT_PORT
184+
value: "gpioPortB"
185+
- name: RADIOPRS_DOUT_PIN
186+
value: "5"
187+
- name: RADIOPRS_DCLK_SOURCESEL
188+
value: "PRS_MODEML_DCLK"
189+
- name: RADIOPRS_DCLK_CHANNEL
190+
value: "15"
191+
- name: RADIOPRS_DCLK_PORT
192+
value: "gpioPortA"
193+
- name: RADIOPRS_DCLK_PIN
194+
value: "0"
195+
196+
tag:
197+
- hardware:rf:band:2400
198+
199+
ui_hints:
200+
highlight:
201+
- path: config/btconf/gatt_configuration.btconf
202+
- path: README.md
203+
focus: true
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<!--Custom BLE GATT-->
3+
<gatt gatt_caching="true" generic_attribute_service="true" header="gatt_db.h" name="Custom BLE GATT" out="gatt_db.c" prefix="gattdb_">
4+
5+
<!--Generic Access-->
6+
<service advertise="false" name="Generic Access" requirement="mandatory" sourceId="org.bluetooth.service.generic_access" type="primary" uuid="1800">
7+
<informativeText>Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. </informativeText>
8+
9+
<!--Device Name-->
10+
<characteristic const="false" id="device_name" name="Device Name" sourceId="org.bluetooth.characteristic.gap.device_name" uuid="2A00">
11+
<value length="14" type="utf-8" variable_length="false">PEPS Master</value>
12+
<properties>
13+
<read authenticated="false" bonded="false" encrypted="false"/>
14+
<write authenticated="false" bonded="false" encrypted="false"/>
15+
</properties>
16+
</characteristic>
17+
18+
<!--Appearance-->
19+
<characteristic const="true" name="Appearance" sourceId="org.bluetooth.characteristic.gap.appearance" uuid="2A01">
20+
<informativeText>Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). </informativeText>
21+
<value length="2" type="hex" variable_length="false">0000</value>
22+
<properties>
23+
<read authenticated="false" bonded="false" encrypted="false"/>
24+
</properties>
25+
</characteristic>
26+
27+
<!--Peripheral Preferred Connection Parameters-->
28+
<characteristic const="false" id="generic_access_peripheral_preferred_connection_parameters_0" name="Peripheral Preferred Connection Parameters" sourceId="org.bluetooth.characteristic.gap.peripheral_preferred_connection_parameters" uuid="2A04">
29+
<value length="8" type="hex" variable_length="false">5000500000001e00</value>
30+
<properties>
31+
<read authenticated="false" bonded="false" encrypted="false"/>
32+
<write authenticated="false" bonded="false" encrypted="false"/>
33+
</properties>
34+
</characteristic>
35+
</service>
36+
37+
<!--Device Information-->
38+
<service advertise="false" id="device_information" name="Device Information" requirement="mandatory" sourceId="org.bluetooth.service.device_information" type="primary" uuid="180A">
39+
<informativeText>Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device.</informativeText>
40+
41+
<!--Manufacturer Name String-->
42+
<characteristic const="true" id="manufacturer_name_string" name="Manufacturer Name String" sourceId="org.bluetooth.characteristic.manufacturer_name_string" uuid="2A29">
43+
<informativeText>Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device.</informativeText>
44+
<value length="12" type="utf-8" variable_length="false">Silicon Labs</value>
45+
<properties>
46+
<read authenticated="false" bonded="false" encrypted="false"/>
47+
</properties>
48+
</characteristic>
49+
50+
<!--Model Number String-->
51+
<characteristic const="false" id="model_number_string" name="Model Number String" sourceId="org.bluetooth.characteristic.model_number_string" uuid="2A24">
52+
<informativeText>Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor.</informativeText>
53+
<value length="8" type="utf-8" variable_length="false">00000000</value>
54+
<properties>
55+
<read authenticated="false" bonded="false" encrypted="false"/>
56+
</properties>
57+
</characteristic>
58+
59+
<!--Hardware Revision String-->
60+
<characteristic const="false" id="hardware_revision_string" name="Hardware Revision String" sourceId="org.bluetooth.characteristic.hardware_revision_string" uuid="2A27">
61+
<informativeText>Summary: The value of this characteristic is a UTF-8 string representing the hardware revision for the hardware within the device.</informativeText>
62+
<value length="3" type="utf-8" variable_length="false">000</value>
63+
<properties>
64+
<read authenticated="false" bonded="false" encrypted="false"/>
65+
</properties>
66+
</characteristic>
67+
68+
<!--Firmware Revision String-->
69+
<characteristic const="false" id="firmware_revision_string" name="Firmware Revision String" sourceId="org.bluetooth.characteristic.firmware_revision_string" uuid="2A26">
70+
<informativeText>Summary: The value of this characteristic is a UTF-8 string representing the firmware revision for the firmware within the device.</informativeText>
71+
<value length="5" type="utf-8" variable_length="false">0.0.0</value>
72+
<properties>
73+
<read authenticated="false" bonded="false" encrypted="false"/>
74+
</properties>
75+
</characteristic>
76+
77+
<!--System ID-->
78+
<characteristic const="false" id="system_id" name="System ID" sourceId="org.bluetooth.characteristic.system_id" uuid="2A23">
79+
<informativeText>Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE.</informativeText>
80+
<value length="8" type="hex" variable_length="false"/>
81+
<properties>
82+
<read authenticated="false" bonded="false" encrypted="false"/>
83+
</properties>
84+
</characteristic>
85+
</service>
86+
</gatt>
30.5 KB
Loading
30.5 KB
Loading
30.8 KB
Loading
31.6 KB
Loading

0 commit comments

Comments
 (0)