CN110278286B - Method for interacting with Internet of things equipment and business system - Google Patents

Method for interacting with Internet of things equipment and business system Download PDF

Info

Publication number
CN110278286B
CN110278286B CN201910629474.5A CN201910629474A CN110278286B CN 110278286 B CN110278286 B CN 110278286B CN 201910629474 A CN201910629474 A CN 201910629474A CN 110278286 B CN110278286 B CN 110278286B
Authority
CN
China
Prior art keywords
things
equipment
encoder
decoder
target internet
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.)
Active
Application number
CN201910629474.5A
Other languages
Chinese (zh)
Other versions
CN110278286A (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.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent 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 Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN201910629474.5A priority Critical patent/CN110278286B/en
Publication of CN110278286A publication Critical patent/CN110278286A/en
Application granted granted Critical
Publication of CN110278286B publication Critical patent/CN110278286B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Abstract

The invention provides a method for interacting with Internet of things equipment and a service system, wherein the method comprises the following steps: presetting at least one decoder; receiving reported information sent by a first target Internet of things device; determining a target decoder corresponding to the first target Internet of things device, and sending the report information to the target decoder; and decoding the reporting information by using the target decoder to generate the identifiable reporting information. The invention provides a method and a service system for interacting with Internet of things equipment, which can interact with various different Internet of things equipment.

Description

Method for interacting with Internet of things equipment and business system
Technical Field
The invention relates to the technical field of Internet of things, in particular to a method and a service system for interacting with Internet of things equipment.
Background
With the rapid development of the internet of things technology, more and more devices are connected into the internet of things, such as intelligent household appliances, automobiles and the like. With more and more devices accessed into the internet of things, the business system cannot interact with various different internet of things devices. In the prior art, a service system can only interact with internet of things equipment with the same communication protocol as the system. As can be seen from the above description, the prior art cannot interact with various different internet of things devices.
Disclosure of Invention
The embodiment of the invention provides a method and a service system for interacting with Internet of things equipment, which can interact with various different Internet of things equipment.
In a first aspect, an embodiment of the present invention provides a method for interacting with an internet of things device, including:
presetting at least one decoder;
receiving reported information sent by a first target Internet of things device;
determining a target decoder corresponding to the first target Internet of things device, and sending the report information to the target decoder;
and decoding the reporting information by using the target decoder to generate the identifiable reporting information.
Alternatively,
the presetting of at least one decoder comprises:
presetting a decoder corresponding to each firmware in at least one firmware, presetting a decoder corresponding to each equipment model in at least one equipment type, presetting a decoder corresponding to each equipment type in at least one equipment type, and presetting a universal decoder;
the determining of the target decoder corresponding to the first target internet of things device includes:
a1: judging whether the firmware of the first target internet of things equipment can be successfully identified, if so, executing A2, otherwise, executing A4;
a2: judging whether a decoder corresponding to the firmware of the first target internet of things device exists in a decoder corresponding to each firmware in the at least one firmware, if so, executing A3, otherwise, executing A4;
a3: taking a decoder corresponding to the firmware of the first target Internet of things device as the target decoder;
a4: judging whether the equipment model of the first target Internet of things equipment can be successfully identified, if so, executing A5, otherwise, executing A7;
a5: judging whether a decoder corresponding to the equipment model of the first target Internet of things equipment exists in a decoder corresponding to each equipment model in the at least one equipment model, if so, executing A6, otherwise, executing A7;
a6: taking a decoder corresponding to the equipment model of the first target Internet of things equipment as the target decoder;
a7: judging whether the device type of the first target Internet of things device can be successfully identified, if so, executing A8, otherwise, executing A10;
a8: judging whether a decoder corresponding to the device type of the first target internet of things device exists in a decoder corresponding to each device type in the at least one device type, if so, executing A9, otherwise, executing A10;
a9: taking a decoder corresponding to the device type of the first target Internet of things device as the target decoder;
a10: and taking the general decoder as the target decoder.
Alternatively,
the method further comprises the following steps:
when it is determined that a decoder corresponding to the firmware of the first target internet of things device does not exist in decoders corresponding to each firmware of the at least one firmware, executing:
generating a decoder corresponding to the firmware of the first target internet of things device, and adding the decoder corresponding to the firmware of the first target internet of things device into the at least one decoder;
further comprising:
when the decoder corresponding to each equipment model in the at least one equipment model is judged not to exist in the decoder corresponding to the equipment model of the first target Internet of things equipment, executing:
generating a decoder corresponding to the equipment model of the first target Internet of things equipment, and adding the decoder corresponding to the equipment model of the first target Internet of things equipment into the at least one decoder;
when it is currently determined that a decoder corresponding to the device type of the first target internet of things device does not exist in a decoder corresponding to each device type of the at least one device type, performing:
and generating a decoder corresponding to the device type of the first target internet of things device, and adding the decoder corresponding to the device type of the first target internet of things device into the at least one decoder.
In a second aspect, an embodiment of the present invention provides a method for interacting with an internet of things device, including:
presetting at least one encoder;
generating an issuing instruction which needs to be sent to a second target Internet of things device;
determining a target encoder corresponding to the second target Internet of things device, and sending the issuing instruction to the target encoder;
encoding the issuing instruction by using the target encoder to generate the issuing instruction which can be identified by the second target Internet of things device;
and sending the issuing instruction which can be identified by the second target Internet of things equipment to the second target Internet of things equipment.
Alternatively,
the presetting of at least one encoder comprises:
presetting an encoder corresponding to each firmware in at least one firmware, presetting an encoder corresponding to each equipment model in at least one equipment type, presetting an encoder corresponding to each equipment type in at least one equipment type, and presetting a general encoder;
the determining of the target encoder corresponding to the second target internet of things device includes:
b1: judging whether the firmware of the second target internet of things equipment can be successfully identified, if so, executing B2, otherwise, executing B4;
b2: judging whether an encoder corresponding to the firmware of the second target internet of things device exists in an encoder corresponding to each firmware in the at least one firmware, if so, executing B3, otherwise, executing B4;
b3: taking an encoder corresponding to the firmware of the second target Internet of things device as the target encoder;
b4: judging whether the equipment model of the second target Internet of things equipment can be successfully identified, if so, executing B5, otherwise, executing B7;
b5: judging whether an encoder corresponding to the equipment model of the second target Internet of things equipment exists in an encoder corresponding to each equipment model in the at least one equipment model, if so, executing B6, otherwise, executing B7;
b6: taking an encoder corresponding to the equipment model of the second target Internet of things equipment as the target encoder;
b7: judging whether the device type of the second target Internet of things device can be successfully identified, if so, executing B8, otherwise, executing B10;
b8: judging whether an encoder corresponding to the device type of the second target internet of things device exists in an encoder corresponding to each device type in the at least one device type, if so, executing B9, otherwise, executing B10;
b9: taking an encoder corresponding to the device type of the second target Internet of things device as the target encoder;
b10: and taking the universal encoder as the target encoder.
Alternatively,
the method further comprises the following steps:
when judging that the encoder corresponding to the firmware of the second target internet of things device does not exist in the encoder corresponding to each firmware of the at least one firmware, executing:
generating an encoder corresponding to the firmware of the second target internet of things device, and adding the encoder corresponding to the firmware of the second target internet of things device into the at least one encoder;
further comprising:
when judging that the encoder corresponding to the equipment model of the second target Internet of things equipment does not exist in the encoder corresponding to each equipment model in the at least one equipment model, executing:
generating an encoder corresponding to the equipment model of the second target internet of things equipment, and adding the encoder corresponding to the equipment model of the second target internet of things equipment into the at least one encoder;
when it is currently determined that the encoder corresponding to the device type of the second target internet of things device does not exist in the encoder corresponding to each device type of the at least one device type, performing:
and generating an encoder corresponding to the device type of the second target Internet of things device, and adding the encoder corresponding to the device type of the second target Internet of things device into the at least one encoder.
In a third aspect, an embodiment of the present invention provides a service system interacting with an internet of things device, including:
at least one decoder, a receiving unit and a decoder determining unit;
the receiving unit is used for receiving the report information sent by the first target Internet of things device;
the decoder determining unit is configured to determine a decoder corresponding to the first target internet of things device, and send the report information to the determined decoder corresponding to the first target internet of things device;
each decoder is configured to decode the reporting information when receiving the reporting information sent by the decoder determining unit, and generate the identifiable reporting information.
Alternatively,
the at least one decoder, comprising:
a decoder corresponding to each firmware in at least one firmware, a decoder corresponding to each equipment model in at least one equipment model, a decoder corresponding to each equipment class in at least one equipment class and a universal decoder;
the decoder determination unit is configured to perform:
a1: judging whether the firmware of the first target internet of things equipment can be successfully identified, if so, executing A2, otherwise, executing A4;
a2: judging whether a decoder corresponding to the firmware of the first target internet of things device exists in a decoder corresponding to each firmware in the at least one firmware, if so, executing A3, otherwise, executing A4;
a3: taking a decoder corresponding to the firmware of the first target Internet of things device as the determined decoder corresponding to the first target Internet of things device;
a4: judging whether the equipment model of the first target Internet of things equipment can be successfully identified, if so, executing A5, otherwise, executing A7;
a5: judging whether a decoder corresponding to the equipment model of the first target Internet of things equipment exists in a decoder corresponding to each equipment model in the at least one equipment model, if so, executing A6, otherwise, executing A7;
a6: taking a decoder corresponding to the equipment model of the first target Internet of things equipment as the determined decoder corresponding to the first target Internet of things equipment;
a7: judging whether the device type of the first target Internet of things device can be successfully identified, if so, executing A8, otherwise, executing A10;
a8: judging whether a decoder corresponding to the device type of the first target internet of things device exists in a decoder corresponding to each device type in the at least one device type, if so, executing A9, otherwise, executing A10;
a9: taking a decoder corresponding to the equipment type of the first target Internet of things equipment as the determined decoder corresponding to the first target Internet of things equipment;
a10: and taking the universal decoder as the determined decoder corresponding to the first target Internet of things device.
In a fourth aspect, an embodiment of the present invention provides a service system interacting with an internet of things device, including:
at least one encoder, a generating unit, an encoder determining unit and a transmitting unit;
the generating unit is used for generating an issuing instruction which needs to be sent to the second target Internet of things equipment;
the encoder determining unit is configured to determine an encoder corresponding to the second target internet of things device, and send the issuing instruction to the determined encoder corresponding to the second target internet of things device;
each encoder is used for encoding the issuing instruction when receiving the issuing instruction sent by the encoder determining unit, and generating the issuing instruction which can be identified by the second target internet of things device;
the sending unit is configured to send the issuing instruction that can be identified by the second target internet of things device to the second target internet of things device.
Alternatively,
the at least one encoder, comprising:
an encoder corresponding to each firmware in at least one firmware, an encoder corresponding to each equipment model in at least one equipment type, an encoder corresponding to each equipment type in at least one equipment type and a universal encoder;
the encoder determination unit is configured to perform:
b1: judging whether the firmware of the second target internet of things equipment can be successfully identified, if so, executing B2, otherwise, executing B4;
b2: judging whether an encoder corresponding to the firmware of the second target internet of things device exists in an encoder corresponding to each firmware in the at least one firmware, if so, executing B3, otherwise, executing B4;
b3: taking an encoder corresponding to the firmware of the second target Internet of things device as the determined encoder corresponding to the second target Internet of things device;
b4: judging whether the equipment model of the second target Internet of things equipment can be successfully identified, if so, executing B5, otherwise, executing B7;
b5: judging whether an encoder corresponding to the equipment model of the second target Internet of things equipment exists in an encoder corresponding to each equipment model in the at least one equipment model, if so, executing B6, otherwise, executing B7;
b6: taking the encoder corresponding to the equipment model of the second target Internet of things equipment as the determined encoder corresponding to the second target Internet of things equipment;
b7: judging whether the device type of the second target Internet of things device can be successfully identified, if so, executing B8, otherwise, executing B10;
b8: judging whether an encoder corresponding to the device type of the second target internet of things device exists in an encoder corresponding to each device type in the at least one device type, if so, executing B9, otherwise, executing B10;
b9: taking the encoder corresponding to the device type of the second target Internet of things device as the determined encoder corresponding to the second target Internet of things device;
b10: and taking the universal encoder as the determined encoder corresponding to the second target Internet of things equipment.
In the embodiment of the invention, at least one decoder is preset, when the report information sent by any one piece of internet of things equipment is received, the decoder corresponding to the piece of internet of things equipment is determined, the report information is decoded by the decoder, the decoded report information is further identified, interaction with any one piece of internet of things equipment is realized, and the interaction with various pieces of internet of things equipment can be realized by setting the at least one decoder to decode the report information of various pieces of internet of things equipment.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for interacting with an internet of things device according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for interacting with an internet of things device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a business system interacting with an internet of things device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a business system interacting with an internet of things device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for interacting with an internet of things device, where the method may include the following steps:
step 101: presetting at least one decoder;
step 102: receiving reported information sent by a first target Internet of things device;
step 103: determining a target decoder corresponding to the first target Internet of things device, and sending the report information to the target decoder;
step 104: and decoding the reporting information by using the target decoder to generate the identifiable reporting information.
In the embodiment of the invention, at least one decoder is preset, when the report information sent by any one piece of internet of things equipment is received, the decoder corresponding to the piece of internet of things equipment is determined, the report information is decoded by the decoder, the decoded report information is further identified, interaction with any one piece of internet of things equipment is realized, and the interaction with various pieces of internet of things equipment can be realized by setting the at least one decoder to decode the report information of various pieces of internet of things equipment.
In an embodiment of the present invention, the presetting of at least one decoder includes:
presetting a decoder corresponding to each firmware in at least one firmware, presetting a decoder corresponding to each equipment model in at least one equipment type, presetting a decoder corresponding to each equipment type in at least one equipment type, and presetting a universal decoder;
the determining of the target decoder corresponding to the first target internet of things device includes:
a1: judging whether the firmware of the first target internet of things equipment can be successfully identified, if so, executing A2, otherwise, executing A4;
a2: judging whether a decoder corresponding to the firmware of the first target internet of things device exists in a decoder corresponding to each firmware in the at least one firmware, if so, executing A3, otherwise, executing A4;
a3: taking a decoder corresponding to the firmware of the first target Internet of things device as the target decoder;
a4: judging whether the equipment model of the first target Internet of things equipment can be successfully identified, if so, executing A5, otherwise, executing A7;
a5: judging whether a decoder corresponding to the equipment model of the first target Internet of things equipment exists in a decoder corresponding to each equipment model in the at least one equipment model, if so, executing A6, otherwise, executing A7;
a6: taking a decoder corresponding to the equipment model of the first target Internet of things equipment as the target decoder;
a7: judging whether the device type of the first target Internet of things device can be successfully identified, if so, executing A8, otherwise, executing A10;
a8: judging whether a decoder corresponding to the device type of the first target internet of things device exists in a decoder corresponding to each device type in the at least one device type, if so, executing A9, otherwise, executing A10;
a9: taking a decoder corresponding to the device type of the first target Internet of things device as the target decoder;
a10: and taking the general decoder as the target decoder.
In the embodiment of the present invention, the at least one decoder includes a decoder corresponding to the firmware, a decoder corresponding to the device model, a decoder corresponding to the device class, and a general decoder.
Each device type may include multiple device models, and each device model may include multiple firmware. The device types may specifically include, for example, air-conditioning, washing machine, refrigerator, purifier, and the like types. Air conditioners this equipment type may include: KFR-34J435, KFR-2345345, etc., each of which may include multiple versions of firmware.
For the decoding accuracy of each decoder, the accuracy of the decoder corresponding to the firmware is higher than that of the decoder corresponding to the equipment model, the decoder corresponding to the equipment model is higher than that of the decoder corresponding to the equipment type, and the decoder corresponding to the equipment type is higher than that of the universal decoder.
In a1, the first target internet of things device may agree that the information of the firmware (e.g., version of the firmware, name of the firmware, etc.) is carried when the report information is sent, so that the firmware of the first target internet of things device may be determined from the information of the firmware.
In a4, the device model may be carried when the reporting information is sent by agreeing with the first target internet of things device.
In a7, the device type may be carried when the reporting information is sent by agreeing with the first target internet of things device. In addition, in the case that the device model has been determined, the device type may be determined based on the device model, and specifically, since the international standard specifies that the prefix of the device model of each internet of things device is set according to the device type, the device type may be determined based on the prefix of the device model, for example: the equipment model is KFR-34J435, and the prefix KFR indicates the type of air-conditioning equipment.
In addition, the reported information may be a state of the internet of things device, for example: the air conditioner can use the current temperature of the air conditioner as the report information.
The decoder may be implemented by a decoder interface.
In addition, the corresponding relation between the identification of the internet of things equipment and the firmware, the equipment model and the equipment type of the internet of things equipment can be preset, when the internet of things equipment sends the report information, the identification of the internet of things equipment is carried, and the firmware, the equipment model and the equipment type of the internet of things equipment are determined from the corresponding relation according to the identification. The identifier of the internet of things device may be a SN (Serial Number) of the internet of things device.
In an embodiment of the invention, the method further comprises:
when it is determined that a decoder corresponding to the firmware of the first target internet of things device does not exist in decoders corresponding to each firmware of the at least one firmware, executing:
generating a decoder corresponding to the firmware of the first target internet of things device, and adding the decoder corresponding to the firmware of the first target internet of things device into the at least one decoder;
further comprising:
when the decoder corresponding to each equipment model in the at least one equipment model is judged not to exist in the decoder corresponding to the equipment model of the first target Internet of things equipment, executing:
generating a decoder corresponding to the equipment model of the first target Internet of things equipment, and adding the decoder corresponding to the equipment model of the first target Internet of things equipment into the at least one decoder;
when it is currently determined that a decoder corresponding to the device type of the first target internet of things device does not exist in a decoder corresponding to each device type of the at least one device type, performing:
and generating a decoder corresponding to the device type of the first target internet of things device, and adding the decoder corresponding to the device type of the first target internet of things device into the at least one decoder.
In the embodiment of the invention, when a new internet of things device accesses, the decoder corresponding to the internet of things device can be supplemented into the at least one decoder.
As shown in fig. 2, an embodiment of the present invention provides a method for interacting with an internet of things device, including:
step 201: presetting at least one encoder;
step 202: generating an issuing instruction which needs to be sent to a second target Internet of things device;
step 203: determining a target encoder corresponding to the second target Internet of things device, and sending the issuing instruction to the target encoder;
step 204: encoding the issuing instruction by using the target encoder to generate the issuing instruction which can be identified by the second target Internet of things device;
step 205: and sending the issuing instruction which can be identified by the second target Internet of things equipment to the second target Internet of things equipment.
In the embodiment of the invention, at least one encoder is preset, when an issuing instruction needs to be sent to any Internet of things device, the encoder corresponding to the Internet of things device is determined, the issuing instruction is encoded by the encoder, the issuing instruction which can be identified by the Internet of things device is sent to the Internet of things device, interaction with any Internet of things device is realized, the issuing instruction aiming at various different Internet of things devices is encoded by setting the at least one encoder, and interaction with various different Internet of things devices can be realized.
In an embodiment of the present invention, the presetting of at least one encoder includes:
presetting an encoder corresponding to each firmware in at least one firmware, presetting an encoder corresponding to each equipment model in at least one equipment type, presetting an encoder corresponding to each equipment type in at least one equipment type, and presetting a general encoder;
the determining of the target encoder corresponding to the second target internet of things device includes:
b1: judging whether the firmware of the second target internet of things equipment can be successfully identified, if so, executing B2, otherwise, executing B4;
b2: judging whether an encoder corresponding to the firmware of the second target internet of things device exists in an encoder corresponding to each firmware in the at least one firmware, if so, executing B3, otherwise, executing B4;
b3: taking an encoder corresponding to the firmware of the second target Internet of things device as the target encoder;
b4: judging whether the equipment model of the second target Internet of things equipment can be successfully identified, if so, executing B5, otherwise, executing B7;
b5: judging whether an encoder corresponding to the equipment model of the second target Internet of things equipment exists in an encoder corresponding to each equipment model in the at least one equipment model, if so, executing B6, otherwise, executing B7;
b6: taking an encoder corresponding to the equipment model of the second target Internet of things equipment as the target encoder;
b7: judging whether the device type of the second target Internet of things device can be successfully identified, if so, executing B8, otherwise, executing B10;
b8: judging whether an encoder corresponding to the device type of the second target internet of things device exists in an encoder corresponding to each device type in the at least one device type, if so, executing B9, otherwise, executing B10;
b9: taking an encoder corresponding to the device type of the second target Internet of things device as the target encoder;
b10: and taking the universal encoder as the target encoder.
In the embodiment of the present invention, the at least one encoder includes an encoder corresponding to the firmware, an encoder corresponding to the device model, an encoder corresponding to the device type, and a general encoder.
Each device type may include multiple device models, and each device model may include multiple firmware. The device types may specifically include, for example, air-conditioning, washing machine, refrigerator, purifier, and the like types. Air conditioners this equipment type may include: KFR-34J435, KFR-2345345, etc., each of which may include multiple versions of firmware.
For the accuracy of the coding of each coder, the accuracy of the coder corresponding to the firmware is higher than that of the coder corresponding to the equipment model, the coder corresponding to the equipment model is higher than that of the equipment type, and the coder corresponding to the equipment type is higher than that of the universal coder.
In B1, a correspondence between the internet of things device and the firmware may be preset, and the firmware of the second target internet of things device may be determined from the correspondence.
In B4, a correspondence between the internet of things device and the device model may be preset, and the device model of the second target internet of things device may be determined from the correspondence.
In B7, a correspondence between the internet of things device and the device type may be preset, and the device type of the second target internet of things device may be determined from the correspondence. In addition, in the case that the device model has been determined, the device type may be determined based on the device model, and specifically, since the international standard specifies that the prefix of the device model of each internet of things device is set according to the device type, the device type may be determined based on the prefix of the device model, for example: the equipment model is KFR-34J435, and the prefix KFR indicates the type of air-conditioning equipment.
In addition, the issued command may be a control command for the internet of things device, for example: the command can be a starting command for controlling the Internet of things equipment to start, or a command for controlling the Internet of things equipment to switch to a specified mode.
The encoder may be implemented by an encoder interface.
In addition, the corresponding relation between the identification of the internet of things equipment and the firmware, the equipment model and the equipment type of the internet of things equipment can be preset, and the firmware, the equipment model and the equipment type of the internet of things equipment can be determined from the corresponding relation according to the identification of the internet of things equipment. The identifier of the internet of things device may be an SN of the internet of things device.
In an embodiment of the invention, the method further comprises:
when judging that the encoder corresponding to the firmware of the second target internet of things device does not exist in the encoder corresponding to each firmware of the at least one firmware, executing:
generating an encoder corresponding to the firmware of the second target internet of things device, and adding the encoder corresponding to the firmware of the second target internet of things device into the at least one encoder;
further comprising:
when judging that the encoder corresponding to the equipment model of the second target Internet of things equipment does not exist in the encoder corresponding to each equipment model in the at least one equipment model, executing:
generating an encoder corresponding to the equipment model of the second target internet of things equipment, and adding the encoder corresponding to the equipment model of the second target internet of things equipment into the at least one encoder;
when it is currently determined that the encoder corresponding to the device type of the second target internet of things device does not exist in the encoder corresponding to each device type of the at least one device type, performing:
and generating an encoder corresponding to the device type of the second target Internet of things device, and adding the encoder corresponding to the device type of the second target Internet of things device into the at least one encoder.
In the embodiment of the invention, when a new internet of things device is accessed, the encoder corresponding to the internet of things device can be supplemented into the at least one encoder.
As shown in fig. 3, an embodiment of the present invention provides a service system interacting with an internet of things device, including:
at least one decoder 301, a receiving unit 302, and a decoder determining unit 303;
the receiving unit 302 is configured to receive report information sent by a first target internet of things device;
the decoder determining unit 303 is configured to determine a decoder corresponding to the first target internet of things device, and send the report information to the determined decoder 301 corresponding to the first target internet of things device;
each of the decoders 301 is configured to decode the reporting information when receiving the reporting information sent by the decoder determining unit 303, and generate the identifiable reporting information.
In an embodiment of the present invention, the at least one decoder includes:
a decoder corresponding to each firmware in at least one firmware, a decoder corresponding to each equipment model in at least one equipment model, a decoder corresponding to each equipment class in at least one equipment class and a universal decoder;
the decoder determination unit is configured to perform:
a1: judging whether the firmware of the first target internet of things equipment can be successfully identified, if so, executing A2, otherwise, executing A4;
a2: judging whether a decoder corresponding to the firmware of the first target internet of things device exists in a decoder corresponding to each firmware in the at least one firmware, if so, executing A3, otherwise, executing A4;
a3: taking a decoder corresponding to the firmware of the first target Internet of things device as the determined decoder corresponding to the first target Internet of things device;
a4: judging whether the equipment model of the first target Internet of things equipment can be successfully identified, if so, executing A5, otherwise, executing A7;
a5: judging whether a decoder corresponding to the equipment model of the first target Internet of things equipment exists in a decoder corresponding to each equipment model in the at least one equipment model, if so, executing A6, otherwise, executing A7;
a6: taking a decoder corresponding to the equipment model of the first target Internet of things equipment as the determined decoder corresponding to the first target Internet of things equipment;
a7: judging whether the device type of the first target Internet of things device can be successfully identified, if so, executing A8, otherwise, executing A10;
a8: judging whether a decoder corresponding to the device type of the first target internet of things device exists in a decoder corresponding to each device type in the at least one device type, if so, executing A9, otherwise, executing A10;
a9: taking a decoder corresponding to the equipment type of the first target Internet of things equipment as the determined decoder corresponding to the first target Internet of things equipment;
a10: and taking the universal decoder as the determined decoder corresponding to the first target Internet of things device.
In the embodiment of the invention, the business system can be arranged at the cloud.
As shown in fig. 4, an embodiment of the present invention provides a service system interacting with an internet of things device, including:
at least one encoder 401, a generating unit 402, an encoder determining unit 403, and a transmitting unit 404;
the generating unit 402 is configured to generate an issuing instruction that needs to be sent to a second target internet of things device;
the encoder determining unit 403 is configured to determine an encoder corresponding to the second target internet of things device, and send the issuing instruction to the determined encoder 401 corresponding to the second target internet of things device;
each encoder 401 is configured to encode the issuing instruction when receiving the issuing instruction sent by the encoder determining unit, and generate the issuing instruction that can be identified by the second target internet of things device;
the sending unit 404 is configured to send, to the second target internet of things device, the issuing instruction that can be identified by the second target internet of things device.
In an embodiment of the present invention, the at least one encoder includes:
an encoder corresponding to each firmware in at least one firmware, an encoder corresponding to each equipment model in at least one equipment type, an encoder corresponding to each equipment type in at least one equipment type and a universal encoder;
the encoder determination unit is configured to perform:
b1: judging whether the firmware of the second target internet of things equipment can be successfully identified, if so, executing B2, otherwise, executing B4;
b2: judging whether an encoder corresponding to the firmware of the second target internet of things device exists in an encoder corresponding to each firmware in the at least one firmware, if so, executing B3, otherwise, executing B4;
b3: taking an encoder corresponding to the firmware of the second target Internet of things device as the determined encoder corresponding to the second target Internet of things device;
b4: judging whether the equipment model of the second target Internet of things equipment can be successfully identified, if so, executing B5, otherwise, executing B7;
b5: judging whether an encoder corresponding to the equipment model of the second target Internet of things equipment exists in an encoder corresponding to each equipment model in the at least one equipment model, if so, executing B6, otherwise, executing B7;
b6: taking the encoder corresponding to the equipment model of the second target Internet of things equipment as the determined encoder corresponding to the second target Internet of things equipment;
b7: judging whether the device type of the second target Internet of things device can be successfully identified, if so, executing B8, otherwise, executing B10;
b8: judging whether an encoder corresponding to the device type of the second target internet of things device exists in an encoder corresponding to each device type in the at least one device type, if so, executing B9, otherwise, executing B10;
b9: taking the encoder corresponding to the device type of the second target Internet of things device as the determined encoder corresponding to the second target Internet of things device;
b10: and taking the universal encoder as the determined encoder corresponding to the second target Internet of things equipment.
In the embodiment of the invention, the business system can be arranged at the cloud.
Because the information interaction, execution process, and other contents between the units in the device are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
The embodiments of the invention have at least the following beneficial effects:
1. in the embodiment of the invention, at least one decoder is preset, when the report information sent by any one piece of internet of things equipment is received, the decoder corresponding to the piece of internet of things equipment is determined, the report information is decoded by the decoder, the decoded report information is further identified, interaction with any one piece of internet of things equipment is realized, and the interaction with various pieces of internet of things equipment can be realized by setting the at least one decoder to decode the report information of various pieces of internet of things equipment.
2. In the embodiment of the invention, at least one encoder is preset, when an issuing instruction needs to be sent to any Internet of things device, the encoder corresponding to the Internet of things device is determined, the issuing instruction is encoded by the encoder, the issuing instruction which can be identified by the Internet of things device is sent to the Internet of things device, interaction with any Internet of things device is realized, the issuing instruction aiming at various different Internet of things devices is encoded by setting the at least one encoder, and interaction with various different Internet of things devices can be realized.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (6)

1. A method for interacting with Internet of things equipment is characterized in that,
presetting at least one decoder;
the method comprises the following steps:
receiving reported information sent by a first target Internet of things device;
determining a target decoder corresponding to the first target Internet of things device, and sending the report information to the target decoder;
decoding the reported information by using the target decoder to generate identifiable reported information;
wherein the presetting of at least one decoder comprises:
presetting a decoder corresponding to each firmware in at least one firmware, presetting a decoder corresponding to each equipment model in at least one equipment type, presetting a decoder corresponding to each equipment type in at least one equipment type, and presetting a universal decoder;
the determining of the target decoder corresponding to the first target internet of things device includes:
a1: judging whether the firmware of the first target internet of things equipment can be successfully identified, if so, executing A2, otherwise, executing A4;
a2: judging whether a decoder corresponding to the firmware of the first target internet of things device exists in a decoder corresponding to each firmware in the at least one firmware, if so, executing A3, otherwise, executing A4;
a3: taking a decoder corresponding to the firmware of the first target Internet of things device as the target decoder;
a4: judging whether the equipment model of the first target Internet of things equipment can be successfully identified, if so, executing A5, otherwise, executing A7;
a5: judging whether a decoder corresponding to the equipment model of the first target Internet of things equipment exists in a decoder corresponding to each equipment model in the at least one equipment model, if so, executing A6, otherwise, executing A7;
a6: taking a decoder corresponding to the equipment model of the first target Internet of things equipment as the target decoder;
a7: judging whether the device type of the first target Internet of things device can be successfully identified, if so, executing A8, otherwise, executing A10;
a8: judging whether a decoder corresponding to the device type of the first target internet of things device exists in a decoder corresponding to each device type in the at least one device type, if so, executing A9, otherwise, executing A10;
a9: taking a decoder corresponding to the device type of the first target Internet of things device as the target decoder;
a10: and taking the general decoder as the target decoder.
2. The method of claim 1,
further comprising:
when it is determined that a decoder corresponding to the firmware of the first target internet of things device does not exist in decoders corresponding to each firmware of the at least one firmware, executing:
generating a decoder corresponding to the firmware of the first target internet of things device, and adding the decoder corresponding to the firmware of the first target internet of things device into the at least one decoder;
further comprising:
when the decoder corresponding to each equipment model in the at least one equipment model is judged not to exist in the decoder corresponding to the equipment model of the first target Internet of things equipment, executing:
generating a decoder corresponding to the equipment model of the first target Internet of things equipment, and adding the decoder corresponding to the equipment model of the first target Internet of things equipment into the at least one decoder;
when it is currently determined that a decoder corresponding to the device type of the first target internet of things device does not exist in a decoder corresponding to each device type of the at least one device type, performing:
and generating a decoder corresponding to the device type of the first target internet of things device, and adding the decoder corresponding to the device type of the first target internet of things device into the at least one decoder.
3. A method for interacting with Internet of things equipment is characterized in that,
presetting at least one encoder;
the method comprises the following steps:
generating an issuing instruction which needs to be sent to a second target Internet of things device;
determining a target encoder corresponding to the second target Internet of things device, and sending the issuing instruction to the target encoder;
encoding the issuing instruction by using the target encoder to generate the issuing instruction which can be identified by the second target Internet of things device;
sending the issuing instruction which can be identified by the second target Internet of things equipment to the second target Internet of things equipment;
wherein the presetting of at least one encoder comprises:
presetting an encoder corresponding to each firmware in at least one firmware, presetting an encoder corresponding to each equipment model in at least one equipment type, presetting an encoder corresponding to each equipment type in at least one equipment type, and presetting a general encoder;
the determining of the target encoder corresponding to the second target internet of things device includes:
b1: judging whether the firmware of the second target internet of things equipment can be successfully identified, if so, executing B2, otherwise, executing B4;
b2: judging whether an encoder corresponding to the firmware of the second target internet of things device exists in an encoder corresponding to each firmware in the at least one firmware, if so, executing B3, otherwise, executing B4;
b3: taking an encoder corresponding to the firmware of the second target Internet of things device as the target encoder;
b4: judging whether the equipment model of the second target Internet of things equipment can be successfully identified, if so, executing B5, otherwise, executing B7;
b5: judging whether an encoder corresponding to the equipment model of the second target Internet of things equipment exists in an encoder corresponding to each equipment model in the at least one equipment model, if so, executing B6, otherwise, executing B7;
b6: taking an encoder corresponding to the equipment model of the second target Internet of things equipment as the target encoder;
b7: judging whether the device type of the second target Internet of things device can be successfully identified, if so, executing B8, otherwise, executing B10;
b8: judging whether an encoder corresponding to the device type of the second target internet of things device exists in an encoder corresponding to each device type in the at least one device type, if so, executing B9, otherwise, executing B10;
b9: taking an encoder corresponding to the device type of the second target Internet of things device as the target encoder;
b10: and taking the universal encoder as the target encoder.
4. The method of claim 3,
further comprising:
when judging that the encoder corresponding to the firmware of the second target internet of things device does not exist in the encoder corresponding to each firmware of the at least one firmware, executing:
generating an encoder corresponding to the firmware of the second target internet of things device, and adding the encoder corresponding to the firmware of the second target internet of things device into the at least one encoder;
further comprising:
when judging that the encoder corresponding to the equipment model of the second target Internet of things equipment does not exist in the encoder corresponding to each equipment model in the at least one equipment model, executing:
generating an encoder corresponding to the equipment model of the second target internet of things equipment, and adding the encoder corresponding to the equipment model of the second target internet of things equipment into the at least one encoder;
when it is currently determined that the encoder corresponding to the device type of the second target internet of things device does not exist in the encoder corresponding to each device type of the at least one device type, performing:
and generating an encoder corresponding to the device type of the second target Internet of things device, and adding the encoder corresponding to the device type of the second target Internet of things device into the at least one encoder.
5. A business system interacting with Internet of things equipment is characterized by comprising:
at least one decoder, a receiving unit and a decoder determining unit;
the receiving unit is used for receiving the report information sent by the first target Internet of things device;
the decoder determining unit is configured to determine a decoder corresponding to the first target internet of things device, and send the report information to the determined decoder corresponding to the first target internet of things device;
each decoder is configured to decode the reporting information when receiving the reporting information sent by the decoder determining unit, and generate identifiable reporting information;
wherein the at least one decoder comprises:
a decoder corresponding to each firmware in at least one firmware, a decoder corresponding to each equipment model in at least one equipment model, a decoder corresponding to each equipment class in at least one equipment class and a universal decoder;
the decoder determination unit is configured to perform:
a1: judging whether the firmware of the first target internet of things equipment can be successfully identified, if so, executing A2, otherwise, executing A4;
a2: judging whether a decoder corresponding to the firmware of the first target internet of things device exists in a decoder corresponding to each firmware in the at least one firmware, if so, executing A3, otherwise, executing A4;
a3: taking a decoder corresponding to the firmware of the first target Internet of things device as the determined decoder corresponding to the first target Internet of things device;
a4: judging whether the equipment model of the first target Internet of things equipment can be successfully identified, if so, executing A5, otherwise, executing A7;
a5: judging whether a decoder corresponding to the equipment model of the first target Internet of things equipment exists in a decoder corresponding to each equipment model in the at least one equipment model, if so, executing A6, otherwise, executing A7;
a6: taking a decoder corresponding to the equipment model of the first target Internet of things equipment as the determined decoder corresponding to the first target Internet of things equipment;
a7: judging whether the device type of the first target Internet of things device can be successfully identified, if so, executing A8, otherwise, executing A10;
a8: judging whether a decoder corresponding to the device type of the first target internet of things device exists in a decoder corresponding to each device type in the at least one device type, if so, executing A9, otherwise, executing A10;
a9: taking a decoder corresponding to the equipment type of the first target Internet of things equipment as the determined decoder corresponding to the first target Internet of things equipment;
a10: and taking the universal decoder as the determined decoder corresponding to the first target Internet of things device.
6. A business system interacting with Internet of things equipment is characterized by comprising:
at least one encoder, a generating unit, an encoder determining unit and a transmitting unit;
the generating unit is used for generating an issuing instruction which needs to be sent to the second target Internet of things equipment;
the encoder determining unit is configured to determine an encoder corresponding to the second target internet of things device, and send the issuing instruction to the determined encoder corresponding to the second target internet of things device;
each encoder is used for encoding the issuing instruction when receiving the issuing instruction sent by the encoder determining unit, and generating the issuing instruction which can be identified by the second target internet of things device;
the sending unit is configured to send the issuing instruction that can be identified by the second target internet of things device to the second target internet of things device;
wherein the at least one encoder comprises:
an encoder corresponding to each firmware in at least one firmware, an encoder corresponding to each equipment model in at least one equipment type, an encoder corresponding to each equipment type in at least one equipment type and a universal encoder;
the encoder determination unit is configured to perform:
b1: judging whether the firmware of the second target internet of things equipment can be successfully identified, if so, executing B2, otherwise, executing B4;
b2: judging whether an encoder corresponding to the firmware of the second target internet of things device exists in an encoder corresponding to each firmware in the at least one firmware, if so, executing B3, otherwise, executing B4;
b3: taking an encoder corresponding to the firmware of the second target Internet of things device as the determined encoder corresponding to the second target Internet of things device;
b4: judging whether the equipment model of the second target Internet of things equipment can be successfully identified, if so, executing B5, otherwise, executing B7;
b5: judging whether an encoder corresponding to the equipment model of the second target Internet of things equipment exists in an encoder corresponding to each equipment model in the at least one equipment model, if so, executing B6, otherwise, executing B7;
b6: taking the encoder corresponding to the equipment model of the second target Internet of things equipment as the determined encoder corresponding to the second target Internet of things equipment;
b7: judging whether the device type of the second target Internet of things device can be successfully identified, if so, executing B8, otherwise, executing B10;
b8: judging whether an encoder corresponding to the device type of the second target internet of things device exists in an encoder corresponding to each device type in the at least one device type, if so, executing B9, otherwise, executing B10;
b9: taking the encoder corresponding to the device type of the second target Internet of things device as the determined encoder corresponding to the second target Internet of things device;
b10: and taking the universal encoder as the determined encoder corresponding to the second target Internet of things equipment.
CN201910629474.5A 2019-07-12 2019-07-12 Method for interacting with Internet of things equipment and business system Active CN110278286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910629474.5A CN110278286B (en) 2019-07-12 2019-07-12 Method for interacting with Internet of things equipment and business system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910629474.5A CN110278286B (en) 2019-07-12 2019-07-12 Method for interacting with Internet of things equipment and business system

Publications (2)

Publication Number Publication Date
CN110278286A CN110278286A (en) 2019-09-24
CN110278286B true CN110278286B (en) 2021-10-29

Family

ID=67964288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910629474.5A Active CN110278286B (en) 2019-07-12 2019-07-12 Method for interacting with Internet of things equipment and business system

Country Status (1)

Country Link
CN (1) CN110278286B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131403A (en) * 2019-12-06 2020-05-08 深圳猛犸电动科技有限公司 Message coding and decoding method and device for Internet of things equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905333A (en) * 2014-04-15 2014-07-02 广东未来信息技术有限公司 Internet of things multi-protocol access transform device and control method thereof
CN104394143A (en) * 2014-11-24 2015-03-04 青岛海尔软件有限公司 Internet of Things equipment and Internet of Things server communicating method and device
CN109327551A (en) * 2018-12-04 2019-02-12 浩云科技股份有限公司 By the method and device of internet of things equipment access platform of internet of things, server
CN109981617A (en) * 2019-03-12 2019-07-05 深圳市智物联网络有限公司 A kind of internet of things equipment monitoring method, system and electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170180357A1 (en) * 2015-12-22 2017-06-22 Chittabrata Ghosh Access point selection and authentication for iot device
US10498851B2 (en) * 2017-01-10 2019-12-03 International Business Machines Corporation Method of label transform for managing heterogeneous information
US11551195B2 (en) * 2017-07-18 2023-01-10 Tata Consultancy Services Limited Systems and methods for providing services to smart devices connected in an IoT platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905333A (en) * 2014-04-15 2014-07-02 广东未来信息技术有限公司 Internet of things multi-protocol access transform device and control method thereof
CN104394143A (en) * 2014-11-24 2015-03-04 青岛海尔软件有限公司 Internet of Things equipment and Internet of Things server communicating method and device
CN109327551A (en) * 2018-12-04 2019-02-12 浩云科技股份有限公司 By the method and device of internet of things equipment access platform of internet of things, server
CN109981617A (en) * 2019-03-12 2019-07-05 深圳市智物联网络有限公司 A kind of internet of things equipment monitoring method, system and electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110278286A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN106648669B (en) Product equipment remote firmware upgrading method and system
CN105162841A (en) Domestic appliance control method and system
CN110278286B (en) Method for interacting with Internet of things equipment and business system
WO2011116585A1 (en) Remote control method, device and system for intelligent appliance based on unstructured supplementary service data
CN104281106A (en) Remote control method and system for air conditioner
CN110493332A (en) A kind of charging pile message processing method and its system
CN102917057A (en) Individualized application pushing system and method
CN113301568A (en) Network distribution method and device and intelligent household equipment
CN113034886A (en) Remote control method and device
CN107742520B (en) Voice control method, device and system
WO2022222589A1 (en) Method and apparatus for controlling air conditioner, and server
CN105426212A (en) Virtual device composition dynamic updating method and apparatus
CN113271352A (en) Intelligent device binding method, cloud server and computer readable medium
CN110381056B (en) Netty-based private protocol coding and decoding method and apparatus
CN109522072B (en) Control interface generation method and device
CN114430307A (en) Data decoding method, data encoding method, data decoding device and terminal equipment
CN108768802B (en) Equipment information deleting method and device, server and mobile terminal
CN112992142B (en) Voice message reply method, device, equipment and medium
CN110866415A (en) Bar code equipment control method and system based on USB composite equipment
CN110545309A (en) Internet of things terminal eUICC card management method, device and system
CN115658788A (en) Real-time data query method and system for Internet of things
CN112118162B (en) Communication system and communication method thereof
CN107070910B (en) Communication method and electronic equipment
CN110851161B (en) Firmware updating method for intelligent household equipment
KR20170089082A (en) IoT Device management method using QR code

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