jooby-codec 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CommandBinaryBuffer.d.ts +7 -5
- package/dist/CommandBinaryBuffer.js +31 -23
- package/dist/CommandBinaryBuffer.js.map +1 -1
- package/dist/commands/downlink/GetArchiveDaysMC.d.ts +5 -8
- package/dist/commands/downlink/GetArchiveDaysMC.js +13 -2
- package/dist/commands/downlink/GetArchiveDaysMC.js.map +1 -1
- package/dist/commands/downlink/GetArchiveHoursMC.d.ts +5 -8
- package/dist/commands/downlink/GetArchiveHoursMC.js +13 -2
- package/dist/commands/downlink/GetArchiveHoursMC.js.map +1 -1
- package/dist/commands/downlink/GetExAbsArchiveDaysMC.d.ts +6 -8
- package/dist/commands/downlink/GetExAbsArchiveDaysMC.js +14 -2
- package/dist/commands/downlink/GetExAbsArchiveDaysMC.js.map +1 -1
- package/dist/commands/downlink/GetExAbsArchiveHoursMC.d.ts +4 -7
- package/dist/commands/downlink/GetExAbsArchiveHoursMC.js +12 -1
- package/dist/commands/downlink/GetExAbsArchiveHoursMC.js.map +1 -1
- package/dist/commands/downlink/GetParameter.js +1 -1
- package/dist/commands/downlink/SetParameter.js +6 -6
- package/dist/commands/downlink/SetParameter.js.map +1 -1
- package/dist/commands/uplink/CurrentMC.d.ts +0 -1
- package/dist/commands/uplink/CurrentMC.js +9 -10
- package/dist/commands/uplink/CurrentMC.js.map +1 -1
- package/dist/commands/uplink/{DataDayMC.d.ts → DayMC.d.ts} +14 -14
- package/dist/commands/uplink/{DataDayMC.js → DayMC.js} +16 -16
- package/dist/commands/uplink/DayMC.js.map +1 -0
- package/dist/commands/uplink/ExAbsCurrentMC.d.ts +1 -3
- package/dist/commands/uplink/ExAbsCurrentMC.js +4 -6
- package/dist/commands/uplink/ExAbsCurrentMC.js.map +1 -1
- package/dist/commands/uplink/ExAbsDayMC.d.ts +2 -4
- package/dist/commands/uplink/ExAbsDayMC.js +5 -7
- package/dist/commands/uplink/ExAbsDayMC.js.map +1 -1
- package/dist/commands/uplink/ExAbsHourMC.d.ts +2 -2
- package/dist/commands/uplink/ExAbsHourMC.js +7 -7
- package/dist/commands/uplink/ExAbsHourMC.js.map +1 -1
- package/dist/commands/uplink/GetArchiveDaysMCResponse.d.ts +1 -1
- package/dist/commands/uplink/GetArchiveDaysMCResponse.js +3 -3
- package/dist/commands/uplink/GetArchiveHoursMCResponse.d.ts +3 -11
- package/dist/commands/uplink/GetArchiveHoursMCResponse.js +6 -6
- package/dist/commands/uplink/GetArchiveHoursMCResponse.js.map +1 -1
- package/dist/commands/uplink/GetExAbsArchiveDaysMCResponse.d.ts +1 -1
- package/dist/commands/uplink/GetExAbsArchiveDaysMCResponse.js +3 -3
- package/dist/commands/uplink/GetExAbsArchiveDaysMCResponse.js.map +1 -1
- package/dist/commands/uplink/GetExAbsArchiveHoursMCResponse.js +1 -1
- package/dist/commands/uplink/GetParameterResponse.js +4 -4
- package/dist/commands/uplink/{DataHourMC.d.ts → HourMC.d.ts} +13 -13
- package/dist/commands/uplink/{DataHourMC.js → HourMC.js} +19 -19
- package/dist/commands/uplink/HourMC.js.map +1 -0
- package/dist/commands/uplink/NewEvent.js +6 -4
- package/dist/commands/uplink/NewEvent.js.map +1 -1
- package/dist/commands/uplink/index.d.ts +2 -2
- package/dist/commands/uplink/index.js +2 -2
- package/dist/commands/uplink/index.js.map +1 -1
- package/dist/constants/deviceParameters.d.ts +4 -4
- package/dist/constants/deviceParameters.js +4 -4
- package/dist/constants/deviceParameters.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +2 -2
- package/dist/commands/uplink/DataDayMC.js.map +0 -1
- package/dist/commands/uplink/DataHourMC.js.map +0 -1
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import Command from '../../Command.js';
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
2
|
import { TTime2000 } from '../../utils/time.js';
|
|
3
3
|
/**
|
|
4
4
|
* GetExAbsArchiveHoursMC command parameters
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* // request for 2 hours archive values from channel #1 from 2023-12-23T12:00:00.000Z or 756648000 seconds since 2000 year
|
|
8
|
-
* {channelList: [0], hours: 2, startTime: 756648000}
|
|
9
5
|
*/
|
|
10
6
|
interface IGetExAbsArchiveHoursMCParameters {
|
|
11
7
|
/** amount of hours to retrieve */
|
|
12
8
|
hours: number;
|
|
13
9
|
startTime: TTime2000;
|
|
14
|
-
/** array of channelList
|
|
10
|
+
/** array of channelList index numbers */
|
|
15
11
|
channelList: Array<number>;
|
|
16
12
|
}
|
|
17
13
|
/**
|
|
@@ -21,7 +17,7 @@ interface IGetExAbsArchiveHoursMCParameters {
|
|
|
21
17
|
* ```js
|
|
22
18
|
* import GetExAbsArchiveHoursMC from 'jooby-codec/commands/downlink/GetExAbsArchiveHoursMC';
|
|
23
19
|
*
|
|
24
|
-
* const parameters = {channelList: [
|
|
20
|
+
* const parameters = {channelList: [1], hours: 1, startTime: 756648000};
|
|
25
21
|
* const command = new GetExAbsArchiveHoursMC(parameters);
|
|
26
22
|
*
|
|
27
23
|
* // output command binary in hex representation
|
|
@@ -36,6 +32,7 @@ declare class GetExAbsArchiveHoursMC extends Command {
|
|
|
36
32
|
constructor(parameters: IGetExAbsArchiveHoursMCParameters);
|
|
37
33
|
static readonly id = 3103;
|
|
38
34
|
static readonly directionType = 1;
|
|
35
|
+
static readonly examples: TCommandExampleList;
|
|
39
36
|
static readonly hasParameters = true;
|
|
40
37
|
static fromBytes(data: Uint8Array): GetExAbsArchiveHoursMC;
|
|
41
38
|
toBytes(): Uint8Array;
|
|
@@ -5,6 +5,16 @@ import { getSecondsFromDate, getDateFromSeconds } from '../../utils/time.js';
|
|
|
5
5
|
// TODO: rework extended headers detection
|
|
6
6
|
const COMMAND_ID = 0x0c1f;
|
|
7
7
|
const COMMAND_BODY_SIZE = 4;
|
|
8
|
+
const examples = [
|
|
9
|
+
{
|
|
10
|
+
name: 'downlink command 0xc1f:GetExAbsArchiveHoursMC',
|
|
11
|
+
parameters: { channelList: [1], hours: 1, startTime: 756648000 },
|
|
12
|
+
hex: {
|
|
13
|
+
header: '1f 0c 04',
|
|
14
|
+
body: '2f 97 0c 01'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
];
|
|
8
18
|
/**
|
|
9
19
|
* Downlink command.
|
|
10
20
|
*
|
|
@@ -12,7 +22,7 @@ const COMMAND_BODY_SIZE = 4;
|
|
|
12
22
|
* ```js
|
|
13
23
|
* import GetExAbsArchiveHoursMC from 'jooby-codec/commands/downlink/GetExAbsArchiveHoursMC';
|
|
14
24
|
*
|
|
15
|
-
* const parameters = {channelList: [
|
|
25
|
+
* const parameters = {channelList: [1], hours: 1, startTime: 756648000};
|
|
16
26
|
* const command = new GetExAbsArchiveHoursMC(parameters);
|
|
17
27
|
*
|
|
18
28
|
* // output command binary in hex representation
|
|
@@ -57,6 +67,7 @@ class GetExAbsArchiveHoursMC extends Command {
|
|
|
57
67
|
}
|
|
58
68
|
GetExAbsArchiveHoursMC.id = COMMAND_ID;
|
|
59
69
|
GetExAbsArchiveHoursMC.directionType = DOWNLINK;
|
|
70
|
+
GetExAbsArchiveHoursMC.examples = examples;
|
|
60
71
|
GetExAbsArchiveHoursMC.hasParameters = true;
|
|
61
72
|
export default GetExAbsArchiveHoursMC;
|
|
62
73
|
//# sourceMappingURL=GetExAbsArchiveHoursMC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetExAbsArchiveHoursMC.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetExAbsArchiveHoursMC.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GetExAbsArchiveHoursMC.js","sourceRoot":"","sources":["../../../src/commands/downlink/GetExAbsArchiveHoursMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAA+B,MAAM,8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}
|
|
13
13
|
},
|
|
14
|
-
hex: { header: '03
|
|
14
|
+
hex: { header: '03 05', body: '01 00 00 00 06' }
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
name: 'set day checkout hour to 12:00',
|
|
@@ -79,11 +79,11 @@ const examples = [
|
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
name: 'enable sending absolute data',
|
|
82
|
-
parameters: { id: deviceParameters.
|
|
82
|
+
parameters: { id: deviceParameters.ABSOLUTE_DATA_ENABLE, data: { status: 1 } },
|
|
83
83
|
hex: { header: '03 02', body: '18 01' }
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
name: 'set
|
|
86
|
+
name: 'set device serial number',
|
|
87
87
|
parameters: {
|
|
88
88
|
id: deviceParameters.SERIAL_NUMBER,
|
|
89
89
|
data: { value: '1b 0a 3e dc 3e 22' }
|
|
@@ -112,15 +112,15 @@ const examples = [
|
|
|
112
112
|
id: deviceParameters.INITIAL_DATA_MULTI_CHANNEL,
|
|
113
113
|
data: { value: 2032, meterValue: 402, pulseCoefficient: 1000, channel: 1 }
|
|
114
114
|
},
|
|
115
|
-
hex: { header: '03 0b', body: '1d
|
|
115
|
+
hex: { header: '03 0b', body: '1d 00 00 00 01 92 80 00 00 07 f0' }
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
name: 'disable sending absolute data from 2 channel',
|
|
119
119
|
parameters: {
|
|
120
|
-
id: deviceParameters.
|
|
120
|
+
id: deviceParameters.ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL,
|
|
121
121
|
data: { status: 0, channel: 2 }
|
|
122
122
|
},
|
|
123
|
-
hex: { header: '03 03', body: '1e
|
|
123
|
+
hex: { header: '03 03', body: '1e 01 00' }
|
|
124
124
|
}
|
|
125
125
|
];
|
|
126
126
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetParameter.js","sourceRoot":"","sources":["../../../src/commands/downlink/SetParameter.ts"],"names":[],"mappings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,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;QAE9F,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAErC,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAClE,CAAC;;AAvBe,eAAE,GAAG,UAAU,CAAC;AAEhB,0BAAa,GAAG,QAAQ,CAAC;AAEzB,qBAAQ,GAAG,QAAQ,CAAC;AAEpB,0BAAa,GAAG,IAAI,CAAC;AAqBzC,eAAe,YAAY,CAAC"}
|
|
@@ -9,25 +9,25 @@ const examples = [
|
|
|
9
9
|
name: '4 first channels',
|
|
10
10
|
parameters: {
|
|
11
11
|
channelList: [
|
|
12
|
-
{ index:
|
|
13
|
-
{ index:
|
|
14
|
-
{ index:
|
|
15
|
-
{ index:
|
|
12
|
+
{ index: 1, value: 131 },
|
|
13
|
+
{ index: 2, value: 8 },
|
|
14
|
+
{ index: 3, value: 10 },
|
|
15
|
+
{ index: 4, value: 12 }
|
|
16
16
|
]
|
|
17
17
|
},
|
|
18
|
-
hex: { header: '18 06', body: '0f
|
|
18
|
+
hex: { header: '18 06', body: '0f 83 01 08 0a 0c' }
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
name: 'single channel
|
|
21
|
+
name: 'single channel 2',
|
|
22
22
|
parameters: {
|
|
23
23
|
channelList: [
|
|
24
24
|
{ index: 2, value: 50 }
|
|
25
25
|
]
|
|
26
26
|
},
|
|
27
|
-
hex: { header: '18 02', body: '
|
|
27
|
+
hex: { header: '18 02', body: '02 32' }
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
name: 'channels
|
|
30
|
+
name: 'channels 5, 6, 12',
|
|
31
31
|
parameters: {
|
|
32
32
|
channelList: [
|
|
33
33
|
{ index: 5, value: 8146 },
|
|
@@ -35,7 +35,7 @@ const examples = [
|
|
|
35
35
|
{ index: 12, value: 75 }
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
|
-
hex: { header: '18 07', body: '
|
|
38
|
+
hex: { header: '18 07', body: 'b0 10 d2 3f a4 01 4b' }
|
|
39
39
|
}
|
|
40
40
|
];
|
|
41
41
|
/**
|
|
@@ -45,7 +45,6 @@ const examples = [
|
|
|
45
45
|
* ```js
|
|
46
46
|
* import CurrentMC from 'jooby-codec/commands/uplink/CurrentMC';
|
|
47
47
|
*
|
|
48
|
-
* // failure
|
|
49
48
|
* const commandBody = new Uint8Array([0x01, 0x32]);
|
|
50
49
|
* const command = CurrentMC.fromBytes(commandBody);
|
|
51
50
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrentMC.js","sourceRoot":"","sources":["../../../src/commands/uplink/CurrentMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAoC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAUrD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,oFAAoF;AACpF,MAAM,qBAAqB,GAAG,EAAE,CAAC;AAEjC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE;YACR,WAAW,EAAE;gBACT,EAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,EAAC;gBACtB,EAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAC;gBACpB,EAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAC;gBACrB,EAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAC;aACxB;SACJ;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"CurrentMC.js","sourceRoot":"","sources":["../../../src/commands/uplink/CurrentMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8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AAU,CAAC;AAEP,uBAAa,GAAG,MAAM,CAAC;AAEvB,kBAAQ,GAAG,QAAQ,CAAC;AAEpB,uBAAa,GAAG,IAAI,CAAC;AA8BzC,eAAe,SAAS,CAAC"}
|
|
@@ -2,9 +2,9 @@ import { TCommandExampleList } from '../../Command.js';
|
|
|
2
2
|
import { TTime2000 } from '../../utils/time.js';
|
|
3
3
|
import CurrentMC, { ICurrentMCParameters } from './CurrentMC.js';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* DayMC command parameters.
|
|
6
6
|
*/
|
|
7
|
-
interface
|
|
7
|
+
interface IDayMCParameters extends ICurrentMCParameters {
|
|
8
8
|
startTime: TTime2000;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -12,36 +12,36 @@ interface IDataDayMCParameters extends ICurrentMCParameters {
|
|
|
12
12
|
*
|
|
13
13
|
* @example create command instance from command body hex dump
|
|
14
14
|
* ```js
|
|
15
|
-
* import
|
|
15
|
+
* import DayMC from 'jooby-codec/commands/uplink/DayMC';
|
|
16
16
|
*
|
|
17
17
|
* const commandBody = new Uint8Array([
|
|
18
|
-
* 0x2f, 0x97,
|
|
18
|
+
* 0x2f, 0x97, 0x55, 0x0c, 0x83, 0x01, 0x08, 0x0a
|
|
19
19
|
* ]);
|
|
20
|
-
* const command =
|
|
20
|
+
* const command = DayMC.fromBytes(commandBody);
|
|
21
21
|
*
|
|
22
22
|
* console.log(command.parameters);
|
|
23
23
|
* // output:
|
|
24
24
|
* {
|
|
25
25
|
* startTime: 756604800,
|
|
26
|
-
* channelList: [
|
|
26
|
+
* channelList: [,
|
|
27
|
+
* {value: 12, index: 1}
|
|
27
28
|
* {value: 131, index: 3},
|
|
28
29
|
* {value: 8, index: 5},
|
|
29
|
-
* {value: 10, index: 7}
|
|
30
|
-
* {value: 12, index: 1}
|
|
30
|
+
* {value: 10, index: 7}
|
|
31
31
|
* ]
|
|
32
32
|
* }
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
|
-
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/
|
|
35
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/uplink/DayMC.md)
|
|
36
36
|
*/
|
|
37
|
-
declare class
|
|
38
|
-
parameters:
|
|
39
|
-
constructor(parameters:
|
|
37
|
+
declare class DayMC extends CurrentMC {
|
|
38
|
+
parameters: IDayMCParameters;
|
|
39
|
+
constructor(parameters: IDayMCParameters);
|
|
40
40
|
static readonly id = 22;
|
|
41
41
|
static readonly directionType = 2;
|
|
42
42
|
static readonly examples: TCommandExampleList;
|
|
43
43
|
static readonly hasParameters = true;
|
|
44
|
-
static fromBytes(data: Uint8Array):
|
|
44
|
+
static fromBytes(data: Uint8Array): DayMC;
|
|
45
45
|
toBytes(): Uint8Array;
|
|
46
46
|
}
|
|
47
|
-
export default
|
|
47
|
+
export default DayMC;
|
|
@@ -20,7 +20,7 @@ const examples = [
|
|
|
20
20
|
{ index: 1, value: 12 }
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
|
-
hex: { header: '16
|
|
23
|
+
hex: { header: '16 08', body: '2f 97 55 0c 83 01 08 0a' }
|
|
24
24
|
}
|
|
25
25
|
];
|
|
26
26
|
/**
|
|
@@ -28,29 +28,29 @@ const examples = [
|
|
|
28
28
|
*
|
|
29
29
|
* @example create command instance from command body hex dump
|
|
30
30
|
* ```js
|
|
31
|
-
* import
|
|
31
|
+
* import DayMC from 'jooby-codec/commands/uplink/DayMC';
|
|
32
32
|
*
|
|
33
33
|
* const commandBody = new Uint8Array([
|
|
34
|
-
* 0x2f, 0x97,
|
|
34
|
+
* 0x2f, 0x97, 0x55, 0x0c, 0x83, 0x01, 0x08, 0x0a
|
|
35
35
|
* ]);
|
|
36
|
-
* const command =
|
|
36
|
+
* const command = DayMC.fromBytes(commandBody);
|
|
37
37
|
*
|
|
38
38
|
* console.log(command.parameters);
|
|
39
39
|
* // output:
|
|
40
40
|
* {
|
|
41
41
|
* startTime: 756604800,
|
|
42
|
-
* channelList: [
|
|
42
|
+
* channelList: [,
|
|
43
|
+
* {value: 12, index: 1}
|
|
43
44
|
* {value: 131, index: 3},
|
|
44
45
|
* {value: 8, index: 5},
|
|
45
|
-
* {value: 10, index: 7}
|
|
46
|
-
* {value: 12, index: 1}
|
|
46
|
+
* {value: 10, index: 7}
|
|
47
47
|
* ]
|
|
48
48
|
* }
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
|
-
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/
|
|
51
|
+
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/uplink/DayMC.md)
|
|
52
52
|
*/
|
|
53
|
-
class
|
|
53
|
+
class DayMC extends CurrentMC {
|
|
54
54
|
constructor(parameters) {
|
|
55
55
|
super(parameters);
|
|
56
56
|
this.parameters = parameters;
|
|
@@ -66,7 +66,7 @@ class DataDayMC extends CurrentMC {
|
|
|
66
66
|
index: channelIndex
|
|
67
67
|
}));
|
|
68
68
|
parameters.startTime = getSecondsFromDate(date);
|
|
69
|
-
return new
|
|
69
|
+
return new DayMC(parameters);
|
|
70
70
|
}
|
|
71
71
|
// returns full message - header with body
|
|
72
72
|
toBytes() {
|
|
@@ -78,9 +78,9 @@ class DataDayMC extends CurrentMC {
|
|
|
78
78
|
return Command.toBytes(COMMAND_ID, buffer.getBytesToOffset());
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
export default
|
|
86
|
-
//# sourceMappingURL=
|
|
81
|
+
DayMC.id = COMMAND_ID;
|
|
82
|
+
DayMC.directionType = UPLINK;
|
|
83
|
+
DayMC.examples = examples;
|
|
84
|
+
DayMC.hasParameters = true;
|
|
85
|
+
export default DayMC;
|
|
86
|
+
//# sourceMappingURL=DayMC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DayMC.js","sourceRoot":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
|
|
14
|
-
* 0x1f, 0x0f, 0x04, 0x08, 0x64, 0xd6, 0x02
|
|
15
|
-
* ]);
|
|
13
|
+
* const commandBody = new Uint8Array([0x04, 0x82, 0xd6, 0x02']);
|
|
16
14
|
* const command = ExAbsCurrentMC.fromBytes(commandBody);
|
|
17
15
|
*
|
|
18
16
|
* console.log(command.parameters);
|
|
@@ -3,11 +3,11 @@ import CommandBinaryBuffer from '../../CommandBinaryBuffer.js';
|
|
|
3
3
|
import { UPLINK } from '../../constants/directions.js';
|
|
4
4
|
const COMMAND_ID = 0x0f1f;
|
|
5
5
|
// channelList 3 byte (max channelList: 14)
|
|
6
|
-
// 3 + (14 * (1 byte
|
|
6
|
+
// 3 + (14 * (1 byte pulse coefficient + 5 bytes of day values))
|
|
7
7
|
const COMMAND_BODY_MAX_SIZE = 87;
|
|
8
8
|
const examples = [
|
|
9
9
|
{
|
|
10
|
-
name: 'absolute current
|
|
10
|
+
name: 'absolute current value from 3 channel',
|
|
11
11
|
parameters: {
|
|
12
12
|
channelList: [
|
|
13
13
|
{
|
|
@@ -19,7 +19,7 @@ const examples = [
|
|
|
19
19
|
},
|
|
20
20
|
hex: {
|
|
21
21
|
header: '1f 0f 04',
|
|
22
|
-
body: '
|
|
22
|
+
body: '04 82 d6 02'
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
];
|
|
@@ -30,9 +30,7 @@ const examples = [
|
|
|
30
30
|
* ```js
|
|
31
31
|
* import ExAbsCurrentMC from 'jooby-codec/commands/uplink/ExAbsCurrentMC';
|
|
32
32
|
*
|
|
33
|
-
* const commandBody = new Uint8Array([
|
|
34
|
-
* 0x1f, 0x0f, 0x04, 0x08, 0x64, 0xd6, 0x02
|
|
35
|
-
* ]);
|
|
33
|
+
* const commandBody = new Uint8Array([0x04, 0x82, 0xd6, 0x02']);
|
|
36
34
|
* const command = ExAbsCurrentMC.fromBytes(commandBody);
|
|
37
35
|
*
|
|
38
36
|
* console.log(command.parameters);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExAbsCurrentMC.js","sourceRoot":"","sources":["../../../src/commands/uplink/ExAbsCurrentMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAA4C,MAAM,8BAA8B,CAAC;AACxF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAOrD,MAAM,UAAU,GAAG,MAAM,CAAC;AAE1B,2CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"ExAbsCurrentMC.js","sourceRoot":"","sources":["../../../src/commands/uplink/ExAbsCurrentMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAA4C,MAAM,8BAA8B,CAAC;AACxF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAOrD,MAAM,UAAU,GAAG,MAAM,CAAC;AAE1B,2CAA2C;AAC3C,gEAAgE;AAChE,MAAM,qBAAqB,GAAG,EAAE,CAAC;AAEjC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,uCAAuC;QAC7C,UAAU,EAAE;YACR,WAAW,EAAE;gBACT;oBACI,gBAAgB,EAAE,GAAG;oBACrB,KAAK,EAAE,CAAC;oBACR,KAAK,EAAE,GAAG;iBACb;aACJ;SACJ;QACD,GAAG,EAAE;YACD,MAAM,EAAE,UAAU;YAClB,IAAI,EAAE,aAAa;SACtB;KACJ;CACJ,CAAC;AAGF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,cAAe,SAAQ,OAAO;IAChC,YAAqB,UAAqC;QACtD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA2B;QAGtD,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IAChG,CAAC;IAYD,oCAAoC;IACpC,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE7C,OAAO,IAAI,cAAc,CAAC,EAAC,WAAW,EAAE,MAAM,CAAC,6BAA6B,EAAE,EAAC,CAAC,CAAC;IACrF,CAAC;IAED,0CAA0C;IAC1C,OAAO;QACH,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;QAC9D,MAAM,EAAC,WAAW,EAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAEtC,MAAM,CAAC,6BAA6B,CAAC,WAAW,CAAC,CAAC;QAElD,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAClE,CAAC;;AAxBM,iBAAE,GAAG,UAAU,CAAC;AAEP,4BAAa,GAAG,MAAM,CAAC;AAEvB,uBAAQ,GAAG,QAAQ,CAAC;AAEpB,4BAAa,GAAG,IAAI,CAAC;AAsBzC,eAAe,cAAc,CAAC"}
|
|
@@ -13,9 +13,7 @@ interface IExAbsDayMCParameters {
|
|
|
13
13
|
* ```js
|
|
14
14
|
* import ExAbsDayMC from 'jooby-codec/commands/uplink/ExAbsDayMC';
|
|
15
15
|
*
|
|
16
|
-
* const commandBody = new Uint8Array([
|
|
17
|
-
* 0x1f, 0x0b, 0x06, 0x2e, 0x6a, 0x01, 0x64, 0xd6, 0x02
|
|
18
|
-
* ]);
|
|
16
|
+
* const commandBody = new Uint8Array([0x2e, 0x6a, 0x01, 0x82, 0xd6, 0x02']);
|
|
19
17
|
* const command = ExAbsDayMC.fromBytes(commandBody);
|
|
20
18
|
*
|
|
21
19
|
* console.log(command.parameters);
|
|
@@ -25,7 +23,7 @@ interface IExAbsDayMCParameters {
|
|
|
25
23
|
* channelList: [
|
|
26
24
|
* {
|
|
27
25
|
* pulseCoefficient: 100,
|
|
28
|
-
* index:
|
|
26
|
+
* index: 1,
|
|
29
27
|
* value: 342
|
|
30
28
|
* }
|
|
31
29
|
* ]
|
|
@@ -5,7 +5,7 @@ import { UPLINK } from '../../constants/directions.js';
|
|
|
5
5
|
import { getSecondsFromDate } from '../../utils/time.js';
|
|
6
6
|
const COMMAND_ID = 0x0b1f;
|
|
7
7
|
// date 2 bytes, channelList 3 bytes (max channelList: 14)
|
|
8
|
-
// 5 + (14 channelList * (1 byte
|
|
8
|
+
// 5 + (14 channelList * (1 byte pulse coefficient + 5 bytes of day values))
|
|
9
9
|
const COMMAND_BODY_MAX_SIZE = 89;
|
|
10
10
|
const examples = [
|
|
11
11
|
{
|
|
@@ -15,14 +15,14 @@ const examples = [
|
|
|
15
15
|
channelList: [
|
|
16
16
|
{
|
|
17
17
|
pulseCoefficient: 100,
|
|
18
|
-
index:
|
|
18
|
+
index: 1,
|
|
19
19
|
value: 342
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
hex: {
|
|
24
24
|
header: '1f 0b 06',
|
|
25
|
-
body: '2e 6a 01
|
|
25
|
+
body: '2e 6a 01 82 d6 02'
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
];
|
|
@@ -33,9 +33,7 @@ const examples = [
|
|
|
33
33
|
* ```js
|
|
34
34
|
* import ExAbsDayMC from 'jooby-codec/commands/uplink/ExAbsDayMC';
|
|
35
35
|
*
|
|
36
|
-
* const commandBody = new Uint8Array([
|
|
37
|
-
* 0x1f, 0x0b, 0x06, 0x2e, 0x6a, 0x01, 0x64, 0xd6, 0x02
|
|
38
|
-
* ]);
|
|
36
|
+
* const commandBody = new Uint8Array([0x2e, 0x6a, 0x01, 0x82, 0xd6, 0x02']);
|
|
39
37
|
* const command = ExAbsDayMC.fromBytes(commandBody);
|
|
40
38
|
*
|
|
41
39
|
* console.log(command.parameters);
|
|
@@ -45,7 +43,7 @@ const examples = [
|
|
|
45
43
|
* channelList: [
|
|
46
44
|
* {
|
|
47
45
|
* pulseCoefficient: 100,
|
|
48
|
-
* index:
|
|
46
|
+
* index: 1,
|
|
49
47
|
* value: 342
|
|
50
48
|
* }
|
|
51
49
|
* ]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExAbsDayMC.js","sourceRoot":"","sources":["../../../src/commands/uplink/ExAbsDayMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,mBAA4C,MAAM,8BAA8B,CAAC;AACxF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,kBAAkB,EAAY,MAAM,qBAAqB,CAAC;AASlE,MAAM,UAAU,GAAG,MAAM,CAAC;AAE1B,0DAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"ExAbsDayMC.js","sourceRoot":"","sources":["../../../src/commands/uplink/ExAbsDayMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,SAAS,MAAM,gBAAgB,CAAC;AACvC,OAAO,mBAA4C,MAAM,8BAA8B,CAAC;AACxF,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,kBAAkB,EAAY,MAAM,qBAAqB,CAAC;AASlE,MAAM,UAAU,GAAG,MAAM,CAAC;AAE1B,0DAA0D;AAC1D,4EAA4E;AAC5E,MAAM,qBAAqB,GAAG,EAAE,CAAC;AAEjC,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,gDAAgD;QACtD,UAAU,EAAE;YACR,SAAS,EAAE,SAAS;YACpB,WAAW,EAAE;gBACT;oBACI,gBAAgB,EAAE,GAAG;oBACrB,KAAK,EAAE,CAAC;oBACR,KAAK,EAAE,GAAG;iBACb;aACJ;SACJ;QACD,GAAG,EAAE;YACD,MAAM,EAAE,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
36
|
* const commandBody = new Uint8Array([
|
|
37
|
-
* 0x2e, 0x6a, 0x0c, 0x01,
|
|
37
|
+
* 0x2e, 0x6a, 0x0c, 0x01, 0x82, 0xb9, 0xf3, 0x14, 0x80, 0x01
|
|
38
38
|
* ]);
|
|
39
39
|
* const command = ExAbsHourMC.fromBytes(commandBody);
|
|
40
40
|
*
|
|
@@ -46,7 +46,7 @@ interface IUplinkExAbsHourMCParameters {
|
|
|
46
46
|
* channelList: [
|
|
47
47
|
* {
|
|
48
48
|
* pulseCoefficient: 100,
|
|
49
|
-
* index:
|
|
49
|
+
* index: 1,
|
|
50
50
|
* value: 342457,
|
|
51
51
|
* diff: [128]
|
|
52
52
|
* }
|
|
@@ -5,7 +5,7 @@ import { UPLINK } from '../../constants/directions.js';
|
|
|
5
5
|
const COMMAND_ID = 0x0a1f;
|
|
6
6
|
// date 2 bytes, hour 1 byte, channelList - 1 byte (max channelList: 4)
|
|
7
7
|
// max hours diff - 7 (3 bit value)
|
|
8
|
-
// 4 + (4 channelList * (1 byte
|
|
8
|
+
// 4 + (4 channelList * (1 byte pulse coefficient + 5 bytes of hour value)) + (4 * 2 bytes of diff * 7 max hours diff)
|
|
9
9
|
const COMMAND_BODY_MAX_SIZE = 84;
|
|
10
10
|
const examples = [
|
|
11
11
|
{
|
|
@@ -16,13 +16,13 @@ const examples = [
|
|
|
16
16
|
channelList: [
|
|
17
17
|
{
|
|
18
18
|
pulseCoefficient: 100,
|
|
19
|
-
index:
|
|
19
|
+
index: 1,
|
|
20
20
|
value: 342457,
|
|
21
21
|
diff: [128]
|
|
22
22
|
}
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
|
-
hex: { header: '1f 0a 0a', body: '2e 6a 0c 01
|
|
25
|
+
hex: { header: '1f 0a 0a', body: '2e 6a 0c 01 82 b9 f3 14 80 01' }
|
|
26
26
|
}
|
|
27
27
|
];
|
|
28
28
|
/**
|
|
@@ -33,7 +33,7 @@ const examples = [
|
|
|
33
33
|
* import ExAbsHourMC from 'jooby-codec/commands/uplink/ExAbsHourMC';
|
|
34
34
|
*
|
|
35
35
|
* const commandBody = new Uint8Array([
|
|
36
|
-
* 0x2e, 0x6a, 0x0c, 0x01,
|
|
36
|
+
* 0x2e, 0x6a, 0x0c, 0x01, 0x82, 0xb9, 0xf3, 0x14, 0x80, 0x01
|
|
37
37
|
* ]);
|
|
38
38
|
* const command = ExAbsHourMC.fromBytes(commandBody);
|
|
39
39
|
*
|
|
@@ -45,7 +45,7 @@ const examples = [
|
|
|
45
45
|
* channelList: [
|
|
46
46
|
* {
|
|
47
47
|
* pulseCoefficient: 100,
|
|
48
|
-
* index:
|
|
48
|
+
* index: 1,
|
|
49
49
|
* value: 342457,
|
|
50
50
|
* diff: [128]
|
|
51
51
|
* }
|
|
@@ -71,7 +71,7 @@ class ExAbsHourMC extends Command {
|
|
|
71
71
|
const hourAmount = hours === 0 ? 1 : hours;
|
|
72
72
|
date.setUTCHours(hour);
|
|
73
73
|
channels.forEach(channelIndex => {
|
|
74
|
-
const pulseCoefficient = buffer.
|
|
74
|
+
const pulseCoefficient = buffer.getPulseCoefficient();
|
|
75
75
|
const value = buffer.getExtendedValue();
|
|
76
76
|
const diff = [];
|
|
77
77
|
for (let hourIndex = 0; hourIndex < hourAmount; ++hourIndex) {
|
|
@@ -96,7 +96,7 @@ class ExAbsHourMC extends Command {
|
|
|
96
96
|
buffer.setHours(hour, hours);
|
|
97
97
|
buffer.setChannels(channelList);
|
|
98
98
|
for (const { value, diff, pulseCoefficient } of channelList) {
|
|
99
|
-
buffer.
|
|
99
|
+
buffer.setPulseCoefficient(pulseCoefficient);
|
|
100
100
|
buffer.setExtendedValue(value);
|
|
101
101
|
diff.forEach(diffValue => buffer.setExtendedValue(diffValue));
|
|
102
102
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExAbsHourMC.js","sourceRoot":"","sources":["../../../src/commands/uplink/ExAbsHourMC.ts"],"names":[],"mappings":"AAAA,OAAO,OAA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:00:00 GMT for
|
|
11
|
+
name: 'get day values from 2001.03.10 12:00:00 GMT for 1 channel',
|
|
12
12
|
parameters: {
|
|
13
13
|
startTime: 2678227200,
|
|
14
14
|
days: 2,
|
|
15
15
|
channelList: [
|
|
16
16
|
{
|
|
17
|
-
index:
|
|
17
|
+
index: 1,
|
|
18
18
|
dayList: [234, 332]
|
|
19
19
|
}
|
|
20
20
|
]
|
|
@@ -41,7 +41,7 @@ const examples = [
|
|
|
41
41
|
* days: 2,
|
|
42
42
|
* channelList: [
|
|
43
43
|
* {
|
|
44
|
-
* index:
|
|
44
|
+
* index: 1,
|
|
45
45
|
* dayList: [234, 332]
|
|
46
46
|
* }
|
|
47
47
|
* ]
|