Signal definition examples for General Sensor type

In the examples below, signal definitions that convert the generic sensor type data to Float type data are registered.

* In intdash, acceleration, geolocation, and other data obtained from iOS device sensors are treated as “General Sensor” type data.

List of data types

The following data types are provided for general sensor data.

ID

Name

0x0001

Acceleration

0x0002

Acceleration Including Gravity

0x0003

Gravity

0x0004

Rotation Rate

0x0005

Orientation Angle

0x0006

GeoLocation Coordinate

0x0007

GeoLocation Altitude

0x0008

GeoLocation Accuracy

0x0009

GeoLocation Heading

0x000A

GeoLocation Speed

Overview of the signal definitions

Item

Setting contents

Type of time series data to be converted

intdash.DataType.general_sensor

Conversion to be applied

intdash.ConversionNumFixedPoint

Register signal definitions

Create an access object for signal definitions.

import intdash

client = intdash.Client(
    url = "https://example.intdash.jp",
    edge_token = "your_token",
)

sig = client.signals

Register each signal definition as shown below.

0001 Acceleration

3-axis acceleration acting on an object.

s = sig.create(
    label="sp_ACCX",
    data_type=intdash.DataType.general_sensor,
    data_id="0001",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_ACCY",
    data_type=intdash.DataType.general_sensor,
    data_id="0001",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_ACCZ",
    data_type=intdash.DataType.general_sensor,
    data_id="0001",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=64,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

0002 Acceleration Including Gravity

3-axis acceleration acting on an object, including gravity.

s = sig.create(
    label="sp_AGX",
    data_type=intdash.DataType.general_sensor,
    data_id="0002",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_AGY",
    data_type=intdash.DataType.general_sensor,
    data_id="0002",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_AGZ",
    data_type=intdash.DataType.general_sensor,
    data_id="0002",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=64,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

0003 Gravity

3-axis gravitational acceleration acting on an object.

s = sig.create(
    label="sp_GX",
    data_type=intdash.DataType.general_sensor,
    data_id="0003",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_GY",
    data_type=intdash.DataType.general_sensor,
    data_id="0003",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_GZ",
    data_type=intdash.DataType.general_sensor,
    data_id="0003",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=64,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

0004 Rotation Rate

Three-axis rotational speed of the object.

s = sig.create(
    label="sp_RRA",
    data_type=intdash.DataType.general_sensor,
    data_id="0004",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.00001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_RRB",
    data_type=intdash.DataType.general_sensor,
    data_id="0004",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.00001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_RRG",
    data_type=intdash.DataType.general_sensor,
    data_id="0004",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=64,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.00001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

0005 Orientation Angle

Rotation angle of the three axes of the object.

s = sig.create(
    label="sp_OAA",
    data_type=intdash.DataType.general_sensor,
    data_id="0005",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_OAB",
    data_type=intdash.DataType.general_sensor,
    data_id="0005",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_OAG",
    data_type=intdash.DataType.general_sensor,
    data_id="0005",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=64,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

0006 GeoLocation Coordinate

Geographic location - coordinates

s = sig.create(
    label="sp_lat",
    data_type=intdash.DataType.general_sensor,
    data_id="0006",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.0000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_lng",
    data_type=intdash.DataType.general_sensor,
    data_id="0006",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.0000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

0007 GeoLocation Altitude

Geographic location - altitude

s = sig.create(
    label="sp_alt",
    data_type=intdash.DataType.general_sensor,
    data_id="0007",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

0008 GeoLocation Accuracy

Geographic location - accuracy

s = sig.create(
    label="sp_aoc",
    data_type=intdash.DataType.general_sensor,
    data_id="0008",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)
s = sig.create(
    label="sp_aoa",
    data_type=intdash.DataType.general_sensor,
    data_id="0008",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

0009 GeoLocation Heading

Geographical location - heading

s = sig.create(
    label="sp_head",
    data_type=intdash.DataType.general_sensor,
    data_id="0009",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

000A GeoLocation Speed

Geographic location - travel speed

s = sig.create(
    label="sp_spd",
    data_type=intdash.DataType.general_sensor,
    data_id="000A",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)