CN115834735A - Communication method, device, medium and product between cloud and Internet of things equipment - Google Patents

Communication method, device, medium and product between cloud and Internet of things equipment Download PDF

Info

Publication number
CN115834735A
CN115834735A CN202111093890.1A CN202111093890A CN115834735A CN 115834735 A CN115834735 A CN 115834735A CN 202111093890 A CN202111093890 A CN 202111093890A CN 115834735 A CN115834735 A CN 115834735A
Authority
CN
China
Prior art keywords
target
request
internet
cloud
universal interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111093890.1A
Other languages
Chinese (zh)
Inventor
赵国炯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111093890.1A priority Critical patent/CN115834735A/en
Priority to PCT/CN2022/096086 priority patent/WO2023040350A1/en
Publication of CN115834735A publication Critical patent/CN115834735A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a communication method, a communication device, a communication medium and a communication product between a cloud and Internet of things equipment. The method is applied to cloud forwarding equipment and comprises the following steps: receiving a newly added function execution request sent by cloud application equipment, wherein the newly added function execution request comprises target newly added function related information of target Internet of things equipment; packaging related information of the target newly added function, generating a universal interface request, and marking the request type of the universal interface request; and sending the universal interface request marked with the request type to the target Internet of things equipment, wherein the universal interface request is used for indicating the target equipment in the target Internet of things equipment to execute the target newly added function. Based on the method, the corresponding content of the universal interface request is only required to be expanded once in the end cloud communication protocol, so that the cloud forwarding equipment can directly generate the universal interface request when receiving the newly added function execution request, and the corresponding content does not need to be expanded aiming at the newly added function, thereby improving the flexibility and efficiency of developing new end cloud communication services.

Description

Communication method, device, medium and product between cloud and Internet of things equipment
Technical Field
The invention relates to the field of Internet of things, in particular to a communication method, device, medium and product between a cloud and Internet of things equipment.
Background
Internet of things (IOT) technology is an information bearer based on the internet, a traditional telecommunication network, etc., and all common physical objects capable of being independently addressed form an interconnected network.
In the prior art, an internet of things cloud application needs to remotely request an internet of things device to realize a corresponding function, and usually an instruction needs to be designed for each function in a communication protocol between the internet of things device (end for short) and the internet of things cloud application (cloud for short). For each function, corresponding content needs to be developed for each function in the internet of things device, the internet of things cloud application and the corresponding communication system to support the function.
With the implementation manner in the prior art, if a new service or function is added to the internet of things device and the internet of things cloud application needs to remotely request the new service or function on the internet of things device, an instruction corresponding to the new service or function needs to be extended into a communication protocol between the end clouds, and corresponding contents are developed in the end, the cloud and the corresponding communication system to support the new service or the new function, so that the flexibility and efficiency of developing the new service of end cloud communication are low.
Disclosure of Invention
The invention provides a communication method, a communication device, a communication medium and a communication product between a cloud end and Internet of things equipment, which are used for solving the problems of low flexibility and low efficiency in developing new end cloud communication services.
In a first aspect, the present invention provides a communication method between a cloud and an internet of things device, which is applied to a cloud forwarding device, and the method includes: receiving a newly added function execution request sent by cloud application equipment, wherein the newly added function execution request comprises target newly added function related information of target Internet of things equipment, and the target newly added function related information represents information which is required to be indicated to the Internet of things equipment to realize the target newly added function; packaging the related information of the target newly added function to generate a universal interface request, and marking the request type of the universal interface request; and sending a universal interface request marked with a request type to the target Internet of things equipment, wherein the universal interface request is used for indicating the target equipment in the target Internet of things equipment to apply and execute the target newly added function.
Optionally, the cloud forwarding device includes a forwarding-end request broker component and a machine-to-machine (M2M) gateway; the receiving of the new function execution request sent by the cloud application device includes: receiving a newly added function execution request sent by cloud application equipment by adopting a forwarding end request agent component; the encapsulating the related information of the target newly added function, generating a universal interface request, and marking the request type of the universal interface request includes: and packaging the related information of the target newly added function by adopting an M2M gateway to generate a universal interface request, and marking the request type of the universal interface request.
Optionally, the information related to the target additional function includes: target Internet of things equipment identification information, target equipment application identification information, interface information of a target newly added function and interface input parameters; the encapsulating, by using the M2M gateway, the information related to the target newly added function, generating a universal interface request, and marking a request type of the universal interface request includes: packaging related information of the target newly added function by adopting an M2M gateway through a message queue telemetry transport protocol (MQTT) or a WIFI basic protocol to generate a universal interface request; the request type of the universal interface request is marked as a universal interface request type.
Optionally, the method further comprises: receiving an interface response message sent by target Internet of things equipment by using an M2M gateway, wherein the interface response message represents a response message which is fed back after a target newly-added function is executed and has an execution result and a response type; adopting the M2M gateway to analyze the interface response message to obtain the response type of the interface response message; and if the response type of the interface response message is determined to be the general interface response type, sending the target newly added function execution result in the interface response message to the cloud application equipment through a forwarding end request agent component.
In a second aspect, the invention provides a communication method between a cloud and an internet of things device, which is applied to the internet of things device, and the method includes: receiving a universal interface request sent by cloud forwarding equipment, wherein the universal interface request comprises: the information related to the target new function represents information which is required to be indicated to the equipment of the Internet of things for realizing the target new function; analyzing the universal interface request, and determining the target equipment application and the target newly-added function of the request; and executing the target additional function through the target equipment application.
Optionally, the internet of things device includes: the connection component and the interface request agent component; the information related to the target added function comprises: target internet of things equipment identification information, target equipment application identification information, target newly added function interface information and interface input parameters; the receiving of the universal interface request sent by the cloud forwarding device includes: receiving a universal interface request sent by cloud forwarding equipment by using the connecting component; the analyzing the universal interface request and determining the target equipment application and the target new function of the request comprises the following steps: adopting an interface request agent component to analyze the universal interface request to obtain target equipment application identification information and interface information of a target newly added function; and determining the target equipment application according to the target equipment application identification information, and determining the target added function according to the interface information of the target added function.
Optionally, the executing, by the target device application, the target addition function includes: and inputting the interface input parameters into a target device application of the Internet of things device, and executing the target newly-added function by adopting the target device application according to the interface input parameters.
Optionally, the method further comprises: adopting an interface request agent component to obtain an interface response message, and sending the interface response message to a connecting component, wherein the interface response message represents a response message which is fed back after the target new function is executed and has an execution result and a response type; packaging the interface response message by adopting the connecting component to form a universal interface response message, and marking the response type of the universal interface response message as a universal interface response type; and sending the universal interface response message to cloud forwarding equipment by adopting the connecting component.
In a third aspect, a communication device between a cloud and an internet of things device is provided, including: the cloud application device comprises a receiving module and a processing module, wherein the receiving module is used for receiving a newly-added function execution request sent by the cloud application device, the newly-added function execution request comprises target newly-added function related information of a target Internet of things device, and the target newly-added function related information represents information which is required to be indicated to the Internet of things device to achieve the target newly-added function; the processing module is used for packaging the related information of the target newly added function, generating a universal interface request and marking the request type of the universal interface request; the sending module is used for sending a universal interface request marked with a request type to the target Internet of things equipment, and the universal interface request is used for indicating the target equipment in the target Internet of things equipment to execute the target newly added function.
In a fourth aspect, a communication device between a cloud and an internet of things device is provided, including: the receiving module receives a universal interface request sent by the cloud forwarding device, wherein the universal interface request comprises: the information related to the target new function represents information which is required to be indicated to the equipment of the Internet of things for realizing the target new function; the determining module is used for analyzing the universal interface request and determining the target equipment application and the target newly-added function of the request; and the processing module executes the target additional function through the target equipment application.
In a fifth aspect, a cloud forwarding device is provided, including: at least one processor; and a memory and transceiver communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the transceiver is used for transceiving data with cloud application equipment and Internet of things equipment; the instructions are executable by the at least one processor to enable the at least one processor to perform the method of any one of the first aspect.
In a sixth aspect, an internet of things device is provided, including: at least one processor; and a memory and transceiver communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the transceiver is configured to transceive data with a cloud forwarding device; the instructions are executable by the at least one processor to enable the at least one processor to perform the method of any one of the second aspects.
In a seventh aspect, a computer-readable storage medium is provided, having stored thereon computer-executable instructions for implementing the method according to the first aspect, the second aspect, or any one of the first and second aspects when executed by a processor.
In an eighth aspect, there is provided a computer program product comprising a computer program which, when executed, causes a computer to perform the method of any one of the first, second or first and second aspects.
The embodiment of the invention provides a communication method, a communication device, a communication medium and a communication product between a cloud end and Internet of things equipment, wherein a newly added function execution request sent by cloud application equipment is received, and the newly added function execution request comprises target newly added function related information of target Internet of things equipment; packaging the related information of the target newly added function to generate a universal interface request, and marking the request type of the universal interface request; and sending a universal interface request marked with a request type to the target Internet of things equipment, wherein the universal interface request is used for indicating the target equipment in the target Internet of things equipment to apply and execute the target newly added function. In the embodiment of the invention, the corresponding content of the universal interface request is only required to be expanded once in the terminal cloud communication protocol, so that the cloud forwarding equipment can directly generate the universal interface request when receiving the newly added function execution request, and the corresponding content does not need to be expanded aiming at the newly added function, thereby improving the flexibility and efficiency of developing a new terminal cloud communication service.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic diagram of a network architecture of a communication method between a cloud and an internet of things device according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a communication method between a cloud and an internet of things device according to a first embodiment of the present invention;
fig. 3 is a schematic flow chart of a communication method between a cloud and an internet of things device according to a second embodiment of the present invention;
fig. 4 is a schematic flow chart of a communication method between a cloud and an internet of things device according to a third embodiment of the present invention;
fig. 5 is a schematic flow chart of a communication method between a cloud and an internet of things device according to a fourth embodiment of the present invention;
fig. 6 is a schematic flowchart of a communication method between a cloud and an internet of things device according to a fifth embodiment of the present invention;
fig. 7 is a schematic flowchart of a communication method between a cloud and an internet of things device according to a sixth embodiment of the present invention;
fig. 8 is a schematic flowchart of a communication method between a cloud and an internet of things device according to a seventh embodiment of the present invention;
fig. 9 is a schematic flowchart of a communication method between a cloud and an internet of things device according to an eighth embodiment of the present invention;
fig. 10 is a schematic block diagram of a communication device between a cloud and an internet of things device according to a first embodiment of the present invention;
fig. 11 is a schematic block diagram of a communication device between a cloud and an internet of things device according to a fifth embodiment of the present invention;
fig. 12 is a schematic block diagram of an electronic device provided in an embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The internet of things technology is an information bearer based on the internet, a traditional telecommunication network and the like, and all common physical objects which can be independently addressed form an interconnected network. In the embodiment of the invention, the corresponding technology and the existing problems are explained by combining the Internet of things cloud application and the Internet of things equipment in an interactive and developing manner.
In the prior art, the internet of things cloud application needs to remotely request the internet of things equipment to realize functions on the internet of things equipment, such as turning on an air conditioner, setting temperature, starting or stopping a local scene, and the like. Usually, an instruction needs to be designed for each function in a communication protocol between an internet of things device (end for short) and an internet of things cloud application (cloud for short). Meanwhile, for each function, corresponding content needs to be developed for each function in the internet of things device, the internet of things cloud application and the corresponding communication system to support the function. For example, for the operation of starting a local scene, if the cloud communication protocol is MQTT protocol, a topic (topic) is newly added, such as: the device comprises a device, a scene, a start and a service platform, wherein the device represents the equipment of the internet of things, the device Id represents the identification information of the equipment of the internet of things, the position of the scene represents a certain application on the corresponding equipment of the internet of things to be requested, the scene represents a local scene application, the position of the start represents a certain function of the corresponding application on the equipment of the internet of things to be requested, and the start represents the local scene application; if the end cloud communication protocol is the WIFI basic protocol, a command word is added, such as START _ SCENE, to indicate that the local SCENE application is started.
Similarly, for another example, for the operation of stopping the local scene, if the end cloud communication protocol is the MQTT protocol, a topic is added, for example: /device/{ deviceId }/scene/{ scene id }/stop; if the end cloud communication protocol is the WIFI basic protocol, a command word such as STOP _ SCENE is added. The meanings of the two are similar to the above, and are not repeated herein for brevity.
Therefore, in combination with the above description, with the implementation manner in the current technology, when a new service or function is added to the internet of things device and the internet of things cloud application needs to remotely request the new service or function on the internet of things device, an instruction corresponding to the new service or function needs to be extended to a communication protocol between the end clouds, and corresponding contents are developed in the end, the cloud, and the corresponding communication system to support the new service or the new function, so that flexibility and efficiency in developing a new service for end cloud communication are low.
For the problems in the prior art, the inventor finds, after research, that a new service or function is added to an internet of things device, and an application of an internet of things cloud needs to remotely request a newly added service or function on the internet of things device, if it is not necessary to extend content corresponding to each newly added service or function in a communication protocol between end clouds for each newly added service or function, a universal interface request is extended in the communication protocol between the end clouds, all newly added services or functions between the end clouds can be realized through the universal interface request, and it is not necessary to extend content corresponding to each newly added service or function in a cloud forwarding device, which is helpful to improve flexibility and efficiency of developing new services of end cloud communication.
The network architecture of the communication method between the cloud and the internet of things device provided by the embodiment of the invention is introduced below. As shown in fig. 1, a network architecture corresponding to the data search method provided in this embodiment includes a cloud application device 1, a cloud forwarding device 2, and an internet of things device 3, which are used for requesting an internet of things device interface. The internet of things device 3 may be at least one internet of things device, and two internet of things devices 31 and 32 are shown in fig. 1. It should be understood that the internet-of-things device is a device that can be remotely requested to be controlled for the cloud application device 1. The invention does not limit the type of the internet of things equipment. The cloud application device 1 is provided with an interface for requesting the internet of things device to realize a target new function, the internet of things device 3 is provided with an interface capable of realizing a target new service or corresponding to the function, the cloud application device 1 sends a request of the internet of things device target new function to the cloud forwarding device 2, the cloud forwarding device 2 forwards the request to the internet of things device 3, the internet of things device 3 analyzes the corresponding request and realizes the corresponding target new function, an execution result of the target new function is forwarded to the cloud forwarding device 2, and the cloud forwarding device 2 can forward the execution result of the target new function to the cloud application device 1.
Implement one
Fig. 2 is a schematic flow chart of a communication method between a cloud and an internet of things device according to a first embodiment of the present invention, and as shown in fig. 2, an execution main body of the embodiment of the present invention is a communication device between the cloud and the internet of things device, and the communication device between the cloud and the internet of things device is located in a cloud forwarding device, so that the communication method between the cloud and the internet of things device according to the present embodiment includes the following steps.
Step 201, the cloud forwarding device receives a new function execution request sent by the cloud application device.
The newly added function execution request comprises target newly added function related information of the target Internet of things equipment. The information related to the target added function represents information that needs to be indicated to the internet of things device to achieve the target added function, and can be used for bearing information such as a device, an interface, a request type and parameters needing to be input, which correspond to the target added function.
It can be understood that the cloud forwarding device is used for finding out which internet of things device can complete the new function in the new function execution request, and sending the new function to the corresponding internet of things device. Therefore, the newly added function execution request at least includes identification information corresponding to the target internet of things device.
It should also be understood that, although the cloud forwarding device provided in this embodiment does not need to pay attention to what the new function is, after the cloud forwarding device forwards the new function execution request to the target internet of things device, the target internet of things device finds an interface for implementing the target new function according to the new function execution request, and invokes a corresponding interface to implement the target new function. Therefore, the new function execution request may include the target new function related information of the target internet of things device. The information related to the target added function may include an application, an interface, and corresponding parameters for implementing the target added function.
Step 202, packaging the related information of the target added function, generating a universal interface request, and marking the request type of the universal interface request.
The generic interface may be understood as a software interface developed for at least one new function, and the software interface may be understood as a generic software interface for different functions. The request type of the universal interface request is different from the request types of other existing functions, and the universal interface request type is a universal interface request type and represents a request type corresponding to a universal software interface request corresponding to the newly added function. That is, after at least one new function is added to the target internet of things device, the cloud application device may generate the universal interface request based on the information related to the at least one new function, so that the target internet of things device calls the corresponding application and interface to implement the at least one new function based on the universal interface request, in order to realize the at least one new function by the target internet of things device.
It should be understood that the generic interface requests that the corresponding content is predefined, e.g., may be well defined in the protocol.
And step 203, sending the universal interface request marked with the request type to the target internet of things equipment.
The universal interface request comprises identification information corresponding to the target Internet of things equipment, so that the universal interface request marked with the request type can be sent to the target Internet of things equipment according to the identification information corresponding to the target Internet of things equipment.
The universal interface request is used for indicating target equipment in the target Internet of things equipment to apply and execute a target new function.
The communication method between the cloud and the internet of things equipment provided by the embodiment is applied to the cloud forwarding equipment, and comprises the steps of receiving a newly added function execution request sent by cloud application equipment, wherein the newly added function execution request comprises target newly added function related information of target internet of things equipment; packaging the related information of the target newly added function to generate a universal interface request, and marking the request type of the universal interface request; and sending a universal interface request marked with a request type to the target Internet of things equipment, wherein the universal interface request is used for indicating the target equipment in the target Internet of things equipment to apply and execute the target newly added function. Due to the fact that a function is added, a software interface corresponding to the added function needs to be correspondingly added to the cloud forwarding device, and a corresponding instruction needs to be expanded in the end cloud communication protocol to conveniently support the function, so that flexibility and efficiency of developing new end cloud communication services are low. Therefore, in the embodiment of the invention, the corresponding content of the universal interface request only needs to be expanded once in the end cloud communication protocol, so that the cloud forwarding equipment can directly generate the universal interface request when receiving the newly added function execution request, and the corresponding content does not need to be expanded aiming at the newly added function, thereby improving the flexibility and efficiency of developing new end cloud communication services.
Example two
Fig. 3 is a schematic flow chart of a data search method according to a second embodiment of the present invention, and as shown in fig. 3, the communication method between the cloud and the internet of things device according to the present embodiment is further refined in step 201 and step 202 based on the communication method between the cloud and the internet of things device according to the first embodiment of the present invention, where step 301 is further refined in step 201, and step 302 is further refined in step 202. The cloud forwarding device may include a forwarding end request proxy component and an M2M gateway, and the communication method between the cloud and the internet of things device provided in this embodiment includes the following steps:
step 301, receiving a new function execution request sent by the cloud application device by using a forwarding end request agent component.
It can be understood that the request agent component at the forwarding end is a predefined software interface, and is configured to receive the request for executing the new function, and convert the request for executing the new function into a request that can be recognized by the M2M gateway.
The forwarding terminal request agent component is a component specially receiving a new function execution request sent by the cloud application device. It is to be understood that, if the cloud application device sends the non-added function execution request, the non-added function execution request may be directly received by the M2M gateway.
And step 302, packaging the related information of the target newly added function by using the M2M gateway, generating a universal interface request, and marking the request type of the universal interface request.
Wherein, the information related to the target new function comprises: the target internet of things equipment identification information, the target equipment application identification information, the interface information of the target newly added function and the interface input parameters.
It can be understood that how to generate the content of the universal interface request according to the information related to the target newly added function is already defined in the end cloud communication protocol. The form of the target internet of things device identification information can also be understood as predefined.
Next, each piece of information of the target newly added function related information is described by taking an example that the end cloud communication protocol is MQTT. The target internet of things equipment identification information can be represented as deviceId, and the target internet of things equipment identification information can be information which uniquely represents the target internet of things equipment, such as the serial number, the name and the model of the target internet of things equipment; the target device application identification information may be represented as a service, and the target device application identification information may be information uniquely representing a certain application in the target internet of things device, such as "scene" (local scene application), by a serial number, a name, a model, and the like corresponding to the certain application in the target internet of things device; the interface information of the target newly added function may be represented as apiName, and may represent an API corresponding to a certain function corresponding to a certain application, such as "start" (start local scene application); the interface input parameter may be denoted params, which represents an input parameter required for a certain function as described above, and may be a list of a plurality of parameter value pairs (key-values).
It should be understood that one M2M gateway corresponds to a plurality of internet of things devices, and therefore, the information related to the target new function at least includes target internet of things device identification information, which is used by the M2M gateway to identify the internet of things device corresponding to the target new function.
It should be further understood that the target device application identification information, the interface information of the target newly added function and the interface input parameters are used for the subsequent internet of things device to determine the application corresponding to the realization of the target newly added function, and the corresponding interface information and the parameters required for realizing the target newly added function.
According to the communication method between the cloud and the internet of things device, a request agent component of a forwarding end is adopted to receive a new function execution request sent by a cloud application device; and packaging the related information of the target newly added function by adopting the M2M gateway to generate a universal interface request, and marking the request type of the universal interface request. Aiming at the new function, the cloud forwarding device deploys a universal interface specially used for receiving and sending related information of the new function, namely a forwarding end request proxy component, the forwarding end request proxy component sends an execution request of the new function to the M2M gateway, the forwarding end request proxy component and the M2M gateway both have pre-stored corresponding information for converting the related information of the new function into the universal interface request, and the M2M gateway only needs to convert the related information of the new function into the universal interface request and send the universal interface request to the Internet of things device.
EXAMPLE III
Fig. 4 is a schematic flow chart of a communication method between a cloud and an internet of things device according to a third embodiment of the present invention, and as shown in fig. 4, the communication method between the cloud and the internet of things device according to this embodiment is further detailed in step 302 on the basis of the communication method between the cloud and the internet of things device according to the second embodiment of the present invention, and then the communication method between the cloud and the internet of things device according to this embodiment includes the following steps:
step 401, packaging the information related to the target added function by using an M2M gateway through an MQTT or WIFI basic protocol to generate a universal interface request.
It should be understood that MQTT or WIFI base protocols may be understood as end cloud communication protocols.
Exemplarily, the process of encapsulating the information related to the target added function is described below by taking an end cloud communication protocol MQTT as an example. As described above, the information related to the target additional function may include: target internet of things device identification information (for example, deviceId), target device application identification information (for example, service), target newly added function interface information (for example, apiName), and interface input parameters (for example, params). And packaging the information related to the target added function into a message with a topic name (topic name) of 'Application Programming Interface (API) request', and generating a universal interface request. The generic interface request may be, for example,/device/{ device id }/API/req, and is issued to the topic (topic) corresponding to the generic API request. The api in the generic interface request of the above example may correspond to the interface information of the target newly added function in the foregoing, and req corresponds to the interface input parameter in the foregoing.
It should be understood that the end cloud communication protocol may extend the relevant information of the universal interface request, so that the internet of things device may analyze the packaged universal interface request to obtain the relevant information of the target new function.
Step 402, marking the request type of the universal interface request as the universal interface request type.
It should be understood that, in the embodiment of the present invention, the generic interface request type may be regarded as a type specifically set for the newly added function. The generic interface request type may correspond to, for example, the "generic API request" above.
The communication method between the cloud and the internet of things device provided by the embodiment is applied to a cloud forwarding device, and the information related to the target new function is encapsulated by adopting an M2M gateway and an MQTT or WIFI basic protocol to generate a universal interface request; the request type of the universal interface request is marked as the universal interface request type. In this embodiment, for a target new function, a cloud-end communication protocol MQTT or WIFI basic protocol may be used to expand the relevant content of a universal interface request, so that when the new function is added, because the M2M gateway has pre-stored the relevant content for converting the information related to the new function into the universal interface request, the M2M gateway only needs to convert the information related to the new function into the universal interface request, and does not need to re-expand the instruction corresponding to the new function in the cloud-end communication protocol, therefore, when the new function is added, the M2M gateway can quickly determine that the received request is a new function execution request, and can quickly generate the universal interface request, thereby improving the flexibility and efficiency of developing new services of cloud-end communication.
Example four
Fig. 5 is a schematic flow chart of a communication method between a cloud and an internet of things device according to a fourth embodiment of the present invention, and as shown in fig. 5, the communication method between the cloud and the internet of things device according to this embodiment is based on the communication method between the cloud and the internet of things device according to any one of the foregoing embodiments of the present invention, and further includes a process in which a cloud forwarding device processes a universal interface response type message, and then the communication method between the cloud and the internet of things device according to this embodiment includes the following steps:
step 501, an M2M gateway is adopted to receive an interface response message sent by a target internet of things device.
The interface response message may represent a response message with an execution result and a response type, which is fed back after the target new function is executed, and may be used to carry a device, an interface, a response type, and an execution result corresponding to the implementation of a certain function.
It should be understood that the interface reply message may be a general interface reply type message or other interface reply messages. The message of the generic interface response type corresponds to the message of the generic interface request type in the foregoing, and therefore, if the interface response message is a message of the generic interface response type, the interface response message may be used to indicate a response message with an execution result and a response type, which is fed back after the target addition function is executed, and may be used to carry, for example, a device, an interface, a response type, and an execution result corresponding to the target addition function.
Step 502, the interface response message is analyzed by the M2M gateway to obtain the response type of the interface response message.
In the embodiment of the present invention, the response type may be a generic interface response type corresponding to the generic interface request type or another interface response type. The universal interface response type can be understood as a response type corresponding to a universal interface response message obtained after the internet of things equipment processes the universal interface response message. And the universal interface response message represents a universal interface response message corresponding to the newly added function.
Step 503, if the response type of the interface response message is determined to be the general interface response type, sending the target new function execution result in the interface response message to the cloud application device through the forwarding end request agent component.
It is to be understood that the relevant content of the universal interface response may be predefined, for example, the relevant content of the universal interface response is defined in the cloud communication protocol, so that the M2M gateway may determine whether the type of the interface response message is the universal interface response type.
It should be understood that the forwarding end request agent component is a general interface specially used for receiving and sending the related information of the new function, and therefore, if the response type of the interface response message is determined to be the general interface response type, the forwarding end request agent component sends the target new function execution result to the cloud application device.
The target added function execution result may be a result of successful execution of the target added function, or a result of failed execution of the target added function.
The communication method between the cloud and the internet of things device provided by the embodiment is applied to a cloud forwarding device, and receives an interface response message sent by a target internet of things device by adopting an M2M gateway; adopting the M2M gateway to analyze the interface response message to obtain the response type of the interface response message and the target newly added function execution result; and if the response type of the interface response message is determined to be the universal interface response type, sending the target newly added function execution result to the cloud application equipment through a forwarding end request agent component. In this embodiment, for the target new function, the cloud forwarding device deploys a universal interface, that is, a forwarding end request proxy component, which is specially used for receiving and sending information related to the new function, so that when the function is added, the M2M gateway can directly receive a response of the universal interface and forward the response to the forwarding end request proxy component, so that the forwarding end request proxy component forwards the response to the cloud application device, and the forwarding end request proxy component and the M2M gateway do not need to develop corresponding content for the new function, and only forward the response, thereby reducing complexity of end cloud transmission and improving flexibility and efficiency of developing new end cloud communication services.
EXAMPLE five
Fig. 6 is a schematic flowchart of a communication method between a cloud and an internet of things device according to a fifth embodiment of the present invention, and fig. 6 is a schematic flowchart of a communication method between a cloud and an internet of things device according to a fifth embodiment of the present invention, as shown in fig. 6, an execution subject of the embodiment of the present invention is a communication device between a cloud and an internet of things device, and the communication device between the cloud and the internet of things device is located in the internet of things device, so that the communication method between the cloud and the internet of things device according to the present embodiment includes the following steps:
step 601, receiving a universal interface request sent by a cloud forwarding device.
Wherein, the universal interface request includes: and related information of the target added function.
It is to be understood that this step corresponds to step 203 in the first embodiment.
In step 302, the universal interface request may be encapsulated with the information related to the target additional function, and therefore, the universal interface request includes the information related to the target additional function. The related information of the target added function may specifically refer to the related description above, and is not described herein again.
Step 602, the generic interface request is analyzed to determine the requested target device application and the target addition function.
It should be understood that the internet of things device deploys the relevant content of the universal interface request, and the universal interface request includes the relevant information of the target newly added function, that is, the universal interface request at least includes the identification information of the target internet of things device, the application identification information of the target device, and the interface information of the target newly added function. Therefore, the specific target internet of things equipment can be determined according to the identification information of the target internet of things equipment, the application of the target equipment is determined according to the application identification information of the target equipment, and the interface corresponding to the target newly added function is determined according to the interface information of the target newly added function. The target equipment application can be understood as the application capable of realizing the target new function on the target internet of things equipment.
It should also be understood that, since the information related to the target added function also includes the interface input parameters of the target added function, the universal interface request also includes the interface input parameters of the target added function.
Step 603, executing the target adding function through the target device application.
In step 602, the target device application may call an interface corresponding to the target added function, and implement the corresponding target added function based on the interface input parameter of the target added function.
The communication method between the cloud and the internet of things device provided by this embodiment is applied to the internet of things device, and receives a universal interface request sent by a cloud forwarding device, where the universal interface request includes: relevant information of a target new function; analyzing the universal interface request, and determining the target equipment application and the target newly-added function of the request; and executing the target additional function through the target equipment application. In the embodiment of the invention, as the related information of the target new added function is encapsulated into the universal interface request in the cloud forwarding equipment, all new added functions between end clouds can be realized through the universal interface request, and the corresponding content of the universal interface request is only required to be expanded once in the cloud forwarding equipment, so that the corresponding content does not need to be expanded for each new added function, the processing steps of the cloud forwarding equipment are reduced on the whole, the processing speed of the new added function is increased, and the flexibility and the efficiency of developing new services of end cloud communication are improved.
EXAMPLE six
Fig. 7 is a schematic flow chart of a communication method between a cloud and an internet of things device according to a sixth embodiment of the present invention, and as shown in fig. 7, the communication method between the cloud and the internet of things device according to the present embodiment is further refined in step 601 and step 602 on the basis of the communication method between the cloud and the internet of things device according to the fifth embodiment of the present invention, where step 701 is further refined in step 601, and step 702 is further refined in step 602. The internet of things device may include: the connection component and the interface request proxy component, the communication method between the cloud and the internet of things device provided by this embodiment includes the following steps:
step 701, a connection component is adopted to receive a universal interface request sent by a cloud forwarding device.
It is to be appreciated that the connection component is operative to forward the received generic interface request to the interface request broker component.
And 702, analyzing the universal interface request by adopting an interface request agent component, and determining the target equipment application and the target addition function of the request.
The interface request agent component is a component deployed on the internet of things device for a newly added function, and can be used for analyzing the universal interface request. The universal interface request can be obtained by packaging related information of the target new function, so that the universal interface request comprises related information of the target new function, and the related information of the target new function comprises related information of the target device application and the target new function, so that the universal interface request can be used for determining the requested target device application and the target new function.
Specifically, step 702 can be divided into two steps, step 7021 and step 7022, which are described in detail below.
Step 7021, the interface request agent component is used to analyze the universal interface request to obtain the application identifier information of the target device and the interface information of the target newly added function.
Step 7022, determine the target device application according to the target device application identification information, and determine the target added function according to the interface information of the target added function.
And 703, inputting the interface input parameters into target equipment application of the internet of things equipment, and executing the target newly added function by adopting the target equipment application according to the interface input parameters.
It should be understood that the target device application is installed in the internet of things device, so this step can be implemented by a certain software module of the internet of things device.
The communication method between the cloud and the internet of things device provided in this embodiment is applied to the internet of things device, and receives a universal interface request sent by a cloud forwarding device, where the universal interface request includes: relevant information of a target new function; analyzing the universal interface request, and determining the target equipment application and the target newly-added function of the request; and executing the target additional function through the target equipment application. In the embodiment of the invention, as the information related to the target new function is encapsulated into the universal interface request at the cloud forwarding device, the internet of things device receives the universal interface request sent by the cloud forwarding device, namely, the information related to the target new function is obtained, and the universal interface request is processed by deploying the corresponding interface request proxy component and the universal interface request proxy component is cooperated with the cloud forwarding device to complete the processing of the target new function, so that the processing process of the cloud forwarding device is simpler, and the processing process of the target new function is simpler.
EXAMPLE seven
Fig. 8 is a schematic flowchart of a communication method between a cloud and an internet of things device according to a seventh embodiment of the present invention, and as shown in fig. 8, the communication method between the cloud and the internet of things device according to this embodiment is based on the communication method between the cloud and the internet of things device according to the fifth or sixth embodiment of the present invention, and further includes a process of processing a universal interface response type message by the internet of things device, and then the communication method between the cloud and the internet of things device according to this embodiment includes the following steps:
step 801, the interface request proxy component is adopted to obtain an interface response message, and the interface response message is sent to the connection component.
The interface request agent component is a component deployed on the internet of things device for a newly added function, can be used for analyzing the universal interface request, and can also be used for acquiring an interface response message and sending the interface response message to the connecting component.
It should be understood that the interface request proxy component is a component corresponding to a general interface that is specifically used for receiving and sending information related to the newly added function, and therefore, if it is determined that an interface response message is received, the interface request proxy component may send an execution result of the target newly added function to the cloud application device.
The description of the interface response message in the fourth embodiment is not repeated herein for brevity.
And 802, packaging the interface response message by adopting the connecting component to form a universal interface response message, and marking the response type of the universal interface response message as the universal interface response type.
For the response type of the interface response message, reference may be made to the related description in step 502, and details are not described herein for brevity.
For the convenience of understanding, the process of encapsulating the interface response message is illustrated here, and is similar to the process of encapsulating the information related to the target added function. For example, the interface response message may include: target internet of things device identification information (for example, deviceId), target device application identification information (for example, service), interface information of the target newly added function (for example, apiName), and a target newly added function execution result. And packaging the related information of the target newly added function into a message with a topic name (topic name) of 'Application Programming Interface (API) response', and generating an interface response message. The interface response message may be, for example,/device/{ device id }/API/resq, and is issued to the topic (topic) corresponding to the generic API request. The api in the above-mentioned example universal interface request may correspond to the interface information of the target new added function, and resq corresponds to the execution result of the target new added function.
And 803, sending the universal interface response message to the cloud forwarding device by using the connecting component.
The communication method between the cloud and the internet of things device provided by the embodiment is applied to the internet of things device, and the interface response message is acquired by adopting the interface request agent component and is sent to the connecting component; packaging the interface response message by adopting the connecting component to form a universal interface response message, and marking the response type of the universal interface response message as a universal interface response type; and sending the universal interface response message to cloud forwarding equipment by adopting the connecting component. Due to the fact that a function is added, the embodiment of the invention adopts a universal interface request to send corresponding information to the Internet of things equipment in the cloud forwarding equipment. Therefore, in this embodiment, for the target new function, at the internet of things device side, an "interface request proxy component" is deployed to forward the "universal interface response" message to the cloud forwarding device, and then the "universal interface response" message may be further processed by using the method of the fifth embodiment. As described in the fifth embodiment, since the relevant content of the "universal interface response" may be predefined, the cloud forwarding device may directly forward to the cloud application device, and it is not necessary to expand the corresponding content in the cloud forwarding device and the end cloud communication protocol again, thereby reducing the complexity of end cloud transmission and improving the flexibility and efficiency of developing new end cloud communication services.
Example eight
Fig. 9 is a schematic flow chart of a communication method between a cloud and an internet of things device according to an eighth embodiment of the present invention, and the method according to the eighth embodiment of the present invention is mainly described in an interaction process of a cloud application device 1, a cloud forwarding device 2, and a target internet of things device 31.
It should be understood that the cloud application device 1, the cloud forwarding device 2, and the target internet of things device 31 may correspond to the application device 1, the cloud forwarding device 2, and the internet of things device 31 in fig. 1 above.
The cloud application device 1 includes at least one application, and fig. 9 shows 4 applications, which are a cloud application 11, a cloud application 12, a cloud application 13, and a cloud application 14; the cloud forwarding device 2 may include a forwarding-end request broker component 5 and an M2M gateway 6; the target internet of things device 31 may include the connection component 7, the interface request broker component 8, and the target device application 9. The following describes a communication method between the cloud and the internet of things device provided in this embodiment with reference to fig. 9. As shown in fig. 9, the communication method between the cloud and the internet of things device provided in this embodiment may include the following steps:
in step 901, an application (for example, the cloud application 11) in the cloud application device 1 sends a request for executing a new function to the cloud forwarding device 2.
Accordingly, the forwarding-end request proxy component 5 in the cloud forwarding device 2 receives the new function execution request.
In step 902, the forwarding-end request broker component 5 forwards the new function execution request to the corresponding M2M gateway 6.
In step 903, the M2M gateway 6 issues the new function execution request to the corresponding target internet of things device 31.
It is understood that the M2M gateway 6 may convert the new function execution request into a generic interface request that can be recognized by the target internet of things device 31.
It should be understood that the relevant content of the universal interface request may be predefined, for example, the content included in the universal interface request and the corresponding meaning of each content may be defined in the cloud-side communication protocol, which may be specifically referred to in the foregoing description of the second embodiment.
Accordingly, the connection component 7 of the target internet of things device 31 is configured to receive the generic interface request.
At step 904, the connection component 7 forwards the generic interface request to the interface request broker component 8.
In step 905, the interface request broker component 8 forwards the generic interface request to the corresponding target device application 9.
At step 906, the target device application 9 returns the execution result to the interface request broker component 8.
It can be understood that after receiving the universal interface request, corresponding processing may be performed to obtain the target new function execution result. For the sake of brevity, the detailed description is omitted herein.
In step 907, the interface request broker component 8 returns the execution result to the connection component 7.
In step 908, the connection component 7 returns the execution result to the M2M gateway 6.
In step 909, the M2M gateway 6 returns the execution result to the forwarder request broker component 5.
In step 910, the forwarding end request agent component 5 returns the execution result to the cloud application 11.
It should be understood that the specific details of the above process may be found in relation to other embodiments of the invention and will not be discussed herein for the sake of brevity.
According to the method provided by the embodiment, the newly added function execution request can be converted into the universal interface request, the universal interface request is predefined, and both the cloud forwarding device and the Internet of things device can identify the universal interface request, so that the cloud forwarding device does not need to expand corresponding contents for each newly added function for many times, and only needs to expand corresponding contents of the universal interface request for one time, and therefore, the complexity of end cloud transmission is reduced for the target newly added function, and the flexibility and the efficiency for developing new end cloud communication services are improved.
Fig. 10 is a schematic block diagram of a communication device between a cloud and an internet of things device according to a first embodiment of the present invention. As shown in fig. 10, the communication apparatus may correspond to a cloud forwarding device. The apparatus 1000 comprises: a receiving module 1010, a processing module 1020, and a transmitting module 1030. Wherein: a receiving module 1010, configured to receive a new function execution request sent by a cloud application device, where the new function execution request includes target new function related information of a target internet of things device, and the target new function related information indicates information that is required to be indicated to the internet of things device to implement the target new function; a processing module 1020, configured to encapsulate the information related to the target newly added function, generate a universal interface request, and mark a request type of the universal interface request; a sending module 1030, configured to send a universal interface request marked with a request type to a target internet of things device, where the universal interface request is used to instruct a target device in the target internet of things device to execute the target addition function.
Optionally, the receiving module 1010 is specifically configured to receive, by using a forwarding end request proxy component, a new function execution request sent by the cloud application device when receiving the new function execution request sent by the cloud application device; the processing module 1020 is specifically configured to encapsulate the information related to the target newly added function, generate a generic interface request, and mark a request type of the generic interface request, where the encapsulation is performed on the information related to the target newly added function by using an M2M gateway, generate a generic interface request, and mark a request type of the generic interface request.
Optionally, the processing module 1020 is specifically configured to package, by using the M2M gateway, the target newly added function related information to generate a universal interface request, and mark a request type of the universal interface request, and package, by using the M2M gateway and through an MQTT or WIFI basic protocol, the target newly added function related information to generate a universal interface request; the request type of the universal interface request is marked as the universal interface request type.
Optionally, the receiving module 1010 is further configured to receive, by using the M2M gateway, an interface response message sent by the target internet of things device, where the interface response message indicates a response message with an execution result and a response type, which is fed back after the target new function is executed; the processing module 1020 is further configured to analyze the interface response message by using the M2M gateway to obtain a response type of the interface response message; and if the response type of the interface response message is determined to be the general interface response type, sending the target newly added function execution result in the interface response message to the cloud application equipment through a forwarding end request agent component.
Fig. 11 is a schematic block diagram of a communication device between a cloud and an internet of things device according to a fifth embodiment of the present invention. The communication device may correspond to an internet of things device. As shown in fig. 11, the apparatus 1100 includes: a receiving module 1110, a determining module 1120, and a processing module 1130. Wherein: a receiving module 1110, configured to receive a universal interface request sent by a cloud forwarding device, where the universal interface request includes: the information related to the target new function represents information which is required to be indicated to the equipment of the Internet of things for realizing the target new function; a determining module 1120, configured to analyze the universal interface request, and determine a target device application and a target new function of the request; a processing module 1130, configured to execute the target addition function through the target device application.
Optionally, the receiving module 1110 is specifically configured to receive, by using the connection component, the universal interface request sent by the cloud forwarding device when receiving the universal interface request sent by the cloud forwarding device.
Optionally, the determining module 1120 is specifically configured to, when analyzing the generic interface request and determining the requested target device application and the target added function, analyze the generic interface request by using the interface request broker component to obtain the target device application identification information and the interface information of the target added function; and determining the target equipment application according to the target equipment application identification information, and determining the target added function according to the interface information of the target added function.
Optionally, the processing module 1130 is specifically configured to input the interface input parameter into a target device application of the internet of things device, and execute the target add-on function according to the interface input parameter by using the target device application.
Optionally, the communication device may further include a sending module, configured to acquire an interface response message by using an interface request broker component, and send the interface response message to the connection component, where the interface response message indicates a response message with an execution result and a response type, fed back after the target new function is executed; the processing module 1130 is further configured to encapsulate the interface response message by using the connection component to form a general interface response message, and mark a response type of the general interface response message as a general interface response type; the sending module is further used for sending the universal interface response message to the cloud forwarding device by adopting the connecting component.
Fig. 12 is a schematic block diagram of an electronic device provided in an embodiment of the present invention. As shown in fig. 12, includes: at least one processor 1210; and a memory 1220 in communicative connection with the at least one processor 1210; the memory stores instructions executable by the at least one processor 1210 to enable the at least one processor 1210 to perform the method for communication between a cloud and an internet of things device according to any one of the embodiments.
For example, if the electronic device corresponds to the cloud forwarding device in the foregoing method embodiment, the processor 1210 may be configured to receive a new function execution request sent by the cloud application device, where the new function execution request includes target new function related information of the target internet of things device; packaging the related information of the target newly added function to generate a universal interface request, and marking the request type of the universal interface request; and sending a universal interface request marked with a request type to the target Internet of things equipment, wherein the universal interface request is used for indicating the target equipment in the target Internet of things equipment to apply and execute the target newly added function. For details, detailed descriptions in the method embodiments are omitted here.
If the electronic device corresponds to the internet of things device in the foregoing method embodiment, the processor 1210 may be configured to receive a universal interface request sent by the cloud forwarding device, where the universal interface request includes: relevant information of a target new function; analyzing the universal interface request, and determining the target equipment application and the target newly-added function of the request; and executing the target additional function through the target equipment application. For details, detailed descriptions in the method embodiments are omitted here.
Optionally, the electronic device may also include at least one memory 1220 for storing program instructions and/or data. The memory 1220 is coupled with the processor 1210. The coupling in the embodiments of the present invention is an indirect coupling or a communication connection between devices, units or modules, and may be an electrical, mechanical or other form for information interaction between the devices, units or modules. The processor 1210 may operate in conjunction with the memory 1220. Processor 1210 may execute program instructions stored in memory 1220. At least one of the at least one memory may be included in the processor.
Optionally, the electronic device may also include a communication interface 1230 for communicating with other devices over a transmission medium so that the apparatus used in the electronic device may communicate with other devices. Exemplarily, if the electronic device corresponds to the cloud forwarding device in the method embodiment, the other device may be an internet of things device; if the electronic device corresponds to the internet of things device in the method embodiment, the other device may be a cloud forwarding device. The communication interface 1230 may be, for example, a transceiver, an interface, a bus, a circuit, or a device capable of performing a transceiving function. The processor 1210 may utilize the communication interface 1230 to send and receive data and/or information and is configured to implement the methods performed by the cloud forwarding device and the internet of things device in any of the above embodiments.
The embodiment of the present invention does not limit the specific connection medium between the processor 1210, the memory 1220 and the communication interface 1230. In fig. 12, the processor 1210, the memory 1220 and the communication interface 1230 are connected via a bus 1240. The bus 1240 is represented by a thick line in fig. 12, and the connection between other components is merely illustrative and not intended to be limiting. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 12, but that does not indicate only one bus or one type of bus.
It should also be understood that the division of the modules in the embodiments of the present invention is illustrative, and is only one logical function division, and there may be other division manners in actual implementation. In addition, functional modules in the embodiments of the present invention may be integrated into one processor, may exist alone physically, or may be integrated into one module by two or more modules. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The present invention also provides a computer program product comprising: a computer program (also referred to as code, or instructions) that, when executed, causes a computer to perform a communication method between a cloud and an internet of things device in any of the embodiments shown in fig. 2 to 9.
The present invention also provides a computer-readable storage medium having stored thereon a computer program (also referred to as code, or instructions). When the computer program is executed, the computer is caused to execute the communication method between the cloud and the internet of things device in any one of the embodiments shown in fig. 2 to fig. 9.
It should be understood that the processor in the embodiments of the present invention may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and combines hardware thereof to complete the steps of the method.
It will also be appreciated that the memory in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM, enhanced SDRAM, SLDRAM, synchronous Link DRAM (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
As used in this specification, the terms "unit," "module," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution.
Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps (step) described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the above embodiments, the functions of the functional units may be fully or partially implemented by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). The procedures or functions according to the embodiments of the present invention are wholly or partially generated when the computer program instructions (program) are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (12)

1. A communication method between a cloud and an Internet of things device is characterized in that the method is applied to a cloud forwarding device and comprises the following steps:
receiving a newly added function execution request sent by cloud application equipment, wherein the newly added function execution request comprises target newly added function related information of target Internet of things equipment, and the target newly added function related information represents information which is required to be indicated to the Internet of things equipment to realize the target newly added function;
packaging the related information of the target newly added function to generate a universal interface request, and marking the request type of the universal interface request;
and sending a universal interface request marked with a request type to the target Internet of things equipment, wherein the universal interface request is used for indicating the target equipment in the target Internet of things equipment to apply and execute the target newly added function.
2. The method of claim 1, wherein the cloud forwarding device comprises a forwarding-end request broker component and an M2M gateway;
the receiving of the new function execution request sent by the cloud application device includes:
receiving a newly added function execution request sent by cloud application equipment by adopting a request agent component of a forwarding end;
the encapsulating the related information of the target newly added function, generating a universal interface request, and marking the request type of the universal interface request includes:
and packaging the related information of the target newly added function by adopting an M2M gateway to generate a universal interface request, and marking the request type of the universal interface request.
3. The method of claim 2, wherein the information related to the target added function comprises: target Internet of things equipment identification information, target equipment application identification information, interface information of a target newly added function and interface input parameters;
the encapsulating, by the M2M gateway, the information related to the target newly added function to generate a universal interface request, and marking a request type of the universal interface request includes:
packaging related information of the target newly added function by adopting an M2M gateway through an MQTT or WIFI basic protocol to generate a universal interface request;
the request type of the universal interface request is marked as the universal interface request type.
4. The method according to any one of claims 1-3, further comprising:
receiving an interface response message sent by target Internet of things equipment by using an M2M gateway, wherein the interface response message represents a response message which is fed back after a target newly-added function is executed and has an execution result and a response type;
adopting the M2M gateway to analyze the interface response message to obtain the response type of the interface response message;
and if the response type of the interface response message is determined to be the universal interface response type, sending the target newly increased function execution result in the interface response message to the cloud application equipment through a forwarding end request agent component.
5. A communication method between a cloud and Internet of things equipment is characterized in that the method is applied to the Internet of things equipment, and comprises the following steps:
receiving a universal interface request sent by cloud forwarding equipment, wherein the universal interface request comprises: the information related to the target new function represents information which is required to be indicated to the equipment of the Internet of things for realizing the target new function;
analyzing the universal interface request, and determining the target equipment application and the target newly-added function of the request;
and executing the target additional function through the target equipment application.
6. The method of claim 5, wherein the Internet of things device comprises: the connection component and the interface request agent component;
the information related to the target added function comprises: target Internet of things equipment identification information, target equipment application identification information, interface information of a target newly added function and interface input parameters;
the receiving of the universal interface request sent by the cloud forwarding device includes:
receiving a universal interface request sent by cloud forwarding equipment by using the connecting component;
the analyzing the universal interface request and determining the target equipment application and the target new function of the request comprises the following steps:
adopting an interface request agent component to analyze the universal interface request to obtain target equipment application identification information and interface information of a target newly added function;
and determining the target equipment application according to the target equipment application identification information, and determining the target added function according to the interface information of the target added function.
7. The method of claim 6, wherein the performing the target add-on function by the target device application comprises:
and inputting the interface input parameters into a target device application of the Internet of things device, and executing the target newly-added function by adopting the target device application according to the interface input parameters.
8. The method of any one of claims 5-7, further comprising:
adopting an interface request agent component to obtain an interface response message and sending the interface response message to a connecting component, wherein the interface response message represents a response message which is fed back after the target new function is executed and has an execution result and a response type;
packaging the interface response message by adopting the connecting component to form a universal interface response message, and marking the response type of the universal interface response message as a universal interface response type;
and sending the universal interface response message to cloud forwarding equipment by adopting the connecting component.
9. The utility model provides a communication device between high in clouds and thing networking device which characterized in that includes:
the cloud application device comprises a receiving module and a processing module, wherein the receiving module is used for receiving a newly-added function execution request sent by the cloud application device, the newly-added function execution request comprises target newly-added function related information of a target Internet of things device, and the target newly-added function related information represents information which is required to be indicated to the Internet of things device to achieve the target newly-added function;
the processing module is used for packaging the related information of the target newly added function, generating a universal interface request and marking the request type of the universal interface request;
the sending module is used for sending a universal interface request marked with a request type to the target Internet of things equipment, and the universal interface request is used for indicating the target equipment in the target Internet of things equipment to execute the target newly added function.
10. The utility model provides a communication device between high in clouds and thing networking device which characterized in that includes:
the receiving module receives a universal interface request sent by the cloud forwarding device, wherein the universal interface request comprises: the information related to the target new function represents information which is required to be indicated to the equipment of the Internet of things for realizing the target new function;
the determining module is used for analyzing the universal interface request and determining the target equipment application and the target newly-added function of the request;
and the processing module executes the target additional function through the target equipment application.
11. A cloud forwarding device, comprising: at least one processor; and
a memory and a transceiver communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the transceiver configured to transceive data with a cloud application device and an internet of things device;
the instructions are executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
12. An internet of things device, comprising: at least one processor; and
a memory and a transceiver communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor, the transceiver configured to transceive data with a cloud forwarding device;
the instructions are executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 5-8.
CN202111093890.1A 2021-09-17 2021-09-17 Communication method, device, medium and product between cloud and Internet of things equipment Pending CN115834735A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111093890.1A CN115834735A (en) 2021-09-17 2021-09-17 Communication method, device, medium and product between cloud and Internet of things equipment
PCT/CN2022/096086 WO2023040350A1 (en) 2021-09-17 2022-05-30 Communication method and apparatus between cloud and internet-of-things device, and medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111093890.1A CN115834735A (en) 2021-09-17 2021-09-17 Communication method, device, medium and product between cloud and Internet of things equipment

Publications (1)

Publication Number Publication Date
CN115834735A true CN115834735A (en) 2023-03-21

Family

ID=85515265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111093890.1A Pending CN115834735A (en) 2021-09-17 2021-09-17 Communication method, device, medium and product between cloud and Internet of things equipment

Country Status (2)

Country Link
CN (1) CN115834735A (en)
WO (1) WO2023040350A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878163A (en) * 2017-04-13 2017-06-20 冶金自动化研究设计院 A kind of intelligent networking gateway of many data protocol conversions
CN108809945A (en) * 2018-05-17 2018-11-13 广州云湾信息技术有限公司 Realize the method, apparatus and Internet of Things cloud platform that equipment room interconnects
CN110716974A (en) * 2019-09-29 2020-01-21 宜通世纪物联网研究院(广州)有限公司 Dynamic interaction method, system and storage medium for Internet of things equipment and platform
WO2020142164A1 (en) * 2019-01-04 2020-07-09 Convida Wireless, Llc Optimizing interaction between applications and devices in a communications network
CN111526072A (en) * 2020-05-21 2020-08-11 深圳市瑞尔时代科技有限公司 Intelligent industrial Internet of things terminal detection system
WO2020198932A1 (en) * 2019-03-29 2020-10-08 Oppo广东移动通信有限公司 Device discovery method and apparatus, control terminal, and internet of things auxiliary device
CN112199210A (en) * 2020-09-21 2021-01-08 中国建设银行股份有限公司 Data processing method and device based on Internet of things, computer equipment and medium
WO2021072749A1 (en) * 2019-10-18 2021-04-22 Oppo广东移动通信有限公司 Device permission control method, device, and storage medium
CN112799789A (en) * 2021-03-22 2021-05-14 腾讯科技(深圳)有限公司 Node cluster management method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790781B (en) * 2011-05-17 2015-10-28 南京中兴新软件有限责任公司 The M2M system of a kind of middleware, band sector application middleware and application process thereof
CN103970080A (en) * 2013-01-30 2014-08-06 广东美的制冷设备有限公司 Household appliance control system and function upgrading control method
US10771468B1 (en) * 2016-11-29 2020-09-08 Amazon Technologies, Inc. Request filtering and data redaction for access control

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878163A (en) * 2017-04-13 2017-06-20 冶金自动化研究设计院 A kind of intelligent networking gateway of many data protocol conversions
CN108809945A (en) * 2018-05-17 2018-11-13 广州云湾信息技术有限公司 Realize the method, apparatus and Internet of Things cloud platform that equipment room interconnects
WO2020142164A1 (en) * 2019-01-04 2020-07-09 Convida Wireless, Llc Optimizing interaction between applications and devices in a communications network
WO2020198932A1 (en) * 2019-03-29 2020-10-08 Oppo广东移动通信有限公司 Device discovery method and apparatus, control terminal, and internet of things auxiliary device
CN110716974A (en) * 2019-09-29 2020-01-21 宜通世纪物联网研究院(广州)有限公司 Dynamic interaction method, system and storage medium for Internet of things equipment and platform
WO2021072749A1 (en) * 2019-10-18 2021-04-22 Oppo广东移动通信有限公司 Device permission control method, device, and storage medium
CN111526072A (en) * 2020-05-21 2020-08-11 深圳市瑞尔时代科技有限公司 Intelligent industrial Internet of things terminal detection system
CN112199210A (en) * 2020-09-21 2021-01-08 中国建设银行股份有限公司 Data processing method and device based on Internet of things, computer equipment and medium
CN112799789A (en) * 2021-03-22 2021-05-14 腾讯科技(深圳)有限公司 Node cluster management method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2023040350A1 (en) 2023-03-23

Similar Documents

Publication Publication Date Title
CN106850402B (en) Message transmission method and device
RU2523964C2 (en) Method for inter-process interaction between different applications in mobile terminal and corresponding device
RU2644392C2 (en) System, method and device for transmitting data
CN107193609B (en) Function module calling method and device in application and electronic equipment
CN110858838B (en) Method and apparatus for bridging communications
CN111818158A (en) Gateway control method, device, electronic equipment and storage medium
CN113612686A (en) Traffic scheduling method and device and electronic equipment
CN110519388B (en) Processing method and device for block chain request, electronic equipment and readable storage medium
CN114598750B (en) Data request processing method, device and storage medium
US9826080B2 (en) Sharing a single external accessory connection of a mobile device across multiple application programs
EP3032801A1 (en) Method and device for generating forwarding information
KR20180059386A (en) Delegation server for connecting a plurality of lpwa devices to common cloud
US11991762B2 (en) Direct connection communication method, AMF, access network functional entity and terminal
CN109005250B (en) Method and device for accessing server
US20140136597A1 (en) Relay enabled dynamic virtual private network
CN115834735A (en) Communication method, device, medium and product between cloud and Internet of things equipment
CN109460215B (en) Application control method and device
CN113994762A (en) Method and device for associating session
CN111641565A (en) Method, device and system for transmitting Ethernet message
CN112039801B (en) Method, system and proxy server for setting IP information
CN110661895A (en) Network address mapping method and network address mapping equipment of server
CN113918245A (en) Data calling method, device, equipment and computer readable storage medium
JP7254951B2 (en) DATA TRANSMISSION METHOD, TERMINAL DEVICE AND STORAGE MEDIUM
CN112367383A (en) Service calling method and related equipment
CN113114670A (en) Multi-protocol connection method, equipment and storage medium of block chain network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination