ObdSignalProperty Struct
Information about signal messages using the on-board diagnostics (OBD) II protocol in a vehicle.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotfleetwise as iotfleetwise } from 'aws-cdk-lib';
const obdSignalProperty: iotfleetwise.CfnDecoderManifest.ObdSignalProperty = {
byteLength: 'byteLength',
offset: 'offset',
pid: 'pid',
pidResponseLength: 'pidResponseLength',
scaling: 'scaling',
serviceMode: 'serviceMode',
startByte: 'startByte',
// the properties below are optional
bitMaskLength: 'bitMaskLength',
bitRightShift: 'bitRightShift',
isSigned: 'isSigned',
signalValueType: 'signalValueType',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotfleetwise as iotfleetwise
obd_signal_property = iotfleetwise.CfnDecoderManifest.ObdSignalProperty(
byte_length="byteLength",
offset="offset",
pid="pid",
pid_response_length="pidResponseLength",
scaling="scaling",
service_mode="serviceMode",
start_byte="startByte",
# the properties below are optional
bit_mask_length="bitMaskLength",
bit_right_shift="bitRightShift",
is_signed="isSigned",
signal_value_type="signalValueType"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotfleetwise.*;
ObdSignalProperty obdSignalProperty = ObdSignalProperty.builder()
.byteLength("byteLength")
.offset("offset")
.pid("pid")
.pidResponseLength("pidResponseLength")
.scaling("scaling")
.serviceMode("serviceMode")
.startByte("startByte")
// the properties below are optional
.bitMaskLength("bitMaskLength")
.bitRightShift("bitRightShift")
.isSigned("isSigned")
.signalValueType("signalValueType")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTFleetWise;
var obdSignalProperty = new ObdSignalProperty {
ByteLength = "byteLength",
Offset = "offset",
Pid = "pid",
PidResponseLength = "pidResponseLength",
Scaling = "scaling",
ServiceMode = "serviceMode",
StartByte = "startByte",
// the properties below are optional
BitMaskLength = "bitMaskLength",
BitRightShift = "bitRightShift",
IsSigned = "isSigned",
SignalValueType = "signalValueType"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
obdSignalProperty := &ObdSignalProperty{
ByteLength: jsii.String("byteLength"),
Offset: jsii.String("offset"),
Pid: jsii.String("pid"),
PidResponseLength: jsii.String("pidResponseLength"),
Scaling: jsii.String("scaling"),
ServiceMode: jsii.String("serviceMode"),
StartByte: jsii.String("startByte"),
// the properties below are optional
BitMaskLength: jsii.String("bitMaskLength"),
BitRightShift: jsii.String("bitRightShift"),
IsSigned: jsii.String("isSigned"),
SignalValueType: jsii.String("signalValueType"),
}
Properties
bitMaskLengthoptionalstringbit_mask_lengthoptionalstrbitMaskLengthoptionalStringBitMaskLengthoptionalstringBitMaskLengthoptional*string #The number of bits to mask in a message.
bitRightShiftoptionalstringbit_right_shiftoptionalstrbitRightShiftoptionalStringBitRightShiftoptionalstringBitRightShiftoptional*string #The number of positions to shift bits in the message.
The length of a message.
isSignedoptionalstring | boolean | IResolvableis_signedoptionaltyping.Union[str, bool, IResolvable]isSignedoptionalStringIsSignedoptionalstringIsSignedoptionalinterface{} #Determines whether the message is signed ( `true` ) or not ( `false` ).
If it's signed, the message can represent both positive and negative numbers. The isSigned parameter only applies to the INTEGER raw signal type, and it doesn't affect the FLOATING_POINT raw signal type. The default value is false .
The offset used to calculate the signal value.
Combined with scaling, the calculation is value = raw_value * scaling + offset .
The diagnostic code used to request data from a vehicle for this signal.
pidResponseLengthstringpid_response_lengthstrpidResponseLengthStringPidResponseLengthstringPidResponseLength*string required #The length of the requested data.
A multiplier used to decode the message.
The mode of operation (diagnostic service) in a message.
signalValueTypeoptionalstringsignal_value_typeoptionalstrsignalValueTypeoptionalStringSignalValueTypeoptionalstringSignalValueTypeoptional*string #The value type of the signal.
The default value is INTEGER .
Indicates the beginning of the message.