WO2017143743A1 - Procédé de communication par protocole hétérogène, et contrôleur - Google Patents

Procédé de communication par protocole hétérogène, et contrôleur Download PDF

Info

Publication number
WO2017143743A1
WO2017143743A1 PCT/CN2016/096015 CN2016096015W WO2017143743A1 WO 2017143743 A1 WO2017143743 A1 WO 2017143743A1 CN 2016096015 W CN2016096015 W CN 2016096015W WO 2017143743 A1 WO2017143743 A1 WO 2017143743A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
control instruction
alljoyn
message
coap
Prior art date
Application number
PCT/CN2016/096015
Other languages
English (en)
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 WO2017143743A1 publication Critical patent/WO2017143743A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a heterogeneous protocol interworking method and a controller.
  • the Internet Of Things is a network formed by interconnecting ubiquitous terminals over wireless and/or wired communication networks.
  • ALLJoyn is a general-purpose open source software framework. Two terminals running the ALLJoyn framework can interoperate with control commands defined in the ALLJoyn framework without relying on specific operating systems and specific network protocols.
  • the Constrained Application Protocol (CoAP) is a very small application layer protocol. The smallest CoAP packet is only 4 bytes, and the interaction overhead is not low. Therefore, many vendors have developed the Internet of Things based on the CoAP protocol.
  • the system, two terminals running the Internet of Things operating system can also implement interoperability based on the CoAP protocol to interact with the custom control instructions of the IoT operating system.
  • FIG. 1 is a schematic diagram of an application scenario of an Internet of Things in the prior art, where the scenario includes a first terminal 111 (such as a mobile phone, a smart watch, etc.) for performing control, and a second terminal 112 for being controlled ( a home appliance such as an air conditioner or a television set; and a controller 113 for managing the at least one second terminal 112; the first terminal 111 and the second terminal 112 each establish a communication connection with the controller 113 by wire or wirelessly,
  • the flow of control by the terminal 111 to the second terminal 112 is as follows: the first terminal 111 sends a control command to the controller 113, the controller 113 forwards the control command to the second terminal 112, and the second terminal 112 receives the control command.
  • the related operations are performed according to the control instruction; the process is performed on the premise that the first terminal 111, the second terminal 112, and the controller 113 both run the ALLJoyn framework, or both run the same Internet of Things operating system (all based on CoAP) Protocol to receive or send control commands in the IoT operating system).
  • a disadvantage of the prior art is that, among the two terminals for performing control and the second terminal for controlling, if one terminal runs the AllJoyn framework, the other terminal runs the CoAP protocol-based Internet of Things operating system. The first terminal cannot perform control on the second terminal.
  • the embodiment of the invention discloses a heterogeneous protocol interworking method and a controller, which can implement control between a terminal running an Internet of Things operating system based on the CoAP protocol and a terminal running the ALLJoyn framework.
  • an embodiment of the present invention provides a heterogeneous protocol interworking method, where the method includes:
  • the controller sends a second control instruction in the ALLJoyn framework to the second terminal indicated by the destination address, so that the ALLJoyn is run
  • the second terminal of the frame performs the preset operation according to the second control instruction; the second control instruction is used in the ALLJoyn framework to indicate that the preset operation is performed, and the controller runs the The ALLJoyn framework and the Internet of Things operating system.
  • the Internet of Things operating system in the embodiment of the present invention is an Internet of Things operating system based on the CoAP protocol, the operating system defines a control instruction (including the first control instruction), and needs to send (or receive) the control instruction based on the CoAP protocol.
  • the ALLJoyn framework in the present invention defines a control command (including the second control command) and a communication protocol capable of transmitting (or receiving) the control command based on the communication protocol.
  • the method for obtaining the second control instruction according to the first control instruction may be: searching for the corresponding part according to the correspondence between the control instruction and the operation defined in the Internet of Things operating system a preset operation corresponding to the control instruction, and then generating a second control instruction applied to the ALLJoyn framework and corresponding to the preset operation according to a predefined instruction generation rule.
  • the controller sends the second control instruction in the ALLJoyn framework to the second terminal running the ALLJoyn framework according to the first control instruction in the IoT operating system sent by the first terminal running the Internet of Things operating system,
  • the second control instruction and the first control instruction are used to indicate that the same operation is performed, and the control of the second terminal by the first terminal is implemented.
  • the controller by using a CoAP protocol, receives a first CoAP message sent by a first terminal that runs an IoT operating system, and analyzes the first CoAP After the message contains the destination address and the first control instruction, the controller is Before the second terminal of the destination address indication sends the second control instruction in the ALLJoyn framework, the method further includes:
  • the controller finds, from the ALLJoyn framework, the second control instruction for instructing execution of the preset operation. That is to say, after the controller parses the first control instruction, the manner of obtaining the second control instruction according to the first control instruction may also be: searching according to the corresponding relationship between the control instruction and the operation defined in the Internet of Things operating system. Determining a preset operation corresponding to the first control instruction, and then, according to the correspondence between the control instruction and the operation defined in the ALLJoyn framework, searching for a second control instruction corresponding to the control instruction defined by the preset operation in the ALLJoyn framework .
  • the second control instruction instructs the performed operation to be the same as the operation indicated by the first control instruction, and ensures that the first terminal performs accurate control on the second terminal.
  • the first CoAP message includes a source address that is directed to the first terminal;
  • the method also includes:
  • the controller parses a source address of the first terminal from the first CoAP message and sends the source address to the second terminal;
  • the controller receives an ALLJoyn message including the source address sent by the second terminal after performing the preset operation, and parses out a third control instruction in the ALLJoyn message, where the third control instruction is
  • the ALLJoyn framework is used to indicate output preset information
  • the controller sends a fourth control instruction in the Internet of Things operating system to the first terminal pointed by the source address by using the CoAP protocol, so that the first terminal outputs the preset information.
  • the fourth control instruction is used in the IoT operating system to indicate that the preset information is output.
  • the controller sends a fourth control instruction in the Internet of Things operating system to the first terminal according to the third control instruction in the ALLJoyn framework sent by the second terminal, the third control instruction and the third The fourth control instruction is used to indicate that the same information is output, so that the second terminal can feed back the preset information to the first terminal.
  • the controller passes The method of the CoAP protocol before receiving the first CoAP message sent by the first terminal running the Internet of Things operating system and parsing the first CoAP message to obtain the destination address and the first control instruction included in the first CoAP message includes:
  • the controller sends a second CoAP message to the first terminal by using the CoAP protocol, where the second CoAP message includes the destination address of the second terminal.
  • the controller sends the bound destination address of the second terminal to the first terminal in advance, so that the first control command sent by the first terminal can be accurately forwarded to the second terminal.
  • the present invention provides a heterogeneous protocol interworking method, the method comprising:
  • the controller receives the first ALLJoyn message sent by the first terminal running the ALLJoyn framework, and parses the first ALLJoyn message to obtain a destination address and a first control instruction included in the first ALLJoyn message, where the first control instruction is
  • the ALLJoyn framework is configured to indicate that a preset operation is performed; the controller sends a second control instruction defined in the Internet of Things operating system to the second terminal indicated by the destination address by using a CoAP protocol, so that the Internet of Things is operated.
  • the second terminal of the operating system performs the preset operation by using the second control instruction received based on the CoAP protocol; the second control instruction is used in the Internet of Things operating system to indicate execution of the By default operation, the controller runs the ALLJoyn framework and the Internet of Things operating system.
  • the method of obtaining the second control instruction according to the first control instruction may be: searching for the first control according to the correspondence between the control instruction and the operation defined in the ALLJoyn framework
  • the preset operation corresponding to the instruction is then generated according to a predefined instruction generation rule, and a second control instruction applied to the IoT operating system and corresponding to the preset operation is generated.
  • the controller sends the second control instruction in the Internet of Things operating system to the second terminal running the Internet of Things operating system according to the first control instruction in the ALLJoyn framework sent by the first terminal running the ALLJoyn framework.
  • the second control instruction and the first control instruction are used to indicate that the same operation is performed, and the control of the second terminal by the first terminal is implemented.
  • the controller receives a first ALLJoyn message sent by the first terminal running the ALLJoyn framework, and parses the first ALLJoyn message to obtain the After the first ALLJoyn message includes the destination address and the first control instruction, the method further sends the second control instruction defined in the Internet of Things operating system to the second terminal indicated by the destination address by using the CoAP protocol.
  • the CoAP protocol include:
  • the controlling finds, from the Internet of Things operating system, the second control instruction for instructing execution of the preset operation. That is to say, after the controller parses out the first control instruction, according to the first control
  • the method for obtaining the second control instruction by the instruction may further be: searching for the preset operation corresponding to the first control instruction according to the corresponding relationship between the control instruction and the operation defined in the ALLJoyn framework, and then defining according to the foregoing Internet of Things operating system Corresponding relationship between the control command and the operation, and finding a second control instruction corresponding to the preset operation in the control instruction defined in the IoT operating system.
  • the second control instruction instructs the performed operation to be the same as the operation indicated by the first control instruction, and ensures that the first terminal performs accurate control on the second terminal.
  • the first ALLJoyn message includes a source address that is directed to the first terminal;
  • the method also includes:
  • the controller parses the source address of the first terminal from the first ALLJoyn message and sends the source address to the second terminal;
  • the controller receives, by using the CoAP protocol, a CoAP message that includes the source address that is sent by the second terminal after performing the preset operation, and parses out a third control instruction in the CoAP message,
  • the third control instruction is used to indicate outputting preset information in the Internet of Things operating system;
  • the controller sends a fourth control instruction in the ALLJoyn framework to the first terminal pointed by the source address, so that the first terminal outputs the preset information, where the fourth control instruction is in the The ALLJoyn framework is used to indicate that the preset information is output.
  • the controller sends a fourth control instruction in the ALLJoyn framework to the first terminal according to the third control instruction in the Internet of Things operating system sent by the second terminal, the third control instruction and the third The fourth control instruction is used to indicate that the same information is output, so that the second terminal can feed back the preset information to the first terminal.
  • the controller receives a first ALLJoyn message sent by the first terminal running the ALLJoyn framework, parsing the source address of the first terminal from the first ALLJoyn message and before the first address and the first control command included in the first ALLJoyn message, The method further includes:
  • the controller sends a second ALLJoyn message to the first terminal, where the second ALLJoyn message includes the destination address of the second terminal.
  • the controller sends the bound destination address of the second terminal to the first terminal in advance, so that the first control command sent by the first terminal can be accurately forwarded to the second terminal. terminal.
  • an embodiment of the present invention provides a controller, where the controller includes a receiver, a transmitter, a memory, and a processor, and the processor invokes a software program in the memory to perform the following operations:
  • the receiver Receiving, by the receiver, the first CoAP message sent by the first terminal running the Internet of Things operating system through the CoAP protocol, and parsing the first CoAP message to obtain a destination address and a first control instruction included in the first CoAP message
  • the first control instruction is used in the Internet of Things operating system to indicate that a preset operation is performed;
  • the controller sends the second control instruction in the ALLJoyn framework to the second terminal running the ALLJoyn framework according to the first control instruction in the IoT operating system sent by the first terminal running the Internet of Things operating system,
  • the second control instruction and the first control instruction are used to indicate that the same operation is performed, and the control of the second terminal by the first terminal is implemented.
  • the processor by using the receiver, receives, by using a CoAP protocol, a first CoAP message sent by a first terminal running an Internet of Things operating system, and parses the After the first CoAP message obtains the destination address and the first control instruction included in the first CoAP message; the processor sends the first in the ALLJoyn framework to the second terminal indicated by the destination address by the sender Before the two control instructions, the processor is further configured to find, from the ALLJoyn framework, the second control instruction for instructing to perform the preset operation.
  • the second control instruction instructs the performed operation to be the same as the operation instructed by the first control instruction to ensure that the first terminal performs accurate control on the second terminal.
  • the first CoAP message includes a source address that is directed to the first terminal;
  • the processor is also used to:
  • an ALLJoyn message including the source address, sent by the second terminal after performing the preset operation, and analyzing a third control instruction in the ALLJoyn message, the third control instruction Used in the ALLJoyn framework to indicate output preset information;
  • the fourth control instruction is used to indicate outputting the preset information in the Internet of Things operating system.
  • the controller sends a fourth control instruction in the Internet of Things operating system to the first terminal according to the third control instruction in the ALLJoyn framework sent by the second terminal, the third control instruction and the third The fourth control instruction is used to indicate that the same information is output, so that the second terminal can feed back the preset information to the first terminal.
  • the Receiving, by the CoAP protocol, the first CoAP message sent by the first terminal running the Internet of Things operating system, and parsing the first CoAP message to obtain a destination address and a first control instruction included in the first CoAP message Also used for:
  • the controller sends the bound destination address of the second terminal to the first terminal in advance, so that the first control command sent by the first terminal can be accurately forwarded to the second terminal.
  • an embodiment of the present invention provides a controller, where the controller includes a receiver, a transmitter, a memory, and a processor, where the processor invokes a software program in the memory to perform the following operations:
  • the second control instruction received by the CoAP protocol performs the preset operation
  • the second control instruction is used in the IoT operating system to indicate that the preset operation is performed, and the processor runs the ALLJoyn framework and the Internet of Things operating system.
  • the controller sends the second control instruction in the Internet of Things operating system to the second terminal running the Internet of Things operating system according to the first control instruction in the ALLJoyn framework sent by the first terminal running the ALLJoyn framework.
  • the second control instruction and the first control instruction are used to indicate that the same operation is performed, and the control of the second terminal by the first terminal is implemented.
  • the processor receives, by the receiver, a first ALLJoyn message sent by a first terminal running an ALLJoyn framework, and parses the first ALLJoyn
  • the processor sends, by using the transmitter, the second terminal indicated by the destination address to the second terminal, which is defined by the Internet of Things operating system, by using the transmitter.
  • the processor is further configured to find, from the IoT operating system, the second control instruction for instructing to perform the preset operation.
  • the second control instruction instructs the performed operation to be the same as the operation instructed by the first control instruction to ensure that the first terminal performs accurate control on the second terminal.
  • the first ALLJoyn message includes a source address that is directed to the first terminal;
  • the processor is also used to:
  • the receiver Receiving, by the receiver, the CoAP message, including the source address, sent by the second terminal after performing the preset operation, and parsing a third control instruction in the CoAP message by using the CoAP protocol.
  • the third control instruction is used to indicate outputting preset information in the Internet of Things operating system;
  • the controller sends a fourth control instruction in the ALLJoyn framework to the first terminal according to a third control instruction in the Internet of Things operating system sent by the second terminal, the third control instruction and the third Four control instructions are used to indicate that the same information is output, so that the second terminal can The preset information is fed back to the first terminal.
  • the receiver receives the first ALLJoyn message sent by the first terminal running the ALLJoyn framework, and parses the first ALLJoyn message to obtain the destination address and the first control instruction included in the first ALLJoyn message, and is further used to:
  • the controller sends the bound destination address of the second terminal to the first terminal in advance, so that the first control command sent by the first terminal can be accurately forwarded to the second terminal.
  • the preset information includes an execution result of the second terminal performing the preset operation.
  • the preset information is specifically used to feed back the execution result of the preset operation by the second terminal to the first terminal, so that the first terminal performs a related operation according to the execution result.
  • an embodiment of the present invention provides a controller, where the controller includes a functional unit for performing some or all of the steps of any implementation manner of the first aspect of the embodiments of the present invention, for example, including a first receiving unit and a first sending unit, configured to receive, by using a CoAP protocol, a first CoAP message sent by a first terminal running an Internet of Things operating system, and parse the first CoAP message to obtain the first CoAP message a destination address and a first control instruction, where the first control instruction is used to indicate a preset operation in the Internet of Things operating system; the first sending unit is configured to send an ALLJoyn frame to the second terminal indicated by the destination address a second control instruction to cause the second terminal running the ALLJoyn framework to perform the preset operation according to the second control instruction; the second control instruction is used to indicate execution in the ALLJoyn framework
  • the controller runs the ALLJoyn framework and the Internet of Things operating system (the receiving unit and the transmitting unit are only one functional unit
  • the embodiment of the present invention provides a controller, where the controller includes a functional unit for performing some or all of the steps of any implementation manner of the second aspect of the embodiments of the present invention, for example, including a first receiving unit and a first sending unit, configured to receive a first ALLJoyn message sent by the first terminal running the ALLJoyn framework, and parse the first ALLJoyn message to obtain a a destination address and a first control instruction included in the first ALLJoyn message, where the first control instruction is used in the ALLJoyn framework to indicate that a preset operation is performed; the first sending unit is configured to use the CoAP protocol to the destination address.
  • a functional unit for performing some or all of the steps of any implementation manner of the second aspect of the embodiments of the present invention, for example, including a first receiving unit and a first sending unit, configured to receive a first ALLJoyn message sent by the first terminal running the ALLJoyn framework, and parse the first ALLJoyn message to obtain
  • the instructed second terminal sends a second control instruction defined in the Internet of Things operating system to cause the second terminal running the IoT operating system to execute the second control instruction received based on the CoAP protocol a preset operation; the second control instruction is used in the IoT operating system to indicate that the preset operation is performed, and the controller runs the ALLJoyn framework and the Internet of Things operating system (the receiving unit And the sending unit is only a division example of a functional unit).
  • the embodiment of the present invention further provides a storage medium for storing a computer program, where the processor is used to implement any one of the methods provided by the first aspect when the computer program is executed by a processor.
  • the computer program can include one or more program elements for implementing various steps of the method.
  • FIG. 1 is a schematic diagram of an application scenario of an Internet of Things in the prior art
  • 2A is a schematic flowchart of a heterogeneous protocol interworking method according to an embodiment of the present invention
  • 2B is a schematic structural diagram of an Internet of Things according to an embodiment of the present invention.
  • 2C is a schematic diagram of a scenario in which a conversion layer obtains a second control instruction based on a first control instruction
  • 2D is a schematic flowchart of obtaining a destination address according to an embodiment of the present invention.
  • 2E is a schematic flowchart of feedback preset information provided by an embodiment of the present invention.
  • 3A is a schematic flowchart of still another heterogeneous protocol interworking method according to an embodiment of the present invention.
  • FIG. 3B is a schematic structural diagram of still another Internet of Things according to an embodiment of the present invention.
  • 3C is a schematic diagram of still another scenario in which the conversion layer obtains the second control instruction based on the first control instruction
  • FIG. 3D is a schematic flowchart of another method for obtaining a destination address according to an embodiment of the present disclosure
  • FIG. 3E is a schematic flowchart of still another feedback preset information according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a controller according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of still another controller according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of still another controller according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of still another controller according to an embodiment of the present invention.
  • FIG. 2A is a schematic flowchart of a heterogeneous protocol interworking method according to an embodiment of the present invention, which illustrates that a first terminal playing a control role in the Internet of Things runs an Internet of Things operating system based on the CoAP protocol, and plays a controlled role.
  • the second terminal of the role runs the scheme of the ALLJoyn framework, and the method includes but is not limited to the following steps.
  • Step S201 The first terminal sends a first CoAP message to the controller.
  • the first terminal is a terminal for performing a control operation.
  • a customized IoT operating system (for example, a LiteOS operating system) is run on the first terminal, and the first terminal receives and sends a control instruction in the Internet of Things operating system through a CoAP protocol.
  • the message sent and received by the CoAP protocol in the embodiment of the present invention is a CoAP message
  • the first CoAP message is a CoAP message
  • the first CoAP message includes a destination address (for example, a Uniform Resource Locator (URL)
  • a first control instruction the first control instruction being one of a plurality of control instructions defined in the Internet of Things operating system, each control instruction being specifically a control identifier for indicating execution of the related operation.
  • control flag "temperature_up” is used to indicate the operation of performing “up-regulation temperature”
  • control flag “temperature_down” is used to indicate the operation of performing “down-regulation temperature”
  • control flag “machine_Res” is used to indicate the execution of the "restart” device. Operation, the remaining control indicators are not examples here.
  • Step S202 The controller receives the first CoAP message sent by the first terminal, and parses the first a CoAP message is obtained to obtain a destination address and a first control instruction included in the first CoAP message, and the first control instruction is used in the Internet of Things operating system to indicate that a preset operation is performed.
  • the foregoing IoT operating system is also run on the controller, and the CoAP message can be received and sent through the CoAP protocol.
  • the controller parses the first CoAP message. Acquiring the destination address and the first control instruction, the controller can learn, according to the first control instruction, which operation is performed by the terminal corresponding to the destination address, and the “which operation” can be defined as “preset operation” "To facilitate the subsequent description.
  • the controller learns that the terminal corresponding to the destination address needs to perform an operation of “up-regulating temperature” according to the first control instruction
  • the preset operation is “up-regulating temperature”
  • the controller is according to the first
  • the control command learns that the terminal corresponding to the destination address needs to perform a "restart” operation, and the preset operation is "restart", and the remaining control commands can be deduced by analogy.
  • Step S203 The controller sends a second control instruction in the ALLJoyn framework to the second terminal indicated by the destination address.
  • the controller also runs the ALLJoyn framework, so the controller can send the ALLJoyn message, and can also receive the ALLJoyn message.
  • the second control instruction is specifically sent by the ALLJoyn message, and the second control instruction is defined in the ALLJoyn framework.
  • each control instruction may be specifically an application programming interface (API) identifier, and the terminal receiving the API identifier executes a function corresponding to the API identifier, and each API identifier corresponds to The functions are different.
  • API application programming interface
  • the control instructions defined in the ALLJoyn framework may differ from the format and specific content of the control instructions defined in the above IoT operating system, but the control instructions defined in the ALLJoyn framework and the control instructions defined in the above IoT operating system are instructed to execute
  • the operation may be the same.
  • the API identifier API_a corresponds to the function of “upward temperature”
  • the API identifier API_b corresponds to the “restart” function
  • the API identifier API_c corresponds to the “output prompt message” function.
  • the rest of the API identifiers are not examples here. .
  • control identifier "temperature_up” and the API identifier “API_a” are both used to indicate “upward temperature”
  • control identifier "machine_Res” and the API identifier “API_b” are both used to indicate the device “restart”, and the like.
  • the first terminal 211 may send a control instruction defined in a standard profile 230 of the Internet of Things operating system based on the CoAP protocol 220; the controller 213 may Receiving the control instruction based on the CoAP protocol 220, and finding a preset operation corresponding to the control instruction from its own standard configuration 230 (same as the standard configuration 230 in the first terminal 211), and then passing the preset operation through the conversion layer 240 is converted to a control command in the ALLJoyn framework 250 for transmission to the second terminal 212; the second terminal 212 is running the ALLJoyn framework 250 (same as the ALLJoyn framework 250 in the controller 213), and is capable of being controlled according to the control in the ALLJoyn framework 250.
  • 2C is a schematic diagram of a scenario in which the conversion layer 240 obtains a second control instruction based on the first control instruction.
  • the first control instruction and the second control instruction are both used to indicate that the preset operation is performed.
  • the value range conversion process is: after the preset operation corresponding to the first control instruction is found according to the corresponding relationship between the control instruction and the operation defined in the foregoing Internet of Things operating system, according to the pre- The defined instruction generation rule generates a second control instruction applied to the ALLJoyn framework and corresponding to the preset operation.
  • the value range conversion process is: after the preset operation corresponding to the first control instruction is found according to the corresponding relationship between the control instruction and the operation defined in the foregoing Internet of Things operating system, Corresponding to the control command and the operation defined in the ALLJoyn framework, the corresponding second control command in the control command defined by the preset operation in the ALLJoyn framework is found.
  • Step S204 The second terminal running the ALLJoyn framework receives the second control instruction, and performs the preset operation according to the second control instruction.
  • the second terminal also runs the ALLJoyn framework, and can receive control commands in the ALLJoyn framework sent by other terminals running the ALLJoyn framework, and can send control commands in the ALLJoyn framework to other terminals running the ALLJoyn framework.
  • the second terminal receives the second control instruction sent by the controller, searches for the operation indicated by the second control instruction from the control instruction defined by the ALLJoyn framework, and then performs the operation, where the operation is the foregoing Set the operation.
  • the foregoing first terminal sends a first CoAP message to the controller.
  • the foregoing destination address is obtained by the controller.
  • FIG. 2D is a schematic flowchart of obtaining the destination address. The process includes the following steps in addition to the foregoing steps S201-S204:
  • Step S205 The controller sends a second CoAP message to the first terminal by using the CoAP protocol, where the second CoAP message includes the destination address of the second terminal.
  • Step S206 The first terminal receives the second CoAP message sent by the controller, and parses the second CoAP message to obtain a status and a destination address of the second terminal.
  • the second terminal belongs to the controlled terminal in the Internet of Things, so the second terminal is bound to the controller in advance, so that the controller acquires the state information of the second terminal, including the second terminal.
  • Address for example, a URL address
  • the control sends a second CoAP message to the first terminal, so that the first terminal learns the running status and the destination address of the second terminal according to the second CoAP message, so that The controller sends the first CoAP message to indicate that the second terminal performs a corresponding operation.
  • the first CoAP message includes a source address that is directed to the first terminal, and after receiving the first CoAP message sent by the first terminal, the controller may further The second terminal sends the source address corresponding to the first terminal, and the second terminal feeds back the preset information to the first terminal.
  • FIG. 2E is a schematic flowchart of the feedback preset information, where the process includes the foregoing steps S201-S204. It also includes the following steps:
  • Step S207 The controller parses the source address of the first terminal from the first CoAP message and sends the source address to the second terminal; the controller may send the second control instruction When the source address is sent, it may of course be sent before or after the second control instruction is sent. Whenever the signal is sent, the source address has a corresponding relationship with the second control instruction.
  • Step S208 The second terminal receives the source address; the source address may be a URL address;
  • Step S209 After executing the preset operation, the second terminal sends an ALLJoyn message including the source address.
  • Step S210 The controller receives the ALLJoyn message and analyzes the ALLJoyn message. a third control instruction in the information, the third control instruction is used in the ALLJoyn framework to indicate outputting preset information;
  • Step S211 The controller sends a fourth control instruction in the Internet of Things operating system to the first terminal pointed by the source address by using the CoAP protocol. It should be noted that the fourth control instruction is as described above. The third control instruction is used to indicate that the preset information is output.
  • Step S212 The first terminal outputs the preset information according to the fourth control instruction, where the fourth control instruction is used to indicate outputting the preset information in the Internet of Things operating system.
  • the preset information can be output by sound, text, image, light, etc. according to actual needs.
  • the preset information is used to reflect an execution result of the second terminal performing the preset operation. That is, after the first terminal controls the second terminal to perform the preset operation, the second terminal sends another control command to the first terminal to prompt to use the first terminal. The user feedback the result of performing the preset operation.
  • the controller sends the first in the ALLJoyn framework to the second terminal running the ALLJoyn framework according to the first control instruction in the Internet of Things operating system sent by the first terminal running the Internet of Things operating system.
  • a second control instruction, the second control instruction and the first control instruction are used to indicate that the same operation is performed, and the control of the second terminal by the first terminal is implemented.
  • FIG. 3A is a schematic flowchart of a heterogeneous protocol interworking method according to an embodiment of the present invention.
  • the first terminal playing the control role in the Internet of Things runs the ALLJoyn framework and plays the second terminal of the controlled role.
  • the solution of the Internet of Things operating system based on the CoAP protocol includes, but is not limited to, the following steps.
  • Step S301 The first terminal sends a first ALLJoyn message to the controller.
  • the first terminal herein may be a terminal for performing a control operation, or may be a terminal for being controlled; it should be noted that the first terminal may not perform control operations on other terminals or may be used by other terminals. control.
  • the first terminal runs the ALLJoyn framework, so the first terminal may send an ALLJoyn message, and may also receive an ALLJoyn message.
  • the first ALLJoyn message is an ALLJoyn message
  • the first ALLJoyn message includes a destination address. (eg, a URL address) and a first control instruction, the first control instruction being one of a plurality of control instructions defined in the ALLJoyn framework, each control instruction being specifically an application programming interface (API)
  • API application programming interface
  • API identifier API_a corresponds to a function of “upward temperature”
  • the API identifier API_b corresponds to a “restart” function
  • the API identifier API_c corresponds to an “output prompt message” function
  • Step S302 The controller receives the first ALLJoyn message sent by the first terminal, and parses the first ALLJoyn message to obtain a destination address and a first control instruction included in the first ALLJoyn message, where the first control instruction is in the The ALLJoyn framework is used to indicate the execution of a preset operation.
  • the controller also runs the ALLJoyn framework, so the controller can receive the ALLJoyn message or the ALLJoyn message. After receiving the first ALLJoyn message sent by the first terminal, the controller parses the first ALLJoyn message. In order to obtain the destination address and the first control instruction, the controller can learn, according to the first control instruction, which operation is performed by the terminal corresponding to the destination address, and the “which operation” can be defined as “preset”.
  • the operation is performed to facilitate the subsequent description; for example, if the controller knows that the terminal corresponding to the destination address needs to perform the “up-regulation temperature” operation according to the first control instruction, the preset operation is “up-regulation temperature”; If the controller learns that the terminal corresponding to the destination address needs to perform a "restart” operation according to the first control instruction, the preset operation is "restart", and the remaining control commands can be deduced by analogy.
  • Step S303 The controller sends a second control instruction defined in the Internet of Things operating system to the second terminal indicated by the destination address by using the CoAP protocol.
  • the controller further runs an Internet of Things operating system (for example, a LiteOS operating system), and the IoT operating system also defines a plurality of control instructions, and the control instructions defined in the Internet of Things operating system are defined in the above-mentioned ALLJoyn framework.
  • the format and specific content of the control instructions may differ.
  • control instructions defined in the IoT operating system may be the same as the operations indicated by the control instructions defined in the above-mentioned ALLJoyn framework; for example, the control identifier "temperature_up” is used to indicate the operation of “up-regulating the temperature”, the control flag " The temperature_down is used to indicate the operation of performing the "downward temperature”, and the control identifier “machine_Res” is used to indicate the operation of the "restart” device.
  • the remaining control identifiers are not exemplified herein.
  • control identifier "temperature_up” and the API interface identifier “API_a” are both used to indicate “upward temperature”
  • control identifier "machine_Res” and the API interface identifier "API_b” are used to indicate the device “restart”, etc. Wait.
  • the second control instruction described in the embodiment of the present invention may be specifically a “control identifier”, and the control identifier is the same as the operation performed by the API identifier corresponding to the first control instruction, for example, both are used to indicate “upward temperature” ".
  • the second control instruction is specifically encapsulated in the Payload field in the CoAP message packet by using the CoAP protocol.
  • the object to be sent by the message is the terminal pointed to by the destination address analyzed by the controller, and the terminal is referred to as a “second terminal” for convenience.
  • FIG. 3B is a schematic structural diagram of an Internet of Things according to an embodiment of the present invention.
  • the first terminal 311 runs an ALLJoyn framework 320, and can send a first control instruction defined in the ALLJoyn framework 320;
  • the controller 313 can be based on its own ALLJoyn framework.
  • FIG. 3C is a schematic diagram of the scenario in which the conversion layer 230 obtains the second control instruction based on the first control instruction. In the value range conversion process, the first control instruction and the second control instruction are both used to indicate that the preset operation is performed.
  • the value range conversion process is: after the preset operation corresponding to the first control instruction is found according to the corresponding relationship between the control instruction and the operation defined in the ALLJoyn framework, according to a predefined An instruction generation rule is generated and applied to the Internet of Things operating system, and the preset operation is performed A corresponding second control command is made.
  • the value range conversion process is: after the preset operation corresponding to the first control instruction is found according to the corresponding relationship between the control instruction and the operation defined in the ALLJoyn framework, according to the foregoing Corresponding relationship between the control instruction and the operation defined in the networked operating system, and finding a second control instruction corresponding to the preset operation in the control instruction defined in the Internet of Things operating system.
  • Step S304 The second terminal running the Internet of Things operating system receives the second control instruction according to the CoAP protocol, and performs the preset operation according to the second control instruction.
  • the foregoing second terminal also runs the foregoing Internet of Things operating system, and the Internet of Things operating system receives the control instruction sent by the Internet of Things operating system on the other terminal through the CoAP protocol based on the CoAP protocol, and sends the control command to the other terminal based on the CoAP protocol.
  • the control instruction sent by the IoT operating system in step S304, the second terminal receives the second control instruction sent by the controller, and searches for the second control instruction indication from the control instruction defined by the Internet of Things operating system. The operation performed, and then the operation is performed, which is the above preset operation.
  • the first terminal may obtain the destination address by using the controller before sending the first ALLJoyn message to the control
  • FIG. 3D is a schematic flowchart of obtaining the destination address, where the process includes the foregoing.
  • steps S301-S304 the following steps are also included:
  • Step S305 The controller sends a second ALLJoyn message to the first terminal, where the second ALLJoyn message includes the destination address of the second terminal.
  • Step S306 The first terminal receives the second ALLJoyn message sent by the controller, and parses the second ALLJoyn message to obtain a state and a destination address of the second terminal.
  • the second terminal belongs to the controlled terminal in the Internet of Things, so the second terminal is bound to the controller in advance, so that the controller acquires the state information of the second terminal, including the second terminal.
  • An address for example, a URL address, etc.
  • the control sends a second ALLJoyn message to the first terminal, so that the first terminal learns the running state and the destination address of the second terminal according to the second ALLJoyn message, so that The controller sends the first ALLJoyn message to indicate the The second terminal performs a corresponding operation.
  • the first ALLJoyn message includes a source address that is directed to the first terminal; after receiving the first ALLJoyn message sent by the first terminal, the controller may further The second terminal sends the source address corresponding to the first terminal, and the second terminal feeds back the preset information to the first terminal.
  • FIG. 3E is a schematic flowchart of the feedback preset information, where the process includes the foregoing steps S301-S304. It also includes the following steps:
  • Step S307 The controller parses the source address of the first terminal from the first ALLJoyn message and sends the source address to the second terminal; the controller may send the second control instruction When the source address is sent, it may of course be sent before or after the second control instruction is sent. Whenever the signal is sent, the source address has a corresponding relationship with the second control instruction.
  • Step S308 The second terminal receives the source address; the source address may be a URL address;
  • Step S309 After performing the preset operation, the second terminal sends a CoAP message including the source address.
  • Step S310 The controller receives the CoAP message through the CoAP protocol, and analyzes a third control instruction in the CoAP message, where the third control instruction is used to indicate an output pre- Set information;
  • Step S311 The controller sends a fourth control instruction in the ALLJoyn framework to the first terminal pointed by the source address. It should be noted that the fourth control instruction and the third control instruction are both used. Indicates to output the above preset information.
  • Step S312 The first terminal outputs the preset information according to the fourth control instruction, where the fourth control instruction is used to indicate outputting the preset information in the ALLJoyn framework.
  • the preset information can be output by sound, text, image, light, etc. according to actual needs.
  • the preset information is used to reflect an execution result of the second terminal performing the preset operation. That is, after the first terminal controls the second terminal to perform the preset operation, the second terminal sends another control command to the first terminal to prompt to use the first terminal. The user feedback the result of performing the preset operation.
  • the controller transmits according to the first terminal running the ALLJoyn framework
  • the first control instruction in the ALLJoyn framework sends a second control instruction in the IoT operating system to the second terminal running the Internet of Things operating system, the second control instruction being used to indicate the execution of the same
  • the operation realizes the control of the second terminal by the first terminal.
  • FIG. 4 is a controller 40 according to an embodiment of the present invention.
  • the controller (which may be a server, a gateway, etc.) 40 includes a receiver 401, a transmitter 402, a memory 403, and a processor 404.
  • the number of devices 404 may be one or more, exemplified by a processor in FIG. 4, and in some embodiments of the present invention, the receiver 401, the transmitter 402, the memory 403, and the processor 404 may be through a bus or other means. Connection, in which the connection through the bus is taken as an example in FIG.
  • the processor 404 invokes a heterogeneous protocol interworking program in the memory 403 for performing the following operations:
  • the receiver 401 Receiving, by the receiver 401, the first CoAP message sent by the first terminal running the Internet of Things operating system through the CoAP protocol, and parsing the first CoAP message to obtain a destination address and a first control included in the first CoAP message.
  • the controller 40 sends the second control instruction in the ALLJoyn framework to the second terminal running the ALLJoyn framework according to the first control instruction in the Internet of Things operating system sent by the first terminal running the Internet of Things operating system.
  • the second control instruction and the first control instruction are used to indicate that the same operation is performed, and the control of the second terminal by the first terminal is implemented.
  • the processor 404 receives, by using the CoAP protocol, the first CoAP message sent by the first terminal running the Internet of Things operating system by using the receiver 401, and parses the first a CoAP message to obtain a destination address and a first control instruction included in the first CoAP message; the processor 404, by the transmitter 402, transmitting a second in the ALLJoyn framework to the second terminal indicated by the destination address Before the control instruction, the processor 404 is further configured to find, from the ALLJoyn framework, the second control instruction for instructing to perform the preset operation.
  • the second control instruction instructs the performed operation to be the same as the operation instructed by the first control instruction to ensure that the first terminal performs accurate control on the second terminal.
  • the first CoAP message includes a source address that is directed to the first terminal, and the processor 404 is further configured to:
  • the controller 40 sends a fourth control instruction in the Internet of Things operating system to the first terminal according to the third control instruction in the ALLJoyn framework sent by the second terminal, where the third control instruction is The fourth control instruction is used to indicate that the same information is output, so that the second terminal can feed back the preset information to the first terminal.
  • the preset information includes an execution result of the second terminal performing the preset operation. That is, the preset information is specifically used to feed back the execution result of the preset operation by the second terminal to the first terminal, so that the first terminal performs a related operation according to the execution result.
  • the processor 404 receives, by using the CoAP protocol, the first CoAP message sent by the first terminal running the Internet of Things operating system by using the receiver 401, and parses the Before obtaining the destination address and the first control instruction included in the first CoAP message, the first CoAP message is further used to:
  • the controller 40 sends the bound destination address of the second terminal to the first terminal in advance, so that the first control command sent by the first terminal can be accurately forwarded to the second terminal.
  • controller shown in FIG. 4 may also correspond to the corresponding description of the method embodiment shown in FIG. 2A, and details are not described herein again.
  • FIG. 5 is a controller (which may be a server, a gateway, etc.) 50, which includes a receiver 501, a transmitter 502, a memory 503, and a processor 504.
  • the number of 504s may be one or more, exemplified by a processor in FIG. 5, and in some embodiments of the present invention, the receiver 501, the transmitter 502, the memory 503, and the processor 504 may be through a bus or other means. Connection, wherein, in FIG. 5, a bus connection is taken as an example.
  • the processor 504 invokes a heterogeneous protocol interworking program in the memory 503 for performing the following operations:
  • the controller 50 sends the first control instruction in the ALLJoyn framework sent by the first terminal running the ALLJoyn framework to the second terminal running the Internet of Things operating system.
  • a second control instruction in the Internet of Things operating system the second control instruction and the first control instruction are used to indicate that the same operation is performed, and the control of the second terminal by the first terminal is implemented.
  • the processor 504 receives, by the receiver 501, a first ALLJoyn message sent by the first terminal running the ALLJoyn framework, and parses the first ALLJoyn message to obtain the first ALLJoyn message. After the destination address and the first control instruction included in the message, the processor 504 sends the second control instruction defined in the Internet of Things operating system to the second terminal indicated by the destination address by using the CoAP protocol by the transmitter 502. The processor 504 is further configured to find, from the Internet of Things operating system, the second control instruction for instructing to perform the preset operation.
  • the second control instruction instructs the performed operation to be the same as the operation instructed by the first control instruction to ensure that the first terminal performs accurate control on the second terminal.
  • the first ALLJoyn message includes a source address that points to the first terminal; the processor 504 is further configured to:
  • the CoAP message including the source address, sent by the second terminal after performing the preset operation, and parsing a third control instruction in the CoAP message,
  • the third control instruction is used to indicate outputting preset information in the Internet of Things operating system;
  • the controller 50 sends a fourth control instruction in the ALLJoyn framework to the first terminal according to the third control instruction in the Internet of Things operating system sent by the second terminal, where the third control instruction is The fourth control instruction is used to indicate that the same information is output, so that the second terminal can feed back the preset information to the first terminal.
  • the preset information includes the second terminal performing the preset operation The result of the execution. That is, the preset information is specifically used to feed back the execution result of the preset operation by the second terminal to the first terminal, so that the first terminal performs a related operation according to the execution result.
  • the processor 504 receives, by the receiver 501, a first ALLJoyn message sent by the first terminal running the ALLJoyn framework, and parses the first ALLJoyn message to obtain the first Before the ALLJoyn message contains the destination address and the first control instruction, it is also used to:
  • the controller 50 sends the bound destination address of the second terminal to the first terminal in advance, so that the first control command sent by the first terminal can be accurately forwarded to the second terminal.
  • controller shown in FIG. 5 may also correspond to the corresponding description of the method embodiment shown in FIG. 3A, and details are not described herein again.
  • FIG. 6 is a controller 60 according to an embodiment of the present invention.
  • the controller (which may be a server, a gateway, etc.) 60 includes a first receiving unit 601 and a first sending unit 602, and a first receiving unit.
  • a detailed description of the 601 and the first transmitting unit 602 is as follows:
  • the first receiving unit 601 is configured to receive, by using a CoAP protocol, a first CoAP message sent by a first terminal that runs an IoT operating system, and parse the first CoAP message to obtain a destination address and a first address included in the first CoAP message. a control instruction, where the first control instruction is used to indicate that a preset operation is performed in the Internet of Things operating system;
  • the first sending unit 602 is configured to send, to the second terminal indicated by the destination address, a second control instruction in the ALLJoyn framework, so that the second terminal running the ALLJoyn framework performs the foregoing according to the second control instruction.
  • a preset operation the second control instruction is used in the ALLJoyn framework to indicate that the preset operation is performed, and the controller runs the ALLJoyn framework and the Internet of Things operating system.
  • the controller 60 sends the second control instruction in the ALLJoyn framework to the second terminal running the ALLJoyn framework according to the first control instruction in the IoT operating system sent by the first terminal running the Internet of Things operating system.
  • the second control instruction and the first control instruction are used to indicate that the same operation is performed, and the control of the second terminal by the first terminal is implemented.
  • the controller 60 further includes a searching unit, where the searching unit is configured to receive, by the first receiving unit 601, the first terminal sent by the first terminal running the Internet of Things operating system through the CoAP protocol. a CoAP message, and parsing the first CoAP message to obtain a destination address and a first control instruction included in the first CoAP message, and the first sending unit 602 sends an ALLJoyn to the second terminal indicated by the destination address Before the second control instruction in the framework, the second control instruction for instructing execution of the preset operation is found from the ALLJoyn framework.
  • the second control instruction instructs the performed operation to be the same as the operation indicated by the first control instruction, ensuring that the first terminal performs accurate control on the second terminal.
  • the first CoAP message includes a source address that is directed to the first terminal; the controller 60 further includes a second sending unit, a second receiving unit, and a third sending unit, each The detailed description of the unit is as follows:
  • the second sending unit is configured to parse the first CoAP message from the first CoAP message after the first receiving unit 601 receives the first CoAP message sent by the first terminal running the Internet of Things operating system by using the CoAP protocol. a source address of a terminal and transmitting the source address to the second terminal;
  • the second receiving unit is configured to receive an ALLJoyn message including the source address that is sent by the second terminal after performing the preset operation, and parse out a third control instruction in the ALLJoyn message, where the Three control instructions are used in the ALLJoyn framework to indicate output preset information;
  • the third sending unit is configured to send, by using the CoAP protocol, a fourth control instruction in the Internet of Things operating system to the first terminal that is directed to the source address, so that the first terminal outputs the pre-
  • the fourth control instruction is used to indicate outputting the preset information in the Internet of Things operating system.
  • the controller 60 sends a fourth control instruction in the Internet of Things operating system to the first terminal according to the third control instruction in the ALLJoyn framework sent by the second terminal by running the foregoing unit.
  • the third control instruction and the fourth control instruction are used to indicate that the same information is output, so that the second terminal can feed back the preset information to the first terminal.
  • the preset information includes an execution result of the second terminal performing the preset operation. That is, the preset information is specifically used to feed back the execution result of the preset operation by the second terminal to the first terminal, so that the first terminal performs a related operation according to the execution result.
  • control further includes a fourth sending unit, configured to receive, by the first receiving unit 601, the first terminal that runs the Internet of Things operating system by using a CoAP protocol. Sending a second CoAP message to the first terminal by using the CoAP protocol, before the first CoAP message is parsed to obtain the destination address and the first control command included in the first CoAP message, The second CoAP message includes the destination address of the second terminal.
  • the controller 60 By running the fourth sending unit, the controller 60 sends the bound destination address of the second terminal to the first terminal in advance, so that the first control command sent by the first terminal can be accurately forwarded to the first terminal. Two terminals.
  • controller shown in FIG. 6 may also correspond to the corresponding description of the method embodiment shown in FIG. 2A, and details are not described herein again.
  • FIG. 7 is a controller 70 according to an embodiment of the present invention.
  • the controller (which may be a server, a gateway, etc.) 70 includes a first receiving unit 701 and a first sending unit 702, and a first receiving unit.
  • the detailed description of the 701 and the first transmitting unit 702 is as follows:
  • the first receiving unit 701 is configured to receive a first ALLJoyn message sent by the first terminal running the ALLJoyn framework, and parse the first ALLJoyn message to obtain a destination address and a first control instruction included in the first ALLJoyn message, where a first control instruction is used in the ALLJoyn framework to indicate that a preset operation is performed;
  • the first sending unit 702 is configured to send, by using a CoAP protocol, a second control instruction defined in the Internet of Things operating system to the second terminal indicated by the destination address, so that the second terminal running the Internet of Things operating system is based on
  • the second control instruction received by the CoAP protocol performs the pre-pre
  • the second control instruction is used in the Internet of Things operating system to indicate that the preset operation is performed, and the controller 70 runs the ALLJoyn framework and the Internet of Things operating system.
  • the controller 70 sends the second control instruction in the Internet of Things operating system to the second terminal running the Internet of Things operating system according to the first control instruction in the ALLJoyn framework sent by the first terminal running the ALLJoyn framework.
  • the second control instruction and the first control instruction are used to indicate that the same operation is performed, and the control of the second terminal by the first terminal is implemented.
  • the controller 70 further includes a searching unit, where the searching unit is configured to receive, by the first receiving unit 701, a first ALLJoyn message sent by the first terminal running the ALLJoyn framework, and parse the After the first ALLJoyn message obtains the destination address and the first control instruction included in the first ALLJoyn message, and sends the Internet of Things to the second terminal indicated by the first sending unit 702 to the destination address by using the CoAP protocol.
  • the second control instruction for instructing execution of the preset operation is found from the IoT operating system.
  • the second control instruction instructs the performed operation to be the same as the operation indicated by the first control instruction, ensuring that the first terminal performs accurate control on the second terminal.
  • the first ALLJoyn message includes a source address that points to the first terminal;
  • the controller 70 further includes a second sending unit, a second receiving unit, and a third sending unit, where The second sending unit is configured to parse the source address of the first terminal from the first ALLJoyn message after the first receiving unit 701 receives the first ALLJoyn message sent by the first terminal running the ALLJoyn framework. Sending the source address to the second terminal;
  • the second receiving unit is configured to receive, by using the CoAP protocol, a CoAP message that includes the source address that is sent by the second terminal after performing the preset operation, and parse the third control in the CoAP message.
  • the third sending unit is configured to send, to the first terminal pointed by the source address, a fourth control instruction in the ALLJoyn framework, so that the first terminal outputs the preset information, where the fourth Control instructions are used in the ALLJoyn framework to indicate that the preset information is output.
  • the controller 70 sends a fourth control instruction in the ALLJoyn framework to the first terminal according to the third control instruction in the Internet of Things operating system sent by the second terminal, where the third control instruction is The fourth control instruction is used to indicate that the same information is output, so that the second terminal can feed back the preset information to the first terminal.
  • the preset information includes an execution result of the second terminal performing the preset operation. That is, the preset information is specifically used to feed back the execution result of the preset operation by the second terminal to the first terminal, so that the first terminal performs a related operation according to the execution result.
  • the controller 70 further includes a fourth sending unit, configured to receive, by the first receiving unit 701, the first ALLJoyn sent by the first terminal running the ALLJoyn framework. And sending a second ALLJoyn message to the first terminal before the first ALLJoyn message is parsed to obtain the destination address and the first control instruction included in the first ALLJoyn message, where the second ALLJoyn message includes the The destination address of the second terminal.
  • a fourth sending unit configured to receive, by the first receiving unit 701, the first ALLJoyn sent by the first terminal running the ALLJoyn framework. And sending a second ALLJoyn message to the first terminal before the first ALLJoyn message is parsed to obtain the destination address and the first control instruction included in the first ALLJoyn message, where the second ALLJoyn message includes the The destination address of the second terminal.
  • the controller 70 sends the bound destination address of the second terminal to the first terminal in advance, so that the first control command sent by the first terminal can be accurately forwarded to the first terminal. Two terminals.
  • controller shown in FIG. 7 may also correspond to the corresponding description of the method embodiment shown in FIG. 3A, and details are not described herein again.
  • control between a terminal running an Internet of Things operating system based on the CoAP protocol and a terminal running the ALLJoyn framework can be implemented.
  • the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

Un mode de réalisation de la présente invention concerne un procédé de communication par protocole hétérogène, et un contrôleur. Dans le procédé selon l'invention, un contrôleur : reçoit, au moyen d'un CoAP, des premières informations de CoAP envoyées par un premier terminal exécutant un système d'exploitation de l'Internet des objets, et analyse les premières informations de CoAP pour obtenir une adresse cible et une première instruction de commande incluse dans les premières informations de CoAP, la première instruction de commande étant utilisée dans le système d'exploitation de l'Internet des objets pour ordonner une mise en œuvre d'une opération prédéfinie ; envoie à un second terminal désigné par l'adresse cible une seconde instruction de commande d'un framework AllJoyn et commande au second terminal exécutant le framework AllJoyn de mettre en œuvre une opération prédéfinie, sur la base de la seconde instruction de commande ; utilise la seconde instruction de commande dans le framework AllJoyn pour commander une mise en œuvre d'une opération prédéfinie ; et exécute le framework AllJoyn et le système d'exploitation de l'Internet des objets. L'invention permet d'exécuter une commande entre un terminal exécutant un système d'exploitation d'Internet des objets sur la base d'un CoAP et un terminal exploitant un framework AllJoyn.
PCT/CN2016/096015 2016-02-24 2016-08-19 Procédé de communication par protocole hétérogène, et contrôleur WO2017143743A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610101324.3A CN105530268A (zh) 2016-02-24 2016-02-24 一种异构协议互通方法及控制器
CN201610101324.3 2016-02-24

Publications (1)

Publication Number Publication Date
WO2017143743A1 true WO2017143743A1 (fr) 2017-08-31

Family

ID=55772250

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096015 WO2017143743A1 (fr) 2016-02-24 2016-08-19 Procédé de communication par protocole hétérogène, et contrôleur

Country Status (2)

Country Link
CN (1) CN105530268A (fr)
WO (1) WO2017143743A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073471A (zh) * 2020-08-17 2020-12-11 青岛海尔科技有限公司 设备的控制方法和装置、存储介质及电子装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530268A (zh) * 2016-02-24 2016-04-27 华为技术有限公司 一种异构协议互通方法及控制器
CN108496155A (zh) * 2017-06-15 2018-09-04 深圳市大疆创新科技有限公司 参数处理方法、设备、机器可读存储介质以及系统
CN110045705B (zh) * 2019-04-29 2021-12-21 生迪智慧科技有限公司 采用异构无线网络的智能家居控制方法、装置及系统
CN110474990A (zh) * 2019-09-10 2019-11-19 杭州字节信息技术有限公司 一种基于LiteOS物联网操作系统的多传感器数据融合系统
CN114238179B (zh) * 2021-11-26 2024-08-20 锐捷网络股份有限公司 一种数据传输系统、方法、设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054919B2 (en) * 2001-06-15 2006-05-30 Ei3 Corporation System and method for providing virtual online engineering of a production environment
CN102281251A (zh) * 2010-06-09 2011-12-14 中兴通讯股份有限公司 一种实现智能家居应用的装置、系统和方法
CN104660498A (zh) * 2015-03-17 2015-05-27 联想(北京)有限公司 网关设备和信息处理方法
CN105530268A (zh) * 2016-02-24 2016-04-27 华为技术有限公司 一种异构协议互通方法及控制器

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668189B (zh) * 2009-10-13 2011-07-20 中国电信股份有限公司 基于iptv的视频监控方法及系统
CN102438015A (zh) * 2011-12-13 2012-05-02 清华大学 一种物联网节点访问系统及方法
KR101697320B1 (ko) * 2013-01-11 2017-01-18 한국전자통신연구원 인터넷 기반 센서 데이터 전송 지원을 위한 장치 및 방법
CN103389717A (zh) * 2013-07-26 2013-11-13 Tcl空调器(中山)有限公司 控制家用电器输入电源的智能开关及系统
CN103391325B (zh) * 2013-07-30 2017-03-01 李想 物联网的网络操作系统装置及方法
CN104807134B (zh) * 2014-01-26 2017-06-30 广东美的制冷设备有限公司 空调运行模式自定义控制方法及系统
US9560170B2 (en) * 2014-03-21 2017-01-31 Ptc Inc. System and method of abstracting communication protocol using self-describing messages
CN104683193A (zh) * 2015-02-02 2015-06-03 惠州Tcl移动通信有限公司 一种通讯终端的应用方法及智能家庭系统
CN105142157B (zh) * 2015-07-29 2018-07-24 上海斐讯数据通信技术有限公司 基于SNMP和CoAP的报文转换方法、无线控制器及网络管理系统
CN105187306A (zh) * 2015-09-25 2015-12-23 苏州艾联智能科技有限公司 一种基于异构无线网络多通道融合的设备互联装置及方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054919B2 (en) * 2001-06-15 2006-05-30 Ei3 Corporation System and method for providing virtual online engineering of a production environment
CN102281251A (zh) * 2010-06-09 2011-12-14 中兴通讯股份有限公司 一种实现智能家居应用的装置、系统和方法
CN104660498A (zh) * 2015-03-17 2015-05-27 联想(北京)有限公司 网关设备和信息处理方法
CN105530268A (zh) * 2016-02-24 2016-04-27 华为技术有限公司 一种异构协议互通方法及控制器

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073471A (zh) * 2020-08-17 2020-12-11 青岛海尔科技有限公司 设备的控制方法和装置、存储介质及电子装置
CN112073471B (zh) * 2020-08-17 2023-07-21 青岛海尔科技有限公司 设备的控制方法和装置、存储介质及电子装置

Also Published As

Publication number Publication date
CN105530268A (zh) 2016-04-27

Similar Documents

Publication Publication Date Title
WO2017143743A1 (fr) Procédé de communication par protocole hétérogène, et contrôleur
CN105471686B (zh) 终端控制方法、装置及系统
US20210211511A1 (en) Systems and methods for enabling access to third party services via a service layer
KR101691446B1 (ko) 디바이스를 지능적으로 제어하는 방법, 장치, 및 시스템, 그리고 플러그앤플레이 디바이스
WO2019000827A1 (fr) Système, procédé et dispositif de commande pour appareil électroménager
WO2016145797A1 (fr) Procédé, dispositif et système de commande de maison intelligente
US20100121968A1 (en) System and method for automating operations of household systems from remote applications
US20090268754A1 (en) Methods, devices, and computer program products for remotely controlling operations of digital media devices using a mobile terminal
JP2013543189A (ja) Smsを用いて遠隔デバイスを制御する方法及びそのための装置
US9836958B2 (en) Device control method, server, system and computer storage medium
WO2017059703A1 (fr) Procédé de commande d'appareil de réseau, appareil de réseau, téléphone polyvalent, et système
JP5678184B2 (ja) 遠隔ユーザインターフェース管理装置及び方法とそのためのシステム
EP3478022A1 (fr) Itinérance d'un dispositif entre dispositifs stationnaires et dispositifs mobiles
GB2580419A (en) Electronic message control
US9148774B2 (en) Method and apparatus for communication using heterogeneous protocols
CN102523630A (zh) 一种无线泛在网络体系结构
CN106302093B (zh) 一种通信方法、系统及服务器
CN114114933A (zh) 物联网设备的控制方法、装置、设备及存储介质
KR20120008401A (ko) 홈 네트워크에서 멀티캐스트 메시지를 이용하여 복수 개의 원격 사용자 인터페이스 서버들을 제어하기 위한 장치 및 방법
CN112333062A (zh) 家居设备的控制方法、控制装置及计算机可读存储介质
WO2019184914A1 (fr) Procédé et dispositif de gestion d'installation domestique intelligente et système domestique intelligent
CN108924773B (zh) 消息处理方法及装置
CN108199933B (zh) 家电运行控制方法、系统、路由器及计算机可读存储介质
CN107370731B (zh) 基于自然语言实现不同应用之间通信的方法及装置
GB2580420A (en) Electronic message adaptation

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16891191

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16891191

Country of ref document: EP

Kind code of ref document: A1