Alarm systems - Part 7-2: Message formats and protocols for serial data interfaces in alarm transmission systems - Common application layer protocol

Specifies a common application layer protocol (message structure, formats and transmission procedures) to be used at standard interfaces in alarm transmission systems. Should be used at all such interfaces where equipment from one supplier is intended to inter-work with equipment from other suppliers.

Systèmes d'alarme - Partie 7-2: Formats de message et protocoles pour les interfaces de données série dans les systèmes de transmission d'alarme - Protocole de la couche commune d'application

Spécifie un protocole de couche commune d'application (structure de message, formats et procédures de transmission) à utiliser au niveau des interfaces normalisées dans les systèmes de transmission d'alarme. A utiliser au niveau de toutes ces interfaces lorsque le matériel d'un fournisseur est destiné à interagir avec celui d'autres fournisseurs.

Alarm systems - Part 7-2: Message formats and protocols for serial data interfaces in alarm transmission systems - Common application layer protocol

General Information

Status
Not Published
Current Stage
PPUB - Publication issued
Start Date
09-Mar-2001

Buy Standard

Standard
IEC 60839-7-2:2002
English language
27 pages
sale 10% off
Preview
sale 10% off
Preview
e-Library read for
1 day

Standards Content (Sample)

2003-01.Slovenski inštitut za standardizacijo. Razmnoževanje celote ali delov tega standarda ni dovoljeno.Alarm systems - Part 7-2: Message formats and protocols for serial data interfaces in alarm transmission systems - Common application layer protocolSystèmes d'alarme - Partie 7-2: Formats de message et protocoles pour les interfaces de données série dans les systèmes de transmission d'alarme - Protocole de la couche commune d'applicationAlarm systems - Part 7-2: Message formats and protocols for
serial data interfaces in alarm transmission systems - Common application layer protocol35.200Vmesniška in povezovalna opremaInterface and interconnection equipment35.100.70Uporabniški slojApplication layer13.320Alarmni in opozorilni sistemiAlarm and warning systemsICS:Ta slovenski standard je istoveten z:IEC 60839-7-2SIST IEC 60839-7-2:2002en01-junij-2002SIST IEC 60839-7-2:2002SLOVENSKI
STANDARD



SIST IEC 60839-7-2:2002



NORMEINTERNATIONALECEIIECINTERNATIONALSTANDARD60839-7-2Première éditionFirst edition2001-03Systèmes d'alarme –Partie 7-2:Formats de message et protocoles pourles interfaces de données série dansles systèmes de transmission d'alarme –Protocole de la couche commune d’applicationAlarm systems –Part 7-2:Message formats and protocols for serialdata interfaces in alarm transmission systems –Common application layer protocol Commission Electrotechnique Internationale International Electrotechnical CommissionPour prix, voir catalogue en vigueurFor price, see current catalogue IEC 2001
Droits de reproduction réservés

Copyright - all rights reservedAucune partie de cette publication ne peut être reproduite niutilisée sous quelque forme que ce soit et par aucun procédé,électronique ou mécanique, y compris la photocopie et lesmicrofilms, sans l'accord écrit de l'éditeur.No part of this publication may be reproduced or utilized inany form or by any means, electronic or mechanical,including photocopying and microfilm, without permission inwriting from the publisher.International Electrotechnical Commission3, rue de Varembé
Geneva, SwitzerlandTelefax: +41 22 919 0300e-mail: inmail@iec.ch IEC web site
http://www.iec.chCODE PRIXPRICE CODEUSIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 3 –CONTENTSFOREWORD.51Scope.92Normative references.93Definitions.94Abbreviations.115Application layer functions.116Basic data blocks.116.1Application layer header.116.2Basic message.136.3Acknowledgements (ACK).156.4Minimum subset of messages supported.156.5Message decoding.177Common application layer protocol procedure.178Services provided to the application layer.218.1Long messages.218.2Correct order of messages.238.3Transmission errors.238.4Notification of transmission errors.23Annex A (normative)
Basic data blocks.25Annex B (normative)
Alarm channel data blocks.43SIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 5 –INTERNATIONAL ELECTROTECHNICAL COMMISSION____________ALARM SYSTEMS –Part 7-2: Message formats and protocols for serial data interfacesin alarm transmission systems –Common application layer protocolFOREWORD1)The IEC (International Electrotechnical Commission) is a worldwide organization for standardization comprisingall national electrotechnical committees (IEC National Committees). The object of the IEC is to promoteinternational co-operation on all questions concerning standardization in the electrical and electronic fields. Tothis end and in addition to other activities, the IEC publishes International Standards. Their preparation isentrusted to technical committees; any IEC National Committee interested in the subject dealt with mayparticipate in this preparatory work. International, governmental and non-governmental organizations liaisingwith the IEC also participate in this preparation. The IEC collaborates closely with the International Organizationfor Standardization (ISO) in accordance with conditions determined by agreement between the twoorganizations.2)The formal decisions or agreements of the IEC on technical matters express, as nearly as possible, aninternational consensus of opinion on the relevant subjects since each technical committee has representationfrom all interested National Committees.3)The documents produced have the form of recommendations for international use and are published in the formof standards, technical specifications, technical reports or guides and they are accepted by the NationalCommittees in that sense.4)
In order to promote international unification, IEC National Committees undertake to apply IEC InternationalStandards transparently to the maximum extent possible in their national and regional standards. Anydivergence between the IEC Standard and the corresponding national or regional standard shall be clearlyindicated in the latter.5)
The IEC provides no marking procedure to indicate its approval and cannot be rendered responsible for anyequipment declared to be in conformity with one of its standards.6)
Attention is drawn to the possibility that some of the elements of this International Standard may be the subjectof patent rights. The IEC shall not be held responsible for identifying any or all such patent rights.International Standard IEC 60839-7-2 has been prepared by IEC technical committee 79: Alarmsystems.This bilingual version (2001-11) replaces the English version.The text of this standard is based on the following documents:FDISReport on voting79/199/FDIS79/209/RVDFull information on the voting for the approval of this standard can be found in the report onvoting indicated in the above table.This publication has been drafted in accordance with the ISO/IEC Directives, Part 3.Annexes A and B form an integral part of this standard.The committee has decided that the contents of this publication will remain unchangeduntil 2004. At this date, the publication will be•reconfirmed;•withdrawn;•replaced by a revised edition, or•amended.SIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 7 –IEC 60839-7-2 forms one of a series of publications presented under the general title: Alarmsystems – Part 7: Message formats and protocols for serial data interfaces in alarmtransmission systems.IEC 60839-7-1:GeneralIEC 60839-7-2:Common application layer protocolIEC 60839-7-3:Common data link layer protocolIEC 60839-7-4:Common transport layer protocolIEC 60839-7-5:Alarm system interfaces employing a two-wire configuration in accordancewith ISO/IEC 8482IEC 60839-7-6:Alarm system interfaces employing ITU-T Recommendation V.24/V.28signallingIEC 60839-7-7:Alarm system interfaces for plug-in alarm system transceiversIEC 60839-7-11:Serial protocol for use by digital communicator systems using ITU-TRecommendation V.23 signalling at interfaces with the PSTNIEC 60839-7-12:PTT interfaces for dedicated communications using ITU-T Recommen-dation V.23 signallingIEC 60839-7-20:Terminal interfaces employing ITU-T Recommendation V.24/V.28 signallingSIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 9 –ALARM SYSTEMS –Part 7-2: Message formats and protocols for serial data interfacesin alarm transmission systems –Common application layer protocol1 ScopeThis part of IEC 60839 specifies a common application layer protocol (message structure,formats and transmission procedures) to be used at standard interfaces in alarm transmissionsystems. This should be used at all such interfaces where equipment from one supplier isintended to inter-work with equipment from other suppliers, where the underlying systemarchitecture does not impose its own application layer on the interface (for example as in somebus systems).The structure follows the OSI recommendations for a layered protocol to allow flexibility in thechoice and use of lower level transmission media and protocols.The common application layer protocol defined has a minimum subset that should be providedby all equipment which supports this standard, and has defined extensions which may beoffered. The protocol is also designed such that it can be extended beyond the messagesdefined herein in order to provide further facilities and manufacturer specific extensions.This standard applies equally to the transmission of alarms and other messages to/fromintrusion, fire and social alarm systems, and to the transmission of information to/from othersimilar systems.2 Normative referencesThe following referenced documents are indispensable for the application of this document. Fordated references, only the edition cited applies. For undated references, the latest edition ofthe referenced document (including any amendments) applies.IEC 60839-7-1, Alarm systems – Part 7-1: Message formats and protocols for serial datainterfaces in alarm transmission systems – GeneralIEC 60839-7-4, Alarm systems – Part 7-4: Message formats and protocols for serial datainterfaces in alarm transmission systems – Common transport layer protocolISO/IEC 8859-1, Information technology – 8-bit single-byte coded graphic character sets –Part 1: Latin alphabet No. 13 DefinitionsFor the purpose of this part of IEC 60839, the definitions in IEC 60839-7-1 apply.SIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 11 –4 AbbreviationsThe definitions in IEC 60839-7-1 apply.5 Application layer functionsThe application layer is responsible for the formatting of the basic messages required totransmit data through the alarm transmission system. It must also respond to basic messagesfrom the remote application layer.The following facilities, protocol, message structure and formats meet the basic requirementsfor serial data interfaces.6 Basic data blocksAlarms and other information to be transmitted shall be formatted into basic data blocks. Theseshall comprise a two or more 8-bit octets. The first octet shall always be the number of octetsin the block following the length octet, and the second shall be a block type descriptor.Details of these basic data blocks are given in annex A. Where a date/time basic data block isincluded it shall refer to the data blocks that follow it in a message (where appropriate) until theend of the message block or until another date/time basic data block is encountered.6.1 Application layer headerEach basic message shall be formatted into an application layer message by it with anapplication layer header, as follows:07bit 0 :bit 1 :1 = Source identity follows0 = No source identity includedbit 2 :1 = Destination identity follows0 = No destination identity includedbit 3 :bit 6 :Reserved
( must be unset (=0) )bit 7 :bit 4 :bit 5 :SEQUENCE NUMBER(FIRST OCTET)SOURCE IDDESTINATION IDAPPLICATION LAYER HEADERBASIC MESSAGE1 = Acknowledge required0 = No Acknowledge required1 = Basic message encrypted0 = Basic message not encryptedFLAGSNOTE
Bit 7 of the first octet is the end of the transport layer header (or a null transport layer – see IEC 60839-7-4)and will be set to 0 to indicate that an application layer header follows.SIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 13 –The sequence number may be initialized at any value. It shall be incremented by one for eachsuccessive application layer message transmitted (mod 8). A separate set of sequencenumbers shall be used for each destination and for each direction of transmission.The application layer header may include the source identity, the destination identity, both orneither as defined in the first octet of the header.Where both identities are included the source identity shall always be first.The format of the identity is as follows:743074307430No ofnibbles1stdigit2nddigit3rddigitThe first nibble (bits 4-7 of the first octet) is the number of digits in the address. The actualidentity digits shall be contained in subsequent nibbles in HEX format, starting with the lowernibble of the first octet. The identity shall contain only sufficient octets to include the number ofdigits required. If the number of digits is even, the last nibble (bits 0-3 of the last octet) shall bezero.As an example, if the identity is 1234, this would be transmitted as follows:7430743074300100000100100011010000004 digits12346.2 Basic messageOne or more basic data blocks may be concatenated together to form a basic message,subject to the maximum message length of 228 octets.Within the application layer the basic data block may be further subdivided in order to provideone or more alarm channel data blocks. This is shown below:SIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 15 –Alarm Channel DataorLengthDataAlarm ChannelNumber228 octets max.15-222DataDataTypeLength10LengthOptional DataType0-226 octets1-2270-14Length224 octets max.DataType1111Alarm Channel Data BlockAlarm Channel Data BlockBasic Data Block6.3 Acknowledgements (ACK)The application layer may transmit messages not requiring to be acknowledged by the remoteapplication layer provided that the underlying layers and network can accept them.The application layer may request an acknowledgement from the remote application layer foran individual message (either always or as required) by setting bit 0 (acknowledge required) inthe layer message header.Where an acknowledgement is requested, not more than four messages may be transmittedwithout their corresponding acknowledgement having been received (i.e. the window size is 4).In a series of messages, the recipient must only acknowledge messages in sequence, andmust not acknowledge a message if the previous message (as identified by its sequencenumber) has not been received.If an acknowledgement is not received for one message of a sequence of messages requiringacknowledgements then that message, together with all messages which have been sub-sequently sent shall be re-transmitted with the original sequence number.Where an acknowledgement is received which does not contain the next expected sequencenumber, it may be assured that previous outstanding messages are acknowledged.6.4 Minimum subset of messages supportedEquipment claiming to have an interface that complies with this standard need not be capableof supporting all of the basic data blocks defined in annex A.However, in order to ensure successful transmission of basic alarm messages, the correcthandling of faults and a proper response to messages that are not supported by all equipmentat an interface, the following shall apply.a)All equipment shall be capable of transmitting and receiving basic data blocks of type 78(reception error) and type 79 (transmission error detected) at any standard interface.SIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 17 –b)Equipment shall be capable of transmitting basic data blocks of type 70 (Acknowledgement)at interfaces which are towards the alarm system.c)Equipment shall be capable of receiving basic data blocks of type 70 (Acknowledgement) atinterfaces which are towards the alarm receiving centre or monitoring centre.d)Equipment shall be capable of transmitting basic data blocks of type 10 (alarm systemstatus) and type 12 (change of state) at interfaces which are towards the alarm receivingcentre or monitoring centre.e)Equipment shall be capable of receiving basic data blocks of type 10 (alarm status) andtype 12 (change of state) at interfaces which are towards the alarm system.For (d) and (e), equipment shall be capable of transmitting or receiving alarm channel datablocks of type 1 (alarm event/status data) with up to three data octets (see annex B).6.5 Message decodingWhere a valid message is received each included data block should be examined. Where abasic data block is received which cannot be decoded (either because the block type is notsupported by the receiver, or because the block contains more data than is supported), amessage (basic data block reception error or transmission error detected) shall be returned tothe sender to indicate the mismatch and what action, if any, has been taken.7 Common application layer protocol procedureThe following message sequences apply to the transmission and reception of all messagetypes.One or more messages form a sequence which shall obey the following rules. The initialmessage is considered to be generated spontaneously and presented to the lower layers fortransmission. Subsequent messages are generated as an immediate response to receivedmessages or to a failure in the system as described below.Messages which are generated as a result of a received message, but which requireprocessing in the application layer before a decision as to the format or the reply should not beconsidered as part of the sequence; they should be considered as being the start of a newsequence.The reception of a basic message which does not have an acknowledgement request bit set inthe application layer header shall not result in the return of an acknowledgement basic datablock (as defined in annex A).SOURCEDESTINATIONMESSAGEACK not setno replyThe reception of a basic data block which has the acknowledgement request bit set in theapplication layer header shall initiate the transmission of an acknowledgement basic data blockto the sender of the received message or a specific response message, provided that thereceived message type is understood and that its length can be processed.SIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 19 –SOURCEDESTINATIONMESSAGEwith ACK setACK setACKWhen a message requiring an ACK is sent and an acknowledgement basic data block is notreceived within a given time, the original message may be repeated. This time will dependupon the transmission medium. A number of such re-tries may be attempted.SOURCEDESTINATIONMESSAGE with ACK setNo reply within timeoutMESSAGE with ACK setWhen a message is presented for transmission, and the ISO layers 1-6 determine that themessage cannot be transmitted or that a transmission or an attempted transmission has failed,a transmission error detected basic data block shall be generated and returned to theapplication layer that generated the message.SOURCEDESTINATIONMESSAGEERRORWhere an incoming message is detected but errors in the message do not allow the datablocks within it to be successfully decoded, a transmission error detected basic data block shallbe generated and sent to the network monitoring centre or to the intended destination of thereceived message in addition to that returned to the source.SOURCEDESTINATIONMESSAGEERRORERRORWhere the lower layers at the destination detect an error in the transmission path atransmission error detected basic data block shall be generated and sent to the applicationlayer (for example as a result of failure of the monitoring of incoming lines).SOURCEDESTINATIONERRORERRORorWhere an incoming message is successfully decoded but the received data block is of anunknown or unrecognized type, a reception error basic data block shall be returned and shallbe available for the application at the destination.SIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 21 –SOURCEDESTINATIONMESSAGEERRORERRORWhere an incoming message is successfully decoded and is of a supported type but thereceived data block is longer than is supported, a reception error basic data block shall bereturned and shall be available for the application at the destination.SOURCEDESTINATIONMESSAGEERRORERRORIf a sequence of data blocks are being sent (for example a log) it may be aborted or interruptedto allow the transmission of one or more messages that are not part of the sequence. Thesemessages shall then be sent in the normal manner.If the sequence was interrupted it shall be resumed immediately after sending the lastmessage.SOURCEDESTINATIONinc. date and time alarmdLOG STARTLOG MESSAGELOG MESSAGELOG MESSAGELOG INTERRUPTEDCHANGE OF STATELOG RESUMELOG MESSAGECHANGE OF STATEMESSAGE TO BE SENTACK if requestedACK if requestedLOG FINISH8 Services provided to the application layerThe following basic facilities shall be provided to the application layer by the transport layer(and lower layers) in an alarm transmission system.8.1 Long messagesWhere the underlying network is not capable of transmitting messages up to 255 octets long,the lower layers shall divide messages into separate blocks for transmission and reassemblethem in the proper order at the destination.SIST IEC 60839-7-2:2002



60839-7-2 © IEC:2001– 23 –8.2 Correct order of messagesMessages sent from a source to a sin
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.