WO2013091382A1 - Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway - Google Patents

Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway Download PDF

Info

Publication number
WO2013091382A1
WO2013091382A1 PCT/CN2012/079556 CN2012079556W WO2013091382A1 WO 2013091382 A1 WO2013091382 A1 WO 2013091382A1 CN 2012079556 W CN2012079556 W CN 2012079556W WO 2013091382 A1 WO2013091382 A1 WO 2013091382A1
Authority
WO
WIPO (PCT)
Prior art keywords
universal
module
electrical device
message
application layer
Prior art date
Application number
PCT/CN2012/079556
Other languages
French (fr)
Chinese (zh)
Inventor
黎昱
邢晓江
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013091382A1 publication Critical patent/WO2013091382A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention relates to the field of Internet of Things technologies, and in particular, to a method and system for implementing electrical equipment compatibility, and a universal peripheral access gateway. Background technique
  • the traditional telecommunication communication service is mainly between people.
  • the future telecommunication industry should be extended to people, things and things, and hope to expand the scope of communication services to gain further development.
  • This is the Internet of Things.
  • the Internet of Things is developing rapidly.
  • Smart homes are typical IoT applications, but due to the lack of uniform standards, the electrical equipment of different home appliance manufacturers are not compatible with each other, which makes it difficult for smart home solutions provided by various manufacturers to be included in other manufacturers' electrical equipment. This problem has become the biggest bottleneck in the development of smart homes.
  • the related smart home solution puts the business logic on the terminal side and realizes the control of the electrical equipment through the central control equipment. This scheme requires the central control equipment to have strong processing capability, which increases the hardware cost of the smart home.
  • the external communication interfaces provided by electrical equipment of different electrical manufacturers are different. These interfaces can be serial port, parallel port, analog or digital interface, universal serial bus (USB) interface, Ethernet interface, or some wireless. Interfaces such as: 433 interface, ZigBee or other short-range wireless communication interface.
  • USB universal serial bus
  • Traditional intelligent central control devices cannot support many interface methods. Even if the peripherals can be connected to the physical bearer, the application layer protocols adopted by different manufacturers lack a unified standard, which makes the central control device still unable to communicate with the peripherals, thereby failing to achieve centralized and effective control of the peripherals. Summary of the invention
  • the main purpose of the embodiments of the present invention is to provide a method and system for implementing electrical equipment compatibility, and a universal peripheral access gateway, to solve the problem that the electrical equipments of different manufacturers in the smart home application are incompatible with each other, and realize the problem. Remote centralized control and service of electrical equipment.
  • a universal peripheral access gateway includes: a universal extension interface, a standard protocol transceiver module, at least one extension access module, and at least one application layer protocol adaptation module,
  • the at least one extended access module is configured to externally connect the electrical devices of different communication modes, and the message from the electrical device is provided to the universal extended interface by using a communication mode supported by the universal extended interface, and the universal The message provided by the extension interface is sent to the electrical device in a communication manner supported by the electrical device;
  • the universal extension interface is connected to the extended access module, and is configured to forward the packet provided by the extended access module to the application layer protocol adaptation module, and send the report provided by the application layer protocol adaptation module. Forwarding to the corresponding extended access module;
  • the application layer protocol adaptation module is configured to connect to the universal extension interface, and set the protocol provided by the universal extension interface to be adapted by the application layer and converted into a standard data format, and then provided to the standard protocol transceiver module. Transmitting, by the standard protocol transceiver module, the packet provided by the standard protocol transceiver module to a data format used by the destination electrical device to the universal extension interface;
  • the standard protocol transceiver module is connected to the application layer protocol adaptation module, and is configured to perform packet forwarding based on a standard data format between the application layer protocol adaptation module and the server device.
  • a system for implementing electrical equipment compatibility comprising: a universal peripheral access gateway and a platform, wherein the universal peripheral access gateway is externally connected to an electrical device of different communication modes, and is configured to receive the communication mode supported by the universal extended interface.
  • the packet of the electrical device is subjected to protocol adaptation of the application layer and converted into a standard data format and then reported to the platform; After the message of the platform is converted into the data format used by the destination electrical device, the message is sent to the destination electrical device in a communication mode supported by the destination electrical device;
  • the platform is configured to perform interaction with the electrical device through the universal peripheral access gateway.
  • a method for realizing compatibility of an electrical device comprising: a universal peripheral access gateway externally connected to an electrical device of different communication modes; the universal peripheral access gateway receiving a report from the electrical device in a communication mode supported by a universal extension interface thereof And performing the application layer protocol adaptation on the received packet and converting it to a standard data format and reporting the message to the platform; the universal peripheral access gateway converting the packet from the platform into the data used by the destination electrical device After the format, the device is delivered to the destination electrical device in a communication mode supported by the destination electrical device.
  • a set of platforms has been implemented to provide business services and control for many smart home electrical appliances.
  • the business logic is implemented by the platform side, the universal peripheral access gateway as the client only performs protocol conversion and forwarding, and does not need to implement the business logic and operation interface locally, thereby greatly reducing the requirements on the processing capability of the device, and realizing
  • the thin client on the terminal side reduces the user's equipment investment, which is conducive to centralized operation of the smart home business and increases the user's stickiness to the operator; 4.
  • the packets of different private protocols are expressed in a unified standard format, enriching the smart home service, promoting the operation of the smart home business, and reducing the cost of implementing the smart home business.
  • FIG. 1 is a schematic structural diagram of a system for implementing electrical equipment compatibility according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a universal peripheral access gateway registering electrical equipment according to an embodiment of the present invention
  • FIG. 3 is a flowchart of an embodiment of the present invention. The processing flow chart of the text report;
  • FIG. 4 is a flowchart of processing sent by a packet according to an embodiment of the present invention. detailed description
  • FIG. 1 a system for implementing electrical equipment compatibility provided by the embodiment of the present invention is shown in FIG.
  • the system mainly includes: a universal peripheral access gateway and a universal peripheral access gateway externally connected to different electrical communication devices for receiving communication messages from the electrical device in a communication mode supported by the universal extended interface, for receiving The packet is applied to the application layer and converted to the standard data format and then reported to the platform. After the message from the platform is converted to the data format used by the destination electrical device, it is sent to the communication mode supported by the destination electrical device. Purpose electrical equipment.
  • the platform is configured to perform message exchange with the electrical device through the universal peripheral access gateway, including: the message is reported to the platform by the electrical device through the universal peripheral access gateway, and the message is received by the platform through the universal peripheral
  • the gateway is sent to the electrical equipment.
  • the platform includes a management platform and/or a business platform.
  • the universal peripheral access gateway includes: at least one extended access module 10, a universal extension interface 20, at least one application layer protocol adaptation module 30, and a standard protocol transceiver module 40.
  • the at least one extended access module 10 is configured to connect different communication modes, and externally connect the electrical devices of different communication modes, and the extended access module 10 is externally connected to a communication device, for example: Zigbee is supported by the Zigbee access module. Electrical equipment, docking Bluetooth-enabled electrical equipment through a Bluetooth access module, etc.; the extended access module 10 is connected to the universal expansion interface 20 in a plug-and-play manner, and the communication from the electrical equipment is supported by the universal expansion interface 20.
  • the method is provided to the universal extension interface 20, and the message provided by the universal extension interface 20 is sent to the electrical device in a communication mode supported by the electrical device.
  • the Zigbee access module converts the message reported by the Zigbee-enabled electrical device into a universal extension interface.
  • the supported communication mode is provided to the universal extension interface 20, and the Bluetooth access module converts the message reported by the Bluetooth-enabled electrical device to the communication mode supported by the universal extension interface 20, and then provides the communication interface to the universal extension interface 20; Making the universal peripheral access gateway at the network layer and electrical equipment of different communication modes Docking
  • the universal extension interface 20 is connected to the extended access module 10, and is configured to forward the packet provided by the extended access module 10 to the application layer protocol adaptation module 30, and forward the packet provided by the application layer protocol adaptation module 30 to the corresponding The expansion access module 10; the universal expansion interface 20 can generally adopt a USB interface or an RS232 serial port, or an IP-based interface such as WIFI or Ethernet;
  • the application layer protocol adaptation module 30 is connected to the universal extension interface 20 for performing protocol adaptation of the application layer of the packet provided by the universal extension interface 20 and converting it into a standard data format, and then providing the protocol to the standard protocol transceiver module 40.
  • the packet provided by the transceiver module 40 is converted to the data format used by the destination electrical device and then provided to the universal extension interface 20;
  • the application layer protocol adaptation module 30 is usually loaded into the execution container of the universal peripheral access gateway by means of a software package. Internal operation, specifically can be expressed as Java package, dynamic link library, etc.;
  • the standard protocol transceiver module 40 is connected to the application layer protocol adaptation module 30 through an internal interface or a bus for performing packet forwarding based on the standard data format between the application layer protocol adaptation module 30 and the server device.
  • the server device is a platform, that is, a management platform where the gateway is connected through a wide area network.
  • the standard protocol transceiver module 40 is further configured to: after receiving the message from the platform, search for the application layer protocol adaptation module 30 corresponding to the destination electrical device according to the destination electrical device identifier carried in the packet, The received message is forwarded to the found application layer protocol adaptation module 30.
  • the universal extension interface 20 is further configured to: after receiving the message provided by the application layer protocol adaptation module 30, address the extended access module according to the communication mode used by the destination electrical device of the message, and The message is sent to the corresponding extended access module 10 found by addressing. The extended access module 10 then sends the message to the destination electrical device in the communication mode used by the destination electrical device according to the identification and address of the destination electrical device carried in the message.
  • the embodiment of the present invention further provides a method for implementing compatibility of an electrical device, which mainly includes:
  • the universal peripheral access gateway is externally connected to electrical equipment of different communication modes
  • the universal peripheral access gateway receives the packet from the electrical device in the communication mode supported by the universal extension interface, and performs the application layer protocol adaptation on the received packet and converts it into a standard data format and reports it to the platform; After the access gateway converts the message from the platform into the data format used by the destination electrical device, it sends the message to the destination electrical device in the communication mode supported by the destination electrical device.
  • the universal peripheral access gateway receives the packet from the electrical device by using a communication mode supported by the universal extension interface, including:
  • the universal peripheral access gateway receives the message from the electrical device through its extended access module, and the extended access module converts the received message into a communication mode supported by the universal extended interface, and then provides the universal extended interface.
  • the universal peripheral access gateway converts the message from the platform into a data format used by the destination electrical device, including:
  • the universal peripheral access gateway After receiving the packet from the platform, the universal peripheral access gateway searches for the application layer protocol adaptation mode corresponding to the internal and destination electrical devices according to the destination electrical device identifier carried in the packet.
  • the block, and the searched application layer protocol adaptation module converts the message from the platform into a data format used by the destination electrical device.
  • the universal peripheral access gateway converts the message from the platform into a data format used by the destination electrical device, and then delivers the data to the destination electrical device in a communication mode supported by the destination electrical device, including:
  • the universal peripheral access gateway finds the extended access module corresponding to the destination electrical device by addressing within the communication mode of the destination electrical device, and uses the extended access module to find the converted message as the destination electrical appliance.
  • the communication mode supported by the device is sent to the destination electrical device.
  • FIG. 2 shows a flow chart of a general peripheral access gateway registering an electrical device.
  • the registration process mainly includes the following steps:
  • Step 201 The universal peripheral access gateway registers with the Internet of Things platform (management platform/service platform), and the registration follows the Internet of Things management protocol.
  • Step 202 When a new electrical device is accessed, the universal peripheral access gateway can detect the access of a new peripheral (new electrical device).
  • the extended access module 10 can monitor the access of the electrical device.
  • Step 203 The universal peripheral access gateway initiates a registration request of the new peripheral to the Internet of Things platform.
  • the extension access module 10 of the universal peripheral access gateway initiates a registration request for a new peripheral, and the registration request is uploaded to the application layer protocol adaptation module 30 through the universal extension interface 20; the application layer protocol adaptation module 30 performs the registration request.
  • the protocol adaptation of the application layer converts the registration message into a standard data format and then sends it to the Internet of Things platform through the wide area network by the standard protocol transceiver module 40.
  • the registration request can carry the basic and extended attributes of the new peripheral, as shown in Table 1 below: Attribute Category Attribute Name Attribute Data Type Description Basic Attribute Peripheral ID String
  • Calibration cycle can indicate year, month and day.
  • Calibration period Integer Accurate to day
  • Calibration effective remaining time Accurate to day.
  • the attribute data can be automatically reported when the new peripheral is registered, or can be actively acquired by the extended access module 10 of the universal peripheral access gateway through the proprietary protocol used by the peripheral.
  • Step 204 The Internet of Things platform performs registration authentication of the new peripheral according to the registration request reported by the universal peripheral access gateway.
  • Step 205 The Internet of Things platform returns the registration authentication result to the universal peripheral access gateway.
  • Step 206 The universal peripheral access gateway performs corresponding processing according to the registration authentication result. For the new peripheral with successful registration authentication, the universal peripheral access gateway normally executes the subsequent Internet of Things platform and the new external Set the message exchange between; for the new peripheral that fails the registration authentication, the universal peripheral access gateway stops docking with it, and does not process subsequent messages related to the new peripheral.
  • the universal peripheral access gateway detects the change of the connected peripheral, it needs to initiate a re-registration process to the Internet of Things platform.
  • the re-registration process is similar to the registration process shown in Figure 2, and will not be described here. .
  • the universal peripheral access gateway can initiate a recovery request to the IoT platform, and after receiving the recovery request, the IoT platform removes the deactivation information of the disabled peripheral; After the peripheral access gateway receives the confirmation message from the Internet of Things platform, it starts the support for the peripheral.
  • the IoT platform can also actively send management messages to the universal peripheral access gateway to initiate requests for active management of peripherals; requests can include: deleting, disabling, enabling some or some peripherals. After the Universal Peripheral Access Gateway deletes or disables a peripheral, it no longer accepts incoming and outgoing messages related to the peripheral.
  • Figure 3 shows a flow chart for packet report processing.
  • the process of message report processing mainly includes the following steps:
  • Step 301 The peripheral device (that is, the external device connected to the universal peripheral access gateway) sends a message to the universal peripheral access gateway.
  • the peripheral sends the reported message to the corresponding extended access module 10 of the universal peripheral access gateway.
  • the Zigbee-enabled electrical device reports the message to the Zigbee access module of the universal peripheral access gateway
  • the Bluetooth-enabled appliance The device reports the message to the Bluetooth access module of the universal peripheral access gateway.
  • Step 302 The universal peripheral access gateway receives the message through its universal extension interface 20.
  • the extended access module 10 provides the received message to the universal extension interface 20 in the communication mode supported by the universal extension interface 20.
  • the Zigbee access module converts the message reported by the Zigbee-enabled electrical device into the universal extension interface 20.
  • Common communication interface 20 the Bluetooth access module converts the message reported by the Bluetooth-enabled electrical device into a universal expansion interface
  • the 20 supported communication modes are then provided to the universal extension interface 20.
  • Step 303 The universal peripheral access gateway performs protocol adaptation of the application layer on the received packet.
  • the universal extension interface 20 provides the received message to the application layer protocol adaptation module 30, and the application layer protocol adaptation module 30 performs protocol adaptation of the application layer to convert the message into a standard data format.
  • Step 304 The universal peripheral access gateway sends the adapted message to the Internet of Things platform (management platform/service platform;).
  • the application layer protocol adaptation module 30 provides the packet converted to the standard data format to the standard protocol transceiver module 40, and the standard protocol transceiver module 40 transmits the packet to the Internet of Things platform through the wide area network.
  • FIG. 4 is a flowchart of a process for delivering a message, and the process of delivering the message mainly includes the following steps:
  • Step 401 The Internet of Things platform sends a message to the universal peripheral access gateway, where the message carries the identifier of the peripheral device (also referred to as the destination peripheral device, that is, the destination electrical device).
  • the peripheral device also referred to as the destination peripheral device, that is, the destination electrical device.
  • Step 402 The universal peripheral access gateway receives the packet sent by the Internet of Things platform through the standard protocol transceiver module 40, and the received packet is in a standard protocol format.
  • Step 403 The universal peripheral access gateway converts the received message, and sends the converted message to the corresponding extended interface module 10.
  • the standard protocol transceiver module 40 After receiving the packet sent by the Internet of Things platform, the standard protocol transceiver module 40 searches for the application layer protocol adaptation module 30 corresponding to the internal and destination peripherals according to the identifier of the destination peripheral carried in the packet, and finds The application layer protocol adaptation module 30 converts the standard protocol format message into a data format used by the destination peripheral. Then, the application layer protocol adaptation module 30 provides the converted message to the universal extension interface 20; The expansion interface 20 finds the extended access module 10 corresponding to the destination peripheral by addressing in the general peripheral access gateway according to the communication mode used by the destination peripheral, and sends the converted message to the found extended access. Module 10. For example: if the purpose The communication mode used by the peripheral is Zigbee, and the universal extension interface 20 finds the Zigbee access module through addressing, and sends the converted message to the Zigbee access module.
  • Step 404 The extended interface module 10 of the universal peripheral access gateway sends the message to the corresponding destination peripheral according to the external identifier and address carried in the packet.
  • a Key-Value method can generally be adopted as the standard data format.
  • the way to represent the Key-Value data format mainly includes TLV and Extensible Markup Language (XML).
  • the TLV is an abbreviation of Tag, Length, and Value
  • Tag indicates the data identifier
  • Length is the data length
  • Value is the actual value of the data.
  • any data can be represented by a Tag, and the length and value of the data are packaged together for transmission.
  • the receiver and sender only need to define the definition of Tag.
  • the interface instructions of different manufacturers' devices can be converted into standardized TLVs according to certain rules in the application layer, so that the smart home service platform or the management platform on the platform side can be processed, and the operation of the electrical equipment on the platform side can also be performed.
  • the TLV is converted to a proprietary protocol of the appliance manufacturer and sent to the electrical device for execution.
  • XML is used to represent the standard data format. The principle is similar to TLV.
  • a set of XML tags can be defined to correspond to the device operation or status, so that the platform side can manage and control the electrical equipment of different manufacturers.
  • the following takes TLV as the standard data format as an example, and combines the scene of air conditioning control to explain the management and control of peripherals on the platform side.
  • the management and control operations mainly include the following steps:
  • Step 1 The user logs in to the portal of the smart home application platform and selects an air conditioner of his own.
  • Step 2 The user selects the operation of the air conditioner. In this embodiment, the temperature of the air conditioner is set.
  • Step 3 the service platform will express the setting instruction of the air conditioner temperature as a TLV format, and then pass The WAN sends a message to the universal peripheral access gateway that accesses the air conditioner.
  • Step 4 The standard protocol transceiver module 40 of the universal peripheral access gateway receives the message and parses the message.
  • Step 5 The standard protocol transceiver module 40 of the universal peripheral access gateway sends the parsed data to the application layer protocol adaptation module 30, and the application layer protocol adaptation module 30 converts the message into a private protocol packet used by the air conditioner. format.
  • Step 6 the application layer protocol adaptation module 30 sends the generated private protocol message to the universal extension interface 20.
  • Step 7 The universal extension interface 20 sends a message to the extension access module 10 that accesses the communication mode according to the communication mode adopted by the air conditioner.
  • Step 8 The extended access module 10 sends an application layer message to the air conditioner according to a communication mode supported by the air conditioner (for example, 433 or Zigbee).
  • a communication mode supported by the air conditioner for example, 433 or Zigbee.
  • the embodiment of the present invention deploys a universal peripheral access gateway on the terminal side, and after the universal peripheral access gateway registers with the platform that provides the service and management functions, it only needs to add corresponding according to actual needs. Expand the access module, and download the corresponding application layer protocol adaptation module from the device manufacturer's website. After installation on the universal peripheral access gateway, the platform can communicate with the newly added peripherals.
  • the extended access module When the extended access module detects a new peripheral access, it registers with the management platform or service platform through the universal peripheral access gateway, notifying the platform that there is a new peripheral access.
  • the peripheral connected to the universal peripheral access gateway changes, it also initiates a change to the platform, and the change can only be accepted after the platform is authorized.
  • a platform has been implemented to provide business services and control for many smart home electrical appliances.
  • the thin client at the terminal side has been realized, which has reduced the user's equipment investment, which is conducive to centralized operation of the smart home business.
  • the packets of different private protocols are expressed in a unified standard format, enriching the smart home service, promoting the operation of the smart home business, and reducing the cost of implementing the smart home business.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Small-Scale Networks (AREA)

Abstract

Disclosed are a method and system for realizing compatibility of an electrical appliance, and a universal peripheral access gateway. The universal peripheral access gateway includes: an expansion access module which provides a message of an external electrical appliance to a universal expansion interface in a communication manner that is supported by the expansion interface and sends a message provided by the universal expansion interface to an electrical appliance in a communication manner that is supported by the electrical appliance; the universal expansion interface which performs message forwarding between an expansion access module and an application layer protocol adaptation module; the application layer protocol adaptation module which converts the message provided by the universal expansion interface into a standard data format and then provides same to a standard protocol transceiving module and converts a message provided by the standard protocol transceiving module into the data format used by the electrical appliance and then provides same to the universal expansion interface; and the standard protocol transceiving module which performs message receiving and forwarding based on the standard data format. The present invention solves the problem that the electrical appliances of different manufacturers are incompatible in the intelligent household application.

Description

一种实现电器设备兼容的方法和系统、 通用外设接入网关 技术领域  Method and system for realizing compatibility of electrical equipment, universal peripheral access gateway
本发明涉及物联网技术领域, 尤其涉及一种实现电器设备兼容的方法 和系统、 通用外设接入网关。 背景技术  The present invention relates to the field of Internet of Things technologies, and in particular, to a method and system for implementing electrical equipment compatibility, and a universal peripheral access gateway. Background technique
传统的电信通信服务主要是人与人之间的服务, 未来的电信产业要扩 展到人与物、 物与物, 希望通过扩展通信服务的范畴, 以获得进一步发展 的动力, 这就是物联网的最基本出发点。 目前, 物联网概念已经深入到了 各行各业, 各个相关产业对物联网投入了极大热情, 物联网正在火热发展 中。  The traditional telecommunication communication service is mainly between people. The future telecommunication industry should be extended to people, things and things, and hope to expand the scope of communication services to gain further development. This is the Internet of Things. The most basic starting point. At present, the concept of the Internet of Things has penetrated into all walks of life, and various related industries have invested a great deal of enthusiasm for the Internet of Things. The Internet of Things is developing rapidly.
智能家居属于典型的物联网应用, 但由于缺乏统一的标准, 不同家电 厂家的电器设备互不兼容, 这使得各厂家提供的智能家居解决方案很难纳 入其他厂家的电器设备。 此问题成为智能家居发展中最大的瓶颈。 此外, 相关智能家居解决方案将业务逻辑放在终端侧, 通过中控设备实现对电器 设备的控制, 这种方案要求中控设备具备较强的处理能力, 这提高了智能 家居的硬件成本。  Smart homes are typical IoT applications, but due to the lack of uniform standards, the electrical equipment of different home appliance manufacturers are not compatible with each other, which makes it difficult for smart home solutions provided by various manufacturers to be included in other manufacturers' electrical equipment. This problem has become the biggest bottleneck in the development of smart homes. In addition, the related smart home solution puts the business logic on the terminal side and realizes the control of the electrical equipment through the central control equipment. This scheme requires the central control equipment to have strong processing capability, which increases the hardware cost of the smart home.
不同电器厂家的电器设备提供的对外通信接口不尽相同, 这些接口可 以是串口、 并口、 模拟或数字接口、 通用串行总线(USB, Universal Serial BUS )接口、 以太网接口,也可以是一些无线接口,例如: 433接口、 ZigBee 或者其它短距离无线通信的接口。 传统的智能中控设备无法做到对众多接 口方式的支持。 即便在物理承载上能接入外设, 不同厂家采用的应用层协 议也缺乏统一标准, 这使得中控设备仍然无法与外设通讯, 从而无法实现 对外设的集中有效控制。 发明内容 The external communication interfaces provided by electrical equipment of different electrical manufacturers are different. These interfaces can be serial port, parallel port, analog or digital interface, universal serial bus (USB) interface, Ethernet interface, or some wireless. Interfaces such as: 433 interface, ZigBee or other short-range wireless communication interface. Traditional intelligent central control devices cannot support many interface methods. Even if the peripherals can be connected to the physical bearer, the application layer protocols adopted by different manufacturers lack a unified standard, which makes the central control device still unable to communicate with the peripherals, thereby failing to achieve centralized and effective control of the peripherals. Summary of the invention
有鉴于此, 本发明实施例的主要目的在于提供一种实现电器设备兼容 的方法和系统、 通用外设接入网关, 以解决智能家居应用中不同厂家的电 器设备互不兼容的问题, 实现对电器设备的远程集中控制与服务。  In view of this, the main purpose of the embodiments of the present invention is to provide a method and system for implementing electrical equipment compatibility, and a universal peripheral access gateway, to solve the problem that the electrical equipments of different manufacturers in the smart home application are incompatible with each other, and realize the problem. Remote centralized control and service of electrical equipment.
为达到上述目的, 本发明实施例的技术方案是这样实现的:  To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
一种通用外设接入网关, 包括: 通用扩展接口、 标准协议收发模块、 至少一个扩展接入模块和至少一个应用层协议适配模块,  A universal peripheral access gateway includes: a universal extension interface, a standard protocol transceiver module, at least one extension access module, and at least one application layer protocol adaptation module,
所述至少一个扩展接入模块, 设置为外接不同通信方式的电器设备, 将来自所述电器设备的报文以所述通用扩展接口支持的通信方式提供给所 述通用扩展接口, 将所述通用扩展接口提供的报文以所述电器设备支持的 通信方式发送给所述电器设备;  The at least one extended access module is configured to externally connect the electrical devices of different communication modes, and the message from the electrical device is provided to the universal extended interface by using a communication mode supported by the universal extended interface, and the universal The message provided by the extension interface is sent to the electrical device in a communication manner supported by the electrical device;
所述通用扩展接口, 连接所述扩展接入模块, 设置为将所述扩展接入 模块提供的报文转发给所述应用层协议适配模块, 将所述应用层协议适配 模块提供的报文转发给相应的扩展接入模块;  The universal extension interface is connected to the extended access module, and is configured to forward the packet provided by the extended access module to the application layer protocol adaptation module, and send the report provided by the application layer protocol adaptation module. Forwarding to the corresponding extended access module;
所述应用层协议适配模块, 连接所述通用扩展接口, 设置为对所述通 用扩展接口提供的报文进行应用层的协议适配并转换为标准数据格式后提 供给所述标准协议收发模块, 将所述标准协议收发模块提供的报文转换为 目的电器设备所使用的数据格式后提供给所述通用扩展接口;  The application layer protocol adaptation module is configured to connect to the universal extension interface, and set the protocol provided by the universal extension interface to be adapted by the application layer and converted into a standard data format, and then provided to the standard protocol transceiver module. Transmitting, by the standard protocol transceiver module, the packet provided by the standard protocol transceiver module to a data format used by the destination electrical device to the universal extension interface;
所述标准协议收发模块, 连接所述应用层协议适配模块, 设置为在所 述应用层协议适配模块与服务端设备之间执行基于标准数据格式的报文转 发。  The standard protocol transceiver module is connected to the application layer protocol adaptation module, and is configured to perform packet forwarding based on a standard data format between the application layer protocol adaptation module and the server device.
一种实现电器设备兼容的系统, 包括: 通用外设接入网关和平台, 所述通用外设接入网关外接不同通信方式的电器设备, 设置为以其通 用扩展接口支持的通信方式接收来自所述电器设备的报文, 对接收的报文 进行应用层的协议适配并转换为标准数据格式后上报给平台; 将来自所述 平台的报文转换为目的电器设备所使用的数据格式后, 以所述目的电器设 备支持的通信方式下发到所述目的电器设备; A system for implementing electrical equipment compatibility, comprising: a universal peripheral access gateway and a platform, wherein the universal peripheral access gateway is externally connected to an electrical device of different communication modes, and is configured to receive the communication mode supported by the universal extended interface. The packet of the electrical device is subjected to protocol adaptation of the application layer and converted into a standard data format and then reported to the platform; After the message of the platform is converted into the data format used by the destination electrical device, the message is sent to the destination electrical device in a communication mode supported by the destination electrical device;
所述平台, 设置为通过所述通用外设接入网关进行与电器设备之间的 才艮文交互。  The platform is configured to perform interaction with the electrical device through the universal peripheral access gateway.
一种实现电器设备兼容的方法, 包括: 通用外设接入网关外接不同通 信方式的电器设备; 所述通用外设接入网关以其通用扩展接口支持的通信 方式接收来自所述电器设备的报文, 对接收的报文进行应用层的协议适配 并转换为标准数据格式后上报给平台; 所述通用外设接入网关将来自所述 平台的报文转换为目的电器设备所使用的数据格式后, 以所述目的电器设 备支持的通信方式下发到所述目的电器设备。  A method for realizing compatibility of an electrical device, comprising: a universal peripheral access gateway externally connected to an electrical device of different communication modes; the universal peripheral access gateway receiving a report from the electrical device in a communication mode supported by a universal extension interface thereof And performing the application layer protocol adaptation on the received packet and converting it to a standard data format and reporting the message to the platform; the universal peripheral access gateway converting the packet from the platform into the data used by the destination electrical device After the format, the device is delivered to the destination electrical device in a communication mode supported by the destination electrical device.
本发明实施例所提供的一种实现电器设备兼容的方法和系统、 通用外 设接入网关, 具有以下有益效果:  The method and system for implementing electrical equipment compatibility and the universal external access gateway provided by the embodiments of the present invention have the following beneficial effects:
1、 解决了智能家居应用中不同厂家的电器设备互不兼容的问题, 可以 方便的扩展通用外设接入网关对电器设备的支持, 只需根据实际需要增设 扩展接入模块(与通用扩展接口实现物理连接), 以支持新增外设的接入方 式;  1. Solve the problem that the electrical equipment of different manufacturers in the smart home application is incompatible with each other, and can easily extend the support of the universal peripheral access gateway to the electrical equipment, and only need to add an extended access module according to actual needs (with the universal expansion interface) Implement physical connections) to support access to new peripherals;
2、 通过硬件插件以及软件驱动, 快速实现新增外设的接入; 在实现电 器外设统一接入的前提下, 实现对外设的即插即用, 降低了系统部署的难 度;  2. Fast access to new peripherals through hardware plug-ins and software drivers; realizes plug-and-play of peripherals under the premise of unified access to the electrical peripherals, reducing the difficulty of system deployment;
3、 实现了一套平台对众多的智能家居的电器设备提供业务服务和控 制。 同时由于业务逻辑由平台侧实现, 作为客户端的通用外设接入网关只 做协议的转换和转发, 而不需要在本地实现业务逻辑与操作界面, 大大降 低了对设备处理能力的要求, 实现了终端侧的瘦客户端化, 降低了用户的 设备投入, 有利于对智能家居业务进行集中运营, 增加了用户对运营商的 粘性; 4、 将不同私有协议的报文采用统一的标准格式进行表示, 丰富了智能 家居服务, 推动了智能家居业务的运营, 降低了实施智能家居业务的成本。 附图说明 3. A set of platforms has been implemented to provide business services and control for many smart home electrical appliances. At the same time, since the business logic is implemented by the platform side, the universal peripheral access gateway as the client only performs protocol conversion and forwarding, and does not need to implement the business logic and operation interface locally, thereby greatly reducing the requirements on the processing capability of the device, and realizing The thin client on the terminal side reduces the user's equipment investment, which is conducive to centralized operation of the smart home business and increases the user's stickiness to the operator; 4. The packets of different private protocols are expressed in a unified standard format, enriching the smart home service, promoting the operation of the smart home business, and reducing the cost of implementing the smart home business. DRAWINGS
图 1为本发明实施例的一种实现电器设备兼容的系统的结构示意图; 图 2为本发明实施例的通用外设接入网关注册电器设备的流程图; 图 3为本发明实施例的报文上报的处理流程图;  1 is a schematic structural diagram of a system for implementing electrical equipment compatibility according to an embodiment of the present invention; FIG. 2 is a flowchart of a universal peripheral access gateway registering electrical equipment according to an embodiment of the present invention; FIG. 3 is a flowchart of an embodiment of the present invention. The processing flow chart of the text report;
图 4为本发明实施例的报文下发的处理流程图。 具体实施方式  FIG. 4 is a flowchart of processing sent by a packet according to an embodiment of the present invention. detailed description
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。 为解决智能家居应用中不同厂家的电器设备互不兼容的问题, 实现对 电器设备的远程集中控制与服务, 本发明的实施例所提供的一种实现电器 设备兼容的系统, 如图 1 所示, 该系统主要包括: 通用外设接入网关和平 其中, 通用外设接入网关外接不同通信方式的电器设备, 用于以其通 用扩展接口支持的通信方式接收来自电器设备的报文, 对接收的报文进行 应用层的协议适配并转换为标准数据格式后上报给平台; 将来自平台的报 文转换为目的电器设备所使用的数据格式后, 以目的电器设备支持的通信 方式下发到目的电器设备。  The technical solutions of the present invention are further elaborated below in conjunction with the accompanying drawings and specific embodiments. In order to solve the problem that the electrical equipment of different manufacturers in the smart home application is incompatible with each other, and realize the remote centralized control and service of the electrical equipment, a system for implementing electrical equipment compatibility provided by the embodiment of the present invention is shown in FIG. The system mainly includes: a universal peripheral access gateway and a universal peripheral access gateway externally connected to different electrical communication devices for receiving communication messages from the electrical device in a communication mode supported by the universal extended interface, for receiving The packet is applied to the application layer and converted to the standard data format and then reported to the platform. After the message from the platform is converted to the data format used by the destination electrical device, it is sent to the communication mode supported by the destination electrical device. Purpose electrical equipment.
平台, 用于通过通用外设接入网关进行与电器设备之间的报文交互, 包括: 报文由电器设备通过通用外设接入网关上报给平台、 以及报文由平 台通过通用外设接入网关下发给电器设备。  The platform is configured to perform message exchange with the electrical device through the universal peripheral access gateway, including: the message is reported to the platform by the electrical device through the universal peripheral access gateway, and the message is received by the platform through the universal peripheral The gateway is sent to the electrical equipment.
其中, 平台包括管理平台和 /或业务平台。  The platform includes a management platform and/or a business platform.
通用外设接入网关包括:至少一个扩展接入模块 10、通用扩展接口 20、 至少一个应用层协议适配模块 30、 标准协议收发模块 40。 至少一个扩展接入模块 10, 用于对接不同的通信方式, 外接不同通信 方式的电器设备, 一个扩展接入模块 10外接一种通信方式的电器设备, 例 如: 通过 Zigbee接入模块对接支持 Zigbee的电器设备, 通过蓝牙接入模块 对接支持蓝牙的电器设备等等; 扩展接入模块 10以即插即用的方式连接通 用扩展接口 20,将来自电器设备的报文以通用扩展接口 20支持的通信方式 提供给通用扩展接口 20,将通用扩展接口 20提供的报文以电器设备支持的 通信方式发送给电器设备, 例如: Zigbee接入模块将支持 Zigbee的电器设 备上报的报文转换为通用扩展接口 20支持的通信方式后提供给通用扩展接 口 20, 蓝牙接入模块将支持蓝牙的电器设备上报的报文转换为通用扩展接 口 20支持的通信方式后提供给通用扩展接口 20; 扩展接入模块 10使得通 用外设接入网关在网络层与不同通信方式的电器设备实现对接; The universal peripheral access gateway includes: at least one extended access module 10, a universal extension interface 20, at least one application layer protocol adaptation module 30, and a standard protocol transceiver module 40. The at least one extended access module 10 is configured to connect different communication modes, and externally connect the electrical devices of different communication modes, and the extended access module 10 is externally connected to a communication device, for example: Zigbee is supported by the Zigbee access module. Electrical equipment, docking Bluetooth-enabled electrical equipment through a Bluetooth access module, etc.; the extended access module 10 is connected to the universal expansion interface 20 in a plug-and-play manner, and the communication from the electrical equipment is supported by the universal expansion interface 20. The method is provided to the universal extension interface 20, and the message provided by the universal extension interface 20 is sent to the electrical device in a communication mode supported by the electrical device. For example, the Zigbee access module converts the message reported by the Zigbee-enabled electrical device into a universal extension interface. The supported communication mode is provided to the universal extension interface 20, and the Bluetooth access module converts the message reported by the Bluetooth-enabled electrical device to the communication mode supported by the universal extension interface 20, and then provides the communication interface to the universal extension interface 20; Making the universal peripheral access gateway at the network layer and electrical equipment of different communication modes Docking
通用扩展接口 20, 连接扩展接入模块 10, 用于将扩展接入模块 10提 供的报文转发给应用层协议适配模块 30,将应用层协议适配模块 30提供的 报文转发给相应的扩展接入模块 10; 通用扩展接口 20通常可以采用 USB 接口或 RS232串口等, 也可以采用 WIFI或以太网等基于 IP的接口;  The universal extension interface 20 is connected to the extended access module 10, and is configured to forward the packet provided by the extended access module 10 to the application layer protocol adaptation module 30, and forward the packet provided by the application layer protocol adaptation module 30 to the corresponding The expansion access module 10; the universal expansion interface 20 can generally adopt a USB interface or an RS232 serial port, or an IP-based interface such as WIFI or Ethernet;
应用层协议适配模块 30, 连接通用扩展接口 20, 用于对通用扩展接口 20提供的报文进行应用层的协议适配并转换为标准数据格式后提供给标准 协议收发模块 40,将标准协议收发模块 40提供的报文转换为目的电器设备 所使用的数据格式后提供给通用扩展接口 20;应用层协议适配模块 30通常 是以软件包的方式加载到通用外设接入网关的执行容器内运行, 具体可表 现为 Java包、 动态链接库等;  The application layer protocol adaptation module 30 is connected to the universal extension interface 20 for performing protocol adaptation of the application layer of the packet provided by the universal extension interface 20 and converting it into a standard data format, and then providing the protocol to the standard protocol transceiver module 40. The packet provided by the transceiver module 40 is converted to the data format used by the destination electrical device and then provided to the universal extension interface 20; the application layer protocol adaptation module 30 is usually loaded into the execution container of the universal peripheral access gateway by means of a software package. Internal operation, specifically can be expressed as Java package, dynamic link library, etc.;
标准协议收发模块 40, 通过内部接口或总线连接应用层协议适配模块 30, 用于在应用层协议适配模块 30与服务端设备之间执行基于标准数据格 式的报文转发。  The standard protocol transceiver module 40 is connected to the application layer protocol adaptation module 30 through an internal interface or a bus for performing packet forwarding based on the standard data format between the application layer protocol adaptation module 30 and the server device.
较佳的, 所述服务端设备为平台、 即网关通过广域网连接的管理平台 和 /或业务平台,标准协议收发模块 40还用于,在接收到来自平台的报文后, 根据报文中携带的目的电器设备标识, 查找目的电器设备对应的应用层协 议适配模块 30,并将所接收的报文转发给查找到的应用层协议适配模块 30。 Preferably, the server device is a platform, that is, a management platform where the gateway is connected through a wide area network. And the service platform, the standard protocol transceiver module 40 is further configured to: after receiving the message from the platform, search for the application layer protocol adaptation module 30 corresponding to the destination electrical device according to the destination electrical device identifier carried in the packet, The received message is forwarded to the found application layer protocol adaptation module 30.
较佳的, 通用扩展接口 20还用于, 在接收到应用层协议适配模块 30 提供的报文后, 根据报文的目的电器设备所使用的通信方式对扩展接入模 块进行寻址, 并将报文发送给寻址找到的对应扩展接入模块 10。 扩展接入 模块 10再根据报文中携带的目的电器设备标识和地址, 将报文以目的电器 设备所使用的通信方式发送给目的电器设备。  Preferably, the universal extension interface 20 is further configured to: after receiving the message provided by the application layer protocol adaptation module 30, address the extended access module according to the communication mode used by the destination electrical device of the message, and The message is sent to the corresponding extended access module 10 found by addressing. The extended access module 10 then sends the message to the destination electrical device in the communication mode used by the destination electrical device according to the identification and address of the destination electrical device carried in the message.
对应上述实现电器设备兼容的系统, 本发明实施例还提供一种实现电 器设备兼容的方法, 主要包括:  The embodiment of the present invention further provides a method for implementing compatibility of an electrical device, which mainly includes:
通用外设接入网关外接不同通信方式的电器设备;  The universal peripheral access gateway is externally connected to electrical equipment of different communication modes;
该通用外设接入网关以其通用扩展接口支持的通信方式接收来自电器 设备的报文, 对接收的报文进行应用层的协议适配并转换为标准数据格式 后上报给平台; 通用外设接入网关将来自平台的报文转换为目的电器设备 所使用的数据格式后, 以目的电器设备支持的通信方式下发到目的电器设 备。  The universal peripheral access gateway receives the packet from the electrical device in the communication mode supported by the universal extension interface, and performs the application layer protocol adaptation on the received packet and converts it into a standard data format and reports it to the platform; After the access gateway converts the message from the platform into the data format used by the destination electrical device, it sends the message to the destination electrical device in the communication mode supported by the destination electrical device.
其中, 所述通用外设接入网关以其通用扩展接口支持的通信方式接收 来自电器设备的报文, 包括:  The universal peripheral access gateway receives the packet from the electrical device by using a communication mode supported by the universal extension interface, including:
通用外设接入网关通过其扩展接入模块接收来自电器设备的报文, 扩 展接入模块将接收的报文转换为通用扩展接口支持的通信方式后提供给通 用扩展接口。  The universal peripheral access gateway receives the message from the electrical device through its extended access module, and the extended access module converts the received message into a communication mode supported by the universal extended interface, and then provides the universal extended interface.
所述通用外设接入网关将来自平台的报文转换为目的电器设备所使用 的数据格式, 包括:  The universal peripheral access gateway converts the message from the platform into a data format used by the destination electrical device, including:
通用外设接入网关在接收到来自平台的报文后, 根据报文中携带的目 的电器设备标识, 查找自身内部与目的电器设备对应的应用层协议适配模 块, 并由查找到的应用层协议适配模块将来自平台的报文转换为目的电器 设备所使用的数据格式。 After receiving the packet from the platform, the universal peripheral access gateway searches for the application layer protocol adaptation mode corresponding to the internal and destination electrical devices according to the destination electrical device identifier carried in the packet. The block, and the searched application layer protocol adaptation module converts the message from the platform into a data format used by the destination electrical device.
所述通用外设接入网关将来自平台的报文转换为目的电器设备所使用 的数据格式后, 以目的电器设备支持的通信方式下发到目的电器设备, 包 括:  The universal peripheral access gateway converts the message from the platform into a data format used by the destination electrical device, and then delivers the data to the destination electrical device in a communication mode supported by the destination electrical device, including:
通用外设接入网关根据目的电器设备所使用的通信方式, 在自身内部 通过寻址找到目的电器设备对应的扩展接入模块, 并通过找到的扩展接入 模块将转换后的报文以目的电器设备支持的通信方式下发到目的电器设 备。  The universal peripheral access gateway finds the extended access module corresponding to the destination electrical device by addressing within the communication mode of the destination electrical device, and uses the extended access module to find the converted message as the destination electrical appliance. The communication mode supported by the device is sent to the destination electrical device.
下面再结合具体实施例, 对上述实现电器设备兼容的方法和系统进一 步详细说明。  Hereinafter, the method and system for realizing compatibility of the electrical equipment will be further described in detail in conjunction with the specific embodiments.
图 2示出了通用外设接入网关注册电器设备的流程图, 注册流程主要 包括以下步驟:  Figure 2 shows a flow chart of a general peripheral access gateway registering an electrical device. The registration process mainly includes the following steps:
步驟 201 , 通用外设接入网关向物联网平台 (管理平台 /业务平台)注 册, 该注册遵循物联网管理协议。  Step 201: The universal peripheral access gateway registers with the Internet of Things platform (management platform/service platform), and the registration follows the Internet of Things management protocol.
步驟 202,有新电器设备接入时,通用外设接入网关能够检测到有新外 设(新电器设备)接入。  Step 202: When a new electrical device is accessed, the universal peripheral access gateway can detect the access of a new peripheral (new electrical device).
有新的电器设备连接通用外设接入网关的扩展接入模块 10时, 扩展接 入模块 10能够监测到该电器设备的接入。  When a new electrical device is connected to the extended access module 10 of the universal peripheral access gateway, the extended access module 10 can monitor the access of the electrical device.
步驟 203 , 通用外设接入网关向物联网平台发起新外设的注册请求。 通用外设接入网关的扩展接入模块 10发起新外设的注册请求, 该注册 请求通过通用扩展接口 20上传到应用层协议适配模块 30;应用层协议适配 模块 30对该注册请求进行应用层的协议适配, 将该注册消息转换为标准数 据格式后由标准协议收发模块 40通过广域网发送给物联网平台。  Step 203: The universal peripheral access gateway initiates a registration request of the new peripheral to the Internet of Things platform. The extension access module 10 of the universal peripheral access gateway initiates a registration request for a new peripheral, and the registration request is uploaded to the application layer protocol adaptation module 30 through the universal extension interface 20; the application layer protocol adaptation module 30 performs the registration request. The protocol adaptation of the application layer converts the registration message into a standard data format and then sends it to the Internet of Things platform through the wide area network by the standard protocol transceiver module 40.
注册请求中可以携带新外设的基本属性和扩展属性, 如下表 1所示: 属性类别 属性名称 属性的数据类型 说明 基本属性 外设 ID 字符串 The registration request can carry the basic and extended attributes of the new peripheral, as shown in Table 1 below: Attribute Category Attribute Name Attribute Data Type Description Basic Attribute Peripheral ID String
外设名称 字符串  Peripheral name string
外设制造商名 字符串  Peripheral manufacturer name string
外设产品序列号 字符串  Peripheral product serial number string
外设软件版本信息 字符串  Peripheral software version information string
接口数量 外设的通道个数, 取值范围 1~253 适配器标志 表示是否是外设适 配器 扩展属性 1 接口编号 整数 取值范围 1~253 Number of interfaces Peripheral channel number, value range 1~253 Adapter flag Indicates whether it is a peripheral adapter Extended attribute 1 Interface number Integer Value range 1~253
(相应接 接口名称 字符串 (corresponding interface name string
口编号的 接口精度等级 字符串  Port number interface accuracy level string
扩展属性) 接口量程 字符串  Extended attribute) interface range string
接口数据单位 字符串  Interface data unit string
校准曰期 能表示年月日 校准周期 整数 精确到天 校准有效剩余时间 精确到天。  Calibration cycle can indicate year, month and day. Calibration period Integer Accurate to day Calibration effective remaining time Accurate to day.
表示该通道需要校 准的剩余天数 是否可用 表示外设是否可以 正常传感数据 不可用原因 字符串 表示外设不能正常 传感数据的原因 Indicates the number of days remaining in the channel that need to be calibrated. Is it available? Indicates whether the peripheral can sense the data normally. Reason for unavailable. String Indicates that the peripheral is not functioning.
... ... ... ... ... ...
… …  ...
表 1  Table 1
该属性数据可以由新外设注册时自动上报, 也可以由通用外设接入网 关的扩展接入模块 10通过外设使用的私有协议主动获取。  The attribute data can be automatically reported when the new peripheral is registered, or can be actively acquired by the extended access module 10 of the universal peripheral access gateway through the proprietary protocol used by the peripheral.
步驟 204,物联网平台根据通用外设接入网关上报的注册请求进行新外 设的注册鉴权。  Step 204: The Internet of Things platform performs registration authentication of the new peripheral according to the registration request reported by the universal peripheral access gateway.
步驟 205, 物联网平台将注册鉴权结果返回给通用外设接入网关。 步驟 206,通用外设接入网关根据注册鉴权结果执行相应处理,对于注 册鉴权成功的新外设, 通用外设接入网关正常执行后续物联网平台与新外 设之间的报文交互; 对于注册鉴权失败的新外设, 通用外设接入网关停止 与其对接, 且不处理后续与该新外设相关的报文。 Step 205: The Internet of Things platform returns the registration authentication result to the universal peripheral access gateway. Step 206: The universal peripheral access gateway performs corresponding processing according to the registration authentication result. For the new peripheral with successful registration authentication, the universal peripheral access gateway normally executes the subsequent Internet of Things platform and the new external Set the message exchange between; for the new peripheral that fails the registration authentication, the universal peripheral access gateway stops docking with it, and does not process subsequent messages related to the new peripheral.
需要说明的是, 如果通用外设接入网关检测到所连接外设的变动, 则 需要向物联网平台发起再注册流程, 再注册流程与图 2所示的注册流程类 似, 此处不再赘述。  It should be noted that if the universal peripheral access gateway detects the change of the connected peripheral, it needs to initiate a re-registration process to the Internet of Things platform. The re-registration process is similar to the registration process shown in Figure 2, and will not be described here. .
对于已停用的外设, 需要恢复使用时, 通用外设接入网关可以向物联 网平台发起恢复请求, 物联网平台接收到恢复请求后, 将该停用外设的停 用信息去除; 通用外设接入网关收到物联网平台的确认消息后, 开启对该 外设的支持。  For a disabled peripheral, when it needs to be restored, the universal peripheral access gateway can initiate a recovery request to the IoT platform, and after receiving the recovery request, the IoT platform removes the deactivation information of the disabled peripheral; After the peripheral access gateway receives the confirmation message from the Internet of Things platform, it starts the support for the peripheral.
另外, 物联网平台也可以主动下发管理消息, 向通用外设接入网关发 起主动管理外设的请求; 请求可以包括: 删除、 禁用、 启用某个或者某些 外设。 通用外设接入网关删除或禁用某个外设后, 不再接受与该外设相关 的报文收发请求。  In addition, the IoT platform can also actively send management messages to the universal peripheral access gateway to initiate requests for active management of peripherals; requests can include: deleting, disabling, enabling some or some peripherals. After the Universal Peripheral Access Gateway deletes or disables a peripheral, it no longer accepts incoming and outgoing messages related to the peripheral.
图 3 示出了针对报文上报处理的流程图, 报文上报处理的流程主要包 括以下步驟:  Figure 3 shows a flow chart for packet report processing. The process of message report processing mainly includes the following steps:
步驟 301, 外设(即通用外设接入网关外接的电器设备 )发送报文到通 用外设接入网关。  Step 301: The peripheral device (that is, the external device connected to the universal peripheral access gateway) sends a message to the universal peripheral access gateway.
外设将要上报的报文发送到通用外设接入网关的对应扩展接入模块 10, 例如: 支持 Zigbee的电器设备上报报文到通用外设接入网关的 Zigbee 接入模块, 支持蓝牙的电器设备上报报文到通用外设接入网关的蓝牙接入 模块。  The peripheral sends the reported message to the corresponding extended access module 10 of the universal peripheral access gateway. For example, the Zigbee-enabled electrical device reports the message to the Zigbee access module of the universal peripheral access gateway, and the Bluetooth-enabled appliance The device reports the message to the Bluetooth access module of the universal peripheral access gateway.
步驟 302, 通用外设接入网关通过其通用扩展接口 20收到该报文。 扩展接入模块 10将收到的报文以通用扩展接口 20支持的通信方式提 供给通用扩展接口 20, 例如: Zigbee接入模块将支持 Zigbee的电器设备上 报的报文转换为通用扩展接口 20 支持的通信方式后提供给通用扩展接口 20, 蓝牙接入模块将支持蓝牙的电器设备上报的报文转换为通用扩展接口Step 302: The universal peripheral access gateway receives the message through its universal extension interface 20. The extended access module 10 provides the received message to the universal extension interface 20 in the communication mode supported by the universal extension interface 20. For example, the Zigbee access module converts the message reported by the Zigbee-enabled electrical device into the universal extension interface 20. Common communication interface 20, the Bluetooth access module converts the message reported by the Bluetooth-enabled electrical device into a universal expansion interface
20支持的通信方式后提供给通用扩展接口 20。 The 20 supported communication modes are then provided to the universal extension interface 20.
步驟 303 , 通用外设接入网关对收到的报文进行应用层的协议适配。 通用扩展接口 20将收到的报文提供给应用层协议适配模块 30,应用层 协议适配模块 30对报文进行应用层的协议适配, 将报文转换为标准数据格 式。  Step 303: The universal peripheral access gateway performs protocol adaptation of the application layer on the received packet. The universal extension interface 20 provides the received message to the application layer protocol adaptation module 30, and the application layer protocol adaptation module 30 performs protocol adaptation of the application layer to convert the message into a standard data format.
步驟 304, 通用外设接入网关将适配后的报文发送给物联网平台(管理 平台 /业务平台;)。  Step 304: The universal peripheral access gateway sends the adapted message to the Internet of Things platform (management platform/service platform;).
应用层协议适配模块 30将转换为标准数据格式的报文提供给标准协议 收发模块 40 ,标准协议收发模块 40通过广域网将该报文发送给物联网平台。  The application layer protocol adaptation module 30 provides the packet converted to the standard data format to the standard protocol transceiver module 40, and the standard protocol transceiver module 40 transmits the packet to the Internet of Things platform through the wide area network.
图 4示出了针对报文下发处理的流程图, 报文下发处理的流程主要包 括以下步驟:  FIG. 4 is a flowchart of a process for delivering a message, and the process of delivering the message mainly includes the following steps:
步驟 401 , 物联网平台向通用外设接入网关下发报文,报文中携带外设 (本实施例中也称目的外设、 即目的电器设备) 的标识。  Step 401: The Internet of Things platform sends a message to the universal peripheral access gateway, where the message carries the identifier of the peripheral device (also referred to as the destination peripheral device, that is, the destination electrical device).
步驟 402, 通用外设接入网关通过其标准协议收发模块 40接收到物联 网平台下发的报文, 接收到的报文为标准协议格式。  Step 402: The universal peripheral access gateway receives the packet sent by the Internet of Things platform through the standard protocol transceiver module 40, and the received packet is in a standard protocol format.
步驟 403 ,通用外设接入网关对接收的报文进行转换, 并将转换后的报 文发送给相应的扩展接口模块 10。  Step 403: The universal peripheral access gateway converts the received message, and sends the converted message to the corresponding extended interface module 10.
标准协议收发模块 40接收到物联网平台下发的报文后, 根据报文中携 带的目的外设的标识, 查找自身内部与目的外设对应的应用层协议适配模 块 30,并由查找到的应用层协议适配模块 30将该标准协议格式的报文转换 为目的外设所使用的数据格式, 然后, 应用层协议适配模块 30将转换后的 报文提供给通用扩展接口 20;通用扩展接口 20根据目的外设所使用的通信 方式, 在通用外设接入网关内部通过寻址找到目的外设对应的扩展接入模 块 10, 并将转换后的报文发送给找到的扩展接入模块 10。 例如: 如果目的 外设所使用的通信方式为 Zigbee, 则通用扩展接口 20通过寻址找到 Zigbee 接入模块, 并将转换后的报文发送给 Zigbee接入模块。 After receiving the packet sent by the Internet of Things platform, the standard protocol transceiver module 40 searches for the application layer protocol adaptation module 30 corresponding to the internal and destination peripherals according to the identifier of the destination peripheral carried in the packet, and finds The application layer protocol adaptation module 30 converts the standard protocol format message into a data format used by the destination peripheral. Then, the application layer protocol adaptation module 30 provides the converted message to the universal extension interface 20; The expansion interface 20 finds the extended access module 10 corresponding to the destination peripheral by addressing in the general peripheral access gateway according to the communication mode used by the destination peripheral, and sends the converted message to the found extended access. Module 10. For example: if the purpose The communication mode used by the peripheral is Zigbee, and the universal extension interface 20 finds the Zigbee access module through addressing, and sends the converted message to the Zigbee access module.
步驟 404, 通用外设接入网关的扩展接口模块 10根据报文中携带的外 设标识和地址, 将该 4艮文发送给相应的目的外设。  Step 404: The extended interface module 10 of the universal peripheral access gateway sends the message to the corresponding destination peripheral according to the external identifier and address carried in the packet.
需要说明的是, 对于应用层协议适配模块 30所执行的外设所使用的数 据格式与标准数据格式之间的转换,通常可以采用 Key- Value的方式作为标 准数据格式。 表示 Key- Value数据格式的方式主要包括 TLV和可扩展标记 语言 ( XML, Extensible Markup Language )。  It should be noted that, for the conversion between the data format used by the peripherals executed by the application layer protocol adaptation module 30 and the standard data format, a Key-Value method can generally be adopted as the standard data format. The way to represent the Key-Value data format mainly includes TLV and Extensible Markup Language (XML).
其中, TLV是 Tag、 Length, Value的缩写, Tag表示数据标识, Length 是数据长度, Value是数据的实际取值。理论上,任何数据都可以用一个 Tag 来进行表示, 并将数据的长度和取值打包在一起来进行传输。 接收方和发 送方只需要约定 Tag 的定义即可。 具体到智能家居业务中对各种电器设备 的管理和控制, 可以将对电器设备的操作定义为一套标识体系, 每一种操 作或状态都用一个 Tag与之对应。 这样即可以在应用层实现将不同厂家设 备的接口指令按照一定的规则转换为标准化的 TLV, 从而方便平台侧的智 能家居业务平台或管理平台进行处理, 而平台侧对电器设备的操作也可以 从 TLV转换为电器厂家的私有协议, 发送到电器设备进行执行。  The TLV is an abbreviation of Tag, Length, and Value, Tag indicates the data identifier, Length is the data length, and Value is the actual value of the data. In theory, any data can be represented by a Tag, and the length and value of the data are packaged together for transmission. The receiver and sender only need to define the definition of Tag. Specific to the management and control of various electrical equipment in the smart home business, the operation of the electrical equipment can be defined as a set of identification systems, each of which corresponds to a tag. In this way, the interface instructions of different manufacturers' devices can be converted into standardized TLVs according to certain rules in the application layer, so that the smart home service platform or the management platform on the platform side can be processed, and the operation of the electrical equipment on the platform side can also be performed. The TLV is converted to a proprietary protocol of the appliance manufacturer and sent to the electrical device for execution.
采用 XML表示标准数据格式, 其原理与 TLV类似, 可定义一套 XML 标签用来与设备操作或状态进行对应, 从而方便平台侧对不同厂家的电器 设备进行统一管理和操控。  XML is used to represent the standard data format. The principle is similar to TLV. A set of XML tags can be defined to correspond to the device operation or status, so that the platform side can manage and control the electrical equipment of different manufacturers.
下面以 TLV作为标准数据格式为例, 并结合空调控制的场景说明平台 侧对外设的管理和控制, 管理和控制操作主要包括以下步驟:  The following takes TLV as the standard data format as an example, and combines the scene of air conditioning control to explain the management and control of peripherals on the platform side. The management and control operations mainly include the following steps:
步驟 1 , 用户登录智能家居应用平台的门户, 选择一个自家的空调。 步驟 2, 用户选择对该空调的操作, 本实施例为设置空调的温度。  Step 1. The user logs in to the portal of the smart home application platform and selects an air conditioner of his own. Step 2: The user selects the operation of the air conditioner. In this embodiment, the temperature of the air conditioner is set.
步驟 3, 业务平台将对空调温度的设置指令表示为 TLV格式, 然后通 过广域网下发消息给接入该空调的通用外设接入网关。 Step 3, the service platform will express the setting instruction of the air conditioner temperature as a TLV format, and then pass The WAN sends a message to the universal peripheral access gateway that accesses the air conditioner.
步驟 4, 通用外设接入网关的标准协议收发模块 40接收到该消息, 并 对消息进行解析。  Step 4: The standard protocol transceiver module 40 of the universal peripheral access gateway receives the message and parses the message.
步驟 5 , 通用外设接入网关的标准协议收发模块 40将该解析后的数据 发送给应用层协议适配模块 30,应用层协议适配模块 30将该消息转换为空 调采用的私有协议报文格式。  Step 5: The standard protocol transceiver module 40 of the universal peripheral access gateway sends the parsed data to the application layer protocol adaptation module 30, and the application layer protocol adaptation module 30 converts the message into a private protocol packet used by the air conditioner. format.
步驟 6, 应用层协议适配模块 30将生成的私有协议报文发送给通用扩 展接口 20。  Step 6, the application layer protocol adaptation module 30 sends the generated private protocol message to the universal extension interface 20.
步驟 7, 通用扩展接口 20根据空调采用的通信方式, 将消息发送给接 入该通信方式的扩展接入模块 10。  Step 7. The universal extension interface 20 sends a message to the extension access module 10 that accesses the communication mode according to the communication mode adopted by the air conditioner.
步驟 8 , 扩展接入模块 10按照空调支持的通信方式 (例如 433 或 Zigbee ), 将应用层消息发送给空调。  Step 8: The extended access module 10 sends an application layer message to the air conditioner according to a communication mode supported by the air conditioner (for example, 433 or Zigbee).
通过以上的实施例可以看出, 本发明实施例在终端侧部署一个通用外 设接入网关, 通用外设接入网关在向提供服务和管理功能的平台进行注册 之后, 只要根据实际需求增设相应的扩展接入模块, 并从设备厂家的网站 下载相应的应用层协议适配模块, 在通用外设接入网关上安装后, 即可实 现平台与新增外设的通信。  It can be seen from the above embodiments that the embodiment of the present invention deploys a universal peripheral access gateway on the terminal side, and after the universal peripheral access gateway registers with the platform that provides the service and management functions, it only needs to add corresponding according to actual needs. Expand the access module, and download the corresponding application layer protocol adaptation module from the device manufacturer's website. After installation on the universal peripheral access gateway, the platform can communicate with the newly added peripherals.
扩展接入模块在检测到新的外设接入时, 通过通用外设接入网关向管 理平台或业务平台注册, 通知平台有新的外设接入。 当通用外设接入网关 所连接的外设变更时, 也向平台发起变更, 在得到平台授权后, 才能接受 该变更。  When the extended access module detects a new peripheral access, it registers with the management platform or service platform through the universal peripheral access gateway, notifying the platform that there is a new peripheral access. When the peripheral connected to the universal peripheral access gateway changes, it also initiates a change to the platform, and the change can only be accepted after the platform is authorized.
综上所述, 本发明的实施例具有以下有益效果:  In summary, the embodiments of the present invention have the following beneficial effects:
1、 解决了智能家居应用中不同厂家的电器设备互不兼容的问题, 可以 方便的扩展通用外设接入网关对电器设备的支持, 只需根据实际需要增设 扩展接入模块(与通用扩展接口实现物理连接), 以支持新增外设的接入方 式; 1. Solve the problem that the electrical equipment of different manufacturers in the smart home application is incompatible with each other, and can easily extend the support of the universal peripheral access gateway to the electrical equipment, and only need to add an extended access module according to actual needs (with the universal expansion interface) Implement physical connections) to support access to new peripherals Style
2、 通过硬件插件以及软件驱动, 快速实现新增外设的接入; 在实现电 器外设统一接入的前提下, 实现对外设的即插即用, 降低了系统部署的难 度;  2. Fast access to new peripherals through hardware plug-ins and software drivers; realizes plug-and-play of peripherals under the premise of unified access to the electrical peripherals, reducing the difficulty of system deployment;
3、 实现了一套平台对众多的智能家居的电器设备提供业务服务和控 制, 同时实现了终端侧的瘦客户端化, 降低了用户的设备投入, 有利于对 智能家居业务进行集中运营, 增加了用户对运营商的粘性;  3. A platform has been implemented to provide business services and control for many smart home electrical appliances. At the same time, the thin client at the terminal side has been realized, which has reduced the user's equipment investment, which is conducive to centralized operation of the smart home business. The user's stickiness to the operator;
4、 将不同私有协议的报文采用统一的标准格式进行表示, 丰富了智能 家居服务, 推动了智能家居业务的运营, 降低了实施智能家居业务的成本。  4. The packets of different private protocols are expressed in a unified standard format, enriching the smart home service, promoting the operation of the smart home business, and reducing the cost of implementing the smart home business.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种通用外设接入网关, 包括: 通用扩展接口、 标准协议收发模 块、 至少一个扩展接入模块和至少一个应用层协议适配模块,  A universal peripheral access gateway, comprising: a universal extension interface, a standard protocol transceiver module, at least one extension access module, and at least one application layer protocol adaptation module,
所述至少一个扩展接入模块, 设置为外接不同通信方式的电器设备, 将来自所述电器设备的报文以所述通用扩展接口支持的通信方式提供给 所述通用扩展接口, 将所述通用扩展接口提供的报文以所述电器设备支 持的通信方式发送给所述电器设备;  The at least one extended access module is configured to externally connect the electrical devices of different communication modes, and the message from the electrical device is provided to the universal extended interface by using a communication mode supported by the universal extended interface, and the universal The message provided by the extension interface is sent to the electrical device in a communication manner supported by the electrical device;
所述通用扩展接口, 连接所述扩展接入模块, 设置为将所述扩展接 入模块提供的报文转发给所述应用层协议适配模块, 将所述应用层协议 适配模块提供的报文转发给相应的扩展接入模块;  The universal extension interface is connected to the extended access module, and is configured to forward the packet provided by the extended access module to the application layer protocol adaptation module, and send the report provided by the application layer protocol adaptation module. Forwarding to the corresponding extended access module;
所述应用层协议适配模块, 连接所述通用扩展接口, 设置为对所述 通用扩展接口提供的报文进行应用层的协议适配并转换为标准数据格式 后提供给所述标准协议收发模块 , 将所述标准协议收发模块提供的报文 转换为目的电器设备所使用的数据格式后提供给所述通用扩展接口; 所述标准协议收发模块, 连接所述应用层协议适配模块, 设置为在 所述应用层协议适配模块与服务端设备之间执行基于标准数据格式的报 文转发。  The application layer protocol adaptation module is configured to connect to the universal extension interface, and set the protocol provided by the universal extension interface to be adapted by the application layer and converted into a standard data format, and then provided to the standard protocol transceiver module. And converting the packet provided by the standard protocol transceiver module to the data format used by the destination electrical device, and then providing the data to the universal extension interface; the standard protocol transceiver module is connected to the application layer protocol adaptation module, and configured to Performing packet forwarding based on the standard data format between the application layer protocol adaptation module and the server device.
2、 根据权利要求 1所述通用外设接入网关, 其中, 所述服务端设备 为平台, 所述标准协议收发模块设置为, 在接收到来自所述平台的报文 后, 根据所述报文中携带的目的电器设备标识, 查找目的电器设备对应 的应用层协议适配模块, 并将所接收的报文转发给查找到的应用层协议 适配模块。  The universal peripheral access gateway according to claim 1, wherein the server device is a platform, and the standard protocol transceiver module is configured to: after receiving the packet from the platform, according to the report The destination electrical equipment identifier carried in the text is searched for the application layer protocol adaptation module corresponding to the destination electrical appliance, and the received packet is forwarded to the found application layer protocol adaptation module.
3、 根据权利要求 2所述通用外设接入网关, 其中, 所述通用扩展接 口设置为, 在接收到所述应用层协议适配模块提供的报文后, 根据所述 报文的目的电器设备所使用的通信方式对扩展接入模块进行寻址, 并将 所述报文发送给寻址找到的对应扩展接入模块。 The universal peripheral access gateway according to claim 2, wherein the universal extension interface is configured to: after receiving the packet provided by the application layer protocol adaptation module, according to the destination appliance of the packet The communication method used by the device addresses the extended access module and The message is sent to the corresponding extended access module found by the addressing.
4、 根据权利要求 1、 2或 3所述通用外设接入网关, 其中, 所述扩 展接入模块以即插即用的方式连接所述通用扩展接口。  The universal peripheral access gateway according to claim 1, 2 or 3, wherein said extended access module is connected to said universal extension interface in a plug and play manner.
5、 根据权利要求 1、 2或 3所述通用外设接入网关, 其中, 所述标 准协议收发模块通过内部接口或总线连接所述应用层协议适配模块。  The universal peripheral access gateway according to claim 1, 2 or 3, wherein the standard protocol transceiver module is connected to the application layer protocol adaptation module through an internal interface or a bus.
6、 一种实现电器设备兼容的系统, 该系统包括: 通用外设接入网关 和平台,  6. A system for implementing electrical equipment compatibility, the system comprising: a universal peripheral access gateway and a platform,
所述通用外设接入网关外接不同通信方式的电器设备, 设置为以其 通用扩展接口支持的通信方式接收来自所述电器设备的报文, 对接收的 报文进行应用层的协议适配并转换为标准数据格式后上报给平台; 将来 自所述平台的报文转换为目的电器设备所使用的数据格式后, 以所述目 的电器设备支持的通信方式下发到所述目的电器设备;  The universal peripheral access gateway is connected to an electrical device of a different communication mode, and is configured to receive a packet from the electrical device in a communication mode supported by the universal extension interface, and perform protocol adaptation of the received packet. Converting to a standard data format and reporting to the platform; converting the message from the platform to a data format used by the destination electrical device, and transmitting the message to the destination electrical device in a communication mode supported by the destination electrical device;
所述平台, 设置为通过所述通用外设接入网关进行与电器设备之间 的报文交互。  The platform is configured to perform message interaction with the electrical device through the universal peripheral access gateway.
7、 根据权利要求 6所述实现电器设备兼容的系统, 其中, 所述通用 外设接入网关包括: 通用扩展接口、 标准协议收发模块、 至少一个扩展 接入模块和至少一个应用层协议适配模块,  7. The system for implementing electrical equipment compatibility according to claim 6, wherein the universal peripheral access gateway comprises: a universal extension interface, a standard protocol transceiver module, at least one extension access module, and at least one application layer protocol adaptation. Module,
所述至少一个扩展接入模块, 设置为外接不同通信方式的电器设备, 将来自所述电器设备的报文以所述通用扩展接口支持的通信方式提供给 所述通用扩展接口, 将所述通用扩展接口提供的报文以所述电器设备支 持的通信方式发送给所述电器设备;  The at least one extended access module is configured to externally connect the electrical devices of different communication modes, and the message from the electrical device is provided to the universal extended interface by using a communication mode supported by the universal extended interface, and the universal The message provided by the extension interface is sent to the electrical device in a communication manner supported by the electrical device;
所述通用扩展接口, 连接所述扩展接入模块, 设置为将所述扩展接 入模块提供的报文转发给所述应用层协议适配模块, 将所述应用层协议 适配模块提供的报文转发给相应的扩展接入模块;  The universal extension interface is connected to the extended access module, and is configured to forward the packet provided by the extended access module to the application layer protocol adaptation module, and send the report provided by the application layer protocol adaptation module. Forwarding to the corresponding extended access module;
所述应用层协议适配模块, 连接所述通用扩展接口, 设置为对所述 通用扩展接口提供的报文进行应用层的协议适配并转换为标准数据格式 后提供给所述标准协议收发模块 , 将所述标准协议收发模块提供的报文 转换为目的电器设备所使用的数据格式后提供给所述通用扩展接口; 所述标准协议收发模块, 连接所述应用层协议适配模块, 设置为在 所述应用层协议适配模块与服务端设备之间执行基于标准数据格式的报 文转发。 The application layer protocol adaptation module is connected to the universal extension interface, and is configured to The packet provided by the universal extension interface is adapted to the protocol of the application layer and converted into a standard data format, and then provided to the standard protocol transceiver module, and the packet provided by the standard protocol transceiver module is converted into data used by the destination electrical device. The format is provided to the universal extension interface; the standard protocol transceiver module is connected to the application layer protocol adaptation module, and is configured to perform a standard data format based on the application layer protocol adaptation module and the server device. Message forwarding.
8、 根据权利要求 7所述实现电器设备兼容的系统, 其中, 所述服务 端设备为平台, 所述标准协议收发模块设置为, 在接收到来自所述平台 的报文后, 根据所述报文中携带的目的电器设备标识, 查找目的电器设 备对应的应用层协议适配模块, 并将所接收的报文转发给查找到的应用 层协议适配模块。  The system for implementing electrical equipment compatibility according to claim 7, wherein the server device is a platform, and the standard protocol transceiver module is configured to: after receiving a message from the platform, according to the report The destination electrical equipment identifier carried in the text is searched for the application layer protocol adaptation module corresponding to the destination electrical appliance, and the received packet is forwarded to the found application layer protocol adaptation module.
9、 根据权利要求 7所述实现电器设备兼容的系统, 其中, 所述通用 扩展接口设置为, 在接收到所述应用层协议适配模块提供的报文后, 根 据所述报文的目的电器设备所使用的通信方式对扩展接入模块进行寻 址, 并将所述报文发送给寻址找到的对应扩展接入模块。  The system for implementing electrical equipment compatibility according to claim 7, wherein the universal extension interface is configured to: after receiving the message provided by the application layer protocol adaptation module, according to the destination appliance of the message The communication mode used by the device addresses the extended access module and sends the message to the corresponding extended access module found by the addressing.
10、 一种实现电器设备兼容的方法, 该方法包括:  10. A method for achieving compatibility of an electrical device, the method comprising:
通用外设接入网关外接不同通信方式的电器设备;  The universal peripheral access gateway is externally connected to electrical equipment of different communication modes;
所述通用外设接入网关以其通用扩展接口支持的通信方式接收来自 所述电器设备的报文, 对接收的报文进行应用层的协议适配并转换为标 准数据格式后上报给平台; 所述通用外设接入网关将来自所述平台的报 文转换为目的电器设备所使用的数据格式后, 以所述目的电器设备支持 的通信方式下发到所述目的电器设备。  The universal peripheral access gateway receives the packet from the electrical device in a communication mode supported by the universal extension interface, and performs the application layer protocol adaptation on the received packet and converts it into a standard data format and then reports the packet to the platform; The universal peripheral access gateway converts the message from the platform into a data format used by the destination electrical device, and then sends the message to the destination electrical device in a communication mode supported by the destination electrical device.
11、 根据权利要求 10所述实现电器设备兼容的方法, 其中, 所述通 用外设接入网关以其通用扩展接口支持的通信方式接收来自电器设备的 报文, 包括: 所述通用外设接入网关通过其扩展接入模块接收来自所述电器设备 的报文, 所述扩展接入模块将接收的报文转换为所述通用扩展接口支持 的通信方式后提供给所述通用扩展接口。 The method for implementing the electrical device compatibility according to claim 10, wherein the universal peripheral access gateway receives the message from the electrical device in a communication mode supported by the universal extension interface, including: The universal peripheral access gateway receives a message from the electrical device through its extended access module, and the extended access module converts the received message into a communication mode supported by the universal extended interface, and provides the message to the A general extension interface.
12、 根据权利要求 10所述实现电器设备兼容的方法, 其中, 所述通 用外设接入网关将来自平台的报文转换为目的电器设备所使用的数据格 式, 包括:  The method for implementing the compatibility of the electrical device according to claim 10, wherein the universal peripheral access gateway converts the message from the platform into a data format used by the destination electrical device, including:
所述通用外设接入网关在接收到来自所述平台的报文后, 根据所述 报文中携带的目的电器设备标识, 查找自身内部与目的电器设备对应的 应用层协议适配模块, 并由查找到的应用层协议适配模块将来自所述平 台的报文转换为目的电器设备所使用的数据格式。  After receiving the packet from the platform, the universal peripheral access gateway searches for an application layer protocol adaptation module corresponding to the internal and destination electrical devices according to the destination electrical device identifier carried in the packet, and The message from the platform is converted by the found application layer protocol adaptation module into a data format used by the destination electrical device.
13、 根据权利要求 12所述实现电器设备兼容的方法, 其中, 所述通 用外设接入网关将来自平台的报文转换为目的电器设备所使用的数据格 式后, 以目的电器设备支持的通信方式下发到目的电器设备, 包括: 所述通用外设接入网关根据所述目的电器设备所使用的通信方式, 在自身内部通过寻址找到所述目的电器设备对应的扩展接入模块, 并通 过找到的扩展接入模块将转换后的报文以目的电器设备支持的通信方式 下发到所述目的电器设备。  13. The method for implementing electrical equipment compatibility according to claim 12, wherein the universal peripheral access gateway converts the message from the platform into a data format used by the destination electrical device, and then supports the communication supported by the destination electrical device. And sending, to the destination electrical device, the universal peripheral access gateway, according to the communication mode used by the destination electrical device, finding an extended access module corresponding to the destination electrical device by addressing within the internal device, and The converted access message is sent to the destination electrical device in a communication mode supported by the destination electrical device.
PCT/CN2012/079556 2011-12-22 2012-08-02 Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway WO2013091382A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110435413.9A CN103179027B (en) 2011-12-22 2011-12-22 A kind of realize the compatible method and system of electric equipment, Universal peripheral accesses gateway
CN201110435413.9 2011-12-22

Publications (1)

Publication Number Publication Date
WO2013091382A1 true WO2013091382A1 (en) 2013-06-27

Family

ID=48638658

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/079556 WO2013091382A1 (en) 2011-12-22 2012-08-02 Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway

Country Status (2)

Country Link
CN (1) CN103179027B (en)
WO (1) WO2013091382A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016021743A1 (en) * 2014-08-04 2016-02-11 에스피테크놀러지주식회사 Communication terminal using common protocol and control method thereof

Families Citing this family (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532835A (en) * 2013-10-17 2014-01-22 江苏万全科技有限公司 Universal internet of things gateway
CN103944891A (en) * 2014-04-10 2014-07-23 福建星网信通软件有限公司 Service application system access method and device
CN104022930B (en) * 2014-06-25 2018-06-19 王征 Expansible smart home communication means
CN106797341B (en) * 2014-07-03 2020-08-28 阿贝尔环球国际有限公司 Group control method and control machine for electronic device
TWI554949B (en) * 2014-07-03 2016-10-21 阿貝爾環球國際有限公司 Method and system of dynamically configuring functions of machine
TWI566606B (en) * 2014-07-03 2017-01-11 阿貝爾環球國際有限公司 Adaptive control and management for electronic device
CN104202222B (en) * 2014-08-20 2019-09-20 惠州Tcl移动通信有限公司 The intelligent domestic appliance controller and its communication means
CN105446924A (en) * 2014-08-25 2016-03-30 珠海格力电器股份有限公司 Air conditioner controller communication protocol compatibility processing method and system
CN105577717B (en) * 2014-10-15 2019-12-31 珠海格力电器股份有限公司 Control method and system compatible with connection of multiple different electrical appliances
CN104580464A (en) * 2015-01-08 2015-04-29 珠海格力电器股份有限公司 Intelligent home furnishing equipment control method, device and system
CN104660498B (en) * 2015-03-17 2018-10-12 联想(北京)有限公司 Gateway device and information processing method
CN104869172B (en) * 2015-06-01 2018-07-31 明算科技(北京)股份有限公司 The data interactive method and data interaction system more applied under heterogeneous system
CN106325223A (en) * 2015-06-17 2017-01-11 派斡信息技术(上海)有限公司 Control method of electronic device and control system with application of method
CN106325080A (en) * 2015-06-17 2017-01-11 派斡信息技术(上海)有限公司 Group control method of electronic device and control machine with application of method
CN105246096B (en) * 2015-09-08 2018-12-11 三维通信股份有限公司 A kind of fast access method of low-power consumption internet of things equipment
CN106559503B (en) * 2015-09-25 2019-10-25 华为技术有限公司 A kind of communication means and device based on Internet of Things
CN106899461B (en) * 2015-12-18 2020-06-05 美的集团股份有限公司 Home gateway, data communication method used for same and intelligent home system
CN106899560B (en) * 2015-12-18 2019-12-31 美的集团股份有限公司 Method for automatic intercommunication of different protocols of Internet of things and Internet of things terminal
CN105635166A (en) * 2016-01-22 2016-06-01 北京京东世纪贸易有限公司 Information transmission method, apparatus and system
CN105842715A (en) * 2016-04-22 2016-08-10 桂林电子科技大学 Beidou positioning and communication integrated universal system and configuration method thereof
CN106020191B (en) * 2016-05-26 2017-10-13 百度在线网络技术(北京)有限公司 The control method of unmanned vehicle, apparatus and system
CN106302499B (en) * 2016-08-26 2019-08-27 迈普通信技术股份有限公司 A kind of security log acquisition method, apparatus and system
CN106331163B (en) * 2016-09-30 2020-09-15 海尔优家智能科技(北京)有限公司 Method and device for controlling service platform
CN108540516B (en) * 2017-03-06 2023-07-04 中兴通讯股份有限公司 Running state information acquisition method, control terminal, network equipment and system
CN107040523B (en) * 2017-03-21 2020-09-11 百富计算机技术(深圳)有限公司 Transaction data transmission method and device and electronic equipment
CN107566197A (en) * 2017-10-26 2018-01-09 苏州市伏泰信息科技股份有限公司 Environmental sanitation terminal sensing data is uniformly accessed into platform
CN114448673A (en) * 2018-02-13 2022-05-06 华为云计算技术有限公司 Device access method, related platform and computer storage medium
CN108769165B (en) * 2018-05-17 2021-12-24 深圳市信锐网科技术有限公司 Data processing method in Internet of things and Internet of things access system
CN108900396B (en) * 2018-07-06 2021-05-28 南京苏博曼纳软件科技有限公司 Intelligent gateway external equipment management method
US10574794B1 (en) 2019-07-12 2020-02-25 Coupang Corp. Systems and methods for interfacing networks regardless of communication scheme
CN110661686B (en) * 2019-09-25 2021-01-26 北京金茂绿建科技有限公司 Intelligent household IOT gateway signal processing method and device supporting multiple protocols
CN113382033B (en) * 2020-03-31 2022-04-01 广州浩翔信息技术有限公司 Central control adaptation method, device, equipment and storage medium
CN111555922B (en) * 2020-05-08 2023-05-16 中国通信服务股份有限公司 Method, device, equipment and storage medium for actively adapting access of Internet of things equipment
CN112039957B (en) * 2020-08-14 2022-10-21 北京首钢自动化信息技术有限公司 Control system and control method of edge equipment
CN111970682A (en) * 2020-08-26 2020-11-20 浙江三维通信科技有限公司 Method and device for transmitting detection information of mobile network and storage medium
CN114338827B (en) * 2020-09-29 2024-04-09 中移物联网有限公司 Internet of Things protocol adaptation gateway, method and readable storage medium
CN113341742A (en) * 2021-06-04 2021-09-03 海尔(深圳)研发有限责任公司 Method and device for linkage control of household appliances and cloud control equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481128A (en) * 2002-09-30 2004-03-10 联想(北京)有限公司 Method for controlling gateway and realizationg of controlling intercommunication between nodes in sub network of household network
US20080104233A1 (en) * 2006-10-31 2008-05-01 Hewlett-Packard Development Company, L.P. Network communication method and apparatus
CN101471901A (en) * 2007-12-25 2009-07-01 闪联信息技术工程中心有限公司 Method and device for implementing mutual identification and interconnection of various wireless protocol equipment
CN102055687A (en) * 2010-12-30 2011-05-11 上海顶竹通讯技术有限公司 Internet of things (IOT) access gateway

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100714050B1 (en) * 2005-11-18 2007-05-04 린나이코리아 주식회사 Integrated gateway for distributed home network and software framework structure thereof
CN102255908A (en) * 2011-07-08 2011-11-23 北京邮电大学 Internet of things gateway protocol consistency realization method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481128A (en) * 2002-09-30 2004-03-10 联想(北京)有限公司 Method for controlling gateway and realizationg of controlling intercommunication between nodes in sub network of household network
US20080104233A1 (en) * 2006-10-31 2008-05-01 Hewlett-Packard Development Company, L.P. Network communication method and apparatus
CN101471901A (en) * 2007-12-25 2009-07-01 闪联信息技术工程中心有限公司 Method and device for implementing mutual identification and interconnection of various wireless protocol equipment
CN102055687A (en) * 2010-12-30 2011-05-11 上海顶竹通讯技术有限公司 Internet of things (IOT) access gateway

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016021743A1 (en) * 2014-08-04 2016-02-11 에스피테크놀러지주식회사 Communication terminal using common protocol and control method thereof

Also Published As

Publication number Publication date
CN103179027B (en) 2016-09-28
CN103179027A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
WO2013091382A1 (en) Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway
KR101950122B1 (en) Interworking light weight machine-to-machine protocol with device management protocol
EP2721805B1 (en) Apparatus and method for exchanging data between upnp based devices
JP3805725B2 (en) Gateway, home network system, and message passing method enabling message passing between devices on home network using different middleware
US10575153B2 (en) Enhanced operations between service layer and management layer in an M2M system by allowing the execution of a plurality of commands on a plurality of devices
US20180063879A1 (en) Apparatus and method for interoperation between internet-of-things devices
US8285828B2 (en) Method and system for platform level data model for indications based event control and data transfer
WO2006091040A1 (en) Layer structure of network control protocol and interface method
WO2022262465A1 (en) Opc ua-based centralized user configuration method and system for time sensitive network
RU2005127418A (en) DEVICE SERVICES SUPPLIERS INTERFACE
CA2839034A1 (en) Wireless communication network for smart appliances
WO2013075490A1 (en) Method for implementing terminal adaptation processing, protocol adaptation module and terminal
JP2004288187A (en) Management device of equipment information via network and its method
WO2018176244A1 (en) Data collection method, device, and dynamic environment network management system
WO2006122477A1 (en) A method for upward-transferring terminal information as well as method and system for maintaining terminal device
WO2013170818A2 (en) Error code conversion method and system, pppoe server and mobile terminal
CN113067737B (en) Time-sensitive network configuration management system and method
KR20080112918A (en) Method and apparatus for providing dynamically changed description of universal plug and play
WO2013117112A1 (en) Sensor network analyzing intercommunicating platform, sensor network intercommunicating method and system
WO2015103848A1 (en) Method, system and terminal for realizing network access via wifi
WO2012089075A1 (en) Method, apparatus and system for configuring device
WO2015024373A1 (en) Virtual machine communication method and device
US20070130312A1 (en) Web service provision apparatus and method and web service request apparatus and method
WO2013185696A2 (en) Data processing method and device
US20100049804A1 (en) Instant Messaging

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12860721

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12860721

Country of ref document: EP

Kind code of ref document: A1