Viewer

​The material contained on this page is informative only. Authoritative compliance information is contained in the applicable Bluetooth specification.

org.bluetooth.descriptor.valid_range
Last Modified: 2013-11-22 Approved: Yes

Name: Valid Range

Type: org.bluetooth.descriptor.valid_rangeDownload / View

Assigned Number: 0x2906

Abstract:

The Characteristic Valid Range descriptor is used for defining the range of a characteristics. Two mandatory fields are contained (upper and lower bounds) which define the range.

Summary:

If the Characteristic Value to which this descriptor is attached has a fixed exponent, then the values in this descriptor have the same exponent. The first value in the Valid Range descriptor represents the lower inclusive value of the range. The second value represents the higher inclusive value of the range. The data type and units for lower inclusive value and the upper inclusive value are identical to the data type and units of the characteristic for which it is used.

Examples:

When used with the Measurement Interval characteristic, the Valid Range descriptor is formatted using a uint16. If the valid range has a Minimum Value of 10 minutes (600 seconds) and a Maximum Value of 2 hours (7200 seconds) the value of the Valid Range descriptor would be expressed as: 0x58 0x02 0x20 0x1C

A characteristic that is formatted using a nibble with a fixed decimal-exponent that has a Valid Range of 2 to 13 has a Valid Range descriptor defined as: 0x02 0x0D

A characteristic value that is formatted using an sint16 with a fixed exponent of -1 that has a Valid Range of -40 to +85 is expressed as: 0x70 0xFE 0x52 0x03

Value Fields

Names Field Requirement Format Minimum Value Maximum Value Additional Information
Lower inclusive value
Information:
The lower bound is the same format as the characteristic the descriptor describes.
Mandatory
characteristic N/A N/A None
Upper inclusive value
Information:
The upper bound is the same format as the characteristic the descriptor describes.
Mandatory
characteristic N/A N/A None