Iot.Device.TaylorSmartScale.TTaylorSmartScale

From IoT
Jump to: navigation, search

Go Up to ThingConnect Devices


Taylor Smart Scale is a scale with biometric calculator.

Use the TTaylorSmartScale component to communicate with the Taylor Smart Scale.

Demo Location

You can find the sample projects for the Taylor Smart Scale in the following IoT demo directories after installing the component:

  • Start | Programs | Embarcadero RAD Studio Berlin | Samples and then navigate to:
    • Delphi: Internet of Things\Object Pascal\Thing Connect\TaylorSmartScale
    • C++: Internet of Things\CPP\Thing Connect\TaylorSmartScale

Supported Services

The Taylor Smart Scale supports the following Bluetooth LE services and characteristics:

Service Characteristic Property Event Read Subscribe Write
Device Information Firmware Revision String FirmwareRevision OnFirmwareRevisionUpdate
YesSubscriptionFeature.png
Hardware Revision String HardwareRevision OnHardwareRevisionUpdate
YesSubscriptionFeature.png
IEEE 11073-20601 Regulatory Certification Data List IEEERegulatory OnIEEERegulatoryUpdate
YesSubscriptionFeature.png
Manufacturer Name String ManufacturerName OnManufacturerNameUpdate
YesSubscriptionFeature.png
Model Number String ModelNumber OnModelNumberUpdate
YesSubscriptionFeature.png
PnP ID PnPID OnPnPIDUpdate
YesSubscriptionFeature.png
Serial Number String SerialNumber OnSerialNumberUpdate
YesSubscriptionFeature.png
Software Revision String SoftwareRevision OnSoftwareRevisionUpdate
YesSubscriptionFeature.png
System ID SystemID OnSystemIDUpdate
YesSubscriptionFeature.png

The Taylor Smart Scale component supports the following custom services:

Service Property Event Read Subscribe Write Description
TaylorSmart Service Feature OnFeatureUpdate
YesSubscriptionFeature.png
Returns the type of device (Taylor Smart Scale).
Command
YesSubscriptionFeature.png
Sends a command to the device.
OnAppendMeasurementUpdate
YesSubscriptionFeature.png
Returns the estimated body composition measurements from the device.
OnResponseUpdate
YesSubscriptionFeature.png
Returns the response data from the device.
OnMeasurementUpdate
YesSubscriptionFeature.png
Returns the user measurements from the device.

Device Details

  • Device: Taylor Smart
  • Model: Taylor Smart Scale
  • Firmware: 3.8
  • Technology: Bluetooth LE

Custom Data Types

The Taylor Smart Scale defines its custom data types in the following unit:

  • Iot.Device.TaylorSmartScaleTypes

Taylor Smart Scale Response

The TTaylorSmartScaleResponse type returns the response to the request data, received from the Taylor Smart Scale.

  • Value: Raw array of bytes received from the device.

Taylor Smart Scale Command

The TTaylorSmartScaleCommand type contains the command data to send to the Taylor Smart Scale.

  • Value: Raw array of bytes to be sent to the device.

Taylor Smart Scale Measurement

The TTaylorSmartScaleMeasurement type returns the user measurements from the device.

  • Value: Raw array of bytes received from the device.
  • PresentProperties: Set of properties in the measurement.
    • Possible values are: Impedance1, Impedance2, MeasurementStatus, Timestamp, UnitSystem, UserNumber, Weight
  • UnitSystem: Preferred user unit system:
    • 0: Kilograms.
    • 1: Pounds.
    • 2: Stones.
  • Weight: Weight measurement returned from the device, in the selected UnitSystem.
  • Timestamp: System.TDateTime when the measurement was taken.
  • Impedance1: First feet impedance value from the Taylor Smart device measurement.
  • Impedance2: Feet impedance value from the Taylor Smart device measurement.
  • UserNumber: User profile number of the measurement.
  • MeasurementStatus: Measurement reliability status.

Taylor Smart Scale Append Measurement

The TTaylorSmartScaleAppendMeasurement type returns the estimated body composition measurements from the device.

  • Value: Raw array of bytes received from the device.
  • PresentProperties: Set of properties in the measurement.
    • Possible values are: BasalMeta, Battery, BodyFat, BodyWater, BoneDensity, MuscleMass, Timestamp, UserNumber, VisceralFat
  • Timestamp: System.TDateTime when the append measurement was taken.
  • UserNumber: User profile number of the measurement.
  • BasalMeta: The estimated calories of the measurement.
  • BodyFat: Percentage body fat value.
  • BodyWater: Percentage of the total body water in the body.
  • VisceralFat: Percentage of the visceral fat.
  • MuscleMass: Total muscle mass percentage estimation.
  • BoneDensity: Percentage of the total bone density calculated from the measurement.
  • Battery: Battery level of the device.

Device Specific Information

  • Pairing: Press and hold the button on the back of the scale to start Bluetooth and initiate the pairing mode. This mode allows you to retrieve information (serial number, hardware revision etc.) and to set a personalized broadcast name. If you define the BroadCastName const, pairing is optional.
  • Measuring: Press SEL on the scale, select a user and weigh yourself to start Bluetooth.
  • Be sure BroadCastName const has a correct value. To get the BroadCastName and DeviceName, run a Bluetooth scanner. You can deploy the BLEScanner demo project found in the Samples directory (\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\Bluetooth\BLEScanner).

Here is an example of what you are looking for:

Mode BLEScanner Const

PAIR

113193

DeviceName: string = '13193';

BroadCastName: Does not apply

MEASUREMENT

013193C39C74D1

DeviceName: string = '13193';

BroadCastName: TBytes = [$C3, $9C, $74, $D1]

See Also