




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、ansi std c12.23-200 x compliance testing for standard protocol c12.18 copyright 200x by the national electrical manufacturers association 1300 north 17th street, suite 1847 rosslyn, va 22209, usa all rights reserved this is an unapproved draft of a proposed ansi standard, subject to change. permissi
2、on is hereby granted for ansi standards committee participants to reproduce this document for purposes of ansi standardization activities. use of information contained in this unapproved draft is at your own risk. modified october 20, 2005 standard version 0.0 document version 1.0 table of contents
3、1.introduction.4 2.scope.4 3.document syntax.4 4.references.4 5.definitions.4 5.1.psem.4 5.2.table.4 5.2.1.ansi.5 5.2.2.application layer.5 5.2.3.amr.5 5.2.4.baud rate .5 5.2.5.catastrophic failure a.k.a. fatal failure.5 5.2.6.crc .5 5.2.7.data link layer.5 5.2.8.device under test.5 5.2.9.dut.5 5.2.
4、10.flc.5 5.2.11.function under test.6 5.2.12.fut.6 5.2.13.half duplex .6 5.2.14.meter under test.6 5.2.15.mut.6 5.2.16.octet .6 5.2.17.packet.6 5.2.18.packet envelope .6 5.2.19.psem.6 5.2.20.retrieve.6 5.2.21.test .7 5.2.22.test application.7 5.2.23.write.7 6.product submission and verification crit
5、eria.7 6.1.rational.7 6.2.submission rules.7 6.3.verification goals.7 6.4.verification non goals.8 6.5.interpretation of the standards.8 6.6.other criteria.8 6.6.1.example 1.8 6.6.2.example 2.9 6.6.3.example 3.9 6.6.4.example 4.10 7.general conformance statement.10 7.1.the test application.10 7.2.th
6、e test application as a reference ansi c12.19/ieee-1377 implementation.11 7.3.test results and ranking categories.11 7.3.1.not applicable.11 7.3.2.not tested.11 7.3.3.conforming.11 7.3.4.conforming with discrepancy.11 7.3.5.non-conforming.11 7.3.6.non-conforming, rejected.12 7.3.7.test remarks .12 8
7、.verification objectives for ansi c12.18 devices.12 8.1.ansi standard c12.19-1997 / ieee-1377 “utility industry standard tables”.12 8.1.1.type of tables.12 8.1.2.operations on tables .12 8.2.ansi standard c12.18-1996 “protocol specification for ansi type 2 optical port”.13 8.2.1.basic implementation
8、 assumptions.13 8.2.2.states and services.13 9.test procedures for ansi c12.18 .14 9.1.test procedures for the physical layer.14 9.1.1.transmitter characteristics (section ).14 9.2.test procedures for the data link layer.15 9.2.1.pre-test general set-up requirements.15 9.2.2.basic sanity chec
9、k.16 9.2.3.immunity to random noise .16 9.2.4.ack returned due to reception of a duplicate packet.17 9.2.5.nak returned due to crc error.17 9.2.6.nak returned due to inter-character timeout.17 9.2.7.nak returned due to long packet.18 9.2.8.nak returned due to invalid multi-packet flag setting.19 9.2
10、.9.nak returned due to invalid first-packet flag setting.19 9.2.10.nak returned due to an invalid sequence number.19 9.2.11.retransmission triggered by a response timeout .20 9.2.12.retransmission triggered by a nak.20 9.2.13.link termination after third retry attempt (nak).21 9.2.14.link terminatio
11、n after third retry attempt (response timeout) .21 9.2.15.link termination due to channel traffic timeout.22 9.2.16.sensitivity to the initial state of the toggle bit.23 9.2.17.default packet size validation (read).23 9.2.18.default packet size validation (write) .24 9.3.psem test procedures.24 9.3.
12、1.psem service transaction.24 9.3.2.identification service (response).25 9.3.3.negotiate service (change baud rate).25 9.3.4.negotiate service (number of packets and packet size) .26 9.3.5.negotiate service (honors negotiated limits).26 9.3.6.negotiate service (establish maximum packet limits) .27 9
13、.3.7.wait service.28 9.3.8.terminate service working.28 9.3.9.service sequence state.29 annex a - test reports (normative).30 a.1 tests summary sheet.30 a.2 detail results of “test procedures for ansi standard c12.18-1996” .31 a.2.1 results of “test procedures for the data link layer”.31 a.2.2 resul
14、ts of “psem test procedures”.31 annex b - verification codes (normative).31 to do: create a requirement metrix and qualify each test base on this metrix. to do: add examples of real message format to do: format the definitions section todo: add list test equipment and traceability to standards 1. in
15、troduction give some background about this standard, what it has to accomplish, the referenced standard and how its envisioned to be implemented in the industry. add text on pre-requisites and order of tests 2. scope this document is a collection of compliance test procedures that aim to validate th
16、e implementation correctness of ansi c12.19-1997/ieee-1377 devices that communicate using ansi c12.18-1996 standard communication. 3. document syntax explain the various annotations used in this document. 4. references ansi std c12.18-1996:protocol specification for ansi type 2 optical port iso 7498
17、/1:osi reference model iso 3309-1993(e):information technology - telecommunications and information exchange between systems - high-level data link control (hdlc) procedures - frame structure, annex a explanatory notes on implementation of the frame checking sequence ansi std c12.19-1997:utility ind
18、ustry end device data tables. 5. definitions for the purposes of this document, the following definitions are made for terms and syntax used throughout this document. 5.1.psem protocol specification for electricity metering as referenced in c12.18-1996 5.2.table functionally related data elements, g
19、rouped together into a single data structure for transport as defined by ansi standard c12.19-1997 5.2.1. ansi american national standards institute. the primary organization for fostering the development of technology standards in the united states, ansi works with industry groups and is the u.s. m
20、ember of the international standards organization (iso) and the international electrotechnical commission (iec). 5.2.2. application layer the application layer (osi layer 7) is the layer at which a user application interfaces with a communication network. 5.2.3. amr amr is an acronym for automated m
21、eter reading. 5.2.4. baud rate baud was the prevalent measure for data transmission speed until replaced by a more accurate term, bps (bits per second). one baud is one electronic state change per second. since a single state change can involve more than a single bit of data, the bps unit of measure
22、ment has replaced it as a better expression of data transmission speed. the standards use the terms baud, baud rate, bps and bits per second interchangeably. 5.2.5. catastrophic failure a.k.a. fatal failure a failure that results in temporary or permanent disruption of communication, corruption of p
23、rotocol, delivery of wrong data, misrepresentation of data format, incorrect placement of data in accordance to the test application reference model. 5.2.6. crc crc is an acronym for “cyclic redundancy check”. the crc is used to validate the integrity of the transmitted packets. 5.2.7. data link lay
24、er the data link layer (osi layer 2) provides the synchronization of data, error detection and correction procedures used during data transmission. 5.2.8. device under test a c12.19 utility industry standard tables driven device, using c12.18, c12.21 or optionally c12.22 in any combination. this dev
25、ice and its accessories are being tested for successful communication and data exchange with test application. the tests are carried in a sequence, one function under test at a time. 5.2.9. dut dut is an acronym for “device under test”. 5.2.10. flc ansi c12.19/ieee-1377 function limiting control tab
26、les (x0/x1, where x is the decade number 0-240). 5.2.11. function under test a software, firmware, hardware or protocol component test that is applied to a device under test in order to validate the correct performance of a component. the test will establish whether the component meets or does not m
27、eet interface, state, timing, data values, data representation, data placement, protocol or implementation requirements in reference to the test application. a “conforming”, “conforming with discrepancy”, “non- conforming” or “non-conforming, rejected” grade shall be assigned following the test of e
28、ach function under test. 5.2.12. fut fut is an acronym for “function under test”. 5.2.13. half duplex half-duplex data transmission means that data can be transmitted in both directions on a signal carrier, but not at the same time. one station can send data on the line and then shortly after receiv
29、e data on the line from the same direction in which data was just transmitted. 5.2.14. meter under test a device under test that is a sensor measuring water, gas or electricity. 5.2.15. mut mut is an acronym for “meter under test”. 5.2.16. octet an octet (from the latin “octo” or “eight”) is a seque
30、nce of eight bits. an octet is an eight- bit byte. 5.2.17. packet a packet is the unit of data that is routed between an origin and a destination. in an ansi c12.18 dut, the individual packets may be fragments of a given service request. when they have all arrived, they are reassembled into the orig
31、inal message at the receiving end. an ansi c12.18 packet begins with the start of packet octet, = 0 xee, and ends with a two octets crc, based on the ccitt crc standard polynomial (x16+ x12 + x5 + 1). 5.2.18. packet envelope the packets start-of-packet octet, , and the end of packet crc. 5.2.19. pse
32、m psem is an acronym for “protocol specification for electric metering” usa. psem is an acronym for “protocol specification for electronic metering” canada. 5.2.20. retrieve to cause the transmission from the dut to the test application of an entire or partial dut table. the act of data retrieval ma
33、y require the invocation of some or all the following psem services: identification, negotiate, logon, wait, security, read and logoff. 5.2.21. test a test is the execution of one element of a fut procedure by the test application. 5.2.22. test application the test application is a software applicat
34、ion built to enable manufacturers, utilities and meter verifiers to migrate their amr and testing environment to ansi c12.19 standard- based technology. it can read and program any ansi c12.19-based device that uses ansi c12.18 standard communication protocol. it also accepts and creates table defin
35、ition files, which describe the architecture and state of any ansi c12.19 device. it may also be a diagnostic and test tool, which is a reference application used to validate device design assumptions and implementation details. 5.2.23. write to cause the transmission from the test application to du
36、t of an entire or partial dut table. the act of data writing may, in addition to the above, require the invocation of some or all the following psem services: identification, negotiate, logon, wait, security, read, write and logoff. the dut may require the invocation of the procedure 2, “save config
37、uration”, prior to logoff for it to retain the changes. 6. product submission and verification criteria 6.1.rational this document defines a suite of tests with well-defined acceptance criteria that promotes interoperability among devices that use the referenced standards. 6.2.submission rules it sh
38、all be required to obtain manufacturer consent to each compliance procedure for the fut. test procedures that do not meet with manufacturer approval, or are withdrawn by the manufacturer, prior to test initiation, shall be entered as “not tested”, and an explanation for the result shall be entered i
39、n the exception field of the report. the test suite outlined in this document performs an assessment of the dut and its ability to conform to the said reference test application. the following is a summary of the general components that will, and will not be assessed as part of these conformance tes
40、ts. 6.3.verification goals the tester shall perform an assessment of the following: 1.completeness of submission of dut for testing (e.g. meter, connectors, accessories, manuals, supporting electronic files, etc.) 2.configuration and state disclosure of the dut prior to testing (passwords, special p
41、rocesses, jumper settings, mode settings, etc.) 3.readiness of the dut for testing (e.g. is it in metering state, is it sealed, does it need to be set up? if so, how?). 4.compatibility with test application communication reference interface (c12.18) at the physical layer. 5.compatibility with test a
42、pplication communication reference implementation (c12.18,) at the data link layer. 6.compatibility with test application protocol reference implementation (c12.18) at the application layer (psem). 7.general assessment of firmware stability, solely derived from performing the tests describes above.
43、6.4.verification non goals the tester shall not perform an assessment of the following: 1.dut accuracy tests (including time, interval, and metrological registers). 2.dut reliability tests (drop test, vibration test, electromagnetic susceptibility, weather, temperature, etc.). 3.hardware interface q
44、uality, accuracy and signaling strengths (except where it clearly does not work reliably). 4.device factory configuration and setup. 5.implementation logic (assessment of device functions implemented, their delivery logic or value to customer). 6.evaluation of device performance, efficiency and effe
45、ctive delivery of advertised functionality to the marketplace. 6.5.interpretation of the standards explain how this standard is applied; and how other standards are interpreted. explain how ambiguity is addressed or not addresses. give an example 6.6.other criteria 1.where the standard is clear and
46、unambiguous, produce a clear pass/fail a result. 2.where the standard is unambiguously clear in its intent, but does not provide implementation details for the required functionality, apply common sense. 3.where the standard is vague or there is room for multiple interpretations, the test will be wr
47、itten to handle the alternatives and expose the variations. 4.where the standard says nothing or is so vague that one cannot formulate a test, do not test. do we want to revise these examples to be specific to c12.18? 6.6.1. example 1 this example describes a test result where the standard is clear
48、and unambiguous. description event_inhibit_ovf_flag is defined as follows in table 71. falseevent log is not inhibiting new entries when an overflow condition exists. trueevent log is inhibiting new entries when an overflow condition exists overflow_flag is defined as follows in table 76. falseoverf
49、low has not occurred. truean attempt was made to enter an event such that the number of unread entries would have exceeded the actual number of possible entries in the log. conclusion the standard is very clear in its expression of the intended implementation of the overflow_flag status as restricte
50、d by the event_inhibit_ovf_flag control flag. therefore, one cannot argue against a test that validates the behavior of an end device, following excessive excitation that will cause the log to overflow. the compliant log shall not overflow if event_inhibit_ovf_flag control flag is true, and it shall
51、 overflow if event_inhibit_ovf_flag control flag is false. regardless of the state of event_inhibit_ovf_flag control flag, the overflow_flag shall be set. 6.6.2. example 2 this example describes a test result where the standard is unambiguously clear in its intent but does not provide implementation
52、 details for the intent. description list_type_flag is defined as follows in table 26. falsefifo (first in first out) as placed in self read list. truecircular list as placed in self read list. list_type is defined as follows in table 63. 0fifo (first in first out) as placed in load profile storage.
53、 1circular list as placed in load profile storage. list_type is defined as follows in table 74. 0fifo - as placed in log. 1circular - as placed in log. conclusion the acronym fifo is not defined in the standard. however the standard qualifies the term fifo in table 26 and table 63 with the definitio
54、n first in first out. using (flawed) logic one can argue that one cannot make any assumption about what the term fifo means in table 74, since the standard is silent about that (this follows the reasoning similar to that of manufacturer tables do not have flcs). so what would one make out of fifo in
55、 table 74? does fifo mean first in first out or fill in faulty order or first in final out? one could argue that a test for fifo in table 74 cannot be carried out on this basis. reasonable people would say that it is rather obvious that based on prior use of the term fifo, the standard is clear abou
56、t the intended use of the definition first in first out and the compliance standard shall perform the tests accordingly. caveat: the term circular is not defined in the standard, does it mean that c12.23 cannot have a test for circular vs. fifo since we do not know what it really means in terms of p
57、lacement or ordering of entries in a logs? if so, how can one build an amr system to read a log based on the c12.19 standard? 6.6.3. example 3 this example describes a test where the standard is vague or there is room for possibilities the test will be written to cope with these possibilities and ex
58、pose the variations: description the value of the element last_entry_seq_nbr, 0.4,294,967,295, the sequence number of the newest valid entry in the log, is not clearly described by c12.19. it could retain its value after a reset list pointers or it could be reset. however, there are only two possibl
59、e outcomes following the execution of a reset list pointers procedure: last_entry_seq_nbr retains its value. last_entry_seq_nbr does not retain its value. conclusion the standard is clear that following execution of a reset list pointer procedure, all elements that describe the content (extent) of t
60、he list shall be consistent with that of the empty list. therefore, one can design a test that validates the reset action to create an empty list and also report the value of last_entry_seq_nbr before and after the test. this will expose the actual implementation model of the dut. implementation var
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年幼儿教育专业资格考试题及答案
- 2025年自然科学基础知识考试试卷及答案详解
- 2025年水利工程师考试试题及答案
- 2025年保险专业资格考试试题及答案
- 2025年大学英语四级试题及答案
- 房产养老收益评估与老年生活支持服务管理协议
- 软件开发项目功能完善技术补充协议
- 技术培训与专业素质提升补充合同
- 电商平台用户增长战略规划与实施协议
- 针对跨国企业物流风险的国际货运保险责任合同
- 2023年广东深圳市福田街道办事处招聘高频考点题库(共500题含答案解析)模拟练习试卷
- 新教材人教版高中物理选择性必修第三册全册各章节课时练习题及章末测验含解析
- 职业健康体检结果告知单
- din中文版渐开线花键新
- GB/T 9074.1-2018螺栓或螺钉和平垫圈组合件
- GB/T 7705-2008平版装潢印刷品
- 2023年高考新课标全国2卷理综化学及答案
- 移动通信基站电磁辐射环境监测方法考题附答案
- 重力坝毕业设计-水电站混凝土重力坝工程设计
- 工程投标密封条
- 浅圆仓仓顶钢桁架结构监理实施细则
评论
0/150
提交评论