2018-11-01 23:44:52 +08:00
|
|
|
# Kconfig - GATT Device Information service
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 Nordic Semiconductor ASA
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig BT_GATT_DIS
|
|
|
|
bool "Enable GATT Device Information service"
|
|
|
|
|
|
|
|
if BT_GATT_DIS
|
|
|
|
|
2019-05-03 15:52:34 +08:00
|
|
|
config BT_GATT_DIS_SETTINGS
|
|
|
|
bool "Enable Settings usage in Device Information Service"
|
|
|
|
help
|
|
|
|
Enable Settings usage in Device Information Service.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_STR_MAX
|
|
|
|
int "Maximum size in bytes for DIS strings"
|
|
|
|
depends on BT_GATT_DIS_SETTINGS
|
|
|
|
default 21
|
|
|
|
range 2 248
|
|
|
|
help
|
|
|
|
Bluetooth DIS string storage size. Storage can be up to 248 bytes
|
|
|
|
long (excluding NULL termination).
|
|
|
|
|
2018-11-01 23:44:52 +08:00
|
|
|
config BT_GATT_DIS_MODEL
|
|
|
|
string "Model name"
|
|
|
|
default SOC
|
|
|
|
help
|
|
|
|
The device model inside Device Information Service.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_MANUF
|
|
|
|
string "Manufacturer name"
|
|
|
|
default "Manufacturer"
|
|
|
|
help
|
|
|
|
The device manufacturer inside Device Information Service.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_PNP
|
|
|
|
bool "Enable PnP_ID characteristic"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enable PnP_ID characteristic in Device Information Service.
|
|
|
|
|
|
|
|
if BT_GATT_DIS_PNP
|
|
|
|
|
|
|
|
config BT_GATT_DIS_PNP_VID_SRC
|
|
|
|
int "Vendor ID source"
|
|
|
|
range 1 2
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
The Vendor ID Source field designates which organization assigned the
|
|
|
|
value used in the Vendor ID field value.
|
|
|
|
The possible values are:
|
|
|
|
- 1 Bluetooth SIG, the Vendor ID was assigned by the Bluetooth SIG
|
|
|
|
- 2 USB IF, the Vendor ID was assigned by the USB IF
|
|
|
|
|
|
|
|
config BT_GATT_DIS_PNP_VID
|
|
|
|
hex "Vendor ID"
|
|
|
|
range 0 0xFFFF
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
The Vendor ID field is intended to uniquely identify the vendor of the
|
|
|
|
device. This field is used in conjunction with Vendor ID Source field,
|
|
|
|
which determines which organization assigned the Vendor ID field value.
|
|
|
|
Note: The Bluetooth Special Interest Group assigns Device ID Vendor ID,
|
2019-06-19 01:38:23 +08:00
|
|
|
and the USB Implementers Forum assigns Vendor IDs,
|
2018-11-01 23:44:52 +08:00
|
|
|
either of which can be used for the Vendor ID field value.
|
2019-06-19 01:38:23 +08:00
|
|
|
Device providers should procure the Vendor ID from the USB Implementers
|
2018-11-01 23:44:52 +08:00
|
|
|
Forum or the Company Identifier from the Bluetooth SIG.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_PNP_PID
|
|
|
|
hex "Product ID"
|
|
|
|
range 0 0xFFFF
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
The Product ID field is intended to distinguish between different products
|
|
|
|
made by the vendor identified with the Vendor ID field. The vendors
|
|
|
|
themselves manage Product ID field values.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_PNP_VER
|
|
|
|
hex "Product Version"
|
|
|
|
range 0 0xFFFF
|
|
|
|
default 1
|
|
|
|
help
|
|
|
|
The Product Version field is a numeric expression identifying the device
|
|
|
|
release number in Binary-Coded Decimal. This is a vendor-assigned value,
|
|
|
|
which defines the version of the product identified by the Vendor ID and
|
|
|
|
Product ID fields. This field is intended to differentiate between
|
|
|
|
versions of products with identical Vendor IDs and Product IDs.
|
|
|
|
The value of the field value is 0xJJMN for version JJ.M.N
|
2019-06-19 01:38:23 +08:00
|
|
|
(JJ - major version number, M - minor version number,
|
|
|
|
N - sub-minor version number); e.g., version 2.1.3 is represented with
|
2018-11-01 23:44:52 +08:00
|
|
|
value 0x0213 and version 2.0.0 is represented with a value of 0x0200.
|
|
|
|
When upward-compatible changes are made to the device, it is recommended
|
|
|
|
that the minor version number be incremented. If incompatible changes are
|
|
|
|
made to the device, it is recommended that the major version number be
|
|
|
|
incremented. The sub-minor version is incremented for bug fixes.
|
|
|
|
|
|
|
|
endif #BT_GATT_DIS_PNP
|
|
|
|
|
2019-05-03 15:52:34 +08:00
|
|
|
config BT_GATT_DIS_SERIAL_NUMBER
|
|
|
|
bool "Enable DIS Serial number characteristic"
|
|
|
|
help
|
|
|
|
Enable Serial Number characteristic in Device Information Service.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_SERIAL_NUMBER_STR
|
|
|
|
string "Serial Number"
|
|
|
|
depends on BT_GATT_DIS_SERIAL_NUMBER
|
|
|
|
help
|
|
|
|
Enable Serial Number characteristic in Device Information Service.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_FW_REV
|
|
|
|
bool "Enable DIS Firmware Revision characteristic"
|
|
|
|
help
|
|
|
|
Enable Firmware Revision characteristic in Device Information Service.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_FW_REV_STR
|
|
|
|
string "Firmware revision"
|
|
|
|
depends on BT_GATT_DIS_FW_REV
|
|
|
|
help
|
|
|
|
Enable firmware revision characteristic in Device Information Service.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_HW_REV
|
|
|
|
bool "Enable DIS Hardware Revision characteristic"
|
|
|
|
help
|
|
|
|
Enable Hardware Revision characteristic in Device Information Service.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_HW_REV_STR
|
|
|
|
string "Hardware revision"
|
|
|
|
depends on BT_GATT_DIS_HW_REV
|
|
|
|
help
|
|
|
|
Enable hardware revision characteristic in Device Information Service.
|
|
|
|
|
|
|
|
config BT_GATT_DIS_SW_REV
|
|
|
|
bool "Enable DIS Software Revision characteristic"
|
|
|
|
help
|
2019-06-19 01:38:23 +08:00
|
|
|
Enable Software Revision characteristic in Device Information Service.
|
2019-05-03 15:52:34 +08:00
|
|
|
|
|
|
|
config BT_GATT_DIS_SW_REV_STR
|
|
|
|
string "Software revision"
|
|
|
|
depends on BT_GATT_DIS_SW_REV
|
|
|
|
help
|
|
|
|
Enable software revision characteristic in Device Information Service.
|
2018-11-01 23:44:52 +08:00
|
|
|
endif #BT_GATT_DIS
|