sts test specification specifications/sts 531-8-1... · 7 annexure c – entity type h ... 11 4331...

42
Copyright © STS Association STS Association STS531-8-1 Edition1.6: 2016 COMPLIANCE TEST SPECIFICATION Entity Type H POS to Security Module Interface

Upload: phamthuy

Post on 12-Mar-2018

256 views

Category:

Documents


15 download

TRANSCRIPT

Page 1: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

Copyright © STS Association

STS Association

STS531-8-1 Edition1.6: 2016

COMPLIANCE TEST SPECIFICATION Entity Type H – POS to Security Module Interface

Page 2: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 2

CONTENTS

1 SCOPE .............................................................................................................................. 4

1.1 GENERAL ................................................................................................................... 4

2 NORMATIVE REFERENCES ........................................................................................... 4

2.1 GENERAL ................................................................................................................... 4

3 TERMS AND DEFINITIONS ............................................................................................. 4

3.1 DEFINITIONS ............................................................................................................... 4 3.2 TERMS ....................................................................................................................... 4

4 TEST REQUIREMENTS AND SPECIFICATIONS........................................................... 5

4.1 ENTITY TYPE H: SM TO POS INTERFACE – APPLICATION LAYER PROTOCOL ................. 5 4.1.1 General ................................................................................................................ 5 4.1.2 Equipment to be submitted .................................................................................. 5 4.1.3 Test equipment required ...................................................................................... 5 4.1.4 Summary of tests performed................................................................................ 5

4.2 CTSH01 – TRANSFERCREDIT (ELECTRICITY) .............................................................. 6 4.3 CTSH02 – TRANSFERCREDIT (WATER) ...................................................................... 8 4.4 CTSH03 – TRANSFERCREDIT (GAS) ......................................................................... 11 4.5 CTSH04 – TRANSFERCREDIT (TIME) ........................................................................ 14 4.6 CTSH05 – TRANSFERCREDIT (CURRENCY) .............................................................. 16 4.7 CTSH06 – KEYCHANGE ........................................................................................... 18 4.8 CTSH07 – TOKENS GENERATED FOR 4 DIGIT MANUFACTURER CODES ...................... 19 4.9 CTSH08 – MAXIMUMPOWERLIMIT ............................................................................ 19 4.10 CTSH09 – MAXIMUMPHASEPOWERUNBALANCELIMIT ................................................ 21 4.11 CTSH10 – CLEARCREDIT......................................................................................... 23 4.12 CTSH11 – CLEARTAMPER ....................................................................................... 25 4.13 CTSH12 – SETTARIFFRATE ..................................................................................... 26 4.14 CTSH13 – SETWATERMETERFACTOR ...................................................................... 26 4.15 CTSH14 – STSRESERVED....................................................................................... 27 4.16 CTSH15 – RESERVEDFORPROPRIETARYUSE ........................................................... 28 4.17 CTSH16 – RANDOMNUMBER .................................................................................... 30 4.18 CTSH17 – KEYCHANGE UNDER VARIOUS KEYTYPES ................................................. 30 4.19 CTSH18 – GENERATION OF AN ELECTRICITY CREDIT TOKEN UNDER VARIOUS KEYTYPES

31 4.20 CTSH19 – TOKENS GENERATED USING ALGORITHM DKGA01 FOR SPECIAL DRN

VALUES 32 4.21 CTSH20 – TOKENS GENERATED USING ALGORITHM DKGA01 FOR SPECIAL SGC

VALUES 35 4.22 CTSH21 – KEYCHANGE FROM DITK TO: DUTK, DCTK, DDTK (MANUFACTURING

MODULE) .............................................................................................................................. 37

5 ANNEXURE A – COMPLIANCE VERIFICATION REQUEST ....................................... 38

6 ANNEXURE B – ADDITIONAL INFORMATION ........................................................... 39

7 ANNEXURE C – ENTITY TYPE H TEST OVERVIEWS ................................................ 39

7.1 ENTITY TYPE H: POS TO SECURITY MODULE INTERFACE ........................................... 39 7.1.1 CTSH01 – generation of an electricity credit token using KT=02 ...................... 39 7.1.2 CTSH02 – generation of a water credit token using KT=02 .............................. 39 7.1.3 CTSH03 – generation of a gas credit token using KT=02 ................................. 39 7.1.4 CTSH04 – generation of a time credit token using KT=02 ................................ 39 7.1.5 CTSH05 – generation of a currency credit token using KT=02 ......................... 40

Page 3: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 3

7.1.6 CTSH06 – DUTK to DUTK key change ............................................................. 40 7.1.7 CTSH07 – generation of a currency credit token using KT=02 and 4 digit manufacturer code .......................................................................................................... 40 7.1.8 CTSH08 – generating maximum power load token ........................................... 40 7.1.9 CTSH09 – generating set phase power unbalance limit token.......................... 40 7.1.10 CTSH10 – generating clear credit ................................................................. 40 7.1.11 CTSH11 – generating clear tamper token ..................................................... 41 7.1.12 CTSH12 – generating a set tariff rate token .................................................. 41 7.1.13 CTSH13 – generating a set water factor token ............................................. 41 7.1.14 CTSH14 – generating a STS reserved token ................................................ 41 7.1.15 CTSH15 – generating a reserved for proprietary use token ......................... 41 7.1.16 CTSH16 – Random Number Test ................................................................. 41 7.1.17 CTSH17/18 – Key type Rules........................................................................ 41 7.1.18 CTSH19 – generation of an electricity credit token using Decoder Key Generation Algorithm DKGA01 ....................................................................................... 41 7.1.19 CTSH20 – generation of an electricity credit token using Decoder Key Generation Algorithm DKGA01, with special SGC values .............................................. 42 7.1.20 CTSH21 – DITK to DUTK key change .......................................................... 42

Table 1- SM Loaded Vending Keys ........................................................................................... 5 Table 2 - KeyType Rules ......................................................................................................... 30 Table 3 – Special DRN Values ................................................................................................ 32 Table 4 - Special SGC Values ................................................................................................. 35 Table 5 - Supplier Submitted Information ................................................................................ 39 Revision History

Revision Clause Date Change details from previous Edition

1.3 Sept 2015 Initial revision. Changed revision to match document set.

1.4 General Oct 2015 Only Edition number changed from 1.3 to 1.4 to match the document suite

1.5 General April 2016 Changed to new Logo, CTSH17 - corrected tokens for new VK definitions

1.6 General June 2016 Only Edition number changed from 1.5 to 1.6 to match the document suite

Page 4: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 4

1 Scope

1.1 General This document provides the compliance criteria and test descriptions for security modules designed to generate tokens that comply with the STS using POS systems designed to produce STS-compliant tokens. This document supersedes and replaces the following documents: STS501-8.

2 Normative references

2.1 General The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. [1] IEC 62051 – ELECTRICITY METERING – Glossary of terms [2] IEC 62055-41 – ELECTRICITY METERING – PAYMENT SYSTEMS – Part 41: Standard Transfer Specification – Application layer protocol for one-way token carrier systems [3] STS531-0 Compliance Test Specification – Quality plan [4] STS202-1 – Addendum to IEC62055-41 for Currency Token Support.

3 Terms and definitions

3.1 Definitions For the purposes of this test specification, the definitions given in the normative references identified in paragraph 2 apply. SM – Security Module UUT – Unit Under Test DRN – Decoder Reference Number

3.2 Terms For the purposes of this test specification, the terms given in the normative references identified in paragraph 2 apply.

Page 5: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 5

4 Test requirements and specifications

4.1 Entity type H: SM to POS Interface – Application Layer Protocol

4.1.1 General

Each test comprises a number of steps with associated recordings and expected results. Any deviation from these shall be interpreted as non-compliance and a failure recorded against that step. The tests below indirectly test the following,

token generation;

conformance to IEC62055-41; in addition to the specific test in question.

4.1.2 Equipment to be submitted

The following equipment is required for certification: 1 SM (UUT) loaded with the following keys: Table 1- SM Loaded Vending Keys

KEY KEY VALUE KEY TYPE

SGC KRN REGISTER

VUDK1 ABABABABABABABAB 2 123456 1 01

VUDK2 9494949494949494 2 888888 1 02

VDDK BABABABABABABABA 1 234567 1 03

VCDK 4949494949494949 3 345678 1 04

DITK 0202020202020202 0 90 – note1

Note1: only required for manufacturing modules

4.1.3 Test equipment required

The following test equipment is required:

Secure Module API or means to send commands to the UUT in order to generate tokens as defined in this document

Communications port to suit the UUT as specified in Annexure A1 Note: Not all tests in this document are mandatory. Please read the instructions before each test carefully before commencing the test.

4.1.4 Summary of tests performed

The following tests will be performed on the SM by the test software:

Generation of Credit tokens

Generation of Management tokens

Generation of Keychange Tokens

RND field

Decoder Key Generation Algorithms

Key Type management

Encryption Algorithms

Page 6: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 6

Error responses

Token Identifier Field (TID)

4.2 CTSH01 – TransferCredit (Electricity) APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Step Number TokenIssueDate TransferAmount

1 1993-01-01 00:00:00 0.1 kWh

2 1993-01-01 00:01:45 819.2 kWh

3 1993-03-25 13:55:22 1638.3 kWh

4 1996-03-25 13:55:22 1638.4 kWh

5 2005-11-01 00:01:55 9011.1 kWh

6 2015-12-01 00:01:05 18022.3 kWh

7 2024-11-24 20:15:00 18022.4 kWh

8 2004-04-20 10:00:00 90931.1 kWh

9 2004-04-20 11:00:00 181862.3 kWh

10 2004-04-20 12:00:00 181862.4 kWh

11 2004-04-20 13:00:00 910081.1 kWh

12 2004-04-20 14:00:00 1820162.4 kWh

Overview: This test verifies general compliance with respect to the generation of a TransferCredit token, tests boundary conditions for exponents, and TID generation. Step Instruction Expected Result

1 – 12

According to the manufacturer’s instructions provided in Table 5, generate TansferCredit tokens with the information in the APDU above, and for each of the steps indicated above. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then do only step 1.

The token must be identical to one of the tokens specified in the token tables below corresponding to the step number. i.e. step 1 corresponds to the First Token Table. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then this step must fail.

First Token Table Second Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0030 8036 7639 1347 6899 0 0878 2897 8541 6016 5467

1 0446 8634 3115 9797 0296 1 1873 2062 4953 8397 9480

2 0538 1330 1488 1958 1077 2 1899 6113 7582 4661 1158

3 0713 2202 2020 9788 2668 3 2699 7136 4276 8231 2649

4 0834 6232 8702 6000 2951 4 2789 6016 1180 4561 2688

5 1283 1158 0984 1564 2666 5 3595 8438 0039 7696 5892

6 1981 4190 3681 5516 0723 6 4020 1915 0019 1283 4272

7 2853 1457 5903 2697 7293 7 4104 2693 4640 3418 5194

8 3455 0090 7925 0089 1632 8 4309 5739 4774 4570 4626

9 3474 9035 9427 6027 1843 9 4958 2065 6635 5317 3692

10 3501 1175 9982 7081 0801 10 5218 1826 3023 6040 6294

Page 7: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 7

11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212

12 5250 1941 0097 6670 2274 12 6313 2431 1469 6047 9959

13 5599 1570 5555 7794 9481 13 6856 9718 3931 4955 4128

14 6119 8977 9820 6845 1144 14 6900 8676 2480 2535 0792

15 6297 2132 0169 0147 2647 15 6984 4393 3735 3681 6849

Third Token Table Fourth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0960 4834 8878 9962 9329 0 0158 9528 3631 7482 5114

1 1434 5893 5241 5123 3800 1 1174 9651 4514 2070 4131

2 1535 6207 1159 2094 5462 2 1305 3533 8436 6775 6988

3 1620 8782 0343 0043 6405 3 1526 1040 2329 1389 2603

4 2040 9264 8348 6504 3551 4 1833 3111 1313 6694 8715

5 2955 6550 1081 9200 0467 5 2248 1803 1724 2882 2327

6 2990 9977 0205 8684 4309 6 2381 8328 6470 3744 6449

7 3031 5521 7720 3271 8953 7 2539 7835 9075 4503 9536

8 3058 7666 5893 9187 0566 8 2855 7880 9818 7077 0115

9 3143 5224 4593 4416 3553 9 3323 7133 4033 7835 7592

10 3421 9655 5169 5240 2040 10 3718 2132 9144 2376 8005

11 4859 7462 7510 6714 5204 11 6255 8493 6230 8893 9423

12 5093 0507 1431 2723 7498 12 6314 4511 3213 1488 8072

13 6389 5863 7748 4178 5554 13 6696 9825 3511 9292 4610

14 6702 6901 6686 8807 0010 14 7012 1243 3968 5587 1493

15 6719 8659 6141 8921 1886 15 7125 9848 8348 3523 5702

Fifth Token Table Sixth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0132 3394 3685 7208 5174 0 0134 6797 4542 6510 4926

1 0432 3389 5042 0838 0513 1 0168 6574 6207 0110 7300

2 1102 0827 0462 0427 2970 2 1174 9262 3863 7440 6490

3 1368 4903 1017 4780 2501 3 1561 5431 8595 0096 3562

4 2066 2056 2177 6461 9769 4 2066 9946 6917 3658 3842

5 2627 4228 0542 3606 4257 5 3275 6024 6911 9946 6227

6 3156 9867 3966 4734 8868 6 3329 1039 9518 6597 4736

7 3298 5213 5665 9281 5107 7 3840 0368 3426 5600 2930

8 3324 5096 2871 7444 7615 8 4098 9056 8687 4143 7760

9 3877 1208 9755 5758 8170 9 5984 5574 3092 5497 0836

10 5323 2618 7976 0465 4885 10 6074 2853 8435 3464 8669

11 5575 9551 4819 2831 0314 11 6379 2046 3396 2813 3732

12 5582 9717 7033 8077 3020 12 6418 1109 6619 0325 1919

13 6412 5428 7013 9394 3970 13 6440 1052 3811 7752 1466

14 6812 9261 6709 2573 4031 14 6819 2410 4145 9814 8211

15 6876 4614 5724 1426 2444 15 6951 9817 1312 8538 0879

Seventh Token Table Eighth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0260 9256 5114 7366 0891 0 0337 9711 3495 7270 6418

1 1383 2576 9633 1089 0757 1 0417 5268 5960 3833 6989

2 1755 7212 5428 9796 0768 2 0607 8929 9281 5381 9294

3 2155 6096 6492 0860 2267 3 0704 3833 1453 1884 6188

4 2349 5193 7813 4014 8563 4 0754 3613 2818 4103 4837

5 3031 9801 7886 3572 7137 5 0824 0635 0407 0055 5250

6 3324 5607 3727 0539 1303 6 1221 6738 5798 2227 7985

7 3996 6063 6154 3220 3895 7 2141 0699 0623 8087 5365

8 4402 8603 7391 7779 5981 8 2490 3113 7016 2730 1493

9 4709 1340 9192 9507 9684 9 3728 1714 8643 5314 7475

10 4941 3391 1240 0068 3721 10 3922 7802 9979 3461 0657

11 5280 9807 1093 7940 4503 11 3986 8215 6667 0746 8310

Page 8: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 8

12 5640 8749 4188 0139 8784 12 4813 2718 1439 2782 3271

13 5768 5933 7451 4123 8749 13 5380 7410 8369 3299 9489

14 5817 0920 6280 1449 1216 14 5934 2837 1634 6311 8353

15 7372 6957 4512 1801 7273 15 7242 1752 0550 7496 4466

Ninth Token Table Tenth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 2120 4830 7147 7941 7567 0 0237 9449 9231 6792 1603

1 2270 9816 8513 7412 9031 1 0255 7655 3591 8545 5835

2 2655 9287 0040 7404 4874 2 0544 6268 5828 4728 1991

3 2713 0226 9409 5618 5933 3 0931 2066 8702 5976 5734

4 2796 0181 0332 2795 1139 4 0985 9414 3279 4042 3545

5 3595 5081 6433 5865 3160 5 1851 2803 6095 9669 3070

6 4967 4552 4477 9968 0213 6 2062 1542 5095 6500 6832

7 5335 3158 4913 3612 3347 7 2168 0226 3419 3793 3052

8 5496 1401 6413 6294 5278 8 3503 5955 9753 9862 7535

9 5836 1040 2341 6952 0531 9 3900 0773 6004 1258 8336

10 6395 1036 6316 2239 9263 10 4115 7618 9885 9677 9182

11 6478 3535 1419 1662 1947 11 4805 1744 7927 1485 8704

12 6629 6958 1088 5768 6221 12 5149 1723 7283 6489 2670

13 6690 3894 8028 3107 0479 13 6042 6133 2217 3208 9059

14 6778 8512 8062 4381 2159 14 7193 4959 5125 0428 1301

15 7287 3391 7870 5391 8323 15 7267 0085 8647 5645 2143

Eleventh Token Table Twelfth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 2365 0181 0735 2756 8657 0 0295 6517 1779 3757 1328

1 2376 4933 4982 1117 6828 1 1055 1358 3294 9911 4241

2 2503 9116 2741 3547 0030 2 1187 2999 7516 1777 7203

3 2724 4513 6498 4942 9185 3 1435 3690 6936 3991 2641

4 2734 1178 2803 0509 6555 4 1819 3107 9487 4612 6728

5 2942 0927 7450 2523 7501 5 2372 5165 0741 7414 3732

6 3347 0903 4438 9487 1820 6 2701 9911 9938 9729 9910

7 3807 4634 8317 7574 7373 7 2876 6337 2968 6616 9714

8 3950 3397 4873 8296 1819 8 3141 2304 0431 3036 3688

9 4353 2257 2726 6986 2825 9 3561 6545 6879 6679 2749

10 4608 1292 5132 3895 2392 10 4233 9423 7392 4238 4100

11 5664 4344 1413 0492 4249 11 4734 8254 6966 1484 3724

12 5861 1033 0886 7261 3745 12 4772 9998 5565 6477 4383

13 6753 0661 0387 1951 6896 13 6378 4596 2904 8072 1301

14 7036 7088 6166 0470 6993 14 7295 9309 8799 4124 9579

15 7065 4312 7902 7404 6074 15 7339 7616 3235 1103 3321

4.3 CTSH02 – TransferCredit (Water) APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Page 9: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 9

Step Number TokenIssueDate TransferAmount

1 1993-01-01 00:00:00 0.1 kL

2 1993-01-01 00:01:45 819.2 kL

3 1993-03-25 13:55:22 1638.3 kL

4 1996-03-25 13:55:22 1638.4 kL

5 2005-11-01 00:01:55 9011.1 kL

6 2015-12-01 00:01:05 18022.3 kL

7 2024-11-24 20:15:00 18022.4 kL

8 2004-04-20 10:00:00 90931.1 kL

9 2004-04-20 11:00:00 181862.3 kL

10 2004-04-20 12:00:00 181862.4 kL

11 2004-04-20 13:00:00 910081.1 kL

12 2004-04-20 14:00:00 1820162.4 kL

Overview: This test verifies general compliance with respect to the generation of a TransferCredit token, tests boundary conditions for exponents, and TID generation. Step Instruction Expected Result

1 – 12.

According to the manufacturer’s instructions provided in Table 5, generate TansferCredit tokens with the information in the APDU above, and for each of the steps indicated above. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then do only step 1.

The token must be identical to one of the tokens specified in the token tables below corresponding to the step number. i.e. step 1 corresponds to the First Token Table. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then this step must fail.

First Token Table Second Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0430 0231 4398 5989 7574 0 0024 2146 7837 0611 9182

1 0437 4412 2376 3448 9945 1 0174 3508 7823 2925 7984

2 1604 0073 1568 9746 9416 2 0377 8741 0426 2679 8801

3 1686 9162 7130 8982 9620 3 0485 3393 4941 0043 2931

4 2137 8562 8688 5460 6376 4 2155 9584 5309 5098 5777

5 3008 2310 7741 9251 5101 5 2422 8276 8318 8118 9332

6 5162 9841 4568 4422 7433 6 2701 5948 4874 5135 3594

7 5389 8870 5285 6360 3726 7 3173 4786 1295 1174 1866

8 5517 6595 2267 0793 8820 8 3362 0279 2357 2430 0913

9 5584 9828 4157 9012 1146 9 3559 0441 8383 5792 4659

10 5614 1753 3792 5335 3410 10 3675 5901 4117 2266 8318

11 5719 1353 3939 2068 8406 11 3679 3257 5560 3914 6290

12 6151 1803 6129 7221 0358 12 4067 1135 4846 2595 5711

13 6391 8541 5440 8845 1057 13 4953 4444 4196 8508 6268

14 6479 3274 8735 5075 5451 14 6203 9939 4553 2060 5141

15 6962 1936 4873 1645 9604 15 7100 5815 3613 8875 8838

Third Token Table Fourth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0340 1547 6924 3535 9807 0 0081 0295 7231 6597 6986

1 2097 3152 4290 7060 6167 1 0137 3616 6038 5065 3251

2 2322 4822 1837 1181 5237 2 0511 1328 4954 8766 6102

3 2508 3591 4072 7550 0087 3 0529 8443 2526 6473 9474

4 2630 3407 7936 2490 7151 4 0776 9612 1304 0561 0960

5 2899 1586 8083 3462 9079 5 0778 1827 9252 9516 6021

6 2948 8205 4108 3803 5306 6 3871 5726 2841 4145 8912

7 3241 4743 7476 4089 9217 7 3889 3692 5769 0745 6003

8 3365 8228 6346 7900 4598 8 4491 0384 3615 9630 1385

9 4073 8368 6922 2351 8458 9 4686 3914 8831 1634 5556

10 4266 0902 5224 3482 1581 10 5511 9357 9300 6247 7565

11 4570 0950 2536 1719 7434 11 6305 3782 6701 3366 0330

Page 10: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 10

12 5042 1726 0979 0977 3989 12 6392 1945 7701 4013 5656

13 6062 9197 9101 5454 3667 13 6446 8547 3520 2528 2793

14 6119 8314 9845 2550 6371 14 6931 1267 1790 8381 3586

15 6318 7358 6826 7832 6298 15 7341 2991 8629 6359 4887

Fifth Token Table Sixth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0281 5110 6523 9784 2628 0 0053 3979 4225 6458 9333

1 1168 5219 0194 2960 4607 1 1601 5283 4630 7394 9281

2 1275 3763 6865 4638 8733 2 2102 6068 4308 1068 5223

3 2251 9870 3313 7588 5714 3 2690 4642 8487 8388 8479

4 2260 5092 0452 8483 2803 4 3193 7171 2639 7585 9774

5 2375 9243 5635 9640 6012 5 3363 7964 4163 7689 2134

6 3372 9425 8173 8980 5895 6 3658 7171 1562 2222 3402

7 4041 0924 4356 5429 5730 7 4204 4983 6382 2128 4817

8 4708 3533 7500 7512 6868 8 4296 4144 2543 2792 4175

9 4973 5271 1161 0001 5047 9 4343 3557 5058 7485 6839

10 5054 8292 1656 2940 6939 10 4551 5508 7801 3232 6639

11 5144 1203 3971 0704 3833 11 4569 5069 7411 7564 6997

12 5733 2219 4161 2837 4289 12 5230 6803 7678 8813 6624

13 6468 2959 0256 7334 1371 13 6207 2962 9118 9323 9790

14 7092 6584 4843 2270 5479 14 6287 5050 2357 0016 9543

15 7140 5027 7005 8969 1135 15 6484 1669 2959 1709 5826

Seventh Token Table Eighth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0167 7439 8309 1055 7367 0 1416 9221 5235 0451 8166

1 0736 6793 3093 3352 7149 1 1926 7060 4575 4154 3032

2 1848 6635 6962 1899 7273 2 2553 3777 5678 1603 0947

3 2562 2979 4814 8642 8175 3 2587 2634 6669 6569 5214

4 2812 6938 1899 3796 3079 4 3499 7773 0766 1790 8354

5 2831 7149 2213 7650 2597 5 4389 5222 6391 6069 9238

6 3659 6401 5504 2844 7128 6 4914 6312 3176 3279 0416

7 4252 6308 8950 5710 8396 7 5197 6987 8090 0309 0800

8 4608 2352 7748 1131 2283 8 5266 0569 3116 6468 3743

9 4612 2353 4603 8026 1042 9 5685 7330 2992 7270 0500

10 4698 4440 7445 5029 1470 10 5781 9963 9322 1336 8193

11 4942 9277 8745 6589 4324 11 5988 7502 1697 5344 6266

12 5215 1321 9918 2426 6588 12 6104 1880 6239 7079 3791

13 6958 0774 9686 8469 0656 13 6514 6567 5956 4867 3258

14 7058 1241 2886 5622 4343 14 7058 9507 1218 1275 0706

15 7236 2582 4300 6146 3145 15 7191 2520 2508 1109 6742

Ninth Token Table Tenth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0423 5925 8554 4802 0921 0 0477 0682 0877 2829 7460

1 0531 4451 0601 5353 3269 1 1231 3847 6185 1773 5307

2 1324 7439 8160 5462 7879 2 1540 0877 5707 8612 6303

3 1453 2993 7880 9987 8149 3 1714 6259 4995 1298 1757

4 1978 8504 4982 5782 0332 4 1981 8592 4347 3495 4816

5 2273 2497 1401 9051 2541 5 2394 6640 3917 2620 7975

6 2286 2946 8628 0837 8984 6 2458 6446 4951 9166 6422

7 3145 8193 4901 5853 0105 7 4258 6539 1944 7975 0065

8 3966 4125 8124 2896 3898 8 4363 9168 6965 5277 0272

9 4487 4704 1080 3944 7364 9 5225 6884 2552 8753 9689

10 4659 2540 3649 9545 3140 10 5365 5534 2708 9062 5316

11 4985 1221 8844 1532 9797 11 6677 7774 8674 0671 0215

12 5767 5578 6852 6408 3755 12 6694 1334 1830 4504 4460

Page 11: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 11

13 5885 4395 8496 2802 6320 13 6731 8319 9151 0483 0286

14 6615 6168 9122 6262 1495 14 6904 5154 3072 0262 7796

15 6989 9738 4573 2757 2318 15 7114 4002 5195 9668 9538

Eleventh Token Table Twelfth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0401 7688 2699 9185 9735 0 0729 0380 8278 3201 6052

1 0602 3397 1327 2687 5147 1 0817 1063 8601 3654 1763

2 2012 7058 4633 3145 2654 2 1650 2336 8438 2132 7966

3 2091 9710 0710 8198 4044 3 2127 0782 8383 1914 7955

4 3212 8105 8304 9843 8569 4 2960 9218 2125 3260 0451

5 3718 3699 6777 4079 8044 5 3338 7870 4861 6968 4084

6 3789 9401 7932 9914 5423 6 3450 2001 5559 9224 8567

7 3843 1286 7594 4624 2794 7 4044 5320 4300 1338 2359

8 3978 5916 7360 9985 0675 8 4067 1967 4246 6339 0003

9 4195 2387 5841 1514 0209 9 4195 7632 7801 1270 8450

10 4505 6269 2366 8298 1661 10 5116 1702 8500 5757 7734

11 5273 4006 1860 8943 7972 11 5515 9323 9595 0686 0317

12 6585 6549 9240 0599 3946 12 6296 3368 6150 4304 4143

13 6679 5450 9228 9498 8560 13 6764 8896 8869 0251 3101

14 6871 8242 7409 5428 5553 14 7026 1472 7164 4473 9790

15 7288 0103 3782 7909 8118 15 7095 1692 2080 5709 5193

4.4 CTSH03 – TransferCredit (Gas) APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Step Number TokenIssueDate TransferAmount

1 1993-01-01 00:00:00 0.1 m3

2 1993-01-01 00:01:45 819.2 m3

3 1993-03-25 13:55:22 1638.3 m3

4 1996-03-25 13:55:22 1638.4 m3

5 2005-11-01 00:01:55 9011.1 m3

6 2015-12-01 00:01:05 18022.3 m3

7 2024-11-24 20:15:00 18022.4 m3

8 2004-04-20 10:00:00 90931.1 m3

9 2004-04-20 11:00:00 181862.3 m3

10 2004-04-20 12:00:00 181862.4 m3

11 2004-04-20 13:00:00 910081.1 m3

12 2004-04-20 14:00:00 1820162.4 m3

Overview: This test verifies general compliance with respect to the generation of a TransferCredit token, tests boundary conditions for exponents, and TID generation.

Page 12: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 12

Step Instruction Expected Result

1 – 12

According to the manufacturer’s instructions provided in Table 5, generate TansferCredit tokens with the information in the APDU above, and for each of the steps indicated above. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then do only step 1.

The token must be identical to one of the tokens specified in the token tables below corresponding to the step number. i.e. step 1 corresponds to the First Token Table. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then this step must fail.

First Token Table Second Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0268 3365 8886 5020 0947 0 0753 0335 5504 6138 6191

1 0932 1206 7528 3045 7119 1 1483 3158 8035 4528 7603

2 1649 8478 6301 9776 5795 2 2825 0103 2399 5020 5002

3 1917 3553 6078 2543 5499 3 3228 4605 8455 6792 9275

4 1964 0556 3749 6363 4600 4 4220 0922 1726 9081 4463

5 2096 0429 9092 2896 1261 5 4780 7632 2389 3530 6991

6 2366 5022 9848 2219 9066 6 5100 7472 1545 2968 6185

7 2703 7629 7105 4298 7404 7 5293 1753 4259 7885 2696

8 3401 5565 0072 2422 4540 8 5451 4748 9912 3042 4412

9 5044 7264 4388 8748 0295 9 6366 8723 1323 1423 4051

10 5082 4553 0359 2837 0237 10 6607 5017 0052 0000 4975

11 5154 5138 7682 7857 8588 11 6981 2706 5166 9255 4984

12 5520 9432 7675 2205 3534 12 7020 0952 1798 0058 0483

13 6133 1275 0253 6844 1882 13 7047 8786 2429 7811 5671

14 6172 1689 6967 5589 9100 14 7149 1420 9107 8625 6573

15 6551 2551 8285 5473 9881 15 7271 8142 7842 4284 0413

Third Token Table Fourth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0258 4897 5001 9874 5193 0 0410 9259 1384 1149 2046

1 0386 1810 9473 0395 7279 1 1419 6505 5663 0159 6943

2 0403 0929 4044 6522 8417 2 2039 7270 9169 8235 0136

3 0549 7186 0826 1073 4300 3 2794 1262 5838 5733 9948

4 1822 1298 9571 5189 2689 4 3418 5861 5311 2592 6466

5 3132 3376 1745 3636 2749 5 3654 9766 0041 3940 7145

6 3276 9452 3904 8064 9118 6 3837 2145 0135 7247 5138

7 3848 6374 6741 1195 8125 7 3850 9636 1213 7932 4421

8 3852 9058 5249 9517 7762 8 4373 0541 7705 1883 4257

9 4529 0194 3072 3661 0633 9 4487 4687 8860 7130 9573

10 4764 5451 3286 2645 8327 10 4842 4977 2058 3244 3651

11 4886 9174 1037 1147 7504 11 5381 7549 9453 6500 4973

12 5071 7430 4730 3995 5218 12 5677 0767 6633 3683 7030

13 5754 1523 9539 6901 7313 13 6274 4972 9007 5368 6719

14 7120 3067 9567 5644 2947 14 6438 7431 3562 3264 6175

15 7120 8259 6408 1336 7316 15 7156 0360 2576 8448 4296

Fifth Token Table Sixth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0055 4150 0722 7203 9211 0 0298 9843 6073 4986 4020

1 0602 0031 0315 2326 3166 1 1263 5588 1461 0045 1814

2 0719 7180 0912 9056 4353 2 1377 3328 5557 6953 8500

3 0863 2149 3719 9022 1582 3 1730 6879 6804 6074 7403

4 1751 2217 2537 8935 5358 4 2156 7464 2900 2225 6058

5 2421 6666 4969 1996 1034 5 2171 4109 2514 4520 4140

6 2821 2560 4004 0016 8935 6 2448 9356 8712 8400 8390

Page 13: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 13

7 3088 2858 3022 3957 8596 7 2522 0665 5210 8087 1018

8 4007 0971 9877 9813 7329 8 2658 8868 5574 1934 7688

9 4288 4935 9874 5390 6526 9 3558 7107 1001 0473 6627

10 5187 8013 0762 0979 0300 10 3864 8207 2170 0719 0793

11 5218 7877 9966 9255 1750 11 4708 2206 0671 2085 7643

12 5597 1593 9545 4992 9691 12 5153 5292 8188 5270 4521

13 5692 9991 1762 5457 7850 13 5706 6888 7006 7649 5581

14 6188 7327 6515 9763 2640 14 5826 7457 7478 2750 3483

15 7013 5206 2447 5425 9262 15 6898 9044 2681 9165 2270

Seventh Token Table Eighth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0683 2627 4929 0525 7469 0 0173 0836 9263 7994 0425

1 1035 2901 7231 5410 6813 1 0497 4085 0306 3743 1332

2 1079 2771 4334 2398 5000 2 0685 6724 9823 6680 2126

3 1618 0721 9961 1808 7347 3 1005 9763 1872 4048 8836

4 1833 1081 4720 5472 5969 4 1536 4192 0522 6562 1335

5 2406 9133 5274 0190 7143 5 3010 3393 6283 0372 2292

6 2992 5144 9532 1906 4109 6 3259 1641 7918 5868 0240

7 3017 7193 0297 0713 3740 7 3319 3739 6291 3445 6969

8 3451 7264 2962 4764 1300 8 3797 9727 0823 5266 1656

9 3451 9995 5485 9765 3278 9 4671 6938 8957 2690 5521

10 4287 4276 9861 7250 9261 10 5276 2941 5321 8993 0796

11 4381 6904 6400 6174 1459 11 6533 8512 9681 6592 9448

12 4691 2705 0395 3101 0128 12 6592 6209 7935 1363 1077

13 4790 3531 3494 8946 0694 13 6877 5405 5043 6044 0268

14 6225 0702 6584 7489 8631 14 7204 1592 7271 5488 4647

15 6341 5098 0969 0366 2325 15 7376 8873 1585 6532 5180

Ninth Token Table Tenth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0077 8108 3808 7315 9089 0 1651 2202 8996 6428 1003

1 0790 1255 9876 1300 5278 1 1666 5340 0546 4693 5570

2 1189 9480 5860 7996 1614 2 2081 7154 5149 5552 4718

3 1759 7296 0774 4178 5442 3 3248 9248 9217 1103 4895

4 2459 3687 1169 4613 8030 4 3405 3335 3232 7477 1232

5 3270 3015 5396 1942 1207 5 4659 2685 8988 9232 4572

6 3364 1322 2293 6729 4903 6 4981 2709 1112 7501 0090

7 3737 2599 6977 3024 8917 7 5161 7443 7475 2712 6065

8 4016 9114 6481 3257 2975 8 5626 5006 5914 5342 3815

9 4278 8193 4607 6811 0168 9 5826 0995 2340 9423 4870

10 4593 2193 7490 5815 9721 10 5967 8262 9268 1612 1073

11 4845 9789 7604 3415 1446 11 6382 0384 4716 1444 0974

12 5218 5651 9161 6094 2904 12 6408 6791 7994 7713 4128

13 5447 0594 2803 9032 6928 13 6997 3793 6932 8537 5544

14 5837 2867 8428 3942 6498 14 7141 5146 5586 0914 7057

15 5948 0905 2040 4336 7493 15 7225 2647 4110 0545 2250

Eleventh Token Table Twelfth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 1248 2701 5407 3270 9298 0 0705 9030 9080 5514 5048

1 1738 1628 3270 1679 8156 1 0741 5686 2362 1135 6289

2 2777 7941 5818 7217 6567 2 0789 2879 8387 4454 8400

3 3075 7943 3912 9821 7473 3 1108 5620 4809 8142 8383

4 3228 1194 4352 3746 8072 4 1624 4547 4429 4726 1160

5 3541 0811 3621 2793 0023 5 1793 2238 2241 6074 7681

6 4105 0744 4639 1138 6026 6 2319 4290 3198 6718 8944

7 5133 4984 0374 0427 3136 7 2543 1423 1900 7804 6210

Page 14: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 14

8 5185 7261 2486 6850 3587 8 2806 2819 7891 5419 9464

9 5195 6560 1360 6779 1408 9 4034 1841 3405 5722 8365

10 5925 3906 4102 5844 4931 10 4909 0590 4750 2004 5142

11 6224 9249 3344 4264 7886 11 5434 0399 1795 7672 7516

12 6313 6098 6888 3688 5628 12 6347 8096 4216 5929 8453

13 6972 5475 1559 7855 1285 13 6798 3770 3705 1568 3359

14 7249 9785 3095 1347 5363 14 6956 4951 4496 7781 5546

15 7303 2495 3215 9965 5387 15 7350 7724 1070 8164 2108

4.5 CTSH04 – TransferCredit (Time) APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Step Number TokenIssueDate TransferAmount

1 1993-01-01 00:00:00 0.1 min

2 1993-01-01 00:01:45 819.2 min

3 1993-03-25 13:55:22 1638.3 min

4 1996-03-25 13:55:22 1638.4 min

5 2005-11-01 00:01:55 9011.1 min

6 2015-12-01 00:01:05 18022.3 min

7 2024-11-24 20:15:00 18022.4 min

8 2004-04-20 10:00:00 90931.1 min

9 2004-04-20 11:00:00 181862.3 min

10 2004-04-20 12:00:00 181862.4 min

11 2004-04-20 13:00:00 910081.1 min

12 2004-04-20 14:00:00 1820162.4 min

Overview: This test verifies general compliance with respect to the generation of a TransferCredit token, tests boundary conditions for exponents, and TID generation. Step Instruction Expected Result

1 – 12

According to the manufacturer’s instructions provided in Table 5, generate TansferCredit tokens with the information in the APDU above, and for each of the steps indicated above. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then do only step 1.

The token must be identical to one of the tokens specified in the token tables below corresponding to the step number. i.e. step 1 corresponds to the First Token Table. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then this step must fail.

First Token Table Second Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0407 9668 0700 7368 7165 0 0580 7485 1801 9706 3827

1 0799 6924 2699 2826 4824 1 1268 4214 1622 8101 6638

2 1055 3950 9805 7837 6533 2 2540 8609 5419 5903 3247

3 1085 4214 1074 7549 6395 3 2733 7946 6492 6257 0489

4 3060 3368 5781 3236 2441 4 2936 9096 0013 3667 6105

5 3500 3509 9305 6445 7704 5 3448 2510 4758 2972 5097

6 3512 0222 4691 9947 6150 6 3797 1952 9644 5810 7071

Page 15: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 15

7 4773 4557 4146 2594 2270 7 3913 7264 3469 5391 5384

8 5223 3051 4935 9688 2734 8 4321 3143 0204 8505 8509

9 6123 3751 3917 3727 2183 9 4410 8199 0544 0941 3769

10 6328 4106 5211 7527 9013 10 4491 9692 5655 3141 9748

11 6604 8921 3525 1778 4584 11 5231 1045 0228 9489 5020

12 6661 8243 6721 0606 2853 12 5853 1943 5594 5761 3291

13 7010 9196 5123 5987 9766 13 6392 2110 9470 4071 8110

14 7174 7247 2737 8162 3902 14 7297 2217 5837 5499 2466

15 7260 2672 4596 4156 2502 15 7347 6705 5875 9018 5622

Third Token Table Fourth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0295 6630 8963 3270 8146 0 1129 5532 6047 6562 6325

1 0410 3388 1834 0421 9951 1 1619 1470 3256 8831 4425

2 1113 3216 9725 1399 2868 2 1846 3432 7404 8457 3043

3 2195 1177 0312 1502 0205 3 1914 1513 9727 1088 3672

4 2246 0095 2078 0809 1412 4 2053 5588 4839 0961 6772

5 2371 4525 5329 1781 6771 5 2173 8969 8568 3308 1343

6 3415 8192 5056 1142 8301 6 2585 7144 4958 8560 0882

7 5124 5993 8767 9017 5761 7 2657 7559 7791 8108 4352

8 5215 0500 0328 4351 7664 8 3165 1216 7293 8041 0019

9 5417 8567 9106 2641 4660 9 3413 3793 6747 3060 4234

10 5636 1623 6245 2789 8048 10 5855 2198 2505 0888 3346

11 5666 3637 9279 2778 0741 11 6345 3712 5275 2458 1045

12 5738 0434 5885 8862 1021 12 6489 2415 2992 9625 7489

13 6331 8041 3890 4688 9808 13 6511 3282 7850 1212 4625

14 6536 8483 9881 5544 8616 14 6546 2436 7231 2797 4079

15 7196 9446 9773 6568 6648 15 7098 2384 2413 6207 7743

Fifth Token Table Sixth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0233 1362 3783 3293 6994 0 0023 5126 6280 6908 4464

1 0266 3397 6639 4125 7378 1 0474 5771 5436 4497 7989

2 0493 7505 1328 5595 6064 2 0589 9091 0435 0597 6693

3 1204 8159 6832 4529 4762 3 0801 4854 6346 5825 6405

4 1559 8646 8481 1870 7723 4 1636 8299 5173 7275 3022

5 2476 6709 8545 5715 3730 5 1859 0829 8515 7700 7200

6 3207 2575 4053 5335 4709 6 2453 3891 8146 1413 5826

7 3650 3700 8000 5100 0073 7 2465 5289 2697 7989 3759

8 4365 1289 1608 7249 5084 8 3642 0025 1288 9367 8198

9 4494 0756 2200 7996 8454 9 4170 0174 2001 5860 1952

10 4530 2053 8812 9447 6778 10 4655 2602 8947 6540 5481

11 5070 0601 6874 0776 7480 11 4869 0772 2345 9620 7581

12 5222 5794 4371 6197 8635 12 5317 3090 8037 1360 1026

13 6569 2699 2178 5311 8224 13 5710 9922 7231 0761 9900

14 6972 6664 6192 3796 3922 14 5826 0560 6837 9340 4986

15 6986 9653 9637 5768 0629 15 6791 3421 0304 4200 7280

Seventh Token Table Eighth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0179 6286 1189 2698 2090 0 0775 5140 5489 6469 1580

1 0254 3344 4782 4192 1861 1 1924 5640 4178 0072 5775

2 0706 1198 5592 8848 0481 2 2687 3546 9656 6777 8965

3 1594 1710 6411 4717 4686 3 3971 0781 7335 2369 4708

4 1654 9739 4696 8259 4005 4 4152 9738 6085 5500 7936

5 1785 0324 6658 6336 3397 5 4265 6580 6675 7423 1191

6 1845 2088 7895 9221 0420 6 5232 1970 7651 9834 9351

Page 16: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 16

7 2417 4458 8950 4640 2180 7 5490 5761 6505 2341 9392

8 2418 1952 4983 6374 7724 8 5610 5339 6855 3223 6702

9 2864 5481 0554 0708 8231 9 5805 9515 3251 7171 0702

10 3745 7630 6366 5287 4686 10 6184 0811 7147 8029 2943

11 4949 2267 1386 1067 2404 11 6332 1986 3868 0807 5455

12 5026 9959 6741 6923 1432 12 6474 2966 2680 9535 5554

13 5553 5487 7609 2653 4871 13 7160 6713 1273 5512 0176

14 6621 0968 6813 5299 1973 14 7167 7608 1504 9686 4658

15 6898 3575 6837 9061 4358 15 7297 1647 1327 4325 9717

Ninth Token Table Tenth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0118 1182 4780 7364 4816 0 0229 5016 3013 8410 2292

1 0119 1032 8470 5856 3864 1 0571 4967 1372 3241 0835

2 1523 1034 6460 1548 2729 2 1978 8924 6705 0666 7452

3 2146 7208 1650 7736 7610 3 2601 4650 5233 0555 5732

4 2308 7783 4873 6880 8965 4 2841 0501 7141 6693 9975

5 2489 9815 9097 3758 0896 5 3158 2992 4934 9914 5760

6 2795 2168 0619 8340 2597 6 3229 8629 5424 2452 9781

7 3035 0526 9172 4074 0705 7 3336 0456 5979 0770 1694

8 3469 8762 7771 3409 3105 8 3972 7105 9174 6483 6949

9 3665 7819 1134 9379 4671 9 5297 9307 3897 8012 0052

10 3852 1847 3415 0949 5797 10 5332 2346 7046 9114 4398

11 4704 2556 0231 9651 5546 11 6600 4534 4584 0528 4350

12 5249 0333 3044 4726 5216 12 6760 0977 0455 1969 2976

13 5416 2620 3964 6712 2619 13 6910 4712 1612 1134 3134

14 5483 8465 2816 9934 2798 14 6930 2058 9850 2675 9351

15 5970 8290 9829 0267 1284 15 7159 4003 8912 3073 9744

Eleventh Token Table Twelfth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0860 0656 2913 1076 5043 0 09996934578668511760

1 1027 4440 7081 1932 7313 1 1276 9215 8594 0334 5852

2 1122 9860 4754 0513 9246 2 1444 7963 8922 0315 1014

3 2329 9963 1105 1927 2772 3 1636 5309 7712 9085 5199

4 2523 5671 5407 9784 5882 4 1780 5643 5139 0305 3474

5 3456 7819 0871 5746 6836 5 2340 4534 7999 3762 1098

6 3510 4671 1962 6405 7062 6 3119 0245 9832 8800 4460

7 4026 2377 8587 7088 0573 7 4495 1838 8710 6899 6684

8 4149 1374 4934 8007 7975 8 4750 7699 3256 3801 7348

9 4473 4470 4784 0048 4442 9 5143 4553 5914 9061 9149

10 5295 7865 4044 1769 8690 10 5203 8987 4089 1998 0100

11 5783 5116 8663 0586 3508 11 5342 5570 8711 3071 4676

12 5837 9393 2585 2499 7956 12 5495 2881 7721 8635 9180

13 6526 8356 8974 0093 8710 13 5884 8315 7500 2276 5808

14 6572 4518 9915 7567 4512 14 6317 2130 0912 5612 9665

15 7186 4362 7023 8738 3010 15 6362 5889 5764 5126 5950

4.6 CTSH05 – TransferCredit (Currency) This test shall only be performed if the manufacturer has indicated that the UUT supports the generation of TransferCredit (Currency) tokens as specified in STS202-1, otherwise this test may be omitted.

Page 17: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 17

APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Step Number TokenIssueDate TransferAmount Currency Type

1 2004-04-21 10:01:00 1 electricity

2 2004-05-21 10:02:00 16383 electricity

3 2005-04-21 10:03:00 16384 electricity

4 2005-04-22 10:04:00 180224 electricity

5 2005-04-22 11:00:00 1818624 electricity

6 2005-04-22 11:01:00 18202624 electricity

7 2005-04-22 11:02:00 182042624 electricity

8 2005-04-22 11:03:00 1820442624 electricity

9 2005-04-22 11:04:00 18204442624 electricity

10 2005-04-22 11:05:00 1.82044E+14 electricity

11 2005-04-22 20:10:00 1.82044E+20 electricity

12 2005-04-22 20:11:00 1.82044E+29 electricity

13 2005-04-22 20:12:00 -1 electricity

14 2005-04-22 20:14:00 -180224 electricity

15 2005-05-12 20:15:00 -1.82044E+14 electricity

16 2006-05-21 11:00:00 100 water

17 2006-05-21 11:00:00 5000 gas

18 2006-05-21 11:00:00 10000 time

Overview: This test verifies general compliance with respect to the generation of a TransferCurrency token, and tests exponent value calculation. Step Instruction Expected Result

1 – 18

According to the manufacturer’s instructions provided in Table 5, generate TansferCurrency tokens with the information in the APDU above, and for each of the steps indicated above. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then do only step 1.

The token for each step must be identical to the token corresponding to the step number specified in the token table below. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then this step must fail.

Token Table

Step Token Decimal Digits

1 4506 6329 1635 3161 8596

2 1925 0379 1416 8111 4387

3 4848 2057 1880 2306 0160

4 1296 0877 3249 3392 2703

5 4851 1243 7043 6948 4668

6 3600 1505 2597 3050 5046

7 6144 7800 8579 9617 1473

8 5392 5292 7952 8739 6832

9 0784 2236 2617 6701 7144

10 5565 8242 6007 6144 6790

11 4826 2237 9503 2946 6027

12 0240 7051 5294 2692 8200

Page 18: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 18

13 1996 7171 6850 5348 9543

14 6886 8184 9379 9453 8274

15 5363 6948 0211 5583 6902

16 4974 5242 9086 5729 9790

17 5652 4510 6715 6081 3051

18 6270 3521 8835 9958 5995

4.7 CTSH06 – KeyChange APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

EA 07

Initial DKGA 02

Initial SGC 123456

Initial TI 01

Initial KRN 1

Initial KT 2

Initial KEN FF

Initial VUDK1 ABABABABABABABAB

Step Old Value New Value

1 TI = 01 TI = 02

2 KT = 2 (VUDK1) KT = 1 (VDDK)

3 SGC = 123456 (VUDK1) SGC = 888888 (VUDK2)

4 KEN = 0XFF KEN = 0X55

5 TI = 01, Res=0 TI=02, Res = 1 (triplet - note 1)

Note1: This test is only relevant if the manufacturer has stated that the SM supports the generation of the keychange triplet. Note 2: where an Old Value and a New Value are given in the steps above, all other parameters remain as per the APDU information given above.

Overview: This test verifies general compliance with respect to the generation of a Keychange token. Note: this test may be omitted if the UUT is a manufacturing module, and this functionality is not supported. Step Instruction Expected Result

1 – 5

According to the manufacturer’s instructions provided in Table 5, generate Keychange tokens with the information in the APDU above, and for each of the steps indicated above.

The token for each step must be identical to the token corresponding to the step number specified in the token table below.

Token Table Triplet Step Token1 Decimal Digits Token2 Decimal Digits Token3 Decimal Digits

1 5163 8423 0600 4273 4509 1536 1891 7621 1350 2242 n/a

2 0221 3471 7110 3828 7978 0607 3019 9921 1778 5234 n/a

3 5641 9934 7976 1759 8689 6359 9395 5555 9251 4712 n/a

4 0703 2292 9373 1268 5575 5201 7397 7397 8590 7011 n/a

5 5810 1564 8833 3769 6999 1536 1891 7621 1350 2242 2178 0554 7032 5128 6367

Page 19: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 19

4.8 CTSH07 – Tokens Generated for 4 Digit Manufacturer Codes

APDU information to be used for this test: MeterPAN 000001234567890078

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Token Issue Date 2004-04-24 11:00:00

Register to Clear 0

Overview: This test verifies general compliance with respect to the generation of a TransferCredit token for a 4 digit manufacturer code (13 digit DRN) as well as the handling of a non-zero DRN. Step Instruction Expected Result

1

According to the manufacturer’s instructions provided in Table 5, generate a 100 kWh TansferCredit token with the information in the APDU above.

The token must be identical to one of the tokens specified in the First TokenTable below. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, then this step must fail.

2

According to the manufacturer’s instructions provided in Table 5, generate a ClearCredit token with the information in the APDU above.

The token must be identical to one of the tokens specified in the Second TokenTable below.

First Token Table Second Token Table Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0532 1546 2887 7313 9028 0 0785 0153 0330 5467 8441

1 1355 3050 9815 9431 8346 1 1210 9989 4083 1108 7234

2 2078 5067 2331 0873 2202 2 2213 7638 0212 1238 2007

3 2333 4894 1353 7027 3588 3 2225 3025 5946 9412 4230

4 2405 6220 4875 7968 3826 4 2544 9676 4820 2894 1603

5 2645 2580 6342 6600 6914 5 3286 7503 5751 3534 2214

6 2654 5380 0346 6495 5493 6 3676 7430 2686 7413 5693

7 2756 0932 4026 1484 3285 7 3690 2331 2739 1236 2499

8 3430 5400 5270 9966 3767 8 4071 5960 4898 5342 4999

9 4050 4818 8895 3351 3403 9 5111 5506 2503 0643 5899

10 4948 1729 6236 7015 1832 10 5664 7482 6835 0411 8627

11 5302 9638 6662 2160 2026 11 6157 9429 1150 4366 3956

12 5365 6067 6446 2069 0964 12 6185 9309 8128 8184 9099

13 5911 4994 7007 3563 7266 13 6268 1624 1503 8707 1913

14 6005 5376 5510 4072 5289 14 6465 8185 7523 2904 5354

15 6895 5440 3506 1723 4069 15 6589 0627 7667 9890 6201

4.9 CTSH08 – MaximumPowerLimit APDU information to be used for this test:

Page 20: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 20

MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Step Number TokenIssueDate TransferAmount

1 2004-04-21 10:01:00 100

2 2004-04-21 10:04:00 16384

3 2004-04-21 10:05:00 90111

4 2004-04-21 10:08:00 909311

5 2004-04-21 10:11:00 9100811

6 2004-04-21 10:12:00 18201624

Overview: This test verifies general compliance with respect to the generation of a MaximumPowerLimit token, and TID generation. Step Instruction Expected Result

1 – 6

According to the manufacturer’s instructions provided in Table 5, generate maximumPowerLimit tokens with the information in the APDU above, and for each of the steps indicated above.

The token must be identical to one of the tokens specified in the token tables below corresponding to the step number. i.e. step 1 corresponds to the First Token Table.

First Token Table Second Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0504 0684 4226 5526 7345 0 0167 9972 7215 1101 9816

1 0794 7363 7444 1546 0238 1 0689 4003 1132 8461 7207

2 1096 9297 2662 8864 1290 2 1424 7202 8783 7153 2707

3 2095 1055 4432 9507 4734 3 1830 6108 0843 9534 7681

4 2346 9113 5430 3950 0657 4 2470 7204 1465 6410 8715

5 2373 9387 0496 3310 3796 5 3265 6251 4232 2891 1890

6 2463 3589 7874 5172 4470 6 3704 9087 3707 8877 2039

7 2758 8778 8062 6501 9973 7 3957 6753 3215 7201 5369

8 3281 5004 3742 4315 9995 8 4413 7228 4831 5863 9483

9 4448 5150 6744 3772 6024 9 4864 8173 8348 9446 8231

10 4767 5028 8574 3530 7496 10 5063 6140 3418 7448 6946

11 5262 4587 3854 1331 0455 11 5611 8620 1438 7997 5322

12 5412 3110 0772 7272 6361 12 5647 3969 9223 1704 4958

13 5712 0483 6715 9891 0933 13 5755 7509 6619 9679 9191

14 5835 8816 0082 3484 7226 14 5987 4309 1197 9015 8629

15 6363 8245 8723 7401 5442 15 6826 5241 0573 2105 4874

Third Token Table Fourth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 1193 7937 5023 1690 0460 0 0350 1925 9729 8549 8699

1 1622 6713 9272 4359 5199 1 1157 0153 0500 6685 9253

2 1751 4418 7420 9386 6366 2 1158 9253 5089 9756 8293

3 2087 6716 8312 1123 0069 3 1311 2658 7738 0451 8737

4 3010 3677 9725 6159 0519 4 1969 8651 8773 4373 9080

5 3405 7616 4493 1896 3391 5 2061 9300 8166 2412 7990

6 3463 4098 1412 0861 4928 6 2589 6696 2271 2804 7180

7 3660 1134 7785 3967 5245 7 3062 4947 2027 4657 6252

8 3925 0285 5935 0495 9471 8 4491 7392 9168 8927 2352

Page 21: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 21

9 5017 0311 3211 0829 4837 9 4537 0850 5597 7648 4803

10 5514 5393 6945 4567 9894 10 4708 4510 8703 8194 8457

11 5762 3691 1162 7754 7630 11 4940 3154 0637 6386 4813

12 5785 3480 9693 3770 5214 12 5467 7893 3914 1772 9872

13 6076 0180 9493 4026 4442 13 5968 3305 5945 3404 7089

14 6630 5731 5895 9024 5940 14 6080 2117 3245 2722 6393

15 6673 5985 2696 2556 9339 15 6436 4191 6208 2626 2187

Fifth Token Table Sixth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0706 3334 4091 6326 7125 0 0024 8294 9480 9254 5442

1 1004 1776 4050 3552 1263 1 0041 9705 2396 1138 4312

2 1377 4862 4574 3973 2382 2 0151 2476 4976 3504 8947

3 1508 4827 7238 0476 0548 3 0307 6329 2783 2932 2314

4 1690 4551 2047 7882 2231 4 1241 6326 3008 3785 6624

5 1907 9203 1033 3772 5986 5 1387 9544 3192 0683 8107

6 1966 0590 4472 4273 5149 6 1427 3500 3861 0988 7220

7 2109 9743 3423 6834 1542 7 2425 3494 1071 9381 5962

8 3421 5150 1201 4849 5654 8 3281 2440 7908 8657 4949

9 4952 3512 7532 2074 3359 9 3735 1293 3627 6018 6625

10 5243 3168 6219 9755 5509 10 4418 9471 3792 4386 4400

11 5272 6848 3050 4275 2843 11 4998 3905 0117 1034 6772

12 5321 9450 4097 7486 0766 12 5221 4388 8027 9389 4771

13 6190 6108 4030 4777 0141 13 5842 3013 0562 2201 1882

14 6846 8056 8342 9127 2776 14 6102 1643 6010 8237 8677

15 6955 6636 3625 6851 4463 15 7317 9384 5880 2755 3622

4.10 CTSH09 – MaximumPhasePowerUnbalanceLimit APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Step Number TokenIssueDate TransferAmount

1 2004-04-21 10:01:00 100

2 2004-04-21 10:04:00 16384

3 2004-04-21 10:05:00 90111

4 2004-04-21 10:08:00 909311

5 2004-04-21 10:11:00 9100811

6 2004-04-21 10:12:00 18201624

Overview: This test verifies general compliance with respect to the generation of a MaximumPhasePowerUnbalanceLimit token, and TID generation. Step Instruction Expected Result

Page 22: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 22

Step Instruction Expected Result

1 – 6

According to the manufacturer’s instructions provided in Table 5, generate MaximumPhasePowerUnbalanceLimit tokens with the information in the APDU above, and for each of the steps indicated above.

The token must be identical to one of the tokens specified in the token tables below corresponding to the step number. i.e. step 1 corresponds to the First Token Table.

First Token Table Second Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0200 3128 6061 6937 9694 0 0058 9425 7824 9095 1370

1 0603 6404 5648 5493 9501 1 0358 1136 1076 6004 8230

2 0655 3157 3464 4956 6379 2 0388 4602 2596 6057 0835

3 0894 0102 1431 6755 4951 3 0672 6115 0868 4161 0739

4 0937 3439 6928 6640 5745 4 0969 5815 5857 1243 3016

5 1003 6827 2220 0412 4230 5 1031 1768 6128 2693 9066

6 1962 5549 8867 5459 5173 6 1576 5012 5123 3936 5063

7 2114 4572 2648 4014 4631 7 2114 7346 5265 1535 5126

8 2980 7565 3398 6888 3268 8 3780 3529 3409 1617 2302

9 3498 2394 5567 1545 1310 9 3997 5713 9471 5811 4530

10 3767 5020 2053 5223 6792 10 4146 0126 0334 6934 3948

11 4140 1451 7915 2579 3778 11 4576 9056 2509 5483 0509

12 5024 8459 5889 5969 6533 12 5303 2679 7476 8223 7141

13 5753 2101 9486 3019 3715 13 5465 7603 0274 4033 3868

14 6399 0663 2483 2418 2512 14 6609 4917 5656 8323 7634

15 6703 8371 7350 2284 7786 15 7203 0305 8228 2112 3094

Third Token Table Fourth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0079 0569 0829 6088 9474 0 0434 0450 6933 9708 7910

1 0508 7479 8753 7085 3664 1 0641 9458 1939 4716 2476

2 0547 0676 3920 9550 9517 2 0771 1508 4065 2748 8649

3 1165 8312 9565 4905 8489 3 0913 1072 7250 5412 9981

4 2392 0735 4868 9533 3374 4 2375 0621 8465 4339 5889

5 2404 9471 5610 0416 5755 5 3913 5902 5023 3286 5909

6 3126 5771 7158 6288 7002 6 4796 0514 0600 7162 0221

7 3159 1901 7832 4561 1116 7 5252 2551 2422 9295 2497

8 3480 6080 0938 4403 6213 8 5297 5290 3145 9244 8850

9 3566 3491 1819 4810 5797 9 5400 6739 9601 5217 1951

10 4443 4094 6716 0684 9685 10 5845 3469 1202 8361 1774

11 4523 2671 0304 0838 4573 11 6029 1075 5921 1715 5775

12 5800 8505 0350 1297 0620 12 6221 1533 5272 0580 1679

13 6170 2745 9906 6700 8788 13 6739 4558 1425 2573 2809

14 6372 5196 2901 8883 2103 14 7050 1058 6513 1935 1227

15 6939 2086 3761 5817 6369 15 7062 7525 4230 9231 1224

Fifth Token Table Sixth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0158 1781 3896 3599 2124 0 0295 9638 7894 5253 4831

1 0263 5433 5991 3995 4006 1 0639 9115 8507 1791 7036

2 0457 3202 4062 9405 8686 2 1895 4515 8895 7868 7241

3 1814 1355 3938 0333 9153 3 1990 4501 5863 7081 9961

4 2074 1651 5070 4157 1249 4 2320 4168 0754 6818 8543

5 2445 5462 4714 0737 8976 5 3225 6929 5614 6387 0458

6 3296 3607 0600 6211 9357 6 3271 2701 7530 4035 0579

7 4540 0763 8940 5218 4665 7 3805 8486 1393 4822 3986

8 4887 3806 8124 2295 4529 8 3916 7859 3373 6377 2854

9 4906 9909 4136 3507 4200 9 5655 6484 2305 3094 2869

Page 23: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 23

10 5165 6787 2916 0198 4487 10 5698 0789 8999 6832 0025

11 6553 7892 0773 0573 7749 11 5738 3391 7907 8101 7798

12 6644 8494 8706 4382 1068 12 5860 6524 7068 8888 8795

13 6857 1234 3321 2441 3357 13 6848 7751 1437 6567 6949

14 6981 1293 4657 6838 6270 14 6944 3098 7513 0650 8988

15 7255 0289 0475 5208 5232 15 6999 3976 7273 4898 6767

4.11 CTSH10 – ClearCredit APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

STEP REGISTER TO CLEAR TID DATE

1 0 2004-04-25 11:00:00

2 1 2004-04-25 11:00:00

3 2 2004-04-25 11:00:00

4 3 2004-04-25 11:00:00

5 4 2004-04-25 11:00:00

6 5 2004-04-25 11:00:00

7 6 2004-04-25 11:00:00

8 7 2004-04-25 11:00:00

9 0xffff 2004-04-25 11:00:00

Overview: This test verifies general compliance with respect to the generation of a ClearCredit token. Step Instruction Expected Result

1 – 6

According to the manufacturer’s instructions provided in Table 5, generate ClearCredit tokens with the information in the APDU above, and for each of the steps indicated above.

The token must be identical to one of the tokens specified in the token tables below corresponding to the step number. i.e. step 1 corresponds to the First Token Table.

First Token Table Second Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0009 6067 8182 9487 5774 0 0742 1416 7316 0118 3470

1 0652 1255 5400 3203 4220 1 1109 2438 0766 8065 9299

2 0657 8033 6596 7964 3906 2 1915 6332 0326 5705 4667

3 1719 7628 3366 6898 7986 3 2355 2568 4280 9547 5369

4 1954 2924 0591 8156 6817 4 2899 1533 2385 6173 3354

5 2567 6961 5427 8191 7966 5 3223 0525 6518 3502 4373

6 2649 6896 3073 4255 4745 6 3767 5698 0515 7666 0892

7 3531 8209 1365 2333 5541 7 3860 1020 0705 1852 5761

8 3572 6319 3969 4961 6769 8 4180 6802 7433 3569 2132

9 4223 4632 2777 6862 0797 9 4679 2124 7987 2026 6836

10 4934 2026 4125 6352 8926 10 6063 1531 4091 2737 0868

11 5246 5939 3347 0668 8642 11 6456 7347 4935 3607 6020

12 5457 0889 4882 9685 9317 12 6507 5385 9385 3024 0099

13 5784 1813 8243 4344 5977 13 6957 5358 7268 5387 0149

14 7074 9074 8997 7990 1350 14 7132 2385 7048 6100 2313

Page 24: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 24

15 7191 2466 6315 7728 2935 15 7302 0952 4046 2956 5063

Third Token Table Fourth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0125 4218 7509 6918 5268 0 0238 3098 4460 4407 0159

1 0561 1758 8365 4236 1064 1 0324 6208 6641 3520 6716

2 2213 6404 2408 9882 7152 2 1472 5159 0330 4928 2401

3 3047 2028 8456 5033 7512 3 2558 7253 6930 7907 8334

4 3223 6189 1315 9883 8750 4 2738 1307 4098 2703 7251

5 4721 4801 0838 5199 3452 5 3947 5820 1130 8468 0051

6 4966 8513 7702 3958 1903 6 4152 0491 0873 4025 5843

7 5467 1315 8519 3274 8860 7 4211 2284 4611 3355 6201

8 5637 7371 0230 6713 3394 8 4518 7852 8378 7013 7669

9 5765 6621 0525 6029 8910 9 4684 5383 4444 8049 7446

10 5801 5520 8512 6054 5540 10 5032 0254 5301 5396 1466

11 6269 1730 9401 6506 2636 11 5255 2577 7623 6562 3058

12 6560 2182 3351 4413 0278 12 5319 4747 5242 6049 1585

13 6654 3030 1680 0416 8765 13 5585 0864 8587 5254 4486

14 6933 9222 6983 6537 6150 14 5941 0190 8681 9475 5537

15 7363 2833 4627 7933 6010 15 6652 3823 5467 4855 3078

Fifth Token Table Sixth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0284 5326 2929 8510 0345 0 0114 6003 7847 3718 9548

1 0398 8263 5281 2099 1762 1 0520 0819 1445 0596 4161

2 0546 2773 0057 6389 6093 2 0848 8156 1407 7183 9797

3 0796 7855 2974 1780 3461 3 1233 9798 6127 8762 7910

4 0810 8438 4010 9596 0422 4 2304 7747 4028 9598 2529

5 1220 7870 6081 1645 8802 5 2381 5119 0756 2339 3677

6 1622 8902 7983 5857 5589 6 3991 2326 1778 2661 1743

7 2443 8277 8214 8171 9963 7 4022 1211 1999 0797 0469

8 2758 4604 5500 4407 6359 8 4191 6288 0304 3704 4961

9 3065 5800 8181 0200 1326 9 4414 0323 0000 4086 8278

10 4495 9673 5171 1745 5323 10 4918 6086 2920 4305 3859

11 4829 6796 0186 7297 2638 11 5069 2778 3183 5190 2879

12 5020 2662 2318 5079 3204 12 5271 8523 7011 2643 9493

13 5650 2730 2994 5437 6393 13 6816 3019 4350 9616 1788

14 5722 3456 7049 0357 7297 14 6938 5138 8440 1841 2238

15 5843 9395 3693 4800 5605 15 7145 7351 5285 4467 4107

Seventh Token Table Eighth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0380 4619 0158 5833 7874 0 0490 1737 9555 4229 5447

1 0845 0347 3676 8550 1038 1 2305 0800 9108 9594 9226

2 2300 3935 1630 8211 6545 2 2307 8951 8338 9977 9774

3 2505 9806 2126 8387 0378 3 2795 1644 4923 2418 9054

4 2795 9520 8696 4331 0070 4 3668 7399 1790 4056 9986

5 3027 3423 8095 7976 2686 5 4463 3020 1466 6745 4167

6 3071 3403 1950 6336 9075 6 4657 2868 1243 8512 9486

7 4001 9582 5363 1986 7947 7 4660 1863 5961 5994 4151

8 4723 1190 9635 9312 1236 8 5082 7720 4569 8502 1012

9 5270 0458 5275 3454 5246 9 5613 3895 7545 6210 7906

10 5585 6022 7860 3192 3722 10 5655 0702 7675 1186 6530

11 5586 5700 8961 7605 8616 11 5835 1966 0733 5885 1670

12 5882 7208 9145 8629 0794 12 5949 2560 7545 2553 2338

13 5885 3540 4228 6114 2148 13 6102 6662 3444 5813 0033

14 5964 2563 1503 2585 6970 14 6298 6717 6161 4408 4166

Page 25: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 25

15 6304 8295 8061 3831 1550 15 6781 4186 0798 0064 6174

Ninth Token Table

Ordinal Token Decimal Digits

0 0013 9948 8575 9583 9317

1 0031 6328 3145 7036 7937

2 1270 3935 6296 1659 0537

3 1869 7702 2537 6343 5025

4 2274 7131 2182 4609 3815

5 2281 9953 8356 3129 8371

6 2828 2355 9014 4234 3330

7 3026 2656 3265 5526 2516

8 4601 8591 3097 3367 2640

9 4757 7572 6386 6146 2538

10 4858 6328 6251 7032 8052

11 5062 5670 7330 7214 7132

12 6333 1749 8055 1050 6552

13 6585 2919 2183 0870 0932

14 6752 7500 3650 3708 3976

15 6894 2707 1192 7230 7012

4.12 CTSH11 – ClearTamper APDU information to be used for this test: MeterPAN 600727234567890177

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Token Issue Date 2004-04-21 11:00:00

Overview: This test verifies general compliance with respect to the generation of a ClearTamper token. Step Instruction Expected Result

1

According to the manufacturer’s instructions provided in Table 5, generate a ClearTamper token with the information in the APDU above.

The token must be identical to one of the tokens specified in the token table below.

First Token Table

Ordinal Token Decimal Digits

0 0308 9964 5759 3904 5400

1 0761 6130 3893 1154 7302

2 0865 2033 8204 4835 1908

3 1131 1664 2036 2014 3420

4 1141 0360 9183 8205 7509

5 1334 9130 5645 8723 8796

6 1490 4401 7279 1104 2424

7 1781 9866 5168 4361 8171

Page 26: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 26

8 2527 2504 1712 9504 9325

9 3083 5044 4986 2691 7595

10 3169 5612 5657 5854 1448

11 3171 7249 4803 3961 8089

12 4189 3935 9172 9985 1850

13 4244 4569 5521 8922 5390

14 6850 8084 7870 5169 8510

15 7122 2432 8307 0235 4691

4.13 CTSH12 – SetTariffRate APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Token Issue Date 2004-04-21 11:00:00

Rate Value 100

Overview: This test verifies general compliance with respect to the generation of a SetTariffRate token. Step Instruction Expected Result

1

According to the manufacturer’s instructions provided in Table 5, generate a SetTariffRate token with the information in the APDU above.

The token must be identical to one of the tokens specified in the token table below.

First Token Table

Ordinal Token Decimal Digits

0 1091 5794 1344 4299 0146

1 1425 3713 9457 2839 5886

2 1452 9197 7126 8038 3090

3 2086 8587 9635 4343 6225

4 2656 2932 9708 8190 4287

5 3016 4865 3093 3847 8024

6 3417 8057 4935 8440 2968

7 3582 9208 9656 8600 0735

8 3602 3653 7825 5813 3367

9 3889 7922 3887 8971 6516

10 3964 1336 4951 2372 1931

11 4485 3561 7570 8503 6620

12 4718 8378 8025 6080 7231

13 5094 1383 1968 3152 7321

14 5509 1497 8936 8934 8758

15 5861 9382 0271 0070 3982

4.14 CTSH13 – SetWaterMeterFactor APDU information to be used for this test:

Page 27: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 27

MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Token Issue Date 2004-04-21 11:00:00

Water Meter Factor 100

Overview: This test verifies general compliance with respect to the generation of a SetWaterMeterFactor token. Step Instruction Expected Result

1

According to the manufacturer’s instructions provided in Table 5, generate a SetWaterMeterFactor token with the information in the APDU above.

The token must be identical to one of the tokens specified in the token table below.

First Token Table

Ordinal Token Decimal Digits

0 0058 4584 1512 6471 0279

1 0433 8691 1553 4179 4732

2 2692 6657 2500 0118 6430

3 3235 0235 1821 4904 4806

4 3515 0421 7970 4645 6464

5 3891 0984 0639 7394 0616

6 4006 5476 9172 8658 3416

7 4182 3837 7630 7216 9805

8 4775 0967 9002 9409 6575

9 4892 3108 6551 0196 7048

10 5013 1938 4974 0155 7439

11 5022 4012 1680 2503 9503

12 5212 9964 4398 9783 4023

13 5861 5370 3332 0074 8696

14 6082 0994 5148 8973 4429

15 7098 0052 2161 1687 0265

4.15 CTSH14 – STSReserved APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

RES Data 100

STEP SubClass TID DATE

1 10 2004-04-21 11:00:00

Page 28: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 28

Overview: This test verifies general compliance with respect to the generation of a STSReserved token. Step Instruction Expected Result

1

According to the manufacturer’s instructions provided in Table 5, generate STSReserved tokens with the information in the APDU above.

The token must be identical to one of the tokens specified in the token table below.

First Token Table

Ordinal Token Decimal Digits

0 0191 0641 0858 7787 2250

1 0215 6010 0620 2433 7095

2 1071 6740 0558 5222 3396

3 1493 3703 4829 4641 5815

4 1935 2944 6414 1128 9848

5 2105 1361 1735 9758 3181

6 2694 4891 2061 3756 1728

7 2847 3970 2420 1670 9925

8 3690 2521 7567 5120 7879

9 4286 7288 6547 7677 1637

10 4476 6100 7578 3417 8689

11 4510 4279 9951 6182 2866

12 5107 2858 8775 5744 5623

13 5744 4390 2424 5947 6229

14 7180 3790 4895 1136 6705

15 7378 2262 4686 7051 9086

4.16 CTSH15 – ReservedForProprietaryUse APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Prop Data 100

STEP SubClass TID DATE

1 11 2004-04-21 11:00:00

2 12 2004-04-21 11:00:00

3 13 2004-04-21 11:00:00

4 14 2004-04-21 11:00:00

5 15 2004-04-21 11:00:00

Overview: This test verifies general compliance with respect to the generation of a ReservedForProprietaryUse token. Step Instruction Expected Result

Page 29: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 29

Step Instruction Expected Result

1 – 5

According to the manufacturer’s instructions provided in Table 5, generate ReservedForProprietaryUse tokens with the information in the APDU above, and for each of the steps indicated above.

The token must be identical to one of the tokens specified in the token tables below corresponding to the step number. i.e. step 1 corresponds to the First Token Table.

First Token Table Second Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0060 8233 8421 5431 1923 0 0101 4944 8236 5635 1836

1 0549 7630 2292 0974 8881 1 0640 2349 2932 3011 8794

2 1179 5142 2490 3288 3890 2 0649 6760 4159 7860 3878

3 1195 2233 3751 3794 1655 3 1402 4141 4304 9436 3120

4 1534 4111 2099 8252 3529 4 1516 2218 8430 9979 1289

5 1654 2259 6029 4544 7154 5 1822 6177 7550 8640 1168

6 2064 9328 3976 1118 6398 6 2783 2138 6384 0895 3968

7 3347 8165 9788 9900 8145 7 3095 2010 0285 7372 0629

8 3655 2074 4119 0504 2516 8 3435 5290 0041 4880 9185

9 3799 2561 1155 4762 7548 9 3470 9825 8346 3224 0588

10 3867 1280 2818 6349 9241 10 3847 1864 8435 3316 4120

11 4167 4512 8526 8071 8233 11 5131 0682 1050 4441 5807

12 4214 5574 3494 6433 4913 12 5223 1857 3276 7340 4127

13 4649 9579 2684 0972 2740 13 5343 0538 6990 6752 4589

14 5636 2817 8281 0468 5192 14 6756 1604 2784 9358 7455

15 6014 1797 4780 6010 9370 15 7261 2750 0073 4478 7338

Third Token Table Fourth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0989 1614 7813 5356 4103 0 0736 1488 3142 4940 5222

1 1183 0994 0101 8250 4196 1 1105 8827 0240 6028 1845

2 1265 9021 8884 6995 1537 2 2002 8000 5641 4705 8633

3 1876 4432 0884 5056 7638 3 3346 8615 6079 9088 7514

4 1914 4474 1057 2807 8616 4 4072 4119 4990 8085 2542

5 2673 6252 1208 6249 1967 5 4340 2581 5700 4729 2943

6 2857 7310 0150 5377 1066 6 4718 0089 9242 2970 1096

7 3024 1165 5086 0985 2921 7 4876 9524 9909 2810 4393

8 4648 2187 6337 3893 0402 8 5195 9992 9506 2302 9582

9 5046 4554 0802 1178 1184 9 5783 3883 0201 4775 6642

10 5340 3104 1063 3453 6793 10 6203 4648 8655 7318 1996

11 6193 2624 3328 1344 2278 11 6217 9455 9948 5596 4471

12 6284 7024 4614 2160 3785 12 6432 6457 4017 6423 6362

13 6389 1275 4212 7789 9188 13 6761 3752 0496 5374 7274

14 6583 5902 0654 8581 8241 14 6942 4545 1362 3595 5660

15 6759 7775 4317 4269 4888 15 6997 7541 0600 0972 1504

Fifth Token Table

Ordinal Token Decimal Digits

0 0557 8817 6099 6990 6981

1 0850 0701 8702 4902 7247

2 1136 9308 2165 1536 3691

3 2456 0248 7824 9408 8292

4 2469 2655 9439 9623 7836

5 2720 6607 0387 4222 4274

6 2764 4462 9358 9760 1075

7 3325 8253 5718 8804 1765

8 3725 9407 3638 6521 3784

9 4547 4808 3829 7112 2471

10 4661 9190 6695 3579 1392

11 4718 9487 0280 6435 7735

Page 30: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 30

12 4741 2008 4714 9965 7518

13 5151 9444 0692 4936 5612

14 5911 3850 7552 4436 3068

15 7316 8524 4583 2765 7964

4.17 CTSH16 – RandomNumber For this test, ensure that in the preceeding tests (CTSH1 -15), at least 4 different ordinals are generated in the results. It should be noted that some of the tests in the range CTSH1-15 do not create ordinals since they do not use a TID value. If 4 ordinals are not created within this range, then more tokens must be generated until such time that 4 ordinals are created.

4.18 CTSH17 – Keychange under various KeyTypes APDU information to be used for this test: Meter PAN 600727000000000009

TCT 02

EA 07

DKGA 02

Initial VUDK1 ABABABABABABABAB

Initial SGC 123456

Initial TI 01

Initial KRN 1

Initial KT 1

Initial KEN FF

Initial RO bit 0

Table 2 - KeyType Rules Key Type DITK0 DDTK1 DUTK2 DCTK3

DITK0 to Allowed Allowed Allowed Allowed

DDTK1 to Not Allowed Allowed Allowed Allowed

DUTK2 to Not Allowed Allowed Allowed Not Allowed

DCTK3 to Not Allowed Allowed Allowed Allowed

Encrypt Credit Allowed Not Allowed Allowed Allowed

Overview: This test verifies general compliance with respect to the generation of a KeyChangeToken under various keytypes in order to test the rules shown in Table 2 above. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, and this functionality is not supported, then this test may be omitted. STEP OLD VALUE NEW VALUE VENDING KEY RESULT

1 KT = 1, TI = 01 KT = 1, TI = 02 VDDK Tokens generated

2 KT = 1, TI = 01 KT = 2, TI = 02 VDDK->VUDK1 Tokens generated

3 KT = 1, TI = 01 KT = 3, TI = 02 VDDK->VCDK Tokens generated

4 KT = 2, TI = 01 KT = 1, TI = 02 VUDK1->VDDK Tokens generated

5 KT = 2, TI = 01 KT = 2, TI = 02 VUDK1 Tokens generated

6 KT = 2, TI = 01 KT = 3, TI = 02 VUDK1->VCDK Key-type error

7 KT = 3, TI = 01 KT = 1, TI = 02 VCDK->VDDK Tokens generated

8 KT = 3, TI = 01 KT = 2, TI = 02 VCDK->VUDK1 Tokens generated

9 KT = 3, TI = 01 KT = 3, TI = 02 VCDK->VCDK Tokens generated

Step Instruction Expected Result

Page 31: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 31

Step Instruction Expected Result

1 - 9

According to the manufacturer’s instructions provided in Table 5, and the key register values supplied in Table 1, generate Keychange tokens with the information in the APDU above, and for each of the steps indicated above.

The token must be identical to one of the tokens specified in the token tables below corresponding to the step number. i.e. step 1 corresponds to the First Token Table.

Token Table Step Token1 Decimal Digits Token2 Decimal Digits

1 7359 0377 6375 1479 0013 1525 8777 0001 8488 5173

2 0819 7240 8416 3202 4502 2221 1747 0188 1998 8077

3 6120 5844 8082 0991 0235 4912 3407 1773 4672 7455

4 1901 1325 6893 0740 6288 1888 4080 3778 8883 3057

5 5163 8423 0600 4273 4509 1536 1891 7621 1350 2242

6 Not generated - KEY TYPE ERROR Not generated

7 1746 2703 8934 4226 0705 5110 2839 9349 4322 2029

8 4075 3154 1774 9516 3339 0676 6866 2094 5191 2707

9 4958 3710 6261 6578 8044 3366 6020 5963 0067 4374

4.19 CTSH18 – Generation of an Electricity Credit Token under various KeyTypes

APDU information to be used for this test: MeterPAN 600727123456789030

TCT 02

DKGA 02

EA 07

SGC 123456

TI 01

KRN 1

KT See tests below

KeyExpiryNumber FF

Vending Keys for KT=1 VDDK (see Table 1)

Vending Keys for KT=2 VUDK1 (see Table 1)

Vending Keys for KT=3 VCDK (see Table 1)

Overview: This test verifies general compliance with respect to the generation of a TransferCredit token under different key types. If the manufacturer’s instructions provided in Table 5 indicate that the module is a manufacturing module, do not perform this test. Step Instruction Expected Result

1

According to the manufacturer’s instructions provided in Table 5, and the key register values supplied in Table 1, generate a 100kWh Electricity TransferCredit token with the information in the APDU above, and a keytype of KT = 1 (VDDK), and a token issue date of 2004-04-21 10:00:00.

No token must be generated. The response must be a KeyType Error.

Page 32: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 32

Step Instruction Expected Result

2

Generate a 100kWh Electricity TransferCredit token with the information in the APDU above, and a keytype of KT = 2 (VUDK1), and a token issue date of 2004-04-21 10:00:00.

The token must be identical to one of the tokens specified in the first token table below.

3

Generate a 100kWh Electricity TransferCredit token with the information in the APDU above, and a keytype of KT = 3 (VCDK), and a token issue date of 2004-04-21 10:00:00.

The token must be identical to one of the tokens specified in the second token table below.

First Token Table Second Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 1024 8391 9248 0327 4483 0 0527 7910 7621 6308 3540

1 2067 6225 3856 8524 3206 1 0824 0835 8405 6118 7985

2 2411 8591 7734 6831 4836 2 0874 4143 0504 0127 5059

3 2474 4202 9149 4827 9305 3 1720 1834 6878 2511 4403

4 3313 1512 5624 5480 3053 4 2086 8743 5656 1027 3314

5 3529 3105 5678 2434 5774 5 2195 2099 7319 2873 9815

6 4099 6768 6629 2178 5677 6 2694 4305 3164 3601 8859

7 4214 6350 5614 4497 1133 7 2999 5481 0336 4272 2071

8 4696 3569 9087 8183 0776 8 3976 9430 9824 9372 7730

9 5144 3839 8450 4347 5074 9 4890 3041 5040 3379 4279

10 5467 4803 0279 8597 9584 10 5414 1373 0579 9014 0728

11 5988 2954 5563 8264 9377 11 5532 5900 4709 6220 1711

12 6471 0190 4401 9365 9695 12 6420 4521 5775 6308 5448

13 7177 2399 9621 2308 2187 13 6719 7944 0420 2100 2284

14 7195 1870 3792 8494 4910 14 7058 4603 0261 5918 8625

15 7366 1522 5722 0190 5592 15 7112 6860 5991 8276 7958

4.20 CTSH19 – Tokens Generated Using Algorithm DKGA01 for special DRN Values

APDU information to be used for this test: MeterPAN See Table 3 below

TCT 02

DKGA 01

EA 07

SGC 123456

TI 01

KRN 1

KT 2

KeyExpiryNumber FF

Vending Key VUDK1 ABABABABABABABAB

Overview: This test verifies general compliance with respect to the generation of keychange tokens using Decoder Key Generation Algorithm DKGA01 for specific DecoderReferenceNumbers as specified in IEC62055-41, and as listed below in Table 3. Table 3 – Special DRN Values

STEP Meter PAN Old Tariff Index New Tariff Index

1 600727010900000090 TI = 1 TI = 2

2 600727010900049931 TI = 1 TI = 2

3 600727010000000081 TI = 1 TI = 2

4 600727010049999996 TI = 1 TI = 2

5 600727030000000048 TI = 1 TI = 2

Page 33: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 33

6 600727031140000070 TI = 1 TI = 2

7 600727040000000021 TI = 1 TI = 2

8 600727040599999971 TI = 1 TI = 2

9 600727060100000051 TI = 1 TI = 2

10 600727060399999971 TI = 1 TI = 2

11 600727064000000039 TI = 1 TI = 2

12 600727064199999975 TI = 1 TI = 2

13 600727066600000087 TI = 1 TI = 2

14 600727066999999980 TI = 1 TI = 2

15 600727069900000179 TI = 1 TI = 2

16 600727069900099924 TI = 1 TI = 2

17 600727070000000051 TI = 1 TI = 2

18 600727070209999962 TI = 1 TI = 2

Step Instruction Expected Result

1

According to the manufacturer’s instructions provided in Table 5, generate a Keychange token pair with the information in the APDU above, and the values for Step 1 in Table 3 above.

The tokens generated must be: 3592 7668 9428 9733 7448 0072 7946 8337 3014 7810

2

As above for Step 2 of Table 3.

The tokens generated must be: 6108 6856 4479 5843 6817 0283 2015 1107 7521 5085

3

As above for Step 3 of Table 3.

The tokens generated must be: 4161 9910 2092 4876 2695 5316 2942 7438 4417 9250

4

As above for Step 4 of Table 3.

The tokens generated must be: 5638 3205 9622 8710 6298 1797 2297 3039 5145 6163

5

As above for Step 5 of Table 3.

The tokens generated must be: 1782 7529 9803 9202 0012 1715 2993 1918 0608 4745

6

As above for Step 6 of Table 3.

The tokens generated must be: 2733 2656 2300 7161 1462 0394 2274 4888 4275 8958

7

As above for Step 7 of Table 3.

The tokens generated must be: 0757 2007 2868 1522 8784 5630 8108 3049 7440 4616

8

As above for Step 8 of Table 3.

The tokens generated must be: 5886 3169 7953 5335 7222 2488 1931 0359 2504 2657

Page 34: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 34

Step Instruction Expected Result

9

As above for Step 9 of Table 3.

The tokens generated must be: 2038 3880 9669 2314 9493 1910 9566 8330 8604 4789

10

As above for Step 10 of Table 3.

The tokens generated must be: 2196 1132 8178 0361 9328 0658 7768 0446 9975 4637

11

As above for Step 11 of Table 3.

The tokens generated must be: 0281 5459 9784 4531 5828 1609 8177 3393 6252 2661

12

As above for Step 12 of Table 3.

The tokens generated must be: 5105 3359 3072 9580 0926 6395 9618 6190 9334 4464

13

As above for Step 13 of Table 3.

The tokens generated must be: 7008 7355 4677 8873 8485 3108 9163 6324 6322 5851

14

As above for Step 14 of Table 3.

The tokens generated must be: 1824 9125 4110 8794 1196 5115 3633 7117 1194 8368

15

As above for Step 15 of Table 3.

The tokens generated must be: 4988 2844 3619 1068 7239 6674 6540 1189 9684 0413

16

As above for Step 16 of Table 3.

The tokens generated must be: 1638 9749 3031 4770 6911 6062 0750 9273 2238 1344

17

As above for Step 17 of Table 3.

The tokens generated must be: 6874 9651 5337 0684 1306 0421 0312 0322 5012 2390

18

As above for Step 18 of Table 3.

The tokens generated must be: 1059 1438 8877 5053 1328 1311 3060 8708 7323 3102

Page 35: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 35

4.21 CTSH20 – Tokens Generated Using Algorithm DKGA01 for Special SGC Values

APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

DKGA 01

EA 02

SGC 123456

TI 01

KRN 1

KT 3

KeyExpiryNumber 55

Vending Key VCDK 4949494949494949

Overview: This test verifies general compliance with respect to the generation of ClearTamper tokens using Decoder Key Generation Algorithm DKGA01 for specific SupplyGroupCodes as specified in IEC62055-41, and as listed in Table 4 below. Table 4 - Special SGC Values

STEP SGC Control Field Issue Date

1 100702 0 2004-04-21 11:00:00

2 990400 0 2004-04-21 11:00:00

3 990401 0 2004-04-21 11:00:00

4 990402 0 2004-04-21 11:00:00

5 990403 0 2004-04-21 11:00:00

6 990404 0 2004-04-21 11:00:00

7 990405 0 2004-04-21 11:00:00

Step Instruction Expected Result

1

According to the manufacturer’s instructions provided in Table 5, generate a ClearTamper token with the information in the APDU above, and the values for each step given in Table 4 above.

The token must be identical to one of the tokens specified in the first token table below.

2

As above for Step 2 of Table 4.

The token must be identical to one of the tokens specified in the second token table below.

3

As above for Step 3 of Table 4.

The token must be identical to one of the tokens specified in the third token table below.

4

As above for Step 4 of Table 4.

The token must be identical to one of the tokens specified in the fourth token table below.

5

As above for Step 5 of Table 4.

The token must be identical to one of the tokens specified in the fifth token table below.

6

As above for Step 6 of Table 4.

The token must be identical to one of the tokens specified in the sixth token table below.

7

As above for Step 7 of Table 4.

The token must be identical to one of the tokens specified in the seventh token table below.

First Token Table Second Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0220 3922 2990 7519 8742 0 0711 6983 1612 7807 1278

Page 36: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 36

1 0451 4108 4189 2816 9436 1 1009 0239 9855 2203 7447

2 0548 9715 1536 1381 5658 2 1157 4451 2794 5431 2776

3 0890 6975 9204 6467 5565 3 1163 2110 6318 3136 7668

4 1038 5029 1213 7481 9883 4 1328 5010 2569 0635 3624

5 2184 3191 2720 3184 6356 5 1648 0331 6913 1636 6307

6 2207 2843 5862 3619 0165 6 2153 3166 9647 7122 1675

7 2879 6258 7113 3508 0886 7 2482 8984 9446 7153 2445

8 3148 8685 6752 5455 4539 8 3362 4842 6585 6294 6939

9 3430 8066 2389 9772 0374 9 3424 1930 2930 9042 6105

10 3845 3827 5362 2259 6249 10 3832 9630 4232 6327 4477

11 5364 9576 5571 6862 7940 11 3871 6308 6320 5178 0103

12 5595 5720 6527 6540 9078 12 6109 4862 1064 6627 2879

13 6335 9610 0353 8057 4939 13 6480 6811 2750 7857 5182

14 6355 2576 9052 6847 0385 14 6547 1054 7883 3844 2945

15 7301 5183 3471 2651 4629 15 6914 6262 3816 6318 7542

Third Token Table Fourth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0653 1170 7265 7188 5890 0 0001 2678 3733 9298 8956

1 0678 8150 9528 6235 1612 1 0409 1078 3552 7076 5638

2 0933 6119 8432 7931 1554 2 0867 8809 0889 4902 7430

3 1221 9183 6781 4714 6034 3 1844 1430 9793 2862 7406

4 1802 4440 6443 1544 2279 4 2107 4160 3293 4637 0283

5 2145 8139 7562 6600 8225 5 2503 6197 3974 9036 7931

6 2408 5106 7607 4399 0934 6 3290 1847 3104 4962 4926

7 3203 1126 0758 2847 4797 7 3830 4531 9749 4110 1199

8 3632 8537 6506 2484 0521 8 3889 6042 1133 3268 6338

9 3733 3477 1088 1828 6365 9 3890 0033 3587 9715 6455

10 3770 4012 0119 3994 1580 10 4167 3766 4716 2196 8760

11 4075 0861 2517 5221 9249 11 4628 8026 1349 2248 0944

12 4745 5872 6497 7912 7567 12 4864 3837 3986 4665 6399

13 5883 3270 8529 4292 8882 13 5356 0473 5888 1119 0114

14 6148 7432 0940 8185 8473 14 5915 2415 2945 7313 0629

15 6266 4460 3437 8904 6798 15 6076 9657 1949 0121 5436

Fifth Token Table Sixth Token Table

Ordinal Token Decimal Digits Ordinal Token Decimal Digits

0 0014 3782 9721 3691 5654 0 0399 5687 3050 0641 8956

1 0558 9819 6363 0722 6039 1 0544 3651 9504 4577 1425

2 2537 1844 3559 9230 3261 2 1564 3260 2381 0859 2873

3 2640 1506 9273 9457 2314 3 1671 6059 9556 3892 6126

4 3198 5117 8837 2235 0079 4 2865 1868 0542 6125 3353

5 3672 1219 7202 1243 6310 5 3122 5519 4160 5030 7821

6 4042 9599 7027 8409 3671 6 3271 7039 3876 0077 8781

7 4118 4427 2170 7655 4469 7 3813 2204 7266 5283 4468

8 4503 6567 9969 8801 9481 8 4374 1728 6535 5262 2584

9 4818 6310 2162 2260 2405 9 4492 5356 1796 9475 8477

10 5145 5923 5355 7325 7222 10 4831 7294 5645 9489 9379

11 5348 1914 1073 6010 4625 11 5560 1213 4863 7129 1677

12 5651 2437 3158 3832 2609 12 5861 5763 9182 1325 3856

13 7241 7320 8897 4346 1472 13 6415 9743 4734 3586 7260

14 7261 9803 9575 8441 5689 14 6915 9039 5039 4947 7355

15 7366 8341 8015 7164 3022 15 7302 5384 9557 5342 0780

Seventh Token Table

Ordinal Token Decimal Digits

0 0547 9744 5475 8734 1950

1 0678 8566 4883 3750 8656

Page 37: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 37

2 1123 2780 7506 1822 3585

3 1261 5228 1122 0356 0257

4 1267 5937 5173 4897 3679

5 1494 1320 3460 4242 2233

6 1928 0494 1023 4511 5030

7 2544 6952 4875 4913 1284

8 3881 1752 0057 6154 6095

9 4197 7602 2915 2864 9769

10 4267 4471 5049 4876 7020

11 4441 1292 0423 3560 1474

12 5853 2452 1005 3241 7200

13 6533 6048 4662 1788 4892

14 7234 0171 5159 4771 6362

15 7302 8276 3712 5927 3461

4.22 CTSH21 – KeyChange from DITK to: DUTK, DCTK, DDTK (Manufacturing Module)

APDU information to be used for this test: MeterPAN 600727000000000009

TCT 02

EA 07

DKGA 02

SGC various

TI 01

KRN 1

KT various

KEN FF

DITK (Reg 90) 0202020202020202

VUDK1 ABABABABABABABAB

VCDK 4949494949494949

VDDK BABABABABABABABA

Overview: This test verifies general compliance with respect to the generation of a Keychange token. Note: this test is only required if the UUT is a manufacturing module. Step Instruction Expected Result

1

According to the manufacturer’s instructions provided in Table 5, generate Keychange tokens with the information in the APDU above from DITK to DUTK.

The tokens generated must be: 5349 4051 8922 0324 0777 3661 0754 1872 8159 0551

2

According to the manufacturer’s instructions provided in Table 5, generate Keychange tokens with the information in the APDU above from DITK to DCTK.

The tokens generated must be: 0257 8949 3970 8385 4852 6782 5503 0277 0041 4092

3

According to the manufacturer’s instructions provided in Table 5, generate Keychange tokens with the information in the APDU above from DITK to DDTK.

The tokens generated must be: 6419 0316 5265 1105 4435 0522 6154 0517 4386 4572

Page 38: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 38

5 Annexure A – Compliance Verification Request

1. Manufacturer:

2. Product Name/Model:

3. Product Firmware

Version:

4. Contact Name:

5. Manufacture Date:

6.

Mobile Number:

Phone Number:

Facsimile Number:

Email Address:

7.

Physical and Postal Address

8. Date:

Page 39: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 39

6 Annexure B – Additional Information

Table 5 - Supplier Submitted Information

9. State which Utility is Supported Electricity Water Gas Time

10. State which Currency is Supported Electricity Water Gas Time

7 Annexure C – Entity Type H Test Overviews

7.1 Entity type H: POS to Security Module Interface

7.1.1 CTSH01 – generation of an electricity credit token using KT=02

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of a TransferCredit token; the test also indirectly verifies the following:

general token encryption and generation; Applicable clauses: IEC 62055-41:– 6.2.2, 6.3.3 - 6.3.7

7.1.2 CTSH02 – generation of a water credit token using KT=02

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of a TransferCredit token; the test also indirectly verifies the following:

general token encryption and generation; Applicable clauses: IEC 62055-41:– 6.2.2, 6.3.3 - 6.3.7

7.1.3 CTSH03 – generation of a gas credit token using KT=02

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of a TransferCredit token; the test also indirectly verifies the following:

general token encryption and generation; Applicable clauses: IEC 62055-41:– 6.2.2, 6.3.3 - 6.3.7

7.1.4 CTSH04 – generation of a time credit token using KT=02

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of a TransferCredit token; the test also indirectly verifies the following:

general token encryption and generation;

1. Manufacturer: Submission Date:

2. Name/Model:

Firmware Version :

3. Allocated Manufacturer Code:

4. Serial Communications Port: Yes No (Tick what is applicable)

5. TCP/IP Communications Port: Yes No (Tick what is applicable)

6. Is the UUT a manufacturing Module Yes No (Tick what is applicable)

7.

Manufacturer has supplied all information for the generation of:

a) Credit Tokens b) Keychange Tokens c) Management Tokens d) API or Test Harness

Yes No (Tick what is applicable)

8.

Manufacturer to state where the conversion of the following values is done:

a) Date to TID b) Transfer amount to

Exponent/Mantissa format c) DRN to 18 digit MeterPAN

SM Test

Harness

Page 40: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 40

Applicable clauses: IEC 62055-41:– 6.2.2, 6.3.3 - 6.3.7

7.1.5 CTSH05 – generation of a currency credit token using KT=02

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of a TransferCurrencyCredit token; the test also indirectly verifies the following:

general token encryption and generation; Applicable clauses: not yet specified, will apply to Ed3 of 62055-41

7.1.6 CTSH06 – DUTK to DUTK key change

Overview: This test verifies the MeterApplicationProcess for compliance with respect to the DUTK to DUTK key change for the following conditions:

TI change

KRN change

KT change

SGC change

KEN change

VK change The test also indirectly verifies the following:

the Set1stSectionDecoderKey token implementation; and

the Set2ndSectionDecoderKey token implementation. Applicable clauses: IEC 62055-41:– 6.2.7, 6.2.8

7.1.7 CTSH07 – generation of a currency credit token using KT=02 and 4 digit manufacturer code

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of a TransferCredit token; the test also indirectly verifies the following:

general token encryption and generation; Applicable clauses: not yet specified, will apply to Ed3 of 62055-41

7.1.8 CTSH08 – generating maximum power load token

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of a SetMaximumPowerLimit token. Applicable clauses: IEC 62055-41:– 6.2.4, 6.3.9

7.1.9 CTSH09 – generating set phase power unbalance limit token

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of the SetMaximumPhasePowerUnbalanceLimit token. Applicable clauses: IEC 62055-41:– 6.2.10

7.1.10 CTSH10 – generating clear credit

Overview: This test verifies the SecureApplicationProcess for compliance with respect to the generation of a ClearCredit token nominating all the relevant registers in the PM. Applicable clauses: IEC 62055-41:– 6.2.5, 6.3.13

Page 41: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 41

7.1.11 CTSH11 – generating clear tamper token

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of the ClearTamperCondition token. Applicable clauses: IEC 62055-41:– 6.2.9

7.1.12 CTSH12 – generating a set tariff rate token

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of SetTarrifRate token. Applicable clauses: IEC 62055-41:– 6.2.6, 6.3.11

7.1.13 CTSH13 – generating a set water factor token

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of SetWaterfactor token. Applicable clauses: IEC 62055-41:– 6.3.12

7.1.14 CTSH14 – generating a STS reserved token

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of STSReserved token. Applicable clauses: IEC 62055-41:– 6.2.12

7.1.15 CTSH15 – generating a reserved for proprietary use token

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of ReservedForProprietaryUse token. Applicable clauses: IEC 62055-41:– 6.2.13

7.1.16 CTSH16 – Random Number Test

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the use of the random number generation within the token generation function. Applicable clauses: IEC 62055-41:– 6.6.2 - 6.2.13

7.1.17 CTSH17/18 – Key type Rules

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the processing of keytype rules. Applicable clauses: IEC 62055-41:– 6.5.2.4

7.1.18 CTSH19 – generation of an electricity credit token using Decoder Key Generation Algorithm DKGA01

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of the credit token using Decoder Key Generation Algorithm DKGA01. Applicable clauses: IEC 62055-41:– 6.5.3.3

Page 42: STS TEST Specification Specifications/STS 531-8-1... · 7 annexure c – entity type h ... 11 4331 6174 2661 7965 9045 11 6096 5507 0935 0169 1212 ... 1 1434 5893 5241 5123 3800 1

STS531-8-1 Edition 1.6: 2016

Copyright STS Association. Page 42

7.1.19 CTSH20 – generation of an electricity credit token using Decoder Key Generation Algorithm DKGA01, with special SGC values

Overview: This test verifies the SecureModuleApplicationProcess for compliance with respect to the generation of the credit token using Decoder Key Generation Algorithm DKGA01 with specific SGC values. Applicable clauses: IEC 62055-41:– 6.5.3.3 is currently not required.

7.1.20 CTSH21 – DITK to DUTK key change

Overview: This test verifies the MeterApplicationProcess for compliance with respect to the DITK to DUTK key change for the following conditions:

KT change

SGC change

VK change The test also indirectly verifies the following:

the Set1stSectionDecoderKey token implementation; and

the Set2ndSectionDecoderKey token implementation. Applicable clauses: IEC 62055-41:– 6.2.7, 6.2.8