1、BSI Standards Publication BS ISO/IEC 29341-7-11:2015 Information technology UPnP Device Architecture Part 7-11: Lighting Device Control Protocol Switch Power ServiceBS ISO/IEC 29341-7-11:2015 BRITISH STANDARD National foreword This British Standard is the UK implementation of ISO/IEC 29341-7-11:2015
2、. The UK participation in its preparation was entrusted to Technical Committee IST/6, Data communications. A list of organizations represented on this committee can be obtained on request to its secretary. This publication does not purport to include all the necessary provisions of a contract. Users
3、 are responsible for its correct application. The British Standards Institution 2015. Published by BSI Standards Limited 2015 ISBN 978 0 580 88278 4 ICS 35.200 Compliance with a British Standard cannot confer immunity from legal obligations. This British Standard was published under the authority of
4、 the Standards Policy and Strategy Committee on 30 June 2015. Amendments/corrigenda issued since publication Date T e x t a f f e c t e dBS ISO/IEC 29341-7-11:2015 Information technology UPnP Device Architecture Part 7-11: Lighting Device Control Protocol Switch Power Service Technologies de linform
5、ation Architecture de dispositif UPnP Partie 7-11: Protocole de contrle de dispositif dclairage Service de changement dalimentation INTERNATIONAL STANDARD ISO/IEC 29341-7-11 Reference number ISO/IEC 29341-7-11:2015(E) Second edition 2015-06-15 ISO/IEC 2015 ii ISO/IEC 2015 All rights reserved COPYRIG
6、HT PROTECTED DOCUMENT ISO/IEC 2015 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written perm
7、ission. Permission can be requested from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Te l . + 4 1 2 2 7 4 9 0 1 1 1 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.org Published in Switzerland B
8、S ISO/IEC 29341-7-11:2015 ISO/IEC 29341-7-11:2015(E) ISO/IEC 2015 All rights reserved iii CONTENTS Foreword iv Introduction . v 1. Scope 1 2. Service Modeling Definitions . 2 2.1. ServiceType . 2 2.2. State Variables . 2 2.2.1. Target 2 2.2.2. Status 2 2.3. Eventing and Moderation . 3 2.4. Actions .
9、 3 2.4.1. SetTarget 3 2.4.2. GetTarget 4 2.4.3. GetStatus 4 2.4.4. Non-Standard Actions Implemented by a UPnP Vendor 5 2.4.5. Common Error Codes . 5 2.5. Theory of Operation . 6 3. XML Service Description 7 4. Test . 8 LIST OF TABLES Table 2-1: State Variables 2 Table 2-2: Event Moderation 3 Table 2
10、-3: Actions . 3 Table 2-4: Arguments for SetTarget . 3 Table 2-5: Error Codes for SetTarget . 4 Table 2-6: Arguments for GetTarget 4 Table 2-7: Error Codes for GetTarget 4 Table 2-8: Arguments for GetStatus . 4 Table 2-9: Error Codes for GetStatus 5 Table 2-10: Common Error Codes . 5 BS ISO/IEC 2934
11、1-7-11:2015 ISO/IEC 29341-7-11:2015(E)iv ISO/IEC 2015 All rights reserved Foreword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of ISO or IE
12、C participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international organizations, gove
13、rnmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. The procedures used to develop this document and those intended for its further maintenance are des
14、cribed in the ISO/IEC Directives, Part 1. In particular the different approval criteria needed for the different types of document should be noted. This document was drafted in accordance with the editorial rules of the ISO/IEC Directives, Part 2 (see http:/www.iso.org/directives). Attention is draw
15、n to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. Details of any patent rights identified during the development of the document will be in the Introduction and
16、/or on the ISO list of patent declarations received (see www.iso.org/patents). Any trade name used in this document is information given for the convenience of users and does not constitute an endorsement. For an explanation on the meaning of the ISO specific terms and expressions related to conform
17、ity assessment, as well as information about ISOs adherence to the WTO principles in the Technical Barriers to Trade (TBT) see the following URL: Foreword Supplementary information ISO/IEC 29341-7-11 was prepared by UPnP Implementers Corporation and adopted, under the PAS procedure, by joint technic
18、al committee ISO/IEC JTC 1. Information technology, in parallel with its approval by national bodies of ISO and IEC. This second edition replaces the first edition (ISO/IEC 29341-7-11:2008), which has been technically revised. The list of all currently available parts of ISO/IEC 29341 series, under
19、the general title Information technology UPnP Device Architecture, can be found on the ISO web site. BS ISO/IEC 29341-7-11:2015 ISO/IEC 29341-7-11:2015(E) ISO/IEC 2015 All rights reserved v Introduction ISO and IEC draw attention to the fact that it is claimed that compliance with this document may
20、involve the use of patents as indicated below. ISO and IEC take no position concerning the evidence, validity and scope of these patent rights. The holders of - these patent rights have assured ISO and IEC that they are willing to negotiate licenses under reasonable and non-discriminatory terms and
21、conditions with applicants throughout the world. In this respect, the statements of the holders of these patent rights are registered with ISO and IEC. Intel Corporation has informed ISO and IEC that it has patent applications or granted patents. Information may be obtained from: Intel Corporation S
22、tandards Licensing Department 5200 NE Elam Young Parkway MS: JFS-98 USA Hillsboro, Oregon 97124 Microsoft Corporation has informed ISO and IEC that it has patent applications or granted patents as listed below: 6101499 / US; 6687755 / US; 6910068 / US; 7130895 / US; 6725281 / US; 7089307 / US; 70693
23、12 / US; 10/783 524 /US Information may be obtained from: Microsoft Corporation One Microsoft Way USA Redmond WA 98052 Philips International B.V. has informed ISO and IEC that it has patent applications or granted patents. Information may be obtained from: Philips International B.V. IP 6 170 007 / U
24、S; 6 139 177 / US; 6 529 936 / US; 6 470 339 / US; 6 571 388 / US; 6 205 466 / US Information may be obtained from: Hewlett Packard Company 1501 Page Mill Road USA Palo Alto, CA 94304 Samsung Electronics Co. Ltd. has informed ISO and IEC that it has patent applications or granted patents. Informatio
25、n may be obtained from: BS ISO/IEC 29341-7-11:2015 ISO/IEC 29341-7-11:2015(E)vi ISO/IEC 2015 All rights reserved Digital Media Business, Samsung Electronics Co. Ltd. 416 Maetan-3Dong, Yeongtang-Gu, KR Suwon City 443-742 Attention is drawn to the possibility that some of the elements of this document
26、 may be the subject of patent rights other than those identified above. ISO and IEC shall not be held responsible for identifying any or all such patent rights. Original UPnP Document Reference may be made in this document to original UPnP documents. These references are retained in order to maintai
27、n consistency between the specifications as published by ISO/IEC and by UPnP Implementers Corporation. The following table indicates the original UPnP document titles and the corresponding part of ISO/IEC 29341: UPnP Document Title ISO/IEC 29341 Part UPnP Device Architecture 1.0 ISO/IEC 29341-1 UPnP
28、 Basic:1 Device ISO/IEC 29341-2 UPnP AV Architecture:1 ISO/IEC 29341-3-1 UPnP MediaRenderer:1 Device ISO/IEC 29341-3-2 UPnP MediaServer:1 Device ISO/IEC 29341-3-3 UPnP AVTransport:1 Service ISO/IEC 29341-3-10 UPnP ConnectionManager:1 Service ISO/IEC 29341-3-11 UPnP ContentDirectory:1 Service ISO/IEC
29、 29341-3-12 UPnP RenderingControl:1 Service ISO/IEC 29341-3-13 UPnP MediaRenderer:2 Device ISO/IEC 29341-4-2 UPnP MediaServer:2 Device ISO/IEC 29341-4-3 UPnP AV Datastructure Template:1 ISO/IEC 29341-4-4 UPnP AVTransport:2 Service ISO/IEC 29341-4-10 UPnP ConnectionManager:2 Service ISO/IEC 29341-4-1
30、1 UPnP ContentDirectory:2 Service ISO/IEC 29341-4-12 UPnP RenderingControl:2 Service ISO/IEC 29341-4-13 UPnP ScheduledRecording:1 ISO/IEC 29341-4-14 UPnP DigitalSecurityCamera:1 Device ISO/IEC 29341-5-1 UPnP DigitalSecurityCameraMotionImage:1 Service ISO/IEC 29341-5-10 UPnP DigitalSecurityCameraSett
31、ings:1 Service ISO/IEC 29341-5-11 UPnP DigitalSecurityCameraStillImage:1 Service ISO/IEC 29341-5-12 UPnP HVAC_System:1 Device ISO/IEC 29341-6-1 UPnP HVAC_ZoneThermostat:1 Device ISO/IEC 29341-6-2 UPnP ControlValve:1 Service ISO/IEC 29341-6-10 UPnP HVAC_FanOperatingMode:1 Service ISO/IEC 29341-6-11 U
32、PnP FanSpeed:1 Service ISO/IEC 29341-6-12 UPnP HouseStatus:1 Service ISO/IEC 29341-6-13 UPnP HVAC_SetpointSchedule:1 Service ISO/IEC 29341-6-14 UPnP TemperatureSensor:1 Service ISO/IEC 29341-6-15 UPnP TemperatureSetpoint:1 Service ISO/IEC 29341-6-16 UPnP HVAC_UserOperatingMode:1 Service ISO/IEC 2934
33、1-6-17 UPnP BinaryLight:1 Device ISO/IEC 29341-7-1 UPnP DimmableLight:1 Device ISO/IEC 29341-7-2 UPnP Dimming:1 Service ISO/IEC 29341-7-10 UPnP SwitchPower:1 Service ISO/IEC 29341-7-11 UPnP InternetGatewayDevice:1 Device ISO/IEC 29341-8-1 UPnP LANDevice:1 Device ISO/IEC 29341-8-2 UPnP WANDevice:1 De
34、vice ISO/IEC 29341-8-3 UPnP WANConnectionDevice:1 Device ISO/IEC 29341-8-4 UPnP WLANAccessPointDevice:1 Device ISO/IEC 29341-8-5 UPnP LANHostConfigManagement:1 Service ISO/IEC 29341-8-10 UPnP Layer3Forwarding:1 Service ISO/IEC 29341-8-11 UPnP LinkAuthentication:1 Service ISO/IEC 29341-8-12 UPnP Radi
35、usClient:1 Service ISO/IEC 29341-8-13 UPnP WANCableLinkConfig:1 Service ISO/IEC 29341-8-14 UPnP WANCommonInterfaceConfig:1 Service ISO/IEC 29341-8-15 UPnP WANDSLLinkConfig:1 Service ISO/IEC 29341-8-16 UPnP WANEthernetLinkConfig:1 Service ISO/IEC 29341-8-17 UPnP WANIPConnection:1 Service ISO/IEC 2934
36、1-8-18 UPnP WANPOTSLinkConfig:1 Service ISO/IEC 29341-8-19 UPnP WANPPPConnection:1 Service ISO/IEC 29341-8-20 UPnP WLANConfiguration:1 Service ISO/IEC 29341-8-21 UPnP Printer:1 Device ISO/IEC 29341-9-1 UPnP Scanner:1.0 Device ISO/IEC 29341-9-2 UPnP ExternalActivity:1 Service ISO/IEC 29341-9-10 BS IS
37、O/IEC 29341-7-11:2015 ISO/IEC 29341-7-11:2015(E) ISO/IEC 2015 All rights reserved vii UPnP Document Title ISO/IEC 29341 Part UPnP Feeder:1.0 Service ISO/IEC 29341-9-11 UPnP PrintBasic:1 Service ISO/IEC 29341-9-12 UPnP Scan:1 Service ISO/IEC 29341-9-13 UPnP QoS Architecture:1.0 ISO/IEC 29341-10-1 UPn
38、P QosDevice:1 Service ISO/IEC 29341-10-10 UPnP QosManager:1 Service ISO/IEC 29341-10-11 UPnP QosPolicyHolder:1 Service ISO/IEC 29341-10-12 UPnP QoS Architecture:2 ISO/IEC 29341-11-1 UPnP QOS v2 Schema Files ISO/IEC 29341-11-2 UPnP QosDevice:2 Service ISO/IEC 29341-11-10 UPnP QosManager:2 Service ISO
39、/IEC 29341-11-11 UPnP QosPolicyHolder:2 Service ISO/IEC 29341-11-12 UPnP RemoteUIClientDevice:1 Device ISO/IEC 29341-12-1 UPnP RemoteUIServerDevice:1 Device ISO/IEC 29341-12-2 UPnP RemoteUIClient:1 Service ISO/IEC 29341-12-10 UPnP RemoteUIServer:1 Service ISO/IEC 29341-12-11 UPnP DeviceSecurity:1 Se
40、rvice ISO/IEC 29341-13-10 UPnP SecurityConsole:1 Service ISO/IEC 29341-13-11 BS ISO/IEC 29341-7-11:2015 ISO/IEC 29341-7-11:2015(E)BS ISO/IEC 29341-7-11:2015 ISO/IEC 29341-7-11:2015(E) ISO/IEC 2015 All rights reserved 1 INFORMATION TECHNOLOGY UPNP DEVICE ARCHITECTURE Part 7-11: Lighting Device Contro
41、l Protocol Switch Power Service 1. Scope This service definition is compliant with the UPnP Device Architecture version 1.0 and Version 1.01 of the UPnP Standard Service Template. This service-type enables the following functions: basic power switching for embedding devices. This service template do
42、es not address: It is assumed that implementations of this service will not disable themselves as a side effect of driving their output load to a disabled state. BS ISO/IEC 29341-7-11:2015 ISO/IEC 29341-7-11:2015(E)2 ISO/IEC 2015 All rights reserved 2. Service Modeling Definitions 2.1. ServiceType T
43、he following service type identifies a service that is compliant with this template: urn:schemas-upnp-org:service:SwitchPower:1. 2.2. State Variables Table 2-1: State Variables Variable Name Req. or Opt. 1Data Type Allowed Value 2Default Value 2Eng. Units Target R Boolean 0 Status R Boolean 0 Non-st
44、andard state variables implemented by an UPnP vendor go here. X TBD TBD TBD TBD 1R = Required, O = Optional, X = Non-standard. 2Values listed in this column are required. To specify standard optional values or to delegate assignment of values to the vendor, you must reference a specific instance of
45、an appropriate table below. 2.2.1. Target Set to 0 to request a power-off state or to 1 to request a power-on state. 2.2.2. Status This reflects the actual state of the power control output state. This value will typically follow the requested state changes to Target but may be different because of
46、delays within the actual implementation or because of a hard failure. Simple implementations can implement the constant function: Status = Target. BS ISO/IEC 29341-7-11:2015 ISO/IEC 29341-7-11:2015(E) ISO/IEC 2015 All rights reserved 3 2.3. Eventing and Moderation Table 2-2: Event Moderation Variabl
47、e Name Evented Moderated Event Max Event Rate 1Logical Combination Min Delta per Event 2 Target No n/a n/a Status Yes No None None Non-standard state variables implemented by an UPnP vendor go here. TBD TBD TBD TBD TBD 1Determined by N, where Rate = (Event)/(N secs). 2(N) * (allowedValueRange Step).
48、 2.4. Actions Immediately following this table is detailed information about these actions, including short descriptions of the actions, the effects of the actions on state variables, and error codes defined by the actions. Table 2-3: Actions Name Req. or Opt. 1SetTarget R GetTarget R GetStatus R No
49、n-standard actions implemented by an UPnP vendor go here. X 1R = Required, O = Optional, X = Non-standard. 2.4.1. SetTarget 2.4.1.1. Arguments Table 2-4: Arguments for SetTarget Argument Direction relatedStateVariable newTargetValue IN Target 2.4.1.2. Effect on State (if any) Requests the Power Switch Service instance output to be driven to the state indicated by newTargetValue. BS ISO/IEC 29341-7-11:2015 ISO/IEC 29341-7-11:2015(E)