CN111526075A - Intelligent device control method, storage medium and electronic device - Google Patents

Intelligent device control method, storage medium and electronic device Download PDF

Info

Publication number
CN111526075A
CN111526075A CN202010293590.7A CN202010293590A CN111526075A CN 111526075 A CN111526075 A CN 111526075A CN 202010293590 A CN202010293590 A CN 202010293590A CN 111526075 A CN111526075 A CN 111526075A
Authority
CN
China
Prior art keywords
data
internet
format
things
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010293590.7A
Other languages
Chinese (zh)
Inventor
唐杰
卢军志
仝磊
余晨星
赵杰磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010293590.7A priority Critical patent/CN111526075A/en
Publication of CN111526075A publication Critical patent/CN111526075A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2836Protocol conversion between an external network and a home network
    • 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/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Human Computer Interaction (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses an intelligent device control method, a storage medium and an electronic device, which relate to the technical field of communication, and the method comprises the following steps: receiving control data which is sent by a client and used for controlling the Internet of things equipment; determining a data format used by the Internet of things equipment waiting for receiving the control data according to the control data; converting the data format of the control data into a data format used by the Internet of things equipment to obtain format-converted control data; and sending the control data after format conversion to the Internet of things equipment so that a controller of the Internet of things equipment can directly control the Internet of things equipment according to the control data after format conversion. The invention has the beneficial effects that: the data processing pressure of the Internet of things equipment can be reduced, so that the occupied space of a memory is liberated, the Internet of things equipment using different Internet of things protocols can be controlled, and the use of a user is facilitated.

Description

Intelligent device control method, storage medium and electronic device
Technical Field
The invention belongs to the technical field of communication, and particularly relates to an intelligent device control method, a storage medium and an electronic device.
Background
With the improvement of living standard, more and more internet of things household products are used by people. In a huge number of internet of things devices, data processing and transmission widely exist. For example, remote control of an air conditioner via a mobile terminal, use of a shared power bank, and the like require data processing and transmission.
In the prior art, data processing of internet of things equipment is basically performed at a hardware equipment end. For example, in the remote control of an air conditioner, data is transmitted to a communication module, and the field processing of the data is performed locally in the communication module. However, the embedded communication module has poor processing performance, so that the speed of processing a large amount of data is slow, and a large memory space is occupied.
Disclosure of Invention
The invention provides an intelligent device control method, a storage medium and electronic equipment, which are based on the technical problems that when data processing is carried out on equipment side by equipment of the Internet of things, the processing speed of processing a large amount of data is low and a large memory space is occupied due to the poor processing performance of an embedded communication module.
In a first aspect, an embodiment of the present invention provides an intelligent device control method, including:
receiving control data which is sent by a client and used for controlling the Internet of things equipment;
determining a data format used by the Internet of things equipment waiting for receiving the control data according to the control data;
converting the data format of the control data into a data format used by the Internet of things equipment to obtain format-converted control data;
and sending the control data after format conversion to the Internet of things equipment so that a controller of the Internet of things equipment can directly control the Internet of things equipment according to the control data after format conversion.
Optionally, determining, according to the control data, a data format used by the internet of things device waiting for receiving the control data includes:
analyzing the control data to obtain equipment information corresponding to the Internet of things equipment waiting for receiving the control data;
and determining a data format used by the Internet of things equipment according to the equipment information.
Optionally, converting the data format of the control data into a data format used by the internet of things device to obtain format-converted control data, where the converting includes:
acquiring a source data format of the control data;
and performing data format conversion on the control data by using a preset conversion rule corresponding to the source data format and the data format used by the Internet of things equipment to obtain the control data after format conversion.
Optionally, after receiving the control data sent by the client for controlling the internet of things device, the method further includes:
judging whether the client side sending the control data is legal or not;
and when the client side for sending the control data is illegal, reporting an error.
Optionally, the method further comprises:
receiving equipment state data fed back by the Internet of things equipment;
determining a data format used by a client waiting to receive the equipment state data according to the equipment state data;
converting the data format of the equipment state data into the data format used by the client to obtain the equipment state data after format conversion;
and sending the device state data after the format conversion to the client so that the client can directly process the device state data after the format conversion.
Optionally, determining, according to the device status data, a data format used by a client waiting to receive the device status data includes:
analyzing the equipment state data to obtain product model information corresponding to a client waiting for receiving the equipment state data;
and determining the data format used by the client according to the product model information.
Optionally, converting the data format of the device status data into the data format used by the client, and obtaining the format-converted device status data includes:
acquiring a source data format of the equipment state data;
and performing data format conversion on the equipment state data by using a preset conversion rule corresponding to the source data format and the data format used by the client to obtain the equipment state data after format conversion.
Optionally, after receiving the device state data fed back by the internet of things device, the method further includes:
judging whether the Internet of things equipment which sends the equipment state data is legal or not;
and when the Internet of things equipment for sending the equipment state data is illegal, reporting an error.
In a second aspect, an embodiment of the present invention provides a storage medium, where a program code is stored, and when the program code is executed by a processor, the method for controlling an intelligent device is implemented as described in any one of the above embodiments.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes a memory and a processor, where the memory stores program codes executable on the processor, and when the program codes are executed by the processor, the electronic device implements the intelligent device control method according to any one of the foregoing embodiments.
According to the intelligent device control method, the storage medium and the electronic device provided by the embodiment of the invention, the format conversion of the control data is completed in the cloud server, so that the control data after the format conversion can conform to the data format used by the corresponding Internet of things device, and the control data after the data format conversion can be directly executed after the Internet of things device receives the control data after the data format conversion. Therefore, the intelligent device control method, the storage medium and the electronic device provided by the embodiment of the invention can reduce the data processing pressure of the internet of things device, thereby freeing the occupied space of the memory, and can control the internet of things device using different internet of things protocols, so that the use of users is facilitated.
Drawings
The scope of the present invention will be better understood from the following detailed description of exemplary embodiments, which is to be read in connection with the accompanying drawings. Wherein the included drawings are:
fig. 1 is a schematic diagram illustrating data transmission of an internet of things device according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating a control method for an intelligent device according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating an intelligent device control method according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating an intelligent device control method according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the following will describe in detail an implementation method of the present invention with reference to the accompanying drawings and embodiments, so that how to apply technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
The intelligent device control method provided by the embodiment of the invention is applied to a cloud server, and when a user needs to control the Internet of things device or the Internet of things device needs to feed back data information to the user, the control data sent by the user is converted into a data format which can be identified by the Internet of things device through the cloud server; or converting the data information fed back by the internet of things equipment into a data format which can be recognized by the client of the user.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating data transmission of an internet of things device according to an embodiment of the present invention. The client is in communication connection with the cloud server, and the cloud server is in communication connection with the Internet of things equipment. The Internet of things equipment at least comprises a communication module and a controller, the communication module is in communication connection with the cloud server, and the controller is connected with the communication module. The Internet of things equipment receives data information issued by the cloud server through the communication module, or uploads the data information to the cloud server through the communication module.
Example one
According to an embodiment of the present invention, an intelligent device control method is provided, and fig. 2 shows a schematic flow chart of an intelligent device control method according to an embodiment of the present invention, and as shown in fig. 2, the intelligent device control method may include: step 110 to step 140.
In step 110, control data sent by the client for controlling the internet of things device is received.
Here, the control data is used to control the operating state of the corresponding internet of things device, and may be sent by the user through the client. For example, if the user needs to control the smart air conditioner, the control data may be sent through an application program on the client. The client can be one of devices such as a mobile phone, a tablet computer and intelligent wearable equipment.
In step 120, according to the control data, a data format used by the internet of things device waiting to receive the control data is determined.
Here, after receiving the control data, the cloud server may determine, according to the control data, a data format used by the internet of things device waiting to receive the control data. If the user needs to control the device a through the client, the cloud server receives control data sent by the client and used for controlling the device a, and determines a data format used by the device a.
In step 130, the data format of the control data is converted into the data format used by the internet of things device, so as to obtain the format-converted control data.
Here, the data format is in various kinds, such as JSON, XML, HEX, and the like. The JSON (JSON object Notation) is a lightweight data exchange format, the XML is a markup language for marking electronic files to have a structure, and the HEX file format is a file format that can be burned into and executed by a single chip microcomputer.
Data format conversion refers to conversion from one data format to another, such as converting the data format of JSON to HEX data format, or converting XML data format to HEX data format. For example, the JSON data format is converted into the HEX data format by parsing the JSON file, obtaining key and value, and then placing the key and value in the corresponding position of the HEX format specified by the protocol.
In step 140, the format-converted control data is sent to the internet of things device, so that the controller of the internet of things device can directly control the internet of things device according to the format-converted control data.
Here, the cloud server performs format conversion on the control data, and then sends the format-converted control data to the corresponding internet of things device. And after the Internet of things equipment receives the control data after the format conversion through the communication module, the controller controls the Internet of things equipment according to the control data after the format conversion.
Taking an intelligent air conditioner as an example, a JSON data packet commonly applied in the industry is used for transmission between a cloud server and a client. The JSON data packet is packaged by an application program, and the data packet is sent to a cloud server through a network. The data packet may include instructions for controlling temperature, powering on and powering off.
After the cloud server receives the data packet, the fact that the HEX data in the HEX format is used by the intelligent air conditioner is judged, and then the data packet in the JSON format is converted into the data packet in the HEX format in the cloud server. After the intelligent air conditioner receives the data packet in the HEX format, the intelligent air conditioner can directly execute the control data in the HEX format, so that the running state of the intelligent air conditioner is controlled.
In this embodiment, format conversion of the control data can be completed in the cloud server, so that the control data after format conversion can conform to a data format used by the corresponding internet of things device, and the control data after data format conversion can be directly executed after the internet of things device receives the control data after data format conversion. The data processing pressure of the Internet of things equipment can be reduced, so that the occupied space of a memory is liberated, the Internet of things equipment using different Internet of things protocols can be controlled, and the use of a user is facilitated.
Example two
On the basis of the above embodiment, a second embodiment of the present invention may further provide an intelligent device control method. Fig. 3 shows a flowchart of an intelligent device control method according to a second embodiment of the present invention, and as shown in fig. 3, the intelligent device control method may include: step 210 to step 250.
In step 210, control data sent by the client for controlling the internet of things device is received.
Here, the control data is used to control the operating state of the corresponding internet of things device, and may be sent by the user through the client. For example, if the user needs to control the smart air conditioner, the control data may be sent through an application program on the client.
In step 220, it is determined whether the client sending the control data is legal, and an error is reported when the client sending the control data is illegal.
Here, whether the client that transmits the control data is legitimate may be determined, and the key included in the control data may be verified, thereby determining whether the control data is derived from a legitimate device. When the source of the device is illegal, outputting error reporting information; when it comes from a legal device, the next step is performed.
Therefore, whether the client sending the control data is legal or not can be judged, and the control data can be ensured to be sourced from legal equipment and not to be attacked maliciously.
In step 220, according to the control data, a data format used by the internet of things device waiting to receive the control data is determined.
Here, the cloud server, upon receiving the control data, may determine, based on the control data, a data format used by the device that receives the control data. If the user needs to control the device a through the client, the cloud server receives control data sent by the client and used for controlling the device a, and determines a data format used by the device a.
As an example, in step 220, determining, according to the control data, a data format used by the internet of things device that receives the control data may include: step 221 to step 222.
In step 221, the control data is analyzed to obtain device information corresponding to the internet of things device waiting to receive the control data.
Here, the control data is analyzed, and device information, such as a device ID, corresponding to the internet of things device that receives the control data can be acquired from the analyzed field.
In step 222, a data format used by the internet of things device is determined according to the device information.
Here, the data format used by the internet of things device may be used by the device information. For example, a database may be preset, where the database includes different devices and the internet of things protocol used by each device. Therefore, the internet of things protocol corresponding to the equipment information can be found through the equipment information, and the data format used by the internet of things equipment is determined.
Therefore, the control data is analyzed to obtain the data format used by the equipment of the Internet of things receiving the control data, so that the control data is accurately converted into the data format used by the equipment of the Internet of things receiving the control data, and errors are avoided.
In step 230, the data format of the control data is converted into the data format used by the internet of things device, so as to obtain the format-converted control data.
Here, the data format is in various kinds, such as JSON, XML, HEX, and the like. The JSON (JSON object Notation) is a lightweight data exchange format, the XML is a markup language for marking electronic files to have a structure, and the HEX file format is a file format that can be burned into and executed by a single chip microcomputer.
As an example, in step 230, converting the data format of the control data into the data format used by the internet of things device, and obtaining the format-converted control data may include steps 231 to 232.
In step 231, the source data format of the control data is obtained.
In step 232, a preset conversion rule corresponding to the source data format and the data format used by the internet of things device is used to perform data format conversion on the control data, so as to obtain format-converted control data.
Here, the data format conversion refers to conversion from one data format to another data format, such as conversion of a data format of JSON to a HEX data format, or conversion of an XML data format to a HEX data format.
Therefore, after the source data format of the control data is obtained, the data format conversion is performed on the control data according to the conversion rule between the source data format and the data format, so that the control data converted into the data format used by the corresponding internet of things device is obtained.
For example, if the source data format of the control data is a JSON format and the data format used by the corresponding internet of things device is HEX, the control data in the JSON format is converted into the control data in the HEX format according to the conversion rule from the JSON format to the HEX format. The conversion rule includes conversion rules of various data formats, such as JSON to HEX, XML to HEX, and the like. The conversion rule can be preset in a program library and can be called when needed. If the JSON format is converted into the HEX format, calling a corresponding program code for converting the JSON format into the HEX format, wherein the program code converts the data format of the JSON into the HEX data format by analyzing the JSON file, acquiring key and value, and then placing the key and value in a corresponding position of the HEX format agreed by the protocol.
It should be noted that, before performing data format conversion on the control data by using a preset conversion rule between the source data format and the data format used by the internet of things device, it may further be determined whether the source data format is the data format corresponding to the conversion rule, so as to avoid an error. For example, the called transformation rule is the transformation between JSON and HEX, but because of network transmission error and malicious attack, the input illegal data may cause the server program to crash and return an erroneous transformation result.
Therefore, mutual conversion between different data formats can be completed through conversion rules between the preset source data format and the data format used by the corresponding Internet of things equipment.
In step 240, the format-converted control data is sent to the internet of things device, so that the controller of the internet of things device can directly control the internet of things device according to the format-converted control data.
Here, the cloud server performs format conversion on the control data, and then sends the format-converted control data to the corresponding internet of things device. And after the Internet of things equipment receives the control data after the format conversion through the communication module, the controller controls the Internet of things equipment according to the control data after the format conversion.
In this embodiment, format conversion of the control data can be completed in the cloud server, so that the control data after format conversion can conform to a data format used by the corresponding internet of things device, and the control data after data format conversion can be directly executed after the internet of things device receives the control data after data format conversion. The data processing pressure of the Internet of things equipment can be reduced, so that the occupied space of a memory is liberated, the Internet of things equipment using different Internet of things protocols can be controlled, and the use of a user is facilitated.
EXAMPLE III
On the basis of the above embodiment, a third embodiment of the present invention may further provide an intelligent device control method. Fig. 4 shows a flowchart of an intelligent device control method according to a third embodiment of the present invention, and as shown in fig. 4, the intelligent device control method may include: step 310 to step 340.
In step 310, device state data fed back by the internet of things device is received.
Here, the device state data fed back by the internet of things device is data information reflecting the current operating state of the device, which is collected by a sensor or other functional components of the internet of things device. The device state data may be a device state change condition after the internet of things device executes the control instruction in the control data and reflects the control instruction executed by the internet of things device to the corresponding client; or the data information used for reflecting the current running state of the equipment and periodically sent to the corresponding client by the equipment of the internet of things.
In an optional embodiment, after step 310, the method may further comprise:
judging whether the Internet of things equipment which sends the equipment state data is legal or not;
and when the Internet of things equipment for sending the equipment state data is illegal, reporting an error.
Here, whether the internet of things device sending the device state data is legal or not can be judged, so that the device state data can be ensured to be originated from the legal internet of things device instead of being attacked maliciously.
In step 320, a data format used by the client waiting to receive the device status data is determined according to the device status data.
Here, after receiving the device status data, the cloud server may determine, according to the device status data, a data format used by the client that receives the device status data. If the internet of things equipment needs to feed back the equipment state data to the client C, the cloud server determines the data format used by the client C after receiving the equipment state data sent by the internet of things equipment.
As an example, determining, according to the device status data, a data format used by the client waiting to receive the device status data in step 320 may include: step 321 to step 322.
In step 321, by analyzing the device status data, product model information corresponding to the client waiting to receive the device status data is obtained.
In step 322, the data format used by the client is determined according to the product model information.
Here, the data format used to the client can be accurately determined by the product model information. For example, the internet of things device needs to feed back device state data to a terminal of a mobile phone.
In step 330, the data format of the device status data is converted into the data format used by the client, and the format-converted device status data is obtained.
Here, the data format is in various kinds, such as JSON, XML, HEX, and the like. The JSON (JSON object Notation) is a lightweight data exchange format, the XML is a markup language for marking electronic files to have a structure, and the HEX file format is a file format that can be burned into and executed by a single chip microcomputer.
As an example, in step 330, converting the data format of the device status data into the data format used by the client, and obtaining the format-converted device status data includes:
acquiring a source data format of the equipment state data;
and performing data format conversion on the equipment state data by using a preset conversion rule corresponding to the source data format and the data format used by the client to obtain the equipment state data after format conversion.
Here, the data format conversion refers to conversion from one data format to another data format, such as conversion of a data format of JSON to a HEX data format, or conversion of an XML data format to a HEX data format.
For example, if the source data format of the device state data is the HEX format and the data format used by the corresponding mobile terminal is JSON, the device state data in the HEX format is converted into the device state data in the JSON format according to the conversion rule from the HEX format to the JSON format. The conversion rules include conversion rules of various data formats, such as JSON to HEX, XML to HEX, HEX to JSON, HEX to XML, and the like. The conversion rule can be preset in a program library and can be called when needed. And if the HEX format is converted into the JSON format, calling a corresponding program code for converting the HEX format into the JSON format, and converting the data format of the HEX into the data format of the JSON by the program code.
In step 340, the format-converted device status data is sent to the client, so that the client can directly process the format-converted device status data.
Taking an intelligent air conditioner as an example, the intelligent air conditioner feeds back equipment state data of the intelligent air conditioner to a mobile terminal of a user, wherein the equipment state data comprises temperature, wind speed, mode and the like. The communication protocol agreed by the intelligent air conditioner and the cloud service is assumed to be a file in a HEX format, and the mobile terminal uses a JSON data format. After receiving the device state data, the cloud server converts the device state data into data in a JSON format and sends the data to the corresponding mobile terminal, so that the mobile terminal can process the data without continuing to convert the data format.
After the cloud server receives the data packet, the fact that the HEX data in the HEX format is used by the intelligent air conditioner is judged, and then the data packet in the JSON format is converted into the data packet in the HEX format in the cloud server. After the intelligent air conditioner receives the data packet in the HEX format, the intelligent air conditioner can directly execute the control data in the HEX format, so that the running state of the intelligent air conditioner is controlled.
In this embodiment, because the device state data fed back by the internet of things device is basically acquired by the sensors, the data formats provided by different sensors are different. Therefore, if the processing of the device state data is put into the internet of things device, the data processing capability of the internet of things device is required to be higher, and the memory occupied by the device is larger. According to the data processing method and device, the device state data fed back by the Internet of things device are processed into the data format which can be directly identified by the corresponding client side in the cloud server, so that the data processing pressure of the client side can be reduced, and good user experience is provided for a user.
Example four
According to an embodiment of the present invention, there is also provided a storage medium having program codes stored thereon, which when executed by a processor, implement the intelligent device control method according to any one of the above embodiments.
EXAMPLE five
According to an embodiment of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores program codes executable on the processor, and when the program codes are executed by the processor, the electronic device implements the intelligent device control method according to any one of the above embodiments.
The technical solutions of the present invention are described in detail above with reference to the accompanying drawings, and it is considered that in the related art, when the internet of things device performs data processing at the device side, because the processing performance of the embedded communication module is poor, the speed of processing a large amount of data is slow, and a large memory space is occupied. The invention provides an intelligent device control method, a storage medium and electronic equipment, which are characterized in that format conversion of control data is completed in a cloud server, so that the control data after format conversion can conform to a data format used by corresponding Internet of things equipment, and the control data after data format conversion can be directly executed by the Internet of things equipment after the Internet of things equipment receives the control data after data format conversion. The data processing pressure of the Internet of things equipment can be reduced, so that the occupied space of a memory is liberated, the Internet of things equipment using different Internet of things protocols can be controlled, and the use of a user is facilitated.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An intelligent device control method, comprising:
receiving control data which is sent by a client and used for controlling the Internet of things equipment;
determining a data format used by the Internet of things equipment waiting for receiving the control data according to the control data;
converting the data format of the control data into a data format used by the Internet of things equipment to obtain format-converted control data;
and sending the control data after format conversion to the Internet of things equipment so that a controller of the Internet of things equipment can directly control the Internet of things equipment according to the control data after format conversion.
2. The intelligent device control method according to claim 1, wherein determining, according to the control data, a data format used by the internet of things device waiting for receiving the control data comprises:
analyzing the control data to obtain equipment information corresponding to the Internet of things equipment waiting for receiving the control data;
and determining a data format used by the Internet of things equipment according to the equipment information.
3. The intelligent device control method according to claim 1, wherein converting the data format of the control data into a data format used by the internet of things device to obtain format-converted control data comprises:
acquiring a source data format of the control data;
and performing data format conversion on the control data by using a preset conversion rule corresponding to the source data format and the data format used by the Internet of things equipment to obtain the control data after format conversion.
4. The intelligent device control method according to claim 1, further comprising, after receiving control data for controlling the internet of things device sent by the client:
judging whether the client side sending the control data is legal or not;
and when the client side for sending the control data is illegal, reporting an error.
5. The smart device control method of claim 1, further comprising:
receiving equipment state data fed back by the Internet of things equipment;
determining a data format used by a client waiting to receive the equipment state data according to the equipment state data;
converting the data format of the equipment state data into the data format used by the client to obtain the equipment state data after format conversion;
and sending the device state data after the format conversion to the client so that the client can directly process the device state data after the format conversion.
6. The intelligent device control method according to claim 5, wherein determining, from the device status data, a data format used by a client waiting to receive the device status data comprises:
analyzing the equipment state data to obtain product model information corresponding to a client waiting for receiving the equipment state data;
and determining the data format used by the client according to the product model information.
7. The intelligent device control method according to claim 5, wherein converting the data format of the device status data into the data format used by the client to obtain the format-converted device status data comprises:
acquiring a source data format of the equipment state data;
and performing data format conversion on the equipment state data by using a preset conversion rule corresponding to the source data format and the data format used by the client to obtain the equipment state data after format conversion.
8. The intelligent device control method according to claim 5, further comprising, after receiving the device state data fed back by the internet of things device:
judging whether the Internet of things equipment which sends the equipment state data is legal or not;
and when the Internet of things equipment for sending the equipment state data is illegal, reporting an error.
9. A storage medium having program code stored thereon, wherein the program code, when executed by a processor, implements the smart device control method according to any one of claims 1 to 8.
10. An electronic device, comprising a memory, a processor, and program code stored on the memory and executable on the processor, wherein the program code, when executed by the processor, implements the smart device control method according to any one of claims 1 to 8.
CN202010293590.7A 2020-04-15 2020-04-15 Intelligent device control method, storage medium and electronic device Pending CN111526075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010293590.7A CN111526075A (en) 2020-04-15 2020-04-15 Intelligent device control method, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010293590.7A CN111526075A (en) 2020-04-15 2020-04-15 Intelligent device control method, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN111526075A true CN111526075A (en) 2020-08-11

Family

ID=71902856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010293590.7A Pending CN111526075A (en) 2020-04-15 2020-04-15 Intelligent device control method, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111526075A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112861477A (en) * 2021-02-01 2021-05-28 瑞泰(威海)电子科技有限公司 Method, device, equipment and storage medium for generating electronic tag of optical module

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272418A (en) * 2008-03-25 2008-09-24 宇龙计算机通信科技(深圳)有限公司 Communication terminal and method for long-range controlling communication terminal
CN102724143A (en) * 2011-12-15 2012-10-10 北京时代凌宇科技有限公司 Method for sending internet of things data and internet of things gateway
CN103297506A (en) * 2013-05-10 2013-09-11 西安祥泰软件设备系统有限责任公司 Method and system for controlling household equipment
CN103616860A (en) * 2013-11-08 2014-03-05 海信集团有限公司 Method and device for remote control of household appliances
CN105530151A (en) * 2015-11-30 2016-04-27 青岛海尔科技有限公司 GPRS module and information transmission method for the GPRS module
CN106452721A (en) * 2016-10-14 2017-02-22 牛毅 Method and system for instruction identification of intelligent device based on identification public key
CN106713319A (en) * 2016-12-23 2017-05-24 北京奇虎科技有限公司 Method, device, system of realizing remote control between terminals, and mobile terminal
CN106972932A (en) * 2017-03-03 2017-07-21 北京光年无限科技有限公司 A kind of remote control commands verification method and system for robotic end
CN107018050A (en) * 2017-03-09 2017-08-04 广东美的制冷设备有限公司 Appliances equipment control method, Internet of Things module and home appliance
CN107026874A (en) * 2017-06-02 2017-08-08 李维刚 One kind instruction signature and verification method and system
CN107395751A (en) * 2017-08-23 2017-11-24 绵阳美菱软件技术有限公司 A kind of remote control system of intelligent household electrical appliance and method
CN108600183A (en) * 2018-03-28 2018-09-28 湖南东方华龙信息科技有限公司 Target device control method
CN109951538A (en) * 2019-03-06 2019-06-28 深圳市飞比电子科技有限公司 Data processing method, device, system, electronic equipment and storage medium
CN110351257A (en) * 2019-06-27 2019-10-18 绿漫科技有限公司 A kind of distribution Internet of Things safety access system
CN110989381A (en) * 2019-11-29 2020-04-10 合肥美的电冰箱有限公司 Household appliance and control method thereof, server and control method thereof, and client

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272418A (en) * 2008-03-25 2008-09-24 宇龙计算机通信科技(深圳)有限公司 Communication terminal and method for long-range controlling communication terminal
CN102724143A (en) * 2011-12-15 2012-10-10 北京时代凌宇科技有限公司 Method for sending internet of things data and internet of things gateway
CN103297506A (en) * 2013-05-10 2013-09-11 西安祥泰软件设备系统有限责任公司 Method and system for controlling household equipment
CN103616860A (en) * 2013-11-08 2014-03-05 海信集团有限公司 Method and device for remote control of household appliances
CN105530151A (en) * 2015-11-30 2016-04-27 青岛海尔科技有限公司 GPRS module and information transmission method for the GPRS module
CN106452721A (en) * 2016-10-14 2017-02-22 牛毅 Method and system for instruction identification of intelligent device based on identification public key
CN106713319A (en) * 2016-12-23 2017-05-24 北京奇虎科技有限公司 Method, device, system of realizing remote control between terminals, and mobile terminal
CN106972932A (en) * 2017-03-03 2017-07-21 北京光年无限科技有限公司 A kind of remote control commands verification method and system for robotic end
CN107018050A (en) * 2017-03-09 2017-08-04 广东美的制冷设备有限公司 Appliances equipment control method, Internet of Things module and home appliance
CN107026874A (en) * 2017-06-02 2017-08-08 李维刚 One kind instruction signature and verification method and system
CN107395751A (en) * 2017-08-23 2017-11-24 绵阳美菱软件技术有限公司 A kind of remote control system of intelligent household electrical appliance and method
CN108600183A (en) * 2018-03-28 2018-09-28 湖南东方华龙信息科技有限公司 Target device control method
CN109951538A (en) * 2019-03-06 2019-06-28 深圳市飞比电子科技有限公司 Data processing method, device, system, electronic equipment and storage medium
CN110351257A (en) * 2019-06-27 2019-10-18 绿漫科技有限公司 A kind of distribution Internet of Things safety access system
CN110989381A (en) * 2019-11-29 2020-04-10 合肥美的电冰箱有限公司 Household appliance and control method thereof, server and control method thereof, and client

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷敏: "《物联网安全实践》", 31 December 2017 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112861477A (en) * 2021-02-01 2021-05-28 瑞泰(威海)电子科技有限公司 Method, device, equipment and storage medium for generating electronic tag of optical module

Similar Documents

Publication Publication Date Title
CN110933146B (en) Data conversion method and device and server
CN114448830B (en) Equipment detection system and method
CN113872967B (en) Vehicle information transmission method and device, electronic equipment and storage medium
CN112422588B (en) Internet of things equipment information processing method and system
CN102098330A (en) Method, device and system for asynchronous transmission based on json data format
CN114567650B (en) Data processing method and Internet of things platform system
CN112817602A (en) JSON format data sending and receiving method, device and medium
CN111526075A (en) Intelligent device control method, storage medium and electronic device
CN114153698A (en) Display monitoring method and device, electronic equipment and readable storage medium
CN117675913A (en) Laboratory data transmission processing method, device, transmission processing system and medium
CN113507530B (en) Data forwarding method, related system and device and storage medium
CN108924773B (en) Message processing method and device
CN114500158A (en) Computer resolvable Modbus-RTU universal standardized configuration method
CN116055577B (en) Protocol conversion method, device, equipment and storage medium
CN115314553B (en) Method, device, equipment, system and readable storage medium for data processing
CN116431119B (en) Software component port creation method and device, electronic equipment and storage medium
CN115314572B (en) Protocol conversion method, system and equipment for power communication protocol
CN114070863B (en) Data processing method and device, electronic equipment and storage medium
CN114827197B (en) Service communication method, device, equipment and medium based on Internet of things
CN116546046A (en) Data transmission processing method, device, control equipment and storage medium
CN117061588B (en) Device access method, electronic device, and computer-readable storage medium
CN114584630B (en) Communication method and device based on field bus protocol
CN112395164A (en) Method for acquiring device information of server, BIOS, BMC and server
CN118054984A (en) Device access method and gateway, storage medium and computer product
CN114650252A (en) Routing method and device based on enterprise service bus and computer equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200811