1、Information technology Open Connectivity Foundation(OCF)SpecificationPart 11:DevicetocloudservicesspecificationTechnologies de linformation Specification de la Fondation pour la connectivit ouverte(Fondation OCF)Partie 11:Spcification des services entre appareil et nuageINTERNATIONAL STANDARDISO/IEC
2、 30118-11First edition 2021-10Reference number ISO/IEC 30118-11:2021(E)ISO/IEC 2021iiISO/IEC 30118-11:2021(E)COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2021All rights reserved.Unless otherwise specified,or required in the context of its implementation,no part of this publication may be reproduced or utili
3、zed otherwise in any form or by any means,electronic or mechanical,including photocopying,or posting on the internet or an intranet,without prior written permission.Permission can be requested from either ISO at the address below or ISOs member body in the country of the requester.ISO copyright offi
4、ceCP 401 Ch.de Blandonnet 8CH-1214 Vernier,GenevaPhone:+41 22 749 01 11Email:copyrightiso.orgWebsite:www.iso.orgPublished in Switzerland ISO/IEC 2021 All rights reserved ISO/IEC 30118-11:2021(E)ISO/IEC 2021 All rights reserved iii Contents Page Foreword.v Introduction.vi 1 Scope.1 2 Normative refere
5、nces.1 3 Terms,definitions,and abbreviated terms.2 3.1 Terms and definitions.2 3.2 Symbols and abbreviated terms.2 4 Document conventions and organization.3 4.1 Conventions.3 4.2 Notation.3 5 Overview.4 5.1 Introduction.4 5.2 OCF Cloud architecture alignment with ISO IEC 17789.4 5.3 Architecture.5 5
6、.4 Interaction flow.6 5.5 Cloud operational flow.7 5.5.1 Introduction.7 5.5.2 Pre-requisites and OCF Cloud user account creation.7 5.5.3 Mediator registration with the OCF Cloud.7 5.5.4 Device provisioning by the Mediator.8 5.5.5 Device registration with the OCF Cloud.8 5.5.6 Connection with the OCF
7、 Cloud.8 5.5.7 Publishing links to the OCF Cloud RD.8 5.5.8 Client to server communication through the OCF Cloud.8 5.5.9 Refreshing connection with the OCF Cloud.9 5.5.10 Closing connection with the OCF Cloud.9 5.5.11 Deregistering from the OCF Cloud.9 6 Resource model.11 6.1 OCF Cloud Resource Dire
8、ctory.11 6.1.1 Indirect discovery for lookup of Resources.11 6.1.2 Resource Directory definition.11 6.1.3 RD operational flows.12 6.2 CoAPCloudConf Resource.17 6.2.1 Introduction.17 6.2.2 Resource definition.17 6.2.3 Cloud status governing state machine.18 6.2.4 Error handling.20 7 Network and conne
9、ctivity.20 8 Functional interactions.21 8.1 Onboarding,provisioning,and configuration.21 8.1.1 Overview.21 8.1.2 Use of Mediator.21 8.1.3 Device connection to the OCF Cloud.24 8.1.4 Device registration with the OCF Cloud.24 8.2 Resource publication.24 ISO/IEC 30118-11:2021(E)iv ISO/IEC 2021 All righ
10、ts reserved 8.3 Client registration with the OCF Cloud.25 8.4 Resource discovery.25 8.5 Device deregistration from the OCF Cloud.27 8.6 Device management.27 8.6.1 Behaviours on Device maintenance state changes.27 10 Security.27 Annex A(normative)Swagger2.0 definitions.28 A.1 List of Resource type de
11、finitions.28 A.2 Resource directory resource.28 A.2.1 Introduction.28 A.2.2 Well-known URI.28 A.2.3 Resource type.28 A.2.4 OpenAPI 2.0 definition.28 A.2.5 Property definition.32 A.2.6 CRUDN behaviour.33 A.3 CoAP Cloud configuration Resource.33 A.3.1 Introduction.33 A.3.2 Example URI.33 A.3.3 Resourc
12、e type.33 A.3.4 OpenAPI 2.0 definition.33 A.3.5 Property definition.37 A.3.6 CRUDN behaviour.37 ISO/IEC 30118-11:2021(E)ISO/IEC 2021 All rights reserved v Foreword ISO(the International Organization for Standardization)and IEC(the International Electrotechnical Commission)form the specialized system
13、 for worldwide standardization.National bodies that are members of ISO or IEC 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 collab
14、orate in fields of mutual interest.Other international organizations,governmental and non-governmental,in liaison with ISO and IEC,also take part in the work.The procedures used to develop this document and those intended for its further maintenance are described in the ISO/IEC Directives,Part 1.In
15、particular,the different approval criteria needed for the different types of document should be noted(see www.iso.org/directives or www.iec.ch/members_experts/refdocs).Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights.ISO and IEC sha
16、ll 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/or on the ISO list of patent declarations received(see www.iso.org/patents)or the IEC list of patent declarations received(see patents.iec.ch).Any trade name used in this document is information given for the convenience of users and does not constitute an endorsement.For an explanation of the voluntary nature of s