首页 NRS009-6-7英文原文

NRS009-6-7英文原文

举报
开通vip

NRS009-6-7英文原文 ®Standard Transfer Specification ICS 29.240.99; 35.240.60; 91.140.50 NRS 009-6-7:2002 Edition 2.2 ISBN 0-626-14119-2 Edition 2: Incorporating Amendment No. 2:2002 ELECTRICITY SALES SYSTEMS Part 6: Interface standards Section 7: Standard transfer speci...

NRS009-6-7英文原文
®Standard Transfer Specification ICS 29.240.99; 35.240.60; 91.140.50 NRS 009-6-7:2002 Edition 2.2 ISBN 0-626-14119-2 Edition 2: Incorporating Amendment No. 2:2002 ELECTRICITY SALES SYSTEMS Part 6: Interface standards Section 7: Standard transfer specification/Credit dispensing unit — Electricity dispenser — Token encoding and data encryption and decryption Requirements for applications in the Electricity Supply Industry N R S Gr 10 Rationalized User Specification This Rationalized User Specification is issued by the NRS Project on behalf of the User Group given in the foreword and is not a standard as contemplated in the Standards Act, 1993 (Act 29 of 1993). Rationalized user specifications allow user organizations to define the performance and quality requirements of relevant equipment. Rationalized user specifications may, after a certain application period, be introduced as national standards. Amendments issued since publication Amdt No. Date Text affected 1 May 2001 Subclause 4.2.7: a) removed the table of manufacturer codes, b) added reference of website for table of manufacturer codes, c) added contact details of NRS Projects Manager for list of manufacturer codes, d) added reference of specification for meter number. 2 May 2002 Notice: Information added on STS compliance. Foreword. Clause 2: Normative references updated. Clause 3: Note added to clarify abbreviation “ED”. Subclause 4.2.7 and 4.4. Reference to NRS 009-4-2 changed to reference annex A. Annex A added. Amendment 2 was compiled to aid understanding of the specification internationally, in preparation for its submission to the IEC, for consideration as an IEC PAS. This consolidated edition 2.2 is technically identical to, and replaces, the consolidated edition of NRS 009-6-7:2001, which is published by the SABS under ISBN 0-626-13498-6, for which the SABS holds publishing copyright. Correspondence to be directed to Printed copies obtainable from South African Bureau of Standards South African Bureau of Standards (Electrotechnical Standards) Private Bag X191 Private Bag X191 Pretoria 0001 Pretoria 0001 Telephone: (012) 428-7911 Fax: (012) 344-1568 E-mail: sales@sabs.co.za Website: http://www.sabs.co.za COPYRIGHT RESERVED Printed on behalf of the NRS Project in the Republic of South Africa by the South African Bureau of Standards 1 Dr Lategan Road, Groenkloof, Pretoria ®Standard Transfer Specification NOTICE Ô This section of NRS 009-6 specifies requirements that are part of the standard transfer specification (STS). The intellectual property rights of the STS are owned by the STS Association. 1 Implementation of an STS compliant system will require access to encryption and decryption tables and the STS encryption keys, which are made available under licence conditions through membership of the STS Association. Details of requirements to become a member of the STS Association can be obtained from the contact details given below. Amdt 2 Suppliers who are to claim that their equipment complies with the STS are required to have the relevant equipment accredited by the STS Association or its agent. Such equipment will be permitted to carry a mark that signifies compliance with the STS. Application for accreditation of equipment as compliant with the STS can be made to the STS Association: email@sts.org.za Fax number +27(21) 914 3930 Postal address: PO Box 2332 Durban 4000 South Africa Further information concerning the STS Association can be obtained from its website: http://www.sts.org.za 1 A section 21 “not for gain” company incorporated in the Republic of South Africa. This page intentionally left blank 1 NRS 009-6-7:2002 ®Standard Transfer Specification Contents Page Foreword ........................................................................................................................... 2 Introduction ....................................................................................................................... 4 Key words ......................................................................................................................... 4 1 Scope ......................................................................................................................... 5 2 Normative references ................................................................................................... 5 3 Terms, definitions and abbreviated terms ....................................................................... 6 4 Requirements .............................................................................................................. 6 4.1 Bit allocation tables ............................................................................................... 6 4.2 Field calculations ................................................................................................. 9 4.3 STS security ........................................................................................................ 16 4.4 Default ED key generation module ......................................................................... 17 4.5 Preventing ED-specific token reuse ....................................................................... 17 4.6 Encryption algorithm 1 .......................................................................................... 18 4.7 Decryption algorithm 1 .......................................................................................... 20 4.8 Data encryption example ...................................................................................... 22 4.9 Data decryption example ...................................................................................... 24 Annex A Format of meter numbers used for STS compliant meters ................................................ 25 Bibliography ...................................................................................................................... 27 NRS 009-6-7:2002 2 ®Standard Transfer Specification Foreword This section of NRS 009-6 has been adopted by the Electricity Suppliers Liaison Committee (ESLC) and has been approved by it for use by supply authorities in South Africa. Amendment 2 to this section of NRS 009-6 provides for deletion of direct cross-references to NRS 009-4-2, which is not part of the standard transfer specification. The requirements of NRS 009-4-2 that are relevant to this section of NRS 009-6 have been included in an annex. NRS 009 is based on Eskom specification MC114, Requirements specification for a common vending system for electricity dispensing systems, and consists of the following parts, under the general title Electricity sales systems: Part 0: Standard transfer specification — Synopsis. (Under consideration.) Part 1: Glossary and system overview. (Withdrawn, superseded by SABS 1524-0.) Part 2: Functional and performance requirements. Section 1: System master stations. Section 2: Credit dispensing units. Section 3: Security modules. Section 4: Standard token translators. Section 5: Error handling. Part 3: Database format. Part 4: National electricity meter cards and associated numbering standards. Section 1: National electricity meter cards. Section 2: National electricity meter numbers. Part 5: Testing of subsystems. Part 6: Interface standards. Section 1: Credit dispensing unit — Standard token translator interface. Section 2: System master station — Main frame. (Suspended; see annex A of NRS 009-2-1.) Section 3: System master station — Credit dispensing unit. (Previously NRS 009-3). Section 4: Data transfer by physical media — System master station — Credit dispensing unit. Section 5: Not allocated. Section 6: Standard transfer specification — Credit dispensing unit — Electricity dispenser — Categories of token and transaction data fields. Section 7: Standard transfer specification — Credit dispensing unit — Electricity dispenser — Token encoding and data encryption and decryption. Section 8: Standard transfer specification — Disposable magnetic token technology — Token encoding format and physical token definition. Section 9: Standard transfer specification — Numeric token technology — Token encoding format and physical token definition. Part 7: Standard transfer specification — The management of cryptographic keys. ISBN 0-626-14119-2 3 NRS 009-6-7:2002 ®Standard Transfer Specification An amendment to edition 2.1 of this section of NRS 009-6 was submitted by the STS Association in 2002, which was endorsed by a Working Group that comprised the following members: S J van den Berg (Chairman) Mangaung Municipality P A Johnson (Project leader) NRS Project Management Agency V Bissett City of Cape Town R Devparsad eThekwini Electricity J O’Kennedy Eskom Distribution V E Rengecas SABS M Singh eThekwini Electricity D W van Reenen City Power Johannesburg J Westenraad City of Tshwane A Manufacturers’ Interest Group (MIG) was consulted on the amendment of this section of NRS 009. The MIG comprised the following members: R Hill Circuit Breaker Industries S Leigh Prism R Lewis Tellumat SA F Pucci Schneider (t/a Conlog) A Stoner Energy Measurements Limited D Taylor Actaris Measurements The working group acknowledges the contribution of S J Leigh, who compiled the standard transfer specification while with Conlog, under a contract to Eskom. The intellectual property rights to the STS have been ceded to the STS Association. See the notice at the front of this section of NRS 009-6. The Working Group was appointed by the ESLC, which, for the of approval of amendment 2, comprised the following members: R Wienand(Chairman) eThekwini Metropolitan Council, AMEU M N Bailey Distribution Technology, Eskom A J Claasen Electrical Engineering Standards, SABS P Crowdy Distribution Technology, Eskom B de Jager Mangaung Electricity, AMEU W Dykman City of Tshwane, AMEU A H L Fortmann AMEU P A Johnson Technology Standardization, Eskom J Machinjike Transmission, Eskom D M Michie Nelson Mandela Metropolitan Municipality, AMEU S V Moodley City Power Johannesburg (Pty) Ltd R van der Riet City of Cape Town, AMEU J S van Heerden SABS NETFA D J van Wyk uMhlathuze Electricity, AMEU Recommendations for corrections, additions or deletions should be addressed to the NRS Project Manager, c/o SABS, Private Bag X191, Pretoria, 0001. Annex A forms an integral part of this specification. NRS 009-6-7:2002 4 ®Standard Transfer Specification Introduction This section of NRS 009-6 is one of a series of specifications that describe the standard transfer specification (STS), whereby transactions can be securely transferred from point of sale equipment to individual electricity dispensers by means of encrypted data on tokens. The STS is specified in the following parts or sections of NRS 009. Compliance with all the normative (mandatory) requirements of all the following is a requirement for implementation of an STS compliant electricity sales system: a) NRS 009-6-6, equivalent to STS Part 1; b) NRS 009-6-7, equivalent to STS Parts 2 and 2c; c) NRS 009-6-8, equivalent to STS Part 3a; d) NRS 009-6-9, equivalent to STS Part 3b; and e) NRS 009-7, equivalent to STS Part 2b. This section of NRS 009-6 describes encryption and decryption processes that are intended primarily for use with tokens in prepayment electricity dispensing systems. However, these tokens can also cater for the transfer of units of other utility types, for example water or gas. Key words Electricity sales systems; Payment systems; Prepayment; Standard transfer specification; Electricity dispenser; Token; Token encoding; Data encryption; Data decryption. 5 NRS 009-6-7:2002 ®Standard Transfer Specification SPECIFICATION Electricity sales systems Part 6: Interface standards Section 7: Standard transfer specification/Credit dispensing unit — Electricity dispenser — Token encoding and data encryption and decryption Requirements for applications in the Electricity Supply Industry 1 Scope This section of NRS 009-6 specifies the formatting of transaction data for encryption, the encryption process and the preparation of the encrypted data for encoding onto the token. It also specifies the decryption process that takes place in the electricity dispenser (ED). This section of NRS 009-6 is intended for use by manufacturers of EDs that have to accept tokens that comply with the standard transfer specification (STS) and also by manufacturers of vending systems that produce STS-compliant tokens. 2 Normative references The following standards and specifications contain provisions which, through reference in this text, constitute provisions of this section of NRS 009-6. At the time of publication, the editions indicated were valid. All standards and specifications are subject to revision, and parties to agreements based on this section of NRS 009-6 are encouraged to investigate the possibility of applying the most recent editions of the documents listed below. Information on currently valid national and international standards and specifications can be obtained from the South African Bureau of Standards. ISO IEC 7812-1:2000, Identification cards — Identification of issuers — Part 1: Numbering system. Amdt 2 SABS 1524-0:1997, Electricity dispensing systems — Part 0: Glossary of terms and system overview. NRS 009-4-2:1993, Electricity sales systems — Part 4: National electricity meter cards and associated numbering standards — Section 2: National electricity meter numbers. NOTE The requirements of NRS 009-4-2 which are relevant to this section of NRS 009-6 have been included in annex A . Amdt 2 NRS 009-6-7:2002 6 ®Standard Transfer Specification 3 Terms, definitions and abbreviated terms For the purposes of this section of NRS 009-6, the definitions and abbreviations given in SABS 1524-0 apply. NOTE Throughout this section of NRS 009-6, reference is made to “ED” (electricity dispenser), which is synonymous with “prepayment meter”. Amdt 2 4 Requirements 4.1 Bit allocation tables 4.1.1 Credit transfer function bit allocation (Class 00) Tokens for credit transfer transactions shall be encoded as set out in table 1. Bits are numbered from right to left starting at 0. A total of 66 bits are used and are numbered from 0 to 65. Table 1 — Bit allocation for credit transfer functions 1 2 3 4 5 6 7 Function description Class Sub- class Random pattern Token identifier Transfer amount Cyclic redundancy check sum Electricity credit 00 0000 Water credit 00 0001 Gas credit 00 0010 Connection time credit 00 0011 Currency credit 00 0100 00 0101 00 0110 00 0111 00 1000 00 1001 00 1010 00 1011 00 1100 00 1101 00 1110 Reserved for future STS use 00 1111 Length 4 bits Occupies bits 56 to 59 (inclusive) (See 4.2.5) Length 24 bits Occupies bits 32 to 55 (inclusive) (See 4.2.3) Length 16 bits Occupies bits 16 to 31 (inclusive) (See 4.2.4) Length 16 bits Occupies bits 0 to 15 (inclusive) (See 4.2.6) ¬ These 64 bits are encrypted ® 7 NRS 009-6-7:2002 ®Standard Transfer Specification 4.1.2 Non-ED-specific management function bit allocation table (Class 01) Tokens for non-ED-specific management transactions shall be encoded as set out in table 2. Bits are numbered from right to left starting at 0. A total of 66 bits are used and are numbered from 0 to 65. Table 2 — Bit allocation for non-ED-specific management functions 1 2 3 4 5 6 Function description Class Sub- class Data field Manufacturer No. Cyclic redundancy check sum Initiate ED test 01 0000 Length 36 bits. (See 4.2.8) 0000 0000 01 0001 0000 0000 01 0010 0000 0000 01 0011 0000 0000 01 0100 0000 0000 01 0101 0000 0000 01 0110 0000 0000 01 0111 0000 0000 01 1000 0000 0000 01 1001 0000 0000 Reserved for future STS use 01 1010 Reserved for future STS use 0000 0000 01 1011 01 1100 01 1101 01 1110 Reserved for proprietary use (see note) 01 1111 Length 36 bits Occupies bits 24 to 59 (inclusive) (See 4.2.9) Length 8 bits Occupies bits 16 to 23 (inclusive) (See 4.2.7) Length 16 bits Occupies bits 0 to 15 (inclusive) (See 4.2.6) ¬ These 64 bits are NOT encrypted ® NOTE Functions allocated to these sub-classes will not be supported by a generic vending system. Manufacturers will have to possess the capability to support these functions. NRS 009-6-7:2002 8 ®Standard Transfer Specification 4.1.3 ED-specific management function bit allocation (Class 10) Tokens for ED-specific management transactions shall be encoded as set out in table 3. Bits are numbered from right to left starting at 0. A total of 66 bits are used and are numbered from 0 to 65. Table 3 — Bit allocation to ED-specific management functions 1 2 3 4 5 6 7 Function description Class Sub- class Random pattern field (see note) Token identifier field (see note) Transfer amount field (see note) Cyclic redundancy check sum Set maximum power load 10 0000 See 4.2.10 (16 bits) Clear credit 10 0001 See 4.2.11 (16 bits) Set tariff rate 10 0010 See 4.2.5 (4 bits) See 4.2.3 (24 bits) See 4.2.12 (16 bits) Set 1st section ED key 10 0011 See 4.2.17 (4 bits) 4.2.19 (4 bits) 4.2.20 (4 bits) See 4.2.14 (32 bits) Set 2nd section ED key 10 0100 See 4.2.18 (4 bits) See 4.2.21 (8 bits) See 4.2.15 (32 bits) Clear tamper condition 10 0101 0000 0000 0000 0000 Set maximum phase power unbalance limit 10 0110 See 4.2.13 (16 bits) Set water factor 10 0111 See 4.2.16 (16 bits) 10 1000 10 1001 Reserved for future STS use 10 1010 10 1011 Length 4 bits Occupies bits 56 to 59 (inclusive) (See 4.2.5) Length 24 bits Occupies bits 32 to 55 (inclusive) (See 4.2.3) Length 16 bits Occupies bits 16 to 31 (inclusive) Length 16 bits Occupies bits 0 to 15 (inclusive) (See 4.2.6) 10 1100 10 1101 10 1110 Reserved for proprietary use NB: These will not be supported by the common vending system 10 1111 ¬ These 64 bits are encrypted ® NOTE The fields in columns 4, 5 and 6 are conventionally named as shown, assuming credit tokens. The actual use of each field and its length is determined by the specific transaction type. 9 NRS 009-6-7:2002 ®Standard Transfer Specification 4.2 Field calculations 4.2.1 Token class The mapping of the token class to a 2-bit binary field is illustrated in table 4. Table 4 — Allocation of binary patterns to token classes 1 2 Token class Token class binary pattern Credit transfer token 00 Non-ED-specific management token 01 ED-specific management token 10 Reserved for future STS use 11 4.2.2 Token subclass The mapping of the token subclass to a 4-bit binary field is illustrated in table 5. Table 5 — Allocation of binary patterns to token subclasses 1 2 3 4 5 ClassToken sub- class binary pattern 00 01 10 11 0000 Electricity token Initiate ED test Set maximum power load 0001 Water token Clear credit 0010 Gas token Set tariff rate 0011 Connection time token Set 1st section ED key 0100 Currency token Set 2nd section ED key 0101 Clear tamper condition 0110 Set maximum phase power unbalance limit 0111 Set water factor 1000 1001 1010 1011 Reserved for future STS use Reserved for future STS use 1100 1101 1110 1111 Reserved for future STS use Reserved for proprietary use Reserved for proprietary use Reserved for future STS use NRS 009-6-7:2002 10 ®Standard Transfer Specification 4.2.3 Token identifier The token identifier field is derived from the date and time of issue and indicates the number of minutes elapsed from a base date and time. The base date and time is 01 January 1993, 00:00:00. The calculation of elapsed minutes shall take leap years into account. This field is a 24-bit binary representation of the
本文档为【NRS009-6-7英文原文】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_385155
暂无简介~
格式:pdf
大小:107KB
软件:PDF阅读器
页数:0
分类:建筑/施工
上传时间:2012-11-22
浏览量:36