btstack/example/libusb/profile.gatt

131 lines
6.4 KiB
Plaintext
Raw Normal View History

2013-10-17 12:42:18 +00:00
PRIMARY_SERVICE, GAP_SERVICE
2014-02-02 21:30:39 +00:00
CHARACTERISTIC, GAP_DEVICE_NAME, READ | WRITE | DYNAMIC,
CHARACTERISTIC, GAP_APPEARANCE, READ | WRITE | DYNAMIC,
2014-02-02 21:00:09 +00:00
// GAP Peripheral Privacy Flag
CHARACTERISTIC, 2A02, READ | WRITE | DYNAMIC, 00
// GAP Reconnection Address - 6 bytes
CHARACTERISTIC, 2A03, READ | WRITE | DYNAMIC,
// GAP Peripheral Preferred Connection Parameters
CHARACTERISTIC, 2A04, READ | WRITE | DYNAMIC,
2013-10-17 12:42:18 +00:00
PRIMARY_SERVICE, GATT_SERVICE
CHARACTERISTIC, GATT_SERVICE_CHANGED, READ,
SECONDARY_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
2014-02-28 13:55:58 +00:00
CHARACTERISTIC, FF10, READ | WRITE | DYNAMIC,
SECONDARY_SERVICE, 0000FF11-0000-1000-8000-00805F9B34FB
CHARACTERISTIC, FF11, READ | WRITE | DYNAMIC,
//
2014-03-21 11:09:42 +00:00
PRIMARY_SERVICE, FFFF
CHARACTERISTIC, FFFD, READ | WRITE | DYNAMIC,
CHARACTERISTIC, FFFE, READ | WRITE | DYNAMIC,
//
2014-03-21 11:09:42 +00:00
PRIMARY_SERVICE, FFFF
CHARACTERISTIC, FFFD, READ | WRITE | DYNAMIC,
CHARACTERISTIC, FFFE, READ | WRITE | DYNAMIC,
//
// SECONDARY_SERVICE, FFFA
// CHARACTERISTIC, FFFB, READ | WRITE | DYNAMIC,
//
// SECONDARY_SERVICE, FFF9
// INCLUDE_SERVICE, FFFA
//
// SECONDARY_SERVICE, FFF7
// INCLUDE_SERVICE, FFF9
// CHARACTERISTIC, FFF8, READ | WRITE | DYNAMIC,
//
2014-01-25 22:31:26 +00:00
SECONDARY_SERVICE, FFF4
// INCLUDE_SERVICE, FFF7
// INCLUDE_SERVICE, FFFC
// INCLUDE_SERVICE, FFFF
2014-01-25 22:31:26 +00:00
CHARACTERISTIC, FFF5, READ | WRITE | DYNAMIC,
CHARACTERISTIC, FFF6, READ | WRITE | DYNAMIC,
//
// PRIMARY_SERVICE, FFF0
// INCLUDE_SERVICE, FFF4
// CHARACTERISTIC, FFF1, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED | ENCRYPTION_KEY_SIZE_7 | AUTHENTICATION_REQUIRED,
// CHARACTERISTIC, FFF2, READ | WRITE | DYNAMIC,
// CHARACTERISTIC, FFF3, READ | INDICATE,
// CHARACTERISTIC, 00001234-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC,
// Primary Service with 16-bit UUID, included service
PRIMARY_SERVICE, F000
INCLUDE_SERVICE, FFF4
// Characteristics 16 and 128 bit with different authoriztion/authentication/encryption requirements and read/write flags
// - no requirements
2014-01-26 20:20:20 +00:00
CHARACTERISTIC, F100, READ | WRITE | DYNAMIC | NOTIFY | INDICATE | RELIABLE_WRITE,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC,
2014-01-26 20:20:20 +00:00
CHARACTERISTIC, 0000F101-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | NOTIFY | INDICATE | RELIABLE_WRITE,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC,
// - neither read nor writable
CHARACTERISTIC, F102, DYNAMIC,
CHARACTERISTIC_USER_DESCRIPTION, DYNAMIC,
CHARACTERISTIC, 0000F103-0000-1000-8000-00805F9B34FB, DYNAMIC,
CHARACTERISTIC_USER_DESCRIPTION, DYNAMIC,
// - authorization required
CHARACTERISTIC, F104, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
CHARACTERISTIC, 0000F105-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
// - authenthication required
CHARACTERISTIC, F106, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
CHARACTERISTIC, 0000F107-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
// - encryptiont with 128 bit key required
CHARACTERISTIC, F108, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
CHARACTERISTIC, 0000F109-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
2014-01-30 12:27:55 +00:00
// - write only
CHARACTERISTIC, F10A, WRITE | DYNAMIC,
// - read/write, incl. server characteristic configuration, characteristic format (uint8_t, exponent = 0, unitless, Bluetooth SIG, and characteristic aggregate format
2014-01-30 12:27:55 +00:00
CHARACTERISTIC, F10B, READ | WRITE | DYNAMIC,
SERVER_CHARACTERISTIC_CONFIGURATION, READ | WRITE | DYNAMIC,
CHARACTERISTIC_FORMAT, 1, 04, 0, 2700, 1, 0000
CHARACTERISTIC_FORMAT, 2, 0c, 0, 2700, 1, 0000
CHARACTERISTIC_AGGREGATE_FORMAT, 1, 2
2014-01-31 11:16:25 +00:00
// - read/write/write without response
CHARACTERISTIC, F10D, READ | WRITE | WRITE_WITHOUT_RESPONSE | DYNAMIC,
// - read/write without response
CHARACTERISTIC, F10C, READ | WRITE_WITHOUT_RESPONSE | DYNAMIC,
2014-01-30 18:51:28 +00:00
// - read/authenticated signed writes
CHARACTERISTIC, F10E, READ | WRITE | AUTHENTICATED_SIGNED_WRITE | DYNAMIC,
// Primary Service with 128-bit UUID, included service
PRIMARY_SERVICE, 0000F001-0000-1000-8000-00805F9B34FB
INCLUDE_SERVICE, 0000FF10-0000-1000-8000-00805F9B34FB
2014-02-28 13:55:58 +00:00
INCLUDE_SERVICE, 0000FF11-0000-1000-8000-00805F9B34FB
// Characteristics 16 and 128 bit with different authoriztion/authentication/encryption requirements and read/write flags
// - no requirements
2014-03-21 14:51:12 +00:00
CHARACTERISTIC, F200, READ | WRITE | DYNAMIC | NOTIFY | INDICATE | RELIABLE_WRITE | WRITE_WITHOUT_RESPONSE,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC,
2014-01-26 20:20:20 +00:00
CHARACTERISTIC, 0000F201-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | NOTIFY | INDICATE | RELIABLE_WRITE,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC,
// - neither read nor writable
CHARACTERISTIC, F202, DYNAMIC,
CHARACTERISTIC_USER_DESCRIPTION, DYNAMIC,
CHARACTERISTIC, 0000F203-0000-1000-8000-00805F9B34FB, DYNAMIC,
CHARACTERISTIC_USER_DESCRIPTION, DYNAMIC,
// - authorization required
CHARACTERISTIC, F204, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
CHARACTERISTIC, 0000F205-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHORIZATION_REQUIRED,
// - authenthication required
CHARACTERISTIC, F206, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
CHARACTERISTIC, 0000F207-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | AUTHENTICATION_REQUIRED,
// - encryptiont with 128 bit key required
CHARACTERISTIC, F208, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
CHARACTERISTIC, 0000F209-0000-1000-8000-00805F9B34FB, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
CHARACTERISTIC_USER_DESCRIPTION, READ | WRITE | DYNAMIC | ENCRYPTION_KEY_SIZE_16,
2014-01-25 22:31:26 +00:00