CN114726918A - Internet of things cross-network communication method, device, equipment and storage medium - Google Patents

Internet of things cross-network communication method, device, equipment and storage medium Download PDF

Info

Publication number
CN114726918A
CN114726918A CN202210137217.1A CN202210137217A CN114726918A CN 114726918 A CN114726918 A CN 114726918A CN 202210137217 A CN202210137217 A CN 202210137217A CN 114726918 A CN114726918 A CN 114726918A
Authority
CN
China
Prior art keywords
operation instruction
internet
target
equipment
things
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.)
Granted
Application number
CN202210137217.1A
Other languages
Chinese (zh)
Other versions
CN114726918B (en
Inventor
王银华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202210137217.1A priority Critical patent/CN114726918B/en
Publication of CN114726918A publication Critical patent/CN114726918A/en
Application granted granted Critical
Publication of CN114726918B publication Critical patent/CN114726918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application provides a method, a device, equipment and a storage medium for internet of things cross-network communication, and the method for internet of things cross-network communication comprises the following steps: acquiring an operation instruction sent by a third-party Internet of things platform, wherein the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of equipment to be operated; determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third party identifier; converting the operation instruction according to the preset instruction conversion rule to obtain a target operation instruction; and sending the target operation instruction to the equipment to be operated. When a control instruction sent by a third-party Internet of things platform is received, the instruction is quickly inquired and converted and then is issued to equipment to be operated, so that the problem that the quality of Internet of things cross-network communication becomes low is avoided.

Description

Internet of things cross-network communication method, device, equipment and storage medium
Technical Field
The application relates to the technical field of communication, in particular to a method, a device, equipment and a storage medium for cross-network communication of the Internet of things.
Background
The internet of things platform is a universal internet of things (IoT) platform which is used for managing and enabling the internet of things and is used for shielding differences (such as interfaces, connectivity, data models and the like) of various internet of things devices, connecting the internet of things devices to an internet of things network and providing a uniform interface for internet of things application.
However, with the diversification of the development of the internet of things platform, in some subdivided fields and industries, respective internet of things platforms exist, wherein, different internet of things platforms serve respective corresponding devices, and the difference of the devices may cause the difference of the operating languages of the devices among different internet of things, therefore, when different internet of things platforms are communicated across networks, the conversion of communication instruction languages is needed, in the prior art, generally, communication languages are all converted, so that many communication languages which do not need to be converted are also converted, for example, all or a part of the communication languages in the instruction are common between the two internet of things platforms, conversion is not needed, however, the undifferentiated conversion in the prior art causes the waste of the conversion program and consumes more conversion time, which causes the cross-network communication efficiency of the internet of things to be low.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for internet of things cross-network communication, which are used for rapidly inquiring and converting a control command sent by a third-party internet of things platform and then sending the command to equipment to be operated when the control command is received, so that the internet of things cross-network communication efficiency is improved.
In one aspect, the application provides a method for internet-of-things cross-network communication, which includes:
acquiring an operation instruction sent by a third-party Internet of things platform, wherein the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of equipment to be operated;
determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third party identifier;
converting the operation instruction according to the preset instruction conversion rule to obtain a target operation instruction;
and sending the target operation instruction to the equipment to be operated.
In one embodiment of the present application, the determining, according to the device identifier and the third party identifier, a preset instruction conversion rule corresponding to the operation instruction includes:
and querying a preset rule database, acquiring a preset conversion rule corresponding to the equipment identifier and the third party identifier, and taking the preset conversion rule as a preset instruction conversion rule corresponding to an operation instruction.
In one embodiment of the present application, the converting the operation instruction according to the preset instruction conversion rule to obtain a target operation instruction includes:
if the preset instruction conversion rule is a first rule, setting the operation instruction as a target operation instruction;
if the preset instruction conversion rule is a second rule, mapping and converting the target parameters in the operation instruction;
and if the preset instruction conversion rule is a third rule, converting the target mode and the target parameters in the operation instruction to obtain a target operation instruction.
In one embodiment of the present application, the second rule includes a mapping conversion sub-rule and a linear conversion sub-rule, and if the preset instruction conversion rule is the second rule, converting the target parameter in the operation instruction to obtain the target operation instruction includes:
if the preset instruction conversion rule is a mapping conversion sub-rule, acquiring a mapping table corresponding to the equipment identifier and the third party identifier, and mapping and searching target parameters in the operation instruction based on the mapping table to obtain a target operation instruction;
and if the preset instruction conversion rule is a linear conversion sub-rule, acquiring a linear relation corresponding to the equipment identifier and the third party identifier, and performing linear conversion on a target parameter in the operation instruction based on the linear relation to obtain a target operation instruction.
In one embodiment of the present application, the obtaining a mapping table corresponding to the device identifier and the third party identifier, and performing mapping lookup on a target parameter in the operation instruction based on the mapping table to obtain a target operation instruction includes:
if the target parameter in the operation instruction is a mode target value, acquiring a value mapping table corresponding to the equipment identifier and the third party identifier;
mapping the mode target value to a mode target value corresponding to the equipment to be operated based on the value mapping table;
and obtaining a target operation instruction corresponding to the operation equipment based on the target mode and the mode target value corresponding to the equipment to be operated.
In one embodiment of the present application, the obtaining a mapping table corresponding to the device identifier and the third party identifier, and performing mapping lookup on a target parameter in the operation instruction based on the mapping table to obtain a target operation instruction includes:
if the target parameter in the operation instruction comprises a sequence variation value and a variation type of the sequence variation value, acquiring a sequence mapping table corresponding to the equipment identifier and the third party identifier and a current mode target value of the equipment to be operated corresponding to the target mode;
locating a sequence number of the current mode target value in the sequence mapping table, and adjusting the sequence number based on the sequence change value and the change type;
searching a mode target value of the equipment to be operated according to the adjusted serial number;
and obtaining a target operation instruction corresponding to the operation equipment based on the target mode and the mode target value of the equipment to be operated.
In one embodiment of the present application, before the step of sending the target operation instruction to the device to be operated, the method includes:
acquiring device shadow data of a device to be operated, and searching a converted target mode corresponding to a current mode target value based on the device shadow data;
if the current mode target value is the same as the converted target parameter, generating feedback information that the equipment to be operated is in the state;
and stopping the step of sending the target operation instruction to the equipment to be operated from being executed, and sending feedback information to a third-party Internet of things platform.
In one embodiment of the present application, the sending the target operation instruction to the device to be operated includes:
performing instruction verification on the target operation instruction based on the object model data corresponding to the equipment to be operated;
and if the verification is successful, sending the target operation instruction to the equipment to be operated.
In one embodiment of the present application, after the instruction verification is performed on the target operation instruction based on the object model data corresponding to the device to be operated, the method further includes;
and if the verification fails, feeding back verification failure information to a third-party Internet of things platform and preventing the target operation instruction from being sent to the equipment to be operated.
In one embodiment of the application, before obtaining an operation instruction sent by a third party internet of things platform, the operation instruction carries a third party identifier of the third party internet of things platform and an equipment identifier of a device to be operated, the method further includes:
establishing communication connection with the third-party Internet of things platform based on a communication protocol;
and sending the Internet of things equipment information data including the equipment to be operated to a third-party Internet of things platform, and acquiring the Internet of things equipment information data of the third-party Internet of things platform.
On the other hand, this application provides a thing networking communication device across networks, includes:
the system comprises a first Internet of things platform, a third Internet of things platform and equipment to be operated, wherein the first Internet of things platform, the third Internet of things platform and the equipment to be operated are in communication connection;
the third Internet of things platform is used for receiving the operation instruction and sending the operation instruction to the first Internet of things platform;
the system comprises a first Internet of things platform and a second Internet of things platform, wherein the first Internet of things platform is used for acquiring an operation instruction sent by a third-party Internet of things platform, and the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of equipment to be operated; the device is used for determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third party identifier; the operation instruction is converted according to the preset instruction conversion rule to obtain a target operation instruction, and the target operation instruction is sent to the equipment to be operated;
and the equipment to be operated belongs to the first Internet of things platform and is used for responding to the target operation instruction.
In one embodiment of the present application, the first internet of things platform includes:
the protocol conversion module is used for acquiring an operation instruction sent by a third-party Internet of things platform, and the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of equipment to be operated;
a rule query module: the device is used for determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third party identifier;
a conversion module: the operation instruction is converted according to the preset instruction conversion rule to obtain a target operation instruction;
an instruction sending module: and the target operation instruction is sent to the equipment to be operated by the instruction.
On the other hand, this application provides a thing networking communication equipment that crosses net, thing networking communication equipment that crosses net includes:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the internet of things cross-network communication method.
In another aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is loaded by a processor to execute the steps in the internet of things cross-network communication method.
Through obtaining in this application third party operating instruction, treat equipment identification and the third party identification of operating device, and based on according to equipment identification with the third party identification, confirm the instruction conversion rule is predetermine that operating instruction corresponds gets rid of the interference of the instruction conversion rule of not needing predetermineeing, reduces the data handling capacity of operating instruction conversion, improves instruction conversion treatment efficiency simultaneously, then according to corresponding predetermine the instruction conversion rule will operating instruction that third party thing networking platform sent converts target operating instruction, realizes right with operating instruction's quick conversion, and then promotes the efficiency of thing networking cross-network communication.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a scene schematic diagram of an internet of things cross-network communication method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of an embodiment of an internet-of-things cross-network communication method provided in an embodiment of the present application;
fig. 3 is a schematic flow structure diagram of an embodiment of converting an operation instruction of the internet of things cross-network communication method according to the present application;
fig. 4 is a schematic view of a flow structure of an embodiment of conversion of a target parameter corresponding to a rule of mapping a converter in the internet of things communication method;
fig. 5 is a schematic view of a flow structure of another embodiment of conversion of a target parameter corresponding to a rule of mapping a converter in the internet of things communication method;
fig. 6 is a schematic view of a flow structure of an embodiment in which the internet of things cross-network communication method sends the converted target operation instruction to the operation device;
fig. 7 is a schematic structural diagram of an embodiment of an internet-of-things cross-network communication device provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of an embodiment of a first internet of things in an internet-of-things communication device provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of an embodiment of an internet of things cross-network communication device provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations and positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be constructed in a particular manner of interaction, and thus should not be construed as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and processes are not shown in detail to avoid obscuring the description of the invention with unnecessary detail. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The embodiments of the present application provide a method, an apparatus, a device and a computer-readable storage medium for internet of things cross-network communication, which are described in detail below.
The internet of things cross-network communication method is applied to an internet of things cross-network communication device, the internet of things cross-network communication device is arranged on internet of things cross-network communication equipment, one or more processors, a memory and one or more application programs are arranged in the internet of things cross-network communication equipment, and the one or more application programs are stored in the memory and configured to be executed by the processor to realize the internet of things cross-network communication method; the internet-of-things cross-network communication device can be a terminal, such as a mobile phone or a tablet computer, and also can be a server or a service cluster formed by a plurality of servers.
As shown in fig. 1, fig. 1 is a scene schematic diagram of an internet of things cross-network communication method according to an embodiment of the present disclosure, in an internet of things cross-network communication scene in the embodiment of the present disclosure, an internet of things cross-network communication device 100 is included (an internet of things cross-network communication device is integrated in the internet of things cross-network communication device 100), and a computer-readable storage medium corresponding to the internet of things cross-network communication is run in the internet of things cross-network communication device 100 to perform a step of the internet of things cross-network communication.
It can be understood that the internet of things cross-network communication device in the scene of the internet of things cross-network communication method shown in fig. 1, or the devices included in the internet of things cross-network communication device, does not limit the embodiment of the present invention, that is, the number of devices and the types of devices included in the scene of the internet of things cross-network communication method, or the number of devices and the types of devices included in each device do not affect the overall implementation of the technical solution in the embodiment of the present invention, and all the devices may be regarded as equivalent replacements or derivatives of the technical solution claimed in the embodiment of the present invention.
The internet of things cross-network communication device 100 in the embodiment of the invention is mainly used for: acquiring an operation instruction sent by a third-party Internet of things platform, wherein the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of equipment to be operated; determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third party identifier; converting the operation instruction according to a preset instruction conversion rule to obtain a target operation instruction; and sending the target operation instruction to the equipment to be operated.
In this embodiment of the present invention, the internet of things cross-network communication device 100 may be an independent internet of things cross-network communication device, or may be an internet of things cross-network communication device network or an internet of things cross-network communication device cluster that is composed of internet of things cross-network communication devices, for example, the internet of things cross-network communication device 100 described in this embodiment of the present invention includes, but is not limited to, a computer, a network host, a single network internet of things cross-network communication device, a plurality of network internet of things cross-network communication device sets, or a cloud internet of things cross-network communication device that is composed of a plurality of internet of things cross-network communication devices. The Cloud Internet of things cross-network communication equipment is composed of a large number of computers based on Cloud Computing (Cloud Computing) or network Internet of things cross-network communication equipment.
Those skilled in the art can understand that the application environment shown in fig. 1 is only one application scenario related to the present invention, and does not constitute a limitation on the application scenario of the present invention, and that other application environments may further include more or fewer internet-of-things cross-network communication devices than those shown in fig. 1, or a network connection relationship between the internet-of-things cross-network communication devices, for example, only 1 internet-of-things cross-network communication device is shown in fig. 1, and it can be understood that the scenario of the internet-of-things cross-network communication method may further include one or more other internet-of-things cross-network communication devices, which is not limited herein; the internet-of-things cross-network communication device 100 may further include a memory for storing data, for example, background data of an internet-of-things platform, third-party internet-of-things platform data connected to the internet of things, and the like.
In addition, in the scene of the internet of things cross-network communication method, the display device may be arranged in the internet of things cross-network communication device 100, or the display device is not arranged in the internet of things cross-network communication device 100 and is in communication connection with the external display device 200, and the display device 200 is used for outputting a result of executing the internet of things cross-network communication method in the internet of things cross-network communication device. The internet-of-things cross-network communication device 100 may access the background database 300 (the background database may be in a local memory of the internet-of-things cross-network communication device, and may also be set in the cloud), and information related to internet-of-things cross-network communication is stored in the background database 300, for example, device configuration information and device model data in the background database 300, or data sent by a third-party network platform for connection communication is established.
It should be noted that the scene schematic diagram of the internet of things cross-network communication method shown in fig. 1 is only an example, and the scene of the internet of things cross-network communication method described in the embodiment of the present invention is for more clearly explaining the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention.
Based on the scene of the internet of things cross-network communication method, the embodiment of the internet of things cross-network communication method is provided.
As shown in fig. 2, which is a schematic flow diagram of an embodiment of an internet of things cross-network communication method in the embodiment of the present application, the internet of things cross-network communication method includes steps 201 to 204:
201. and acquiring an operation instruction sent by the third-party Internet of things platform, wherein the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of the equipment to be operated.
In the embodiment of the application, the internet of things cross-network communication equipment establishes communication connection with a third-party internet of things platform through a communication protocol, sends the internet of things equipment information data including equipment to be operated to the third-party internet of things platform, acquires the internet of things equipment information data of the third-party internet of things platform, acquires required data when the two parties communicate with each other, and provides database support for the third-party internet of things platform when the identity of an instructed object (equipment to be operated) is identified.
In the embodiment of the application, the internet of things cross-network communication method is applied to internet of things cross-network communication equipment which can be an internet of things cross-network monitoring host, an internet of things terminal or intelligent equipment for supporting the operation of an internet of things cloud platform and the like, and the internet of things cross-network communication equipment is connected with a plurality of intelligent equipment, such as an intelligent television, an intelligent air conditioner, an intelligent refrigerator and the like, wherein the intelligent equipment comprises equipment to be operated, communication connection is established among the intelligent equipment through the internet of things cross-network communication equipment to form an internet of things, and management of the intelligent equipment in the platform is realized by building an internet of things platform, namely an internet of things cloud, wherein the internet of things platform is used for providing access and management capacity of mass equipment, the internet of things equipment can be connected to the cloud platform to form a cloud/internet of things platform, and supporting equipment data acquisition and cloud issuing commands to the equipment for remote control, according to different application scenarios, a networked safety monitoring solution can be constructed. And the intelligent devices establish communication connection with the intelligent devices under the third-party Internet of things platform through the corresponding Internet of things cross-network communication devices, so that the Internet of things cross-network communication is realized.
In the embodiment, the internet-of-things cross-network communication device acquires an operation instruction sent by a third-party internet-of-things platform, wherein the operation instruction carries a third-party identifier of the third-party internet-of-things platform and an equipment identifier of equipment to be operated, namely, the operation instruction is a control instruction of equipment corresponding to the third-party internet-of-things platform or a control instruction universal for the third-party internet-of-things platform, and the operation instruction may be invalid due to the fact that an instruction language (program running language) used in internet-of-things cross-network communication is not universal; the operation instruction can be obtained through intelligent equipment included by a third-party Internet of things platform, for example, the intelligent voice acquisition equipment included by the third-party Internet of things acquires 'A air conditioner refrigeration 25 degrees centigrade', the third-party Internet of things platform extracts key information based on the voice, an equipment identifier of equipment to be operated is obtained based on a database, and the 'refrigeration 25 degrees centigrade' is converted into the operation instruction, and the operation instruction is the operation instruction corresponding to the third-party Internet of things platform. In other embodiments of the application, the third-party internet of things platform may also perform operation instruction acquisition through a display page of the smart device, for example, click an equipment identifier displayed on a television screen, and select a corresponding operation instruction to perform information acquisition, which is not limited in the application.
In the embodiment, the third-party internet of things platform performs correlation packaging on the acquired operation instruction, the third-party identifier and the equipment identifier of the equipment to be operated, and sends the packaged data to the internet of things cross-network communication equipment through a pre-established communication protocol, the internet of things cross-network communication equipment acquires the operation instruction sent by the third-party internet of things platform, the third-party identifier and the equipment identifier of the equipment to be operated perform correlation packaging on the data, and acquires the operation instruction, the third-party identifier and the equipment identifier of the equipment to be operated in the packaging data, and the internet of things cross-network communication equipment acquires the operation instruction sent by the third-party internet of things platform, the third-party identifier and the equipment identifier of the equipment to be operated to perform correlation packaging on the data, and acquires the operation instruction, the third-party identifier and the equipment identifier of the equipment to be operated in the packaging data.
The device identifier of the device to be operated may be device ID information, device code, and the like, and the third party identifier may be information having identification, such as a name of the internet of things of the third party, and the specific application is not particularly limited.
202. And determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third party identifier.
The operation instruction includes a target mode, and may further include a target parameter for limiting the target mode, where the target mode is used to limit an actual action of the instruction, such as cooling, heating, and dehumidifying of an air conditioner, volume adjustment of a smart television, freezing and refreshing of a refrigerator, and the target parameter is used to limit a capability value corresponding to the target mode, where the capability value is a mode target value of the target mode, that is, a value to be achieved corresponding to the target mode, such as cooling to 25 degrees celsius, and 25 degrees celsius is a mode target value, and it may be understood that the target parameter may be adjusted on the basis of a current value by directly limiting the capability value of the target mode, that is, directly limiting the target value, that is, setting the mode target value of the target mode to 25 degrees celsius, and the like by directly limiting the capability value of the target mode without a specific value, that the target value is directly limited, that the target value is adjusted on the basis of the current value, and the like, for example, the target mode corresponding to the air conditioner is cooling, directly limiting the target mode target value of the target mode is 25 degrees celsius, directly limiting refrigeration to 25 ℃; the indirect limitation is that the target mode of the air conditioner is refrigeration, the target parameter is increased by 2 units, if one unit is one degree centigrade, then the 2 degrees centigrade is adjusted up on the basis of the current target temperature of the device to be operated to obtain the mode target value of the target mode, it can be understood that one unit may correspond to 2 degrees centigrade, 0.5 degrees centigrade and the like, and it can be understood that the meaning that the unit may correspond to different internet of things is different, for example, 1 unit corresponds to the internet of things 1 and may be 1 degree centigrade, and corresponds to the internet of things 2 and may be 2 degrees centigrade and the like. The present application is not particularly limited.
In the embodiment, a preset conversion rule corresponding to the equipment identifier and the third party identifier is obtained by querying a preset rule database, and the preset conversion rule is used as a preset instruction conversion rule corresponding to the operation instruction; the preset instruction conversion rules can be preset and associated with the third party identifier and the equipment to be operated through the background, that is, through presetting the corresponding conversion rules for each piece of equipment in the internet of things, the instruction conversion rules between the corresponding pieces of equipment in different internet of things platforms for establishing communication connection are preset, for example, the control instructions of an air conditioner under the third party internet of things platform and the conversion rules between the control instructions of the air conditioner under the internet of things platform including the internet of things cross-network communication equipment are preset, and the conversion rules of each target mode and the corresponding target parameters can be specifically preset; the conversion rule for converting the to-be-operated instruction into the target operation instruction is preset by classification through a data type, that is, the data type may include: the method comprises the steps of performing inquiry on equipment information corresponding to equipment to be operated by an object model database according to the data types of the equipment to be operated, namely, judging whether the data types of the object model database and the equipment to be operated are consistent or not firstly, judging whether the data types of the object model database and the equipment to be operated are consistent or not, further judging the value ranges and the like corresponding to target parameters, such as the gear positions of wind speed and the like, further detecting the relationships of the value mapping, linear mapping and the like of the target parameters, further performing corresponding inquiry on a preset rule database according to the judging process, and determining corresponding preset conversion rules according to equipment identification, third party identification and operation instructions, and mapping the data type to obtain the data type through the obtained equipment information of the equipment to be operated.
203. Converting the operation instruction according to a preset instruction conversion rule to obtain a target operation instruction;
the target operation instruction is an instruction obtained by converting an operation instruction sent by a third-party Internet of things platform; in this embodiment, the conversion relationship information may be configured in the storage device corresponding to the internet-of-things cross-network communication device, and the conversion relationship information may include corresponding value mapping configuration information, linear conversion relationship information, and the like between an internet-of-things device (to-be-operated device) operation instruction corresponding to the internet-of-things cross-network communication device and a device operation instruction corresponding to the third-party internet-of-things platform. The mapping configuration information may be a mapping table, that is, mapping information of all devices to be operated and the like included in the mapping table, or an individual mapping word table corresponding to each operation instruction, or a mapping table including a corresponding target mode, a mapping table including a target parameter, and the like, and is used to implement conversion of an operation instruction sent by a third party, and the specific application is not particularly limited.
204. And sending the target operation instruction to the equipment to be operated.
And the target operation instruction realizes data transmission through communication established by the Internet of things platform. Namely, the internet of things cross-network communication equipment sends the target operation instruction to the equipment to be operated, and the equipment to be operated performs corresponding operation according to the target operation instruction.
Furthermore, voice feedback broadcasting and the like can be carried out on the operating instruction execution condition of the equipment to be operated through the voice equipment of the third-party Internet of things platform.
The embodiment provides an internet of things cross-network communication method, wherein the third-party operation instruction, an equipment identifier of equipment to be operated and a third-party identifier are obtained, the preset instruction conversion rule corresponding to the operation instruction is determined according to the equipment identifier and the third-party identifier, the interference of the unnecessary preset instruction conversion rule is eliminated, the data processing amount of operation instruction conversion is reduced, the instruction conversion processing efficiency is improved, then the operation instruction sent by a third-party internet of things platform is converted into a target operation instruction according to the corresponding preset instruction conversion rule, the operation instruction is rapidly converted, and the internet of things cross-network communication efficiency is improved.
Further, as shown in fig. 3, fig. 3 is a schematic flow structure diagram of an embodiment of converting an operation instruction in the internet of things cross-network communication method of the present application, which specifically includes steps 301 and 303:
301. and if the preset instruction conversion rule is a first rule, setting the operation instruction as a target operation instruction.
The first rule is used for indicating that the operation instruction does not need to be converted, and the operation instruction sent by the third-party Internet of things platform is completely the same as the control instruction of the Internet of things platform corresponding to the device to be operated, and comprises a data type and a value range of a target parameter, and at the moment, the operation instruction sent by the third-party Internet of things can be directly used as the target operation instruction and sent to the device to be operated to control and convert the device to be operated.
302. And if the preset instruction conversion rule is a second rule, converting the target parameters in the operation instruction to obtain a target operation instruction.
Wherein the second rule is used for limiting that target parameters in the operation instruction need to be converted, and different internet of things platforms may be built for different products, so that the operation instruction may have a difference due to a difference between devices, and therefore an uncommon operation instruction needs to be converted, but some operation instructions do not need to be converted all the time, and may be used for defining different target parameters of a target mode, for example, the air-conditioning air speed of the third-party internet of things device includes 1-6 stages, the program operation instruction may be a control instruction described corresponding to the 1-6 stages, but the air speed of the air-conditioning device in another internet of things includes control instructions of different stages of a low stage, a medium stage, and a high stage, that is, the target parameter data types of the two stages are different, and therefore, the 1 stage in the third-party internet of things device may be mapped to a corresponding control target parameter of the low stage, therefore, the validity of the operation instruction sent by the third-party internet of things device is ensured, but because the target mode in the operation instruction does not need to be converted, otherwise, the instruction conversion does not do much useless work, and the instruction conversion duration is increased, so that the instruction response is not timely, in the embodiment, before the operation instruction is converted, the part needing to be converted is positioned, for example, the target parameter part needs to be converted, the target parameter of the operation instruction is directly converted to obtain the target parameter, the conversion of the target mode is reduced, and the target parameter needing to be converted is specified, in the embodiment, the second rule comprises a value mapping conversion rule and a linear mapping conversion rule, and corresponds to different target parameter conversion relations, namely, the case that the target parameter is indirectly limited or directly limited is used, it is understood that the mapping transformer rule and the linear transformer rule can also be determined according to the device identifier and the third party identifier.
Specifically, if the preset instruction conversion rule is the second rule, the specific implementation manner of converting the target parameter in the operation instruction is not specifically limited in this application, and specifically includes:
the first embodiment is as follows: if the preset instruction conversion rule is a mapping conversion sub-rule, obtaining a mapping table corresponding to the equipment identifier and the third party identifier, and mapping and searching target parameters in the operation instruction based on the mapping table to obtain a target operation instruction.
The mapping conversion sub-rule is that the target parameter is a mode target value corresponding to a target mode, and the target parameter is directly subjected to value mapping to obtain a converted mode target value of the equipment to be operated; further, the device identifier is used for determining a device to be operated, the third identifier is used for determining a third-party internet of things, it can be understood that an operation instruction sent by the third-party internet of things is a communication instruction of a third-party device (a device identical to the device to be operated) under the third-party internet of things platform, the device identifier and the mapping table corresponding to the third-party identifier, that is, the mapping table includes a value mapping relationship between the device to be operated and the third-party device, it can be understood that the corresponding mapping table can be directly obtained according to the third-party identifier and the device identifier, and the conversion of the operation instruction is realized through the search of the mapping table.
Embodiment two: and if the preset instruction conversion rule is a linear conversion sub-rule, acquiring a linear relation corresponding to the equipment identifier and the third party identifier, and performing linear conversion on a target parameter in the operation instruction based on the linear relation to obtain a target operation instruction.
The linear relationship is a linear relationship between the target parameter and the converted target parameter of the device to be operated, that is, the converted target parameter of the device to be operated can be obtained by being preset in a storage device in communication connection with the internet of things cross-network communication device, directly calling when in use, and performing linear conversion based on the linear relationship and the target parameter. For example, the linear relationship is y + percent x + offset, the target parameter of the third-party device is x, the slope is percent, the intercept is offset, and the calculated y value is the converted target parameter, where the slope and the intercept are known values.
303. And if the preset instruction conversion rule is a third rule, converting the target mode and the target parameters in the operation instruction to obtain a target operation instruction.
The third rule is used for indicating that the operation instructions need to be converted, the operation instructions sent by the third-party Internet of things platform are completely different from the control instructions of the Internet of things platform corresponding to the equipment to be operated, the target mode and the target parameters of the operation instructions need to be converted into the target operation instructions corresponding to the equipment to be operated, and the converted target operation instructions are sent to the equipment to be operated to control the equipment to be operated according to the conversion rule.
It can be understood that, if the preset instruction conversion rule is the third rule, the target mode in operation and the mode target parameter corresponding to the target mode may be converted separately or simultaneously, that is, mapping conversion is performed through a preset mapping table, it can be understood that the mapping table may include an operation instruction corresponding to a third-party device and a target operation instruction corresponding to a device to be operated, and the converted target operation instruction corresponding to the device to be operated may be obtained by performing mapping difference lookup on the operation instruction sent by the third-party device.
In other embodiments of the present application, if the preset mapping configuration information is a mapping table corresponding to the preset transformation rule, mapping lookup is performed in the mapping table corresponding to the preset transformation rule, for example, if the preset transformation rule is a second transformation rule, mapping transformation is performed on a target parameter in the operation instruction based on the mapping table, thereby avoiding useless work for the operation instruction transformation and improving transformation efficiency; it is understood that the target operation command corresponds to an operation command, and also includes a target mode and a mode target parameter.
In other embodiments of the present invention, if the preset mapping configuration information is a mapping calculation rule corresponding to a preset transformation rule, performing mapping calculation corresponding to the preset transformation rule; for example, if the preset transformation rule is the target parameter linear mapping transformation rule in the second rule, the linear function relationship (y + offset) of the preset target parameter mapping information is obtained for mapping calculation, the target parameter value of the third party cloud is x, the slope is percentage, and the intercept is offset, and the y value (i.e. the transformed target parameter) is calculated. If the target operation obtained after the target parameters are calculated is the same as the current operation instruction executed by the equipment to be operated, the target parameters with different properties are subjected to targeted conversion through different preset conversion rules, the diversity of instruction conversion is increased, and the conversion efficiency and the conversion success rate are improved.
Further, as shown in fig. 4, fig. 4 is a schematic flow structure diagram of an embodiment of conversion of a target parameter corresponding to a rule for mapping a converter in the internet of things cross-network communication method of the present application, which specifically includes steps 401 and 403:
401. if the target parameter in the operation instruction is a mode target value, acquiring a value mapping table corresponding to the equipment identifier and the third party identifier;
402. mapping the mode target value to a mode target value corresponding to the equipment to be operated based on the value mapping table;
403. and obtaining a target operation instruction corresponding to the operation equipment based on the target mode and the mode target value corresponding to the equipment to be operated.
The target mode value is a value to be achieved corresponding to the target mode, for example, when the cooling reaches 25 degrees celsius, the target mode value is 25 degrees celsius, and the device identifier and the third party identifier correspond to a value mapping table, that is, a mapping relationship table between a target parameter of the third party device (the device same as the device to be operated) and a target parameter of the device to be operated is searched in the value mapping table based on the device identifier of the device to be operated and the target parameter corresponding to the third party device, so as to map the target mode value to the target mode value corresponding to the device to be operated.
And obtaining a target operation instruction corresponding to the operation device based on the target mode and the mode target value corresponding to the device to be operated, namely, sending the operation instruction obtained by converting the mode target value corresponding to the target mode and the device to be operated to the device to be operated.
It can be understood that, in a case where the converted target parameter may be consistent with the current target parameter of the device to be operated, the program waste and the feedback time extension caused by sending the converted target operation instruction to the device to be operated are avoided, and the method further includes:
(1) acquiring device shadow data of a device to be operated, and searching a converted target mode corresponding to a current mode target value based on the device shadow data;
(2) if the current mode target value is the same as the converted target parameter, generating feedback information that the equipment to be operated is in the state;
(3) and stopping the step of sending the target operation instruction to the equipment to be operated from being executed, and sending feedback information to a third-party Internet of things platform.
Acquiring shadow server data of the equipment to be operated, searching a corresponding current mode target value based on the target mode, comparing whether the converted target parameter (mode target value) is the same as the current mode target value, if so, feeding back the condition, and preventing the step of sending the target operation instruction to the equipment to be operated from being executed. And if the target operation instruction is different from the operation instruction, the step of sending the target operation instruction to the equipment to be operated is executed.
Further, as shown in fig. 5, fig. 5 is a schematic flow structure diagram of another embodiment of the target parameter transformation corresponding to the transformation rule for mapping the transformation entity in the internet of things cross-network communication method of the present application, which specifically includes steps 501 and 504:
501. if the target parameter in the operation instruction comprises a sequence variation value and a variation type of the sequence variation value, acquiring a sequence mapping table corresponding to the equipment identifier and the third party identifier and a current mode target value of the equipment to be operated corresponding to the target mode;
502. locating a sequence number of the current mode target value in the sequence mapping table, and adjusting the sequence number based on the sequence change value and the change type;
503. searching a mode target value of the equipment to be operated according to the adjusted serial number;
504. and obtaining a target operation instruction corresponding to the operation equipment based on the target mode and the mode target value of the equipment to be operated.
The sequence mapping table is a mapping table in which target parameters are arranged in order, and it can be understood that in the sequence mapping table, a serial number corresponds to a target parameter of a three-party device (a device identical to a device to be operated) and a target parameter of the device to be operated, where a sequence change value is a floating value of the serial number, that is, an increase value or a decrease value or the like corresponds to a current serial number, and a change type of the sequence change value is an increase or decrease type of the sequence change value.
The current mode target value of the device to be operated corresponding to the target mode can be obtained by obtaining device shadow server data of the device to be operated.
Specifically, for example, if the change type is an UP increase type and the sequence change value is N, acquiring the server data of the device shadow to be operated, and searching a corresponding current mode target value based on the target mode, where the current mode target value is a mode target value set or updated last time by the device to be operated, finding a sequence number corresponding to the current mode target value of the device shadow according to the sequence of the sequence mapping table, and acquiring a mode target value of the device to be operated of a corresponding sequence number after N bits (N > ═ 1) are raised based on the sequence number, and if N bits raised exceed the maximum sequence of the sequence mapping table, taking the mode target value of the device to be operated corresponding to the maximum sequence in the sequence mapping table.
If the change type is DOWN reduction type and the sequence change value is N, acquiring the data of the shadow server of the equipment to be operated, searching the corresponding current mode target value based on the target mode, wherein, the current mode target value is the last set or updated mode target value of the device to be operated, finding out the sequence number corresponding to the current mode target value of the device shadow according to the sequence of the sequence mapping table, and obtaining the mode target value of the equipment to be operated corresponding to the sequence number after descending N bits (N > -1) based on the sequence number, if the descending N bits already exceed the minimum sequence of the sequence mapping table, the mode target value of the device to be operated corresponding to the minimum sequence in the sequence mapping table is taken, it can be understood that the maximum and minimum limits of the sequence are understood, and the application is not particularly limited, that is, 1 may be the maximum sequence, and 1 may also be the minimum sequence.
It can be understood that the internet of things device includes various internet of things devices, including an air conditioner, a refrigerator, a sound device, etc., wherein it can be understood that many device users adjust only according to the use experience when adjusting, and there is no specific adjustment parameter, for example, the volume of the sound device, so that it is generally unclear what the current volume is when using, and which specific value i want to adjust to is generally determined according to the use experience, for example, the current volume is too small, i.e., the volume is adjusted by 2, where the volume is a target mode, i.e., a mode to be adjusted, 2 is a sequence change value, and the adjustment is a change type of the sequence change value, but in the prior art, the operation command of the type is generally converted by value mapping, i.e., the conversion is a target value, and the mode of converting the operation command by directly performing value mapping on the operation command is not feasible, the operation instruction is invalid, no feedback exists, the conversion success rate is reduced, and further the communication quality is influenced, and it can be understood that the conversion of different equipment communication languages is not limited by setting a serial number to respectively set the target parameters of three-party equipment (equipment same as the equipment to be operated) and the target parameters of the equipment to be operated, and the instruction conversion diversity can be ensured while the instruction conversion success rate is improved.
Further, referring to fig. 6, in one embodiment of the present invention, the step 204 further includes a verification process for the target instruction, and specifically, referring to fig. 6, includes steps 601 and 603:
601. and performing instruction verification on the target operation instruction based on the object model data corresponding to the equipment to be operated.
602. And if the verification is successful, sending the target operation instruction to the equipment to be operated.
603. And if the verification fails, feeding back verification failure information to the third-party Internet of things platform and preventing the target operation instruction from being sent to the equipment to be operated.
The obtained target operation instruction is verified, that is, it is judged that the target parameter can not control the device to be operated, the target operation instruction can be searched through object model data of the device to be operated, the object model is a data model defined for a product by an Internet of Things (Internet of Things, referred to as IOT for short) platform and is used for describing functions (corresponding to the target operation instruction) of the product, the object model is a digital representation of an entity in a physical space at a cloud, and what the entity can do and which information can be provided to the outside is respectively described from three dimensions of attributes, service and events. The three dimensions of the object model are defined, namely the definition of the product function is completed. Property (Property): the ability of the device to read and set. Generally to describe the state of the device at runtime, i.e., the target mode. Attributes support GET and SET request modes. And the cloud end of the Internet of things platform corresponding to the equipment to be operated can initiate a request for reading and setting the attribute. Service (Service), i.e., the capability or method by which a device can be called externally, corresponding to a target parameter, can set input parameters and output parameters. The product provides what functions are called by the cloud. Services may implement more complex business logic, such as performing a particular task, with one instruction as opposed to attributes. Event (Event): and when the equipment runs, actively reporting the event to the cloud. An event typically contains notification information that needs to be perceived and processed externally and may contain a number of output parameters. E.g. temperature at which a device fails or is alerted, etc., events may be subscribed to and pushed. The problem that the instruction conversion is mistakenly caused can be solved through verification, the device to be operated does not respond after the instruction is issued, the target operation instruction is verified before the target operation instruction is issued, if the instruction information corresponding to the target operation instruction is not inquired in the object model database of the device to be operated, the information that the instruction issuing fails is fed back to the third-party Internet of things platform, the executed feedback of the operation instruction is carried out, a user can conveniently know the response condition of the operation instruction, meanwhile, the target operation instruction is intercepted, and the target operation instruction is prevented from being issued to the device to be operated to do useless work.
The application provides an internet of things cross-network communication method, which comprises the steps of obtaining a third-party operating instruction, an equipment identifier of equipment to be operated and a third-party identifier, determining a preset instruction conversion rule corresponding to the operating instruction according to the equipment identifier and the third-party identifier, eliminating the interference of the unnecessary preset instruction conversion rule, reducing the data processing amount of the operating instruction conversion, improving the instruction conversion processing efficiency, converting the operating instruction sent by a third-party internet of things platform into a target operating instruction according to the corresponding preset instruction conversion rule, realizing the rapid conversion of the operating instruction, ensuring the effectiveness of the target operating instruction, avoiding the operating instruction sent by the third-party internet of things platform from being not recognized by the equipment to be operated, further avoiding the establishment of invalid communication, and ensuring the effectiveness of the operating instruction and the accuracy of communication connection, and further improve the quality of the internet of things cross-network communication.
In order to better implement the internet of things cross-network communication method in the embodiment of the present application, on the basis of the internet of things cross-network communication method, an internet of things cross-network communication device is further provided in the embodiment of the present application, referring to fig. 7, the internet of things cross-network communication device includes:
the system comprises a first Internet of things platform, a third Internet of things platform and equipment to be operated, wherein the first Internet of things platform, the third Internet of things platform and the equipment to be operated are in communication connection;
the third Internet of things platform is used for receiving the operation instruction and sending the operation instruction to the first Internet of things platform;
the first Internet of things platform is used for acquiring an operation instruction sent by the third-party Internet of things platform, and the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of equipment to be operated; the device comprises a device identifier, a third party identifier and a preset instruction conversion rule, wherein the device identifier is used for identifying a device to be operated; the device comprises a target operation instruction conversion rule, a device to be operated and a device to be operated, wherein the target operation instruction conversion rule is used for converting the operation instruction according to the preset instruction conversion rule to obtain the target operation instruction and sending the target operation instruction to the device to be operated;
and the equipment to be operated belongs to the first Internet of things platform and is used for responding to the target operation instruction.
In one embodiment of the application, the device to be operated belongs to a first internet of things platform. The third internet of things platform also comprises instruction acquisition equipment, such as a voice robot, a television with a voice acquisition function and the like, or a display page with an acquisition port and the like, which is used for acquiring user instruction information, such as a filling interface capable of editing instructions and the like, the invention is not particularly limited, the initial instruction acquired by the instruction acquisition equipment under the third internet of things platform is sent to the third internet of things platform for conversion and extraction of the operation instruction, useless information in the initial instruction is abandoned, for example, the voice instruction equipment under the third internet of things platform acquires a voice instruction of an acquisition user, adjusts the air conditioner A to a refrigeration mode and keeps 25 ℃, then the voice instruction is sent to the third internet of things platform as the initial instruction for data identification and extraction, and the acquired operation instruction is packed and sent to the internet of things platform corresponding to the air conditioner A, namely, the first internet of things platform in this embodiment.
Further, as shown in fig. 8, in one embodiment of the present invention, the first internet of things platform includes:
the protocol conversion module 701 is used for acquiring an operation instruction sent by a third-party internet of things platform, wherein the operation instruction carries a third-party identifier of the third-party internet of things platform and an equipment identifier of equipment to be operated;
rule query module 702: the device comprises a device identifier, a third party identifier and a preset instruction conversion rule, wherein the device identifier is used for identifying a device to be operated;
the conversion module 703: the system comprises a control module, a display module and a display module, wherein the control module is used for converting an operation instruction according to a preset instruction conversion rule to obtain a target operation instruction;
the instruction sending module 704: and sending the target operation instruction to the equipment to be operated.
Further, in one embodiment of the present invention, the rule query module 702 further includes a module for: and querying a preset rule database, acquiring preset conversion rules corresponding to the equipment identification and the third party identification, and taking the preset conversion rules as preset instruction conversion rules corresponding to the operation instructions.
Further, in one embodiment of the present invention, the conversion module 703 further includes a module for:
if the preset instruction conversion rule is a first rule, setting the operation instruction as a target operation instruction;
if the preset instruction conversion rule is a second rule, mapping and converting target parameters corresponding to the target mode in the operation instruction to obtain a target operation instruction;
and if the preset instruction conversion rule is a third rule, mapping the target mode in the operation instruction and the target parameter corresponding to the target mode to obtain the target operation instruction.
Further, in one embodiment of the present invention, the conversion module 703 is configured to: the second rule includes a mapping conversion sub-rule and a linear conversion sub-rule, and if the preset instruction conversion rule is the second rule, the target parameter in the operation instruction is converted to obtain a target operation instruction, which specifically includes:
if the preset instruction conversion rule is a mapping conversion sub-rule, acquiring a mapping table corresponding to the equipment identifier and the third party identifier, and mapping and searching target parameters in the operation instruction based on the mapping table to obtain a target operation instruction;
and if the preset instruction conversion rule is a linear conversion sub-rule, acquiring a linear relation corresponding to the equipment identifier and the third party identifier, and performing linear conversion on a target parameter in the operation instruction based on the linear relation to obtain a target operation instruction.
Further, in one embodiment of the present invention, the conversion module 703 is configured to: acquiring a mapping table corresponding to the device identifier and the third party identifier, and performing mapping lookup on a target parameter in the operation instruction based on the mapping table to obtain a target operation instruction, specifically including:
if the target parameter in the operation instruction is a mode target value, acquiring a value mapping table corresponding to the equipment identifier and the third party identifier;
mapping the mode target value to a mode target value corresponding to the equipment to be operated based on the value mapping table;
and obtaining a target operation instruction corresponding to the operation equipment based on the target mode and the mode target value corresponding to the equipment to be operated.
Further, in one embodiment of the present invention, the conversion module 703 is configured to: acquiring a mapping table corresponding to the device identifier and the third party identifier, and performing mapping lookup on a target parameter in the operation instruction based on the mapping table to obtain a target operation instruction, specifically including:
if the target parameter in the operation instruction comprises a sequence variation value and a variation type of the sequence variation value, acquiring a sequence mapping table corresponding to the equipment identifier and the third party identifier and a current mode target value of the equipment to be operated corresponding to the target mode;
locating a sequence number of the current mode target value in the sequence mapping table, and adjusting the sequence number based on the sequence change value and the change type;
searching a mode target value of the equipment to be operated according to the adjusted serial number;
and obtaining a target operation instruction corresponding to the operation equipment based on the target mode and the mode target value of the equipment to be operated.
Further, in one embodiment of the present invention, the system further comprises a verification module, configured to: acquiring device shadow data of a device to be operated, and searching a converted target mode corresponding to a current mode target value based on the device shadow data;
if the current mode target value is the same as the converted target parameter, generating feedback information that the equipment to be operated is in the state;
and stopping the step of sending the target operation instruction to the equipment to be operated from being executed, and sending the feedback information to a third-party Internet of things platform.
Further, in one embodiment of the present invention, the instruction sending module 704 is specifically configured to:
performing instruction verification on the target operation instruction based on the object model data corresponding to the equipment to be operated;
and if the verification is successful, sending the target operation instruction to the equipment to be operated.
And if the verification fails, feeding back verification failure information to the third-party Internet of things platform and preventing the target operation instruction from being sent to the equipment to be operated.
The application provides an internet-of-things cross-network communication device, which can reduce the data processing amount of operation instruction conversion and improve the instruction conversion processing efficiency by obtaining a third-party operation instruction, an equipment identifier of equipment to be operated and a third-party identifier, determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third-party identifier, eliminating the interference of the unnecessary preset instruction conversion rule, reducing the data processing amount of the operation instruction conversion, then converting the operation instruction sent by a third-party internet-of-things platform into a target operation instruction according to the corresponding preset instruction conversion rule, realizing the rapid conversion of the operation instruction, simultaneously ensuring the validity of the target operation instruction, avoiding the operation instruction sent by the third-party internet-of-things platform from being not recognized by the equipment to be operated, further avoiding the establishment of invalid communication, and ensuring the validity of the operation instruction and the accuracy of communication connection, and further improve the quality of the internet of things cross-network communication.
An embodiment of the present invention further provides an internet of things cross-network communication device, as shown in fig. 9, fig. 9 is a schematic structural diagram of an embodiment of the internet of things cross-network communication device provided in the embodiment of the present application.
The internet of things cross-network communication equipment integrates any one of the internet of things cross-network communication devices provided by the embodiment of the invention, and comprises:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to perform the steps of the internet of things cross-network communication method in any of the above-described internet of things cross-network communication method embodiments.
Specifically, the method comprises the following steps: the internet of things cross-network communication device may include components such as a processor 801 of one or more processing cores, memory 802 of one or more computer-readable storage media, a power supply 803, and an input unit 804. Those skilled in the art will appreciate that the internet of things cross-network communication device architecture shown in fig. 9 does not constitute a limitation of the internet of things cross-network communication device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 801 is a control center of the internet-of-things cross-network communication device, connects each part of the whole internet-of-things cross-network communication device through various interfaces and lines, and executes various functions and processes data of the internet-of-things cross-network communication device by running or executing software programs and/or modules stored in the memory 802 and calling data stored in the memory 802, thereby integrally monitoring the internet-of-things cross-network communication device. Alternatively, processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 801.
The memory 802 may be used to store software programs and modules, and the processor 801 executes various functional applications and data processing by operating the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created from use of the internet-of-things cross-network communication device, and the like. Further, the memory 802 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 access to the memory 802.
The internet-of-things cross-network communication device further comprises a power supply 803 for supplying power to each component, preferably, the power supply 803 can be logically connected with the processor 801 through a power management system, so that functions of charging, discharging, power consumption management and the like can be managed through the power management system. The power supply 803 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any like components.
The internet-of-things cross-network communication device may further include an input unit 804, and the input unit 804 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the internet-of-things cross-network communication device may further include a display unit and the like, which are not described herein again. Specifically, in this embodiment, the processor 801 in the internet-of-things inter-network communication device loads an executable file corresponding to a process of one or more application programs into the memory 802 according to the following instructions, and the processor 801 runs the application programs stored in the memory 802, so as to implement various functions as follows:
acquiring an operation instruction sent by a third-party Internet of things platform, wherein the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of equipment to be operated;
determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third party identifier;
converting the operation instruction according to a preset instruction conversion rule to obtain a target operation instruction;
and sending the target operation instruction to the equipment to be operated.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a computer-readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like. The internet of things cross-network communication method comprises a first step of sending a request to a first network, a second step of sending a request to a second network, and a third step of sending a request to the first network. For example, the computer program may be loaded by a processor to perform the steps of:
acquiring an operation instruction sent by a third-party Internet of things platform, wherein the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of equipment to be operated;
determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third party identifier;
converting the operation instruction according to a preset instruction conversion rule to obtain a target operation instruction;
and sending the target operation instruction to the equipment to be operated.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, and are not described herein again.
In a specific implementation, each unit or structure may be implemented as an independent entity, or may be combined arbitrarily to be implemented as one or several entities, and the specific implementation of each unit or structure may refer to the foregoing method embodiment, which is not described herein again.
The internet of things cross-network communication method, device, equipment and storage medium provided by the embodiment of the application are introduced in detail, a specific example is applied in the description to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. An Internet of things cross-network communication method is characterized by comprising the following steps:
acquiring an operation instruction sent by a third-party Internet of things platform, wherein the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of equipment to be operated;
determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third party identifier;
converting the operation instruction according to the preset instruction conversion rule to obtain a target operation instruction;
and sending the target operation instruction to the equipment to be operated.
2. The internet of things cross-network communication method according to claim 1, wherein the determining a preset instruction conversion rule corresponding to the operation instruction according to the device identifier and the third party identifier includes:
and querying a preset rule database, acquiring a preset conversion rule corresponding to the equipment identifier and the third party identifier, and taking the preset conversion rule as a preset instruction conversion rule corresponding to an operation instruction.
3. The internet of things cross-network communication method according to claim 1, wherein the converting the operation instruction according to the preset instruction conversion rule to obtain a target operation instruction comprises:
if the preset instruction conversion rule is a first rule, setting the operation instruction as a target operation instruction;
if the preset instruction conversion rule is a second rule, converting the target parameters in the operation instruction to obtain a target operation instruction;
and if the preset instruction conversion rule is a third rule, converting the target mode and the target parameters in the operation instruction to obtain a target operation instruction.
4. The internet of things cross-network communication method according to claim 3, wherein the second rule includes a mapping conversion sub-rule and a linear conversion sub-rule, and if the preset instruction conversion rule is the second rule, converting the target parameter in the operation instruction to obtain a target operation instruction includes:
if the preset instruction conversion rule is a mapping conversion sub-rule, acquiring a mapping table corresponding to the equipment identifier and the third party identifier, and mapping and searching target parameters in the operation instruction based on the mapping table to obtain a target operation instruction;
and if the preset instruction conversion rule is a linear conversion sub-rule, acquiring a linear relation corresponding to the equipment identifier and the third party identifier, and performing linear conversion on a target parameter in the operation instruction based on the linear relation to obtain a target operation instruction.
5. The internet of things cross-network communication method according to claim 4, wherein the obtaining a mapping table corresponding to the device identifier and the third party identifier, and performing mapping lookup on a target parameter in the operation instruction based on the mapping table to obtain a target operation instruction comprises:
if the target parameter in the operation instruction is a mode target value, acquiring a value mapping table corresponding to the equipment identifier and the third party identifier;
mapping the mode target value to a mode target value corresponding to the equipment to be operated based on the value mapping table;
and obtaining a target operation instruction corresponding to the operation equipment based on the target mode and the mode target value corresponding to the equipment to be operated.
6. The internet of things cross-network communication method according to claim 4, wherein the obtaining of the mapping table corresponding to the device identifier and the third party identifier, and performing mapping search on the target parameter in the operation instruction based on the mapping table to obtain the target operation instruction comprises:
if the target parameter in the operation instruction comprises a sequence variation value and a variation type of the sequence variation value, acquiring a sequence mapping table corresponding to the equipment identifier and the third party identifier and a current mode target value of the equipment to be operated corresponding to the target mode;
locating a sequence number of the current mode target value in the sequence mapping table, and adjusting the sequence number based on the sequence change value and the change type;
searching a mode target value of the equipment to be operated according to the adjusted serial number;
and obtaining a target operation instruction corresponding to the operation equipment based on the target mode and the mode target value of the equipment to be operated.
7. The internet of things cross-network communication method according to claim 3, wherein before the step of sending the target operation instruction to the device to be operated, the method comprises:
acquiring device shadow data of a device to be operated, and searching a converted target mode corresponding to a current mode target value based on the device shadow data;
if the current mode target value is the same as the converted target parameter, generating feedback information that the equipment to be operated is in the state;
and stopping the step of sending the target operation instruction to the equipment to be operated from being executed, and sending the feedback information to a third-party Internet of things platform.
8. The internet of things cross-network communication method according to claim 1, wherein the sending the target operation instruction to the device to be operated includes:
performing instruction verification on the target operation instruction based on the object model data corresponding to the equipment to be operated;
and if the verification is successful, sending the target operation instruction to the equipment to be operated.
9. An internet of things cross-network communication device, comprising:
the system comprises a first Internet of things platform, a third Internet of things platform and equipment to be operated, wherein the first Internet of things platform, the third Internet of things platform and the equipment to be operated are in communication connection;
the third Internet of things platform is used for receiving the operation instruction and sending the operation instruction to the first Internet of things platform;
the system comprises a first Internet of things platform and a second Internet of things platform, wherein the first Internet of things platform is used for acquiring an operation instruction sent by a third-party Internet of things platform, and the operation instruction carries a third-party identifier of the third-party Internet of things platform and an equipment identifier of equipment to be operated; the device is used for determining a preset instruction conversion rule corresponding to the operation instruction according to the equipment identifier and the third party identifier; the operation instruction conversion module is used for converting the operation instruction according to the preset instruction conversion rule to obtain a target operation instruction and sending the target operation instruction to the equipment to be operated;
and the equipment to be operated belongs to the first Internet of things platform and is used for responding to the target operation instruction.
10. An internet of things cross-network communication device, comprising:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the internet of things cross-network communication method of any of claims 1-8.
11. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor to perform the steps of the internet of things cross-network communication method according to any one of claims 1 to 8.
CN202210137217.1A 2022-02-15 2022-02-15 Internet of things cross-network communication method, device, equipment and storage medium Active CN114726918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210137217.1A CN114726918B (en) 2022-02-15 2022-02-15 Internet of things cross-network communication method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210137217.1A CN114726918B (en) 2022-02-15 2022-02-15 Internet of things cross-network communication method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114726918A true CN114726918A (en) 2022-07-08
CN114726918B CN114726918B (en) 2024-04-02

Family

ID=82235779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210137217.1A Active CN114726918B (en) 2022-02-15 2022-02-15 Internet of things cross-network communication method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114726918B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017028779A1 (en) * 2015-08-17 2017-02-23 北京佰才邦技术有限公司 Configuration method and apparatus for internet of things protocol conversion function, nonvolatile computer storage medium and electronic device
CN107360068A (en) * 2017-06-30 2017-11-17 广东美的制冷设备有限公司 Household appliance controlling system, method and its equipment
CN107395468A (en) * 2017-06-30 2017-11-24 广东美的制冷设备有限公司 Household appliance controlling system, method and its equipment
KR20180098823A (en) * 2017-02-27 2018-09-05 주식회사 스마트큐 System and method for integrated remote control
US20190068576A1 (en) * 2017-08-25 2019-02-28 Beijing Baidu Netcom Science And Technology Co., Ltd. Method, apparatus and system for remote controlling intelligent devices
CN109474633A (en) * 2018-12-28 2019-03-15 深圳和而泰数据资源与云技术有限公司 Method for converting protocol, calculates equipment and computer storage medium at device
CN110177033A (en) * 2019-05-21 2019-08-27 四川虹美智能科技有限公司 Method, terminal and Internet of things system based on Internet of Things control household electrical appliances
CN110351378A (en) * 2019-07-17 2019-10-18 深圳市智物联网络有限公司 A kind of control method and system of internet of things equipment
CN110933146A (en) * 2019-11-14 2020-03-27 厦门网宿有限公司 Data conversion method and device and server
CN111327662A (en) * 2018-12-17 2020-06-23 西安华为技术有限公司 Communication method and management device for heterogeneous Internet of things platform
CN112583925A (en) * 2020-12-23 2021-03-30 佳讯飞鸿(北京)智能科技研究院有限公司 Control system and method of internet of things service, readable storage medium and electronic device
WO2021143025A1 (en) * 2020-01-15 2021-07-22 平安科技(深圳)有限公司 Internet-of-things data transmission method and apparatus, and medium and electronic device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017028779A1 (en) * 2015-08-17 2017-02-23 北京佰才邦技术有限公司 Configuration method and apparatus for internet of things protocol conversion function, nonvolatile computer storage medium and electronic device
KR20180098823A (en) * 2017-02-27 2018-09-05 주식회사 스마트큐 System and method for integrated remote control
CN107360068A (en) * 2017-06-30 2017-11-17 广东美的制冷设备有限公司 Household appliance controlling system, method and its equipment
CN107395468A (en) * 2017-06-30 2017-11-24 广东美的制冷设备有限公司 Household appliance controlling system, method and its equipment
US20190068576A1 (en) * 2017-08-25 2019-02-28 Beijing Baidu Netcom Science And Technology Co., Ltd. Method, apparatus and system for remote controlling intelligent devices
CN111327662A (en) * 2018-12-17 2020-06-23 西安华为技术有限公司 Communication method and management device for heterogeneous Internet of things platform
CN109474633A (en) * 2018-12-28 2019-03-15 深圳和而泰数据资源与云技术有限公司 Method for converting protocol, calculates equipment and computer storage medium at device
CN110177033A (en) * 2019-05-21 2019-08-27 四川虹美智能科技有限公司 Method, terminal and Internet of things system based on Internet of Things control household electrical appliances
CN110351378A (en) * 2019-07-17 2019-10-18 深圳市智物联网络有限公司 A kind of control method and system of internet of things equipment
WO2021008412A1 (en) * 2019-07-17 2021-01-21 深圳市智物联网络有限公司 Control method and system for internet of things device
CN110933146A (en) * 2019-11-14 2020-03-27 厦门网宿有限公司 Data conversion method and device and server
WO2021143025A1 (en) * 2020-01-15 2021-07-22 平安科技(深圳)有限公司 Internet-of-things data transmission method and apparatus, and medium and electronic device
CN112583925A (en) * 2020-12-23 2021-03-30 佳讯飞鸿(北京)智能科技研究院有限公司 Control system and method of internet of things service, readable storage medium and electronic device

Also Published As

Publication number Publication date
CN114726918B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN110839084B (en) Session management method, device, equipment and medium
EP3493485B1 (en) Method, apparatus and system for notification
CN108989397B (en) Data recommendation method and device and storage medium
CN112860695B (en) Monitoring data query method, device, equipment, storage medium and program product
US11237888B2 (en) Message processing method and system, storage medium and electronic device
US20230161541A1 (en) Screen projection method and system
JP2017506480A (en) Information processing method and apparatus in M2M
KR20150052538A (en) Apparatus and method for managing node of opc ua
US11228537B2 (en) Resource processing method and system, storage medium and electronic device
CN114726918A (en) Internet of things cross-network communication method, device, equipment and storage medium
CN115630122A (en) Data synchronization method and device, storage medium and computer equipment
CN111193805B (en) Resource discovery method and device
CN110674068A (en) Information interaction method among board cards, distributed board card and storage medium
US11456889B2 (en) Information notification method, apparatus, and system
CN115622988B (en) Call response method and device for web interface, electronic equipment and storage medium
WO2023179709A1 (en) Information processing method and apparatus, communication device, and readable storage medium
CN117411761A (en) Message processing method, device, computer equipment and computer readable storage medium
WO2023213288A1 (en) Model acquisition method and communication device
CN113986238A (en) Application cooperation method and device, storage medium and electronic equipment
CN115203456A (en) Method and device for associating multi-modal data, computer equipment and storage medium
CN115658708A (en) Data association method, device, server and computer readable storage medium
TWI502922B (en) Method and server for keeping apparatuses in alive state
CN114143910A (en) Data transmission method, device and computer readable storage medium
CN115914376A (en) Internet of things data processing method, device, equipment and computer readable storage medium
CN117915490A (en) Device connection processing method and device, electronic device and storage medium

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
GR01 Patent grant
GR01 Patent grant