CN107800595A - 面向服务的智能设备交互方法 - Google Patents

面向服务的智能设备交互方法 Download PDF

Info

Publication number
CN107800595A
CN107800595A CN201610801041.XA CN201610801041A CN107800595A CN 107800595 A CN107800595 A CN 107800595A CN 201610801041 A CN201610801041 A CN 201610801041A CN 107800595 A CN107800595 A CN 107800595A
Authority
CN
China
Prior art keywords
service
network
list
information
registry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610801041.XA
Other languages
English (en)
Inventor
姚伟志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201610801041.XA priority Critical patent/CN107800595A/zh
Publication of CN107800595A publication Critical patent/CN107800595A/zh
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/2818Controlling appliance services of a home automation network by calling their functionalities from a device located outside both the home and the home network

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明描述一种智能家居设备通过面向服务方式进行通信的机制。主要涵盖了服务的接口描述,以及服务提供者、服务消费者和服务注册表之间互相通信和协作的机制。通过该机制,可以使得服务消费者能够动态的发现服务提供者,以解除其固定配对的耦合关系。

Description

面向服务的智能设备交互方法
技术领域
本发明主要涉及智能家居领域,多种设备之间互相交互的方法。
背景技术
本发明主要基于支持IP网络的控制器,路由器,智能家电,电脑之间的互相交互。
发明内容
本发明的主要目的在于,提供一种面向服务的方法来使得智能设备之间的通信更加便利。
本发明中,
智能设备将其提供的功能通过下述语言描述,
document:package_decl object_list|object_list;
package_decl:PACKAGE PACKAGE_NAME SEMICOLON;
object_list:object|object object_list;
object:enum_decl|struct_decl|interface_decl;
enum_decl:ENUM IDENTIFIER BRACE_OPEN enum_field_list BRACE_CLOSESEMICOLON;
enum_field_list:enum_field|enum_field enum_field_list;
enum_field:IDENTIFIER EQUALS INTEGER SEMICOLON;
struct_decl:STRUCT IDENTIFIER BRACE_OPEN struct_field_list BRACE_CLOSE SEMICOLON;
struct_field_list:|struct_field struct_field_list;
struct_field:type IDENTIFIER SEMICOLON|type IDENTIFIER READONLYSEMICOLON;
interface_decl:INTERFACE IDENTIFIER BRACE_OPEN method_list BRACE_CLOSE SEMICOLON;
type:INT|SHORT|LONG|BYTE|BOOLEAN|DOUBLE|UUID|STRING|BYTEARRAY|IDENTIFIER|list;
list:LIST LT IDENTIFIER GT;
return_type:type|VOID;
method_list:|method method_list;
method:return_type IDENTIFIER PARENTHESIS_OPEN arg_list PARENTHESIS_CLOSE SEMICOLON;
arg_list:|not_empty_arg_list;
not_empty_arg_list:arg|not_empty_arg_list COMMA arg;
arg:type IDENTIFIER;
其中,
起始符号为document;
终止符包括PACKAGE INTERFACE ENUM STRUCT LIST VOID BOOLEAN BYTE SHORTINT LONG DOUBLE STRING UUID BYTEARRAY INTEGER BRACE_OPEN BRACE_CLOSEPARENTHESIS_OPEN PARENTHESIS_CLOSE SEMICOLON COMMA DOT GT LT IDENTIFIERPACKAGE_NAME EQUALS READONLY;
非终止符包括type return_typelist arg not_empty_arg_list arg_listmethod method_list object object_list document enum_field enum_field_liststruct_field_list struct_field enum_decl struct_decl interface_decl package_decl
在整个家庭网络中,网络节点可以分为三种逻辑角色,服务提供者,服务消费者和服务注册表。
三种角色之间通过组播方式进行消息交互。消息的基本格式为
Message Type 1字节 消息类型
Message Version 1字节 消息格式版本
Message Length 2字节 消息体长度
Message Body 最大65535字节 消息内容
消息报文中,服务信息用下述结构体描述,
消息类型包含以下几类:
1.ServiceInfoBroadcast
用于服务提供者通知服务已经就绪,包含ServiceInfo
2.ServiceDiscovery
用于服务注册表和服务消费者获取已经在线的服务信息,包含senderType,用于标识发起者是服务注册表还是服务消费者。
3.ServiceRegistryDiscovery
用于服务消费者发起请求查询服务注册表的地址。
4.ServiceRegistryResponse
用于服务注册表返回自身IP地址信息。
具体交互流程如下:
场景A:
服务A启动就绪时,多播发送ServicenfoBroadcast,通知网络中其他设备自身已经就绪。
场景B:
服务注册表启动时,发送ServiceDiscovery,等待网络中所有服务应答ServiceInfoBroadcast消息,并将其维护在自身的数据库中。
场景C:
如果服务注册表地址已知,则服务消费者可以通过其提供的单播地址,访问其RESTful服务或者其他形式服务,获取所有服务的注册信息。
场景D:
服务消费者可以通过ServiceRegistryDiscovery获取到服务注册表的单播地址,然后通过场景C中的方式来获取所有服务信息。
具体实施方式
根据本发明提供的方法,其中比较典型的实施方式如下:
智能电灯集成了支持IP的控制器,并支持ChangeColor,AdjustLightingLevel,Close三个方法。
路由器作为服务注册表,其包含了智能电灯的服务信息。在PC端或者智能手机端可以通过编程获取到电灯的IDL,动态实现满足一定条件调节亮度或者关闭电灯的功能。

Claims (3)

1.一种面向服务的智能设备通信方法,其特征是:
提供某种特定功能的智能设备将其提供的功能通过本发明中定义的IDL进行描述,并作为网络服务发布在本地IP网络中;
一个或者多个设备作为服务注册表,收集本地网络中的服务信息,并以某种形式提供查询服务;
一个或者多个设备或者程序作为服务消费者,通过服务注册表获取到所需服务的IDL和访问地址。
2.根据权利要求1所述的智能设备通信方法,其中:
服务信息使用IDL进行描述。
3.根据权利1所述的智能设备通信方法,其中:
服务提供者通过多播ServiceInfoBroadcast发送自身信息给网络中其他节点;
服务注册表通过多播ServiceDiscovery消息,发现网络中的服务信息;
服务消费者通过ServiceRegistryDiscovery发现网络中的服务注册表信息;
服务消费者通过服务注册表获取所需服务的IDL。
CN201610801041.XA 2016-09-02 2016-09-02 面向服务的智能设备交互方法 Pending CN107800595A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610801041.XA CN107800595A (zh) 2016-09-02 2016-09-02 面向服务的智能设备交互方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610801041.XA CN107800595A (zh) 2016-09-02 2016-09-02 面向服务的智能设备交互方法

Publications (1)

Publication Number Publication Date
CN107800595A true CN107800595A (zh) 2018-03-13

Family

ID=61529762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610801041.XA Pending CN107800595A (zh) 2016-09-02 2016-09-02 面向服务的智能设备交互方法

Country Status (1)

Country Link
CN (1) CN107800595A (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1511283A (zh) * 2001-03-01 2004-07-07 �Ҵ���˾ 用于连接不同对象类型的服务器和客户机的方法和网桥
CN1848774A (zh) * 2005-04-11 2006-10-18 华为技术有限公司 一种远程调用通信组件的系统及方法
CN101287001A (zh) * 2008-04-14 2008-10-15 中山大学 一种基于移动设备对数字家电远程管理的系统及方法
US20090003275A1 (en) * 2003-09-17 2009-01-01 Research In Motion Limited System and Method for Asynchronous Wireless Services Using Reverse Service Schema Generation
CN105119958A (zh) * 2015-07-13 2015-12-02 小米科技有限责任公司 控制智能设备的方法及装置
CN105357244A (zh) * 2014-08-22 2016-02-24 中兴通讯股份有限公司 实现对网络逻辑实体的操作方法、客户端及代理端
CN105573134A (zh) * 2015-12-30 2016-05-11 深圳众乐智府科技有限公司 智能家居设备控制方法及智能家居系统
CN106412466A (zh) * 2016-07-18 2017-02-15 国家新闻出版广电总局广播科学研究院 一种智能电视系统

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1511283A (zh) * 2001-03-01 2004-07-07 �Ҵ���˾ 用于连接不同对象类型的服务器和客户机的方法和网桥
US20090003275A1 (en) * 2003-09-17 2009-01-01 Research In Motion Limited System and Method for Asynchronous Wireless Services Using Reverse Service Schema Generation
CN1848774A (zh) * 2005-04-11 2006-10-18 华为技术有限公司 一种远程调用通信组件的系统及方法
CN101287001A (zh) * 2008-04-14 2008-10-15 中山大学 一种基于移动设备对数字家电远程管理的系统及方法
CN105357244A (zh) * 2014-08-22 2016-02-24 中兴通讯股份有限公司 实现对网络逻辑实体的操作方法、客户端及代理端
CN105119958A (zh) * 2015-07-13 2015-12-02 小米科技有限责任公司 控制智能设备的方法及装置
CN105573134A (zh) * 2015-12-30 2016-05-11 深圳众乐智府科技有限公司 智能家居设备控制方法及智能家居系统
CN106412466A (zh) * 2016-07-18 2017-02-15 国家新闻出版广电总局广播科学研究院 一种智能电视系统

Similar Documents

Publication Publication Date Title
US10791195B2 (en) Common device interface framework for IoT/smart device application
EP2922321B1 (en) 6lowpan network-based service discovery
US20070288632A1 (en) Method and system for remotely accessing devices in a network
US11128486B2 (en) Smart refrigerator-based networking and control method and system, and smart refrigerator
WO2007063408A2 (en) System and method for using web syndication protocols as an out-of-band upnp service discovery system
US9590865B2 (en) Control device and communication device
WO2016169231A1 (zh) 一种基于蓝牙组建稳态微微网的方法及其系统
US9054889B2 (en) Method and apparatus for providing dynamically changed UPnP description
CN102123065A (zh) 家庭间dlna设备发现和控制方法及装置
CN101951325A (zh) 基于自动发现的网络终端配置系统及其配置方法
CN106961426A (zh) 智能设备的通讯方法及装置
CN105142007A (zh) 多屏互动设备之间的控制方法、多屏互动设备及系统
JP3877738B2 (ja) 個別に独立して存在するネットワークを接続する装置及び方法
CN104618375A (zh) 一种网络设备的发现方法及装置
CN103001959B (zh) 家庭间设备发现方法和系统
AU2011245872A1 (en) Method for providing message and device therefor
CN101783774A (zh) 一种网络设备连接方法以及系统和装置
US7899964B2 (en) Method and system for providing universal plug and play resource surrogates
CN108199857B (zh) 家电设备及其控制方法、系统及计算机可读存储介质
WO2020177020A1 (zh) 物联网设备的发现方法、装置及终端设备
CN104852835A (zh) 智能设备wifi通信系统及其控制方法
KR102009810B1 (ko) 무선 통신 시스템에서 서비스 송수신 방법 및 장치
CN107800595A (zh) 面向服务的智能设备交互方法
CN105246128B (zh) 一种智能终端的组网方法及装置
Bashah et al. Service discovery in future open mobile environments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180313

WD01 Invention patent application deemed withdrawn after publication