A&D Weight Scale

From IoT
Jump to: navigation, search

Go Up to ThingConnect Devices

A&D Weight Scale is a body weight scale from A&D Medical.

Use the TAnDWeightScale component to communicate with the A&D Weight Scale.

Demo Location

You can find the sample projects for the A&D Weight 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\ANDConnect
    • C++: Internet of Things\CPP\Thing Connect\ANDConnect

Supported Services

The A&D Weight Scale component supports the following Bluetooth LE services and characteristics:

Service Characteristic Property Event Read Subscribe Write

Battery Service

Battery Level

BatteryLevel OnBatteryLevelUpdate
Device Information Firmware Revision String FirmwareRevision OnFirmwareRevisionUpdate
Hardware Revision String HardwareRevision OnHardwareRevisionUpdate
IEEE 11073-20601 Regulatory Certification Data List IEEERegulatory OnIEEERegulatoryUpdate
Manufacturer Name String ManufacturerName OnManufacturerNameUpdate
Model Number String ModelNumber OnModelNumberUpdate
Serial Number String SerialNumber OnSerialNumberUpdate
Software Revision String SoftwareRevision OnSoftwareRevisionUpdate
System ID SystemID OnSystemIDUpdate

A&D Weight Scale component supports the following custom services:

Service Property Event Read Subscribe Write Description
Custom Service 1 OnAnDConnectWeightMeasurementUpdate
Returns the TWeightScaleMeasurement data for the weight measurement.
AnDConnectWeightScaleFeature OnAnDConnectWeightScaleFeatureUpdate
Returns the TWeightScaleFeature data for the feature characteristics.
DateTime OnDateTimeUpdate
Date Time characteristic.
Custom Service 2 AnDCustomCommandStatus OnAnDCustomCommandStatusUpdate
Returns the TAnDScaleCommandService data for the custom command and response characteristics.

Custom Data Types

The A&D Weight Scale defines its custom data types in the following unit:

  • Iot.Device.AnDWeightScaleTypes

Custom Weight Scale Measurement Data

The TWeightScaleMeasurement record type contains the custom data as a weight scale measurement characteristic.

  • Value: Raw array of bytes received from the device.
  • MeasurementUnitFlag: Specifies the unit system of the measurement.
    • 0: Kilograms. International system.
    • 1: Pounds. Imperial system.
  • WeightMeasurement: Returns the value of the weight measurement.
  • TimeStampPresentFlag: Indicates whether the TimeStamp value is present or not.
    • 0: Not present
    • 1: Present
  • TimeStamp: Returns the time value with type TDateTime.

Custom Weight Scale Feature Data

The TWeightScaleFeature record type contains the custom features that are supported by the weight scale.

  • Value: Raw array of bytes received from the device.
  • TimeStampSupported: Indicates whether TimeStamp is supported.
    • 0: Not supported.
    • 1: Supported.
  • MultipleUsersSupported: Indicates whether multiple users are supported.
    • 0: Not supported.
    • 1: Supported.
  • BMISupported: Indicates whether BMI data is supported.
    • 0: Not supported.
    • 1: Supported.

Custom Command Service Data

The TAnDScaleCommandService record type contains the command to send to the A&D Weight Scale for the custom services.

  • Value: Raw array of bytes to be sent to the device.
  • CommandType: Type of the command: ReadCommand, WriteCommand, ResponseAtPeripheralOnly.
  • CommandID: Returns the command to handle device setting and status:
    • 1: Set time.
    • 3: Disconnect.
    • 4: Read set time date.
    • 16: Unpair.
    • 17: Unit change.
    • 18 Delete all memory.
    • 19 Set gravity acceleration.
    • 166: Set buffer size.
    • 219: Read device settings.
    • 225: Send buffer data request.
  • WeigthUnit: Unit system set by the constructor.
    • 00: Kilograms.
    • 01: Pounds.
  • GravityAcceleration: Gravity acceleration value set by the constructor.
  • BufferSize: Returns the buffer size.
  • TimeStamp: Time value that was set by the constructor.
  • ReadDeviceSettingsResponse: Returns a TAnDScaleDeviceSettingsResponse record type with the response data.
    • GravityAcceleration: Gravity acceleration value. Valid range is from 9744 to 9999.
    • MeasurementUnit: Measurement unit value set on the device:
      • 00: Kilograms.
      • 01: Pounds.
    • BufferAvailability:
      • 00: No buffer available.
      • 01: Buffer available.
    • CurrentBufferNumber: Current buffer number of the device. Valid range is from 0 to 90.
    • SumOfMeasurements: Total number of measurements.

Device Details

  • Device: A&D Weight Scale
  • Model: UC-352BLE
  • Firmware: CWSP008_110
  • Technology: Bluetooth LE

Known Issues

  • A&D Weight Scale device cannot be paired to a Windows machine. If the target platform of your application is 32-bit Windows or 64-bit Windows, it cannot be paired to the A&D Weight Scale.

See Also