Skip to content

Commit aa1be0d

Browse files
author
awstools
committed
feat(client-iotfleetwise): This release adds floating point support for CAN/OBD signals and adds support for signed OBD signals.
1 parent fdaf7bc commit aa1be0d

File tree

6 files changed

+88
-2
lines changed

6 files changed

+88
-2
lines changed

clients/client-iotfleetwise/src/commands/CreateDecoderManifestCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export interface CreateDecoderManifestCommandOutput extends CreateDecoderManifes
6868
* factor: Number("double"), // required
6969
* length: Number("int"), // required
7070
* name: "STRING_VALUE",
71+
* signalValueType: "INTEGER" || "FLOATING_POINT",
7172
* },
7273
* obdSignal: { // ObdSignal
7374
* pidResponseLength: Number("int"), // required
@@ -79,6 +80,8 @@ export interface CreateDecoderManifestCommandOutput extends CreateDecoderManifes
7980
* byteLength: Number("int"), // required
8081
* bitRightShift: Number("int"),
8182
* bitMaskLength: Number("int"),
83+
* isSigned: true || false,
84+
* signalValueType: "INTEGER" || "FLOATING_POINT",
8285
* },
8386
* messageSignal: { // MessageSignal
8487
* topicName: "STRING_VALUE", // required

clients/client-iotfleetwise/src/commands/ListDecoderManifestSignalsCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export interface ListDecoderManifestSignalsCommandOutput extends ListDecoderMani
6060
* // factor: Number("double"), // required
6161
* // length: Number("int"), // required
6262
* // name: "STRING_VALUE",
63+
* // signalValueType: "INTEGER" || "FLOATING_POINT",
6364
* // },
6465
* // obdSignal: { // ObdSignal
6566
* // pidResponseLength: Number("int"), // required
@@ -71,6 +72,8 @@ export interface ListDecoderManifestSignalsCommandOutput extends ListDecoderMani
7172
* // byteLength: Number("int"), // required
7273
* // bitRightShift: Number("int"),
7374
* // bitMaskLength: Number("int"),
75+
* // isSigned: true || false,
76+
* // signalValueType: "INTEGER" || "FLOATING_POINT",
7477
* // },
7578
* // messageSignal: { // MessageSignal
7679
* // topicName: "STRING_VALUE", // required

clients/client-iotfleetwise/src/commands/UpdateDecoderManifestCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface UpdateDecoderManifestCommandOutput extends UpdateDecoderManifes
5454
* factor: Number("double"), // required
5555
* length: Number("int"), // required
5656
* name: "STRING_VALUE",
57+
* signalValueType: "INTEGER" || "FLOATING_POINT",
5758
* },
5859
* obdSignal: { // ObdSignal
5960
* pidResponseLength: Number("int"), // required
@@ -65,6 +66,8 @@ export interface UpdateDecoderManifestCommandOutput extends UpdateDecoderManifes
6566
* byteLength: Number("int"), // required
6667
* bitRightShift: Number("int"),
6768
* bitMaskLength: Number("int"),
69+
* isSigned: true || false,
70+
* signalValueType: "INTEGER" || "FLOATING_POINT",
6871
* },
6972
* messageSignal: { // MessageSignal
7073
* topicName: "STRING_VALUE", // required
@@ -131,6 +134,7 @@ export interface UpdateDecoderManifestCommandOutput extends UpdateDecoderManifes
131134
* factor: Number("double"), // required
132135
* length: Number("int"), // required
133136
* name: "STRING_VALUE",
137+
* signalValueType: "INTEGER" || "FLOATING_POINT",
134138
* },
135139
* obdSignal: {
136140
* pidResponseLength: Number("int"), // required
@@ -142,6 +146,8 @@ export interface UpdateDecoderManifestCommandOutput extends UpdateDecoderManifes
142146
* byteLength: Number("int"), // required
143147
* bitRightShift: Number("int"),
144148
* bitMaskLength: Number("int"),
149+
* isSigned: true || false,
150+
* signalValueType: "INTEGER" || "FLOATING_POINT",
145151
* },
146152
* messageSignal: {
147153
* topicName: "STRING_VALUE", // required

clients/client-iotfleetwise/src/models/models_0.ts

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2354,6 +2354,20 @@ export interface CanInterface {
23542354
protocolVersion?: string | undefined;
23552355
}
23562356

2357+
/**
2358+
* @public
2359+
* @enum
2360+
*/
2361+
export const SignalValueType = {
2362+
FLOATING_POINT: "FLOATING_POINT",
2363+
INTEGER: "INTEGER",
2364+
} as const;
2365+
2366+
/**
2367+
* @public
2368+
*/
2369+
export type SignalValueType = (typeof SignalValueType)[keyof typeof SignalValueType];
2370+
23572371
/**
23582372
* <p>Information about a single controller area network (CAN) signal and the messages it
23592373
* receives and transmits.</p>
@@ -2373,7 +2387,7 @@ export interface CanSignal {
23732387
isBigEndian: boolean | undefined;
23742388

23752389
/**
2376-
* <p>Whether the message data is specified as a signed value.</p>
2390+
* <p>Determines whether the message is signed (<code>true</code>) or not (<code>false</code>). If it's signed, the message can represent both positive and negative numbers. The <code>isSigned</code> parameter only applies to the <code>INTEGER</code> raw signal type, and it doesn't affect the <code>FLOATING_POINT</code> raw signal type.</p>
23772391
* @public
23782392
*/
23792393
isSigned: boolean | undefined;
@@ -2413,6 +2427,12 @@ export interface CanSignal {
24132427
* @public
24142428
*/
24152429
name?: string | undefined;
2430+
2431+
/**
2432+
* <p>The value type of the signal. The default value is <code>INTEGER</code>.</p>
2433+
* @public
2434+
*/
2435+
signalValueType?: SignalValueType | undefined;
24162436
}
24172437

24182438
/**
@@ -2819,6 +2839,18 @@ export interface ObdSignal {
28192839
* @public
28202840
*/
28212841
bitMaskLength?: number | undefined;
2842+
2843+
/**
2844+
* <p>Determines whether the message is signed (<code>true</code>) or not (<code>false</code>). If it's signed, the message can represent both positive and negative numbers. The <code>isSigned</code> parameter only applies to the <code>INTEGER</code> raw signal type, and it doesn't affect the <code>FLOATING_POINT</code> raw signal type. The default value is <code>false</code>.</p>
2845+
* @public
2846+
*/
2847+
isSigned?: boolean | undefined;
2848+
2849+
/**
2850+
* <p>The value type of the signal. The default value is <code>INTEGER</code>.</p>
2851+
* @public
2852+
*/
2853+
signalValueType?: SignalValueType | undefined;
28222854
}
28232855

28242856
/**

clients/client-iotfleetwise/src/protocols/Aws_json1_0.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2477,6 +2477,7 @@ const se_CanSignal = (input: CanSignal, context: __SerdeContext): any => {
24772477
messageId: [],
24782478
name: [],
24792479
offset: __serializeFloat,
2480+
signalValueType: [],
24802481
startBit: [],
24812482
});
24822483
};
@@ -2754,11 +2755,13 @@ const se_ObdSignal = (input: ObdSignal, context: __SerdeContext): any => {
27542755
bitMaskLength: [],
27552756
bitRightShift: [],
27562757
byteLength: [],
2758+
isSigned: [],
27572759
offset: __serializeFloat,
27582760
pid: [],
27592761
pidResponseLength: [],
27602762
scaling: __serializeFloat,
27612763
serviceMode: [],
2764+
signalValueType: [],
27622765
startByte: [],
27632766
});
27642767
};
@@ -3087,6 +3090,7 @@ const de_CanSignal = (output: any, context: __SerdeContext): CanSignal => {
30873090
messageId: __expectInt32,
30883091
name: __expectString,
30893092
offset: __limitedParseDouble,
3093+
signalValueType: __expectString,
30903094
startBit: __expectInt32,
30913095
}) as any;
30923096
};
@@ -3635,11 +3639,13 @@ const de_ObdSignal = (output: any, context: __SerdeContext): ObdSignal => {
36353639
bitMaskLength: __expectInt32,
36363640
bitRightShift: __expectInt32,
36373641
byteLength: __expectInt32,
3642+
isSigned: __expectBoolean,
36383643
offset: __limitedParseDouble,
36393644
pid: __expectInt32,
36403645
pidResponseLength: __expectInt32,
36413646
scaling: __limitedParseDouble,
36423647
serviceMode: __expectInt32,
3648+
signalValueType: __expectString,
36433649
startByte: __expectInt32,
36443650
}) as any;
36453651
};

codegen/sdk-codegen/aws-models/iotfleetwise.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@
608608
"target": "smithy.api#PrimitiveBoolean",
609609
"traits": {
610610
"smithy.api#default": false,
611-
"smithy.api#documentation": "<p>Whether the message data is specified as a signed value.</p>",
611+
"smithy.api#documentation": "<p>Determines whether the message is signed (<code>true</code>) or not (<code>false</code>). If it's signed, the message can represent both positive and negative numbers. The <code>isSigned</code> parameter only applies to the <code>INTEGER</code> raw signal type, and it doesn't affect the <code>FLOATING_POINT</code> raw signal type.</p>",
612612
"smithy.api#required": {}
613613
}
614614
},
@@ -647,6 +647,12 @@
647647
"traits": {
648648
"smithy.api#documentation": "<p>The name of the signal.</p>"
649649
}
650+
},
651+
"signalValueType": {
652+
"target": "com.amazonaws.iotfleetwise#SignalValueType",
653+
"traits": {
654+
"smithy.api#documentation": "<p>The value type of the signal. The default value is <code>INTEGER</code>.</p>"
655+
}
650656
}
651657
},
652658
"traits": {
@@ -7172,6 +7178,19 @@
71727178
"traits": {
71737179
"smithy.api#documentation": "<p>The number of bits to mask in a message.</p>"
71747180
}
7181+
},
7182+
"isSigned": {
7183+
"target": "smithy.api#PrimitiveBoolean",
7184+
"traits": {
7185+
"smithy.api#default": null,
7186+
"smithy.api#documentation": "<p>Determines whether the message is signed (<code>true</code>) or not (<code>false</code>). If it's signed, the message can represent both positive and negative numbers. The <code>isSigned</code> parameter only applies to the <code>INTEGER</code> raw signal type, and it doesn't affect the <code>FLOATING_POINT</code> raw signal type. The default value is <code>false</code>.</p>"
7187+
}
7188+
},
7189+
"signalValueType": {
7190+
"target": "com.amazonaws.iotfleetwise#SignalValueType",
7191+
"traits": {
7192+
"smithy.api#documentation": "<p>The value type of the signal. The default value is <code>INTEGER</code>.</p>"
7193+
}
71757194
}
71767195
},
71777196
"traits": {
@@ -8234,6 +8253,23 @@
82348253
}
82358254
}
82368255
},
8256+
"com.amazonaws.iotfleetwise#SignalValueType": {
8257+
"type": "enum",
8258+
"members": {
8259+
"INTEGER": {
8260+
"target": "smithy.api#Unit",
8261+
"traits": {
8262+
"smithy.api#enumValue": "INTEGER"
8263+
}
8264+
},
8265+
"FLOATING_POINT": {
8266+
"target": "smithy.api#Unit",
8267+
"traits": {
8268+
"smithy.api#enumValue": "FLOATING_POINT"
8269+
}
8270+
}
8271+
}
8272+
},
82378273
"com.amazonaws.iotfleetwise#SpoolingMode": {
82388274
"type": "enum",
82398275
"members": {

0 commit comments

Comments
 (0)