1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Iec 62676 2 2 2013

252 1 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Nội dung

® Edition 1.0 2013-11 INTERNATIONAL STANDARD NORME INTERNATIONALE Video surveillance systems for use in security applications – Part 2-2: Video transmission protocols – IP interoperability implementation based on HTTP and REST services IEC 62676-2-2:2013 Systèmes de vidéosurveillance destinés être utilisés dans les applications de sécurité – Partie 2-2: Protocoles de transmission vidéo – Mise en œuvre de l'interopérabilité IP en fonction des services HTTP et REST Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe IEC 62676-2-2 All rights reserved Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either IEC or IEC's member National Committee in the country of the requester If you have any questions about IEC copyright or have an enquiry about obtaining additional rights to this publication, please contact the address below or your local IEC member National Committee for further information Droits de reproduction réservés Sauf indication contraire, aucune partie de cette publication ne peut être reproduite ni utilisée sous quelque forme que ce soit et par aucun procédé, électronique ou mécanique, y compris la photocopie et les microfilms, sans l'accord écrit de la CEI ou du Comité national de la CEI du pays du demandeur Si vous avez des questions sur le copyright de la CEI ou si vous désirez obtenir des droits supplémentaires sur cette publication, utilisez les coordonnées ci-après ou contactez le Comité national de la CEI de votre pays de résidence IEC Central Office 3, rue de Varembé CH-1211 Geneva 20 Switzerland Tel.: +41 22 919 02 11 Fax: +41 22 919 03 00 info@iec.ch www.iec.ch About the IEC The International Electrotechnical Commission (IEC) is the leading global organization that prepares and publishes International Standards for all electrical, electronic and related technologies About IEC publications The technical content of IEC publications is kept under constant review by the IEC Please make sure that you have the latest edition, a corrigenda or an amendment might have been published Useful links: IEC publications search - www.iec.ch/searchpub Electropedia - www.electropedia.org The advanced search enables you to find IEC publications by a variety of criteria (reference number, text, technical committee,…) It also gives information on projects, replaced and withdrawn publications The world's leading online dictionary of electronic and electrical terms containing more than 30 000 terms and definitions in English and French, with equivalent terms in additional languages Also known as the International Electrotechnical Vocabulary (IEV) on-line IEC Just Published - webstore.iec.ch/justpublished Customer Service Centre - webstore.iec.ch/csc Stay up to date on all new IEC publications Just Published details all new publications released Available on-line and also once a month by email If you wish to give us your feedback on this publication or need further assistance, please contact the Customer Service Centre: csc@iec.ch A propos de la CEI La Commission Electrotechnique Internationale (CEI) est la première organisation mondiale qui élabore et publie des Normes internationales pour tout ce qui a trait l'électricité, l'électronique et aux technologies apparentées A propos des publications CEI Le contenu technique des publications de la CEI est constamment revu Veuillez vous assurer que vous possédez l’édition la plus récente, un corrigendum ou amendement peut avoir été publié Liens utiles: Recherche de publications CEI - www.iec.ch/searchpub Electropedia - www.electropedia.org La recherche avancée vous permet de trouver des publications CEI en utilisant différents critères (numéro de référence, texte, comité d’études,…) Elle donne aussi des informations sur les projets et les publications remplacées ou retirées Le premier dictionnaire en ligne au monde de termes électroniques et électriques Il contient plus de 30 000 termes et définitions en anglais et en franỗais, ainsi que les termes ộquivalents dans les langues additionnelles Egalement appelé Vocabulaire Electrotechnique International (VEI) en ligne Just Published CEI - webstore.iec.ch/justpublished Restez informé sur les nouvelles publications de la CEI Just Published détaille les nouvelles publications parues Disponible en ligne et aussi une fois par mois par email Service Clients - webstore.iec.ch/csc Si vous désirez nous donner des commentaires sur cette publication ou si vous avez des questions contactez-nous: csc@iec.ch Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe THIS PUBLICATION IS COPYRIGHT PROTECTED Copyright © 2013 IEC, Geneva, Switzerland ® Edition 1.0 2013-11 INTERNATIONAL STANDARD NORME INTERNATIONALE Video surveillance systems for use in security applications – Part 2-2: Video transmission protocols – IP interoperability implementation based on HTTP and REST services Systèmes de vidéosurveillance destinés être utilisés dans les applications de sécurité – Partie 2-2: Protocoles de transmission vidéo – Mise en œuvre de l'interopérabilité IP en fonction des services HTTP et REST INTERNATIONAL ELECTROTECHNICAL COMMISSION COMMISSION ELECTROTECHNIQUE INTERNATIONALE PRICE CODE CODE PRIX ICS 13.320 XF ISBN 978-2-8322-1188-5 Warning! Make sure that you obtained this publication from an authorized distributor Attention! Veuillez vous assurer que vous avez obtenu cette publication via un distributeur agréé ® Registered trademark of the International Electrotechnical Commission Marque déposée de la Commission Electrotechnique Internationale Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe IEC 62676-2-2 62676-2-2  IEC:2013 CONTENTS FOREWORD INTRODUCTION Scope Normative references Abbreviations Overview 10 Design considerations 10 5.1 5.2 5.3 General 10 REST overview 11 Conformance 11 5.3.1 General 11 5.3.2 Minimum API set 11 5.3.3 XML requirements 11 5.3.4 Protocol requirements 12 5.4 HTTP methods and REST 12 5.5 HTTP status codes and REST 12 5.6 Unique identifiers 14 5.7 ID encoding 14 Architecture and namespace 15 System flow 17 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 7.10 7.11 7.12 7.13 General 17 Service discovery 18 Persistent connections 18 Authentication 19 Access restrictions 19 Setting configurations 20 Getting configurations 20 Getting capabilities 21 Uploading data 22 Receiving data 22 Operations 22 Diagnostics 23 Response status 23 7.13.1 General 23 7.13.2 Status code 23 7.13.3 Status string 24 7.13.4 ID 24 7.14 Processing rules 24 XML modeling 24 8.1 File format 24 8.2 Data structures 24 8.3 Lists 24 8.4 Capabilities 24 Custom services and resources 26 10 Interface design 26 10.1 General 26 Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe –2– –3– 10.2 Protocol 26 10.3 Hostname 27 10.4 Port 27 10.5 URI 27 10.6 Query string 27 10.7 Resource description 27 11 Standard resource descriptions 28 11.1 11.2 11.3 11.4 11.5 11.6 General 28 index 28 indexr 28 description 29 capabilities 29 Schemas 29 11.6.1 General 29 11.6.2 ResourceDescription 30 11.6.3 ResourceList 30 11.6.4 QueryStringParameterList 30 11.6.5 responseStatus 30 11.6.6 service.xsd 31 Annex A (normative) IP Media Device API Specification Version 1.0 34 Bibliography 122 Figure – PSIA service architecture example 15 Figure A.1 – Motion detection grid with two detection regions 108 Table – HTTP methods 12 Table – HTTP status codes and REST 13 Table – Resource names 16 Table – Service URLs 16 Table – HTTP requests 23 Table – Capability attributes 25 Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe 62676-2-2  IEC:2013 62676-2-2  IEC:2013 INTERNATIONAL ELECTROTECHNICAL COMMISSION VIDEO SURVEILLANCE SYSTEMS FOR USE IN SECURITY APPLICATIONS – Part 2-2: Video transmission protocols – IP interoperability implementation based on HTTP and REST services FOREWORD 1) The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC National Committees) The object of IEC is to promote international co-operation on all questions concerning standardization in the electrical and electronic fields To this end and in addition to other activities, IEC publishes International Standards, Technical Specifications, Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC Publication(s)”) Their preparation is entrusted to technical committees; any IEC National Committee interested in the subject dealt with may participate in this preparatory work International, governmental and nongovernmental organizations liaising with the IEC also participate in this preparation IEC collaborates closely with the International Organization for Standardization (ISO) in accordance with conditions determined by agreement between the two organizations 2) The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international consensus of opinion on the relevant subjects since each technical committee has representation from all interested IEC National Committees 3) IEC Publications have the form of recommendations for international use and are accepted by IEC National Committees in that sense While all reasonable efforts are made to ensure that the technical content of IEC Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any misinterpretation by any end user 4) In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications transparently to the maximum extent possible in their national and regional publications Any divergence between any IEC Publication and the corresponding national or regional publication shall be clearly indicated in the latter 5) IEC itself does not provide any attestation of conformity Independent certification bodies provide conformity assessment services and, in some areas, access to IEC marks of conformity IEC is not responsible for any services carried out by independent certification bodies 6) All users should ensure that they have the latest edition of this publication 7) No liability shall attach to IEC or its directors, employees, servants or agents including individual experts and members of its technical committees and IEC National Committees for any personal injury, property damage or other damage of any nature whatsoever, whether direct or indirect, or for costs (including legal fees) and expenses arising out of the publication, use of, or reliance upon, this IEC Publication or any other IEC Publications 8) Attention is drawn to the Normative references cited in this publication Use of the referenced publications is indispensable for the correct application of this publication 9) Attention is drawn to the possibility that some of the elements of this IEC Publication may be the subject of patent rights IEC shall not be held responsible for identifying any or all such patent rights International Standard IEC 62676-2-2 has been prepared by IEC technical committee 79: Alarm and electronic security systems The text of this standard is based on the following documents: FDIS Report on voting 79/436/FDIS 79/449/RVD Full information on the voting for the approval of this standard can be found in the report on voting indicated in the above table This publication has been drafted in accordance with the ISO/IEC Directives, Part Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe –4– –5– A list of all parts in the IEC 62676 series, published under the general title Video surveillance systems for use in security applications, can be found on the IEC website The committee has decided that the contents of this publication will remain unchanged until the stability date indicated on the IEC web site under "http://webstore.iec.ch" in the data related to the specific publication At this date, the publication will be • • • • reconfirmed, withdrawn, replaced by a revised edition, or amended Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe 62676-2-2  IEC:2013 62676-2-2  IEC:2013 INTRODUCTION The IEC Technical Committee 79 in charge of alarm and electronic security systems together with many governmental organisations, test houses and equipment manufacturers have defined a common framework for video surveillance transmission in order to achieve interoperability between products The IEC 62676 series of standards on video surveillance system is divided into independent parts: Part System requirements Part 2: Video transmission protocols Part 3: Analog and digital video interfaces Part : Application guidelines (to be published) Each part has its own clauses on scope, references, definitions and requirements This IEC 62676-2 series consists of subparts, numbered parts 2-1, 2-2 and 2-3 respectively: IEC 62676-2-1, Video transmission protocols – General requirements IEC 62676-2-2, Video transmission protocols – IP interoperability implementation based on HTTP and REST services IEC 62676-2-3, Video transmission protocols – IP interoperability implementation based on Web services This second subpart of this IEC 62676-2 series covers IP interoperability implementation based on HTTP and REST services It is based on the requirements for IP video transmission protocols covered in IEC 62676-2-1, which defines protocol requirements to be fulfilled by any high-level IP video device interface Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe –6– –7– VIDEO SURVEILLANCE SYSTEMS FOR USE IN SECURITY APPLICATIONS – Part 2-2: Video transmission protocols – IP interoperability implementation based on HTTP and REST services Scope This part of IEC 62676 specifies a compliant IP video protocol based on HTTP and REST services Video transmission devices are often equipped with web servers that respond to HTTP requests The HTTP response may contain XML content (for GET actions), XML response information (for SET actions), or various text/binary content (for retrieval of configuration data, etc.) REST is an approach to creating services that expose all information as resources in a uniform way The ease of using REST is its uniform interface for operations Since everything is represented as a resource, create, retrieve, update, and delete (CRUD) operations use the same URI This specification leverages the features of HTTP and REST for IP video transmission A video transmission device supporting compliance to the requirements of this standard based on HTTP and REST Services as described in this document is declared as compatible to ´IEC 62676-2 HTTP and REST interoperability.´ Normative references The following documents, in whole or in part, are normatively referenced in this document and are indispensable for its application For dated references, only the edition cited applies For undated references, the latest edition of the referenced document (including any amendments) applies ISO/IEC 10918-1, Information technology – Digital compression and coding of continuoustone still images: Requirements and guidelines ISO/IEC 11172-3:1993, Information technology – Coding of moving pictures and associated audio for digital storage media at up to about 1,5 Mbit/s – Part 3: Audio ISO/IEC 13818-2, Information technology – Generic coding of moving pictures and associated audio information: Video ISO/IEC 14496-2:2004, Information technology – Coding of audio-visual objects – Part 2: Visual ISO/IEC 14496-3, Information technology – Coding of audio-visual objects – Part 3: Audio ISO/IEC 14496-10:2012, Information technology – Coding of audio-visual objects – Part 10: Advanced video coding IETF RFC 1213, Management Information Base for Network Management of TCP/IP-based internets: MIB-II Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe 62676-2-2  IEC:2013 62676-2-2  IEC:2013 IETF RFC 1945, Hypertext Transfer Protocol – HTTP/1.0 IETF RFC 2046, Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types IETF RFC 2250, Format de charge utile RTP pour la video MPEG1/MPEG2 IETF RFC 2326, Real Time Streaming Protocol (RTSP) IETF RFC 2435, Format de charge utile RTP pour l video JPEG IETF RFC 2616, Hypertext Transfer Protocol – HTTP/1.1 IETF RFC 2617, HTTP Authentication: Basic and Digest Access Authentication IETF RFC 2818, HTTP Over TLS IETF RFC 3016, Format de charge utile RTP pour flux audio/video MPEG-4 IETF RFC 3550, RTP: A Transport Protocol for Real-Time Applications IETF RFC 3551, RTP Profile for Audio and Video Conferences with Minimal Control IETF RFC 3629, UTF-8 un format de transformation de l’ISO 10646 IETF RFC 3640, Format de charge utile RTP pour le transport de flux élémentaires MPEG-4 IETF RFC 3984, Format de charge utile RTP pour video H.264 IETF RFC 4566, SDP: Session Description Protocol ITU-T Recommendation G.726, 40, 32, 24, 16 kbit/s Adaptive Differential Pulse Code Modulation (ADPCM) ITU-T Recommendation H.264, Advanced video coding for generic audiovisual services ITU-T Recommendation T.81, Information technology – Digital compression and coding of continuous-tone still images – Requirements and guidelines Abbreviations For the purposes of this document, the following abbreviations apply AAC Advanced Audio Coding API Application Program Interface AVP Audio/Video Profile DHCP Dynamic Host Configuration Protocol DNS Domain Name System HTTP Hypertext Transfer Protocol HTTPS Hypertext Transfer Protocol over Secure Socket Layer IETF Internet Engineering Task Force IO I/O Input/Output IP Internet Protocol Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe –8– PUT POST DELETE Notes A.7.13.4.1 62676-2-2  CEI:2013 Le présent paragraphe détermine les types de notification qui sont pris en charge pour un déclenchement d'événement particulier ainsi que leurs récurrences et leurs comportements Bloc XML EventTriggerNotificationList A.7.13.5 /Custom/Event/triggers//notifications/ /Custom/Event/triggers/ID/notifications/ID URI Type Ressource Fonction Accéder et configurer un déclenchement de notification particulier Méthodes Chne(s) de requête Données entrantes Résultat de retour GET PUT DELETE Notes A.7.13.5.1 est requis uniquement si la est "ES" Bloc XML EventTriggerNotification A.7.13.6 /Custom/Event/schedule /Custom/Event/schedule URI Fonction Programmes d’événement Méthodes Chne(s) de requête Données entrantes Résultat de retour GET PUT Notes A.7.13.6.1 > Type Ressource Définit le programme Le programme est défini selon une plage date-heure et un ensemble de blocs temporels qui définissent le moment où les événements sont actifs Si n'est pas présent, le programme est toujours valide Bloc XML EventSchedule Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe – 236 – A.7.13.7 – 237 – /Custom/Event/notification /Custom/Event/notification URI Fonction Configurer les notifications Méthodes Chne(s) de reqte Données entrantes Résultat de retour GET PUT Les types de notification suivants sont pris en charge: HTTP: le dispositif se connecte une adresse et un port donnés et émet une requête GET/POST HTTP avec les paramètres donnés FTP: un clip vidéo ou un instantané est chargé sur un serveur FTP Courriel: un courriel contenant le clip vidéo ou l'instantané est envoyé une liste de serveurs détermine le type d'instantané, de clip vidéo et les temps avant et après l'enregistrement Notes A.7.13.7.1 Type Ressource Bloc XML EventNotificationMethods > > > > > > > > > > Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe 62676-2-2  CEI:2013 A.7.13.8 62676-2-2  CEI:2013 /Custom/Event/notification/mailing /Custom/Event/notification/mailing URI Fonction Envoyer les notifications par courriel Méthodes Chne(s) de reqte Données entrantes Type Résultat de retour GET Ressource PUT POST DELETE Notes A.7.13.8.1 Lorsque la notification est déclenchée, un courriel contenant un instantané ou un clip vidéo est envoyé chacune des adresses de la liste d'adresses Bloc XML MailingNotificationList A.7.13.9 /Custom/Event/notification/mailing/ /Custom/Event/notification/mailing/ID URI Fonction Accéder une notification par courriel particulière Méthodes Chne(s) de reqte Données entrantes Résultat de retour GET PUT DELETE Notes A.7.13.9.1 Type Ressource En fonction de la valeur de , le champ ou l'adresse IP est utilisé pour localiser le serveur NTP détermine les exigences d'authentification pour envoyer un courriel depuis le dispositif est le numéro de port de l'entrée de serveur SMTP indique si une adresse IP ou un nom d'hôte est utilisé pour le serveur POP est le nom du compte d'utilisateur pour le serveur SMTP Bloc XML MailingNotification Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe – 238 – A.7.13.10 – 239 – /Custom/Event/notification/ftp /Custom/Event/notification/ftp URI Fonction Notifications par FTP Méthodes Chne(s) de reqte Données entrantes Résultat de retour GET Type Ressource PUT POST DELETE Notes A.7.13.10.1 Les notifications par FTP impliquent de poster un clip vidéo ou un instantané particulier sur un serveur FTP Bloc XML FTPNotificationList A.7.13.11 /Custom/Event/notification/ftp/ /Custom/Event/notification/ftp/ID URI Type Ressource Fonction Accéder une notification de transfert FTP particulière Méthodes Chne(s) de reqte Données entrantes Résultat de retour GET PUT DELETE Notes A.7.13.11.1 En fonction de la valeur de , le champ ou l'adresse IP est utilisé pour localiser le serveur NTP Note: Les transferts FTP sont toujours en mode binaire Bloc XML FTPNotification Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe 62676-2-2  CEI:2013 A.7.13.12 62676-2-2  CEI:2013 /Custom/Event/notification/httpHost /Custom/Event/notification/httpHost URI Fonction Accéder la liste d'hôtes de notification HTTP Méthodes Chne(s) de reqte Données entrantes Type Résultat de retour GET Ressource PUT POST DELETE Notes A.7.13.12.1 La notification HTTP implique que le dispositif se connecte un URL particulier et délivre un message HTTP dès que l'événement se déclenche Bloc XML HttpHostNotificationList A.7.13.13 /Custom/Event/notification/httpHost/ /Custom/Event/notification/httpHost/ID URI Fonction Accéder un hôte de notification HTTP particulier Méthodes Chne(s) de reqte Données entrantes Résultat de retour GET PUT DELETE Notes A.7.13.13.1 Type Ressource En fonction de la valeur de , le champ ou l'adresse IP est utilisé pour localiser le serveur NTP Si est "XML", POST HTTP est utilisé Si est "querystring", GET HTTP est utilisé Bloc XML HttpHostNotification Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe – 240 – – 241 – A.7.13.14 /Custom/Event/notification/alertStream URI /Custom/Event/notification/alertStream Type Ressource Accéder au flux de données de notification d'événement par l'intermédiaire du Fonction modèle push de serveur HTTP Méthodes Chne(s) de reqte Données entrantes Résultat de retour Flux de GET Cette fonction permet d'obtenir un flux d'alerte de notification d'événement depuis le dispositif média via HTTP ou HTTPS Cette fonction ne requiert pas d'ajouter un système client/VMS comme destination HTTP(S) sur le dispositif média À la place, le système client/VMS peut appeler cette API pour initialiser un flux d'information d'événement depuis le dispositif En d'autres termes, une connexion est établie avec le dispositif lorsque cette fonction est appelée, et reste ouverte afin de recevoir en permanence les notifications d'événement Notes Cette API utilise un modèle de serveur push HTTP avec le type MIME "multipart/mixed" défini dans la RFC 2046 est le nom du protocole, c'est-à-dire "HTTP" ou "HTTPS" est présent pour les événements vidéo et analytiques est le numéro de séquence de la notification en cours pour cet événement particulier Il commence Utile pour les notifications récurrentes d'un événement Chaque événement entretient un comptage séparé A.7.13.14.1 Bloc XML EventNotificationAlert is “IO” > is “VMD” > Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe 62676-2-2  CEI:2013 A.7.13.14.2 62676-2-2  CEI:2013 Exemple Ce qui suit est un exemple de flux d'événement HTTP qui pousse un événement VMD depuis la voie vidéo GET /Custom/Event/notification/alertStream HTTP/1.1 … HTTP/1.1 200 OK MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=“ ” Content-Type: application/xml; charset=“UTF-8” Content-Length: xxx 3.137.217.220 80 HTTP 00:14:22:43:D5:D4 1 2009-03-11T15:27Z 1 VMD active Motion alarm 2 67 43 49 … A.7.13.15 Alerte de notification HTTP Cette fonction permet d'envoyer une notification d'événement depuis le dispositif média vers le serveur Web de surveillance ou le système de gestion via HTTP ou HTTPS Une connexion est établie avec le client uniquement lorsqu'un événement se produit L'adresse de destination est déterminée par le bloc https://:/ URI Fonction Requête d'alerte de notification HTTP Méthodes Chne(s) de reqte Données entrantes POST Alerte de notification Résultat de retour Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe – 242 – Notes A.7.13.15.1 – 243 – Les requêtes GET ou POST peuvent être utilisées Si GET est utilisé, les paramètres de la chne de requête correspondante sont fournis la place du XML entrant Si POST est utilisé, le XML entrant est fourni la place des paramètres de la chne de reqte correspondante Les champs "DeviceID=" et "DeviceName=" sont pris dans les paramètres du dispositif La balise indique s'il convient d'utiliser XML ou les paramètres de la chne de reqte pour cette API La balise sous détermine si HTTP ou HTTPS est utilisé pour cette API La balise sous détermine le numéro de port utiliser pour l'alerte de notification Les balises et dans l'alerte sont fournies pour qu'une application client se connecte à/gère le dispositif après qu'il a envoyé cette notification La balise sous détermine si /IPAddress ou /IPv6Address est utilisé La balise sous indique l'URL utiliser pour l'alerte Si /EventType se réfère un événement relatif un port d'entrée, il faut que la balise ou le paramètre InputIOPortID soit inclus(e) Si /EventType se réfère un événement relatif un mouvement, il faut que le bloc ou le(s) paramètre(s) RegionIndexX soi(en)t inclus si des régions de détection ont été définies Si l'événement de mouvement concerne une configuration plein écran, il convient de ne pas inclure ces indices de région et Les paramètres /SensitivityLevelX /DetectionThresholdX sont utilisés pour indiquer les valeurs courantes de détection d'activité au moment où la notification est envoyée Si l'alerte concerne un événement relatif un mouvement, de multiples indices de région peuvent être inclus pour chaque API Si les paramètres de chne de reqte sont utilisés, le format "RegionIndexX" est utilisộ, oự "X" est un nombre commenỗant par "1" et s'incrémentant de un pour chaque indice de région suivant fourni Si la balise sous est configurée pour "MD5 Digest Authentication" (algorithme de hachage 5), il faut que les valeurs de sécurité correspondantes soient stockées dans les champs d'en-tête de la requête HTTP(S) Le paramètre /ActivePostCount est un numéro de sộquence commenỗant et s'incrộmentant de un pour chaque notification d'événement envoyée Alerte de notification version=1.0 transactionID= action=update DeviceID= DeviceName= IPAddress= IPv6Address= PortNo= Protocol= MacAddress= ChannelID= DateTime= ActivePostCount= EventType= EventState= EventDescription= InputIOPortID= RegionIndex1= SensitivityLevel1= DetectionThreshold1= RegionIndex2= SensitivityLevel2= Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe 62676-2-2  CEI:2013 62676-2-2  CEI:2013 DetectionThreshold2= … A.7.13.16 Alerte de notification par courriel Fonction Envoyer un courriel d'alerte Le bloc XML détermine comment le courriel est envoyé L'adresse courriel "De" est déterminée par la balise dans le bloc L'adresse courriel "À" est déterminée par la balise dans le bloc L'"Objet" du courriel est déterminé par la balise dans le bloc Le XML suit les mêmes règles que l'API "Alerte de notification d'événement HTTPS" Le bloc du bloc détermine quel média (le cas échéant) est inclus dans le courriel Si un clip vidéo/audio est joint au corps du courriel, les balises et de déterminent la longueur du clip Notes A.7.13.16.1 Format de courriel From: … To: … Subject: … … VideoURL=… (Picture Snap Shot) A.7.13.17 A.7.13.17.1 Exemples de déclenchement d'événement Exemple: Événements de déclenchement sur port ES La commande ci-dessous permet la détection pour le port d'entrée Lorsque le signal d'entrée est détecté selon , deux réponses de notification d'événement sont utilisées Le port de sortie est déclenché pour la durée de la détection du signal d'entrée, et un serveur HTTP est informé de "l'Alerte de notification d'événement HTTPS" Le comportement de cette notification est le suivant: • Une notification HTTP(S) est envoyée au moment de la détection, puis toutes les cinq secondes tant que le signal est présent Cela est indiqué par les balises et Ces API ont un "actif" • Lorsque la détection de signal du port d'entrée cesse, au moins une notification HTTP(S) est envoyée au serveur (de nouveau, cinq secondes après la dernière notification) avec un "actif" • Après que la détection de signal cesse pour le port d'entrée 1, le dispositif attend une seconde avant de commencer détecter de nouveau le signal pour ce port (indiqué par ) POST /Custom/Event/triggers HTTP/1.1 Content-Type: application/xml; charset=“UTF-8” Content-Length: xxx IO Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe – 244 – – 245 – Input port event detection 111 1 IO 222 HTTP recurring 5000 A.7.13.17.2 Exemple: Déclenchement syslog par détection de mouvement La commande ci-dessous permet la détection de mouvement Lorsqu'un mouvement est détecté, la notification syslog est utilisée Le comportement de cette notification est le suivant: • Un message syslog est envoyé une fois au moment de la détection • Un message syslog est envoyé une fois lorsque la détection cesse Le comportement ci-dessus est le résultat de la balise À l'issue de la détection, le dispositif recommence immédiatement la détection de mouvement, comme indiqué par la balise POST /Custom/Event/triggers HTTP/1.1 Content-Type: application/xml; charset=“UTF-8” Content-Length: xxx VMD Motion detection 0 syslog beginningandend A.7.13.17.3 Exemple: Programmation de détection d'événement et de déclenchement La commande ci-dessous programme la détection et le déclenchement d'événement de h 18 h et de 22 h 23 h tous les lundis, mercredis et vendredis Les mardis et jeudis, la détection est le déclenchement d'événement sont programmés de h 17 h Copyrighted material licensed to BR Demo by Thomson Reuters (Scientific), Inc., subscriptions.techstreet.com, downloaded on Nov-27-2014 by James Madison No further reproduction or distribution is permitted Uncontrolled when printe 62676-2-2  CEI:2013 62676-2-2  CEI:2013 PUT /Custom/Event/schedule HTTP/1.1 Content-Type: application/xml; charset=“UTF-8” Content-Length: xxx 1 000000001111111111000010 2 07:00:00 17:00:00 3 000000001111111111000010 4 07:00:00 17:00:00 5 08:00:00 18:00:00 5 22:00:00 23:00:00

Ngày đăng: 17/04/2023, 11:46

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN