CN113467832A - Equipment control processing method, device, storage medium and electronic device - Google Patents

Equipment control processing method, device, storage medium and electronic device Download PDF

Info

Publication number
CN113467832A
CN113467832A CN202110729293.7A CN202110729293A CN113467832A CN 113467832 A CN113467832 A CN 113467832A CN 202110729293 A CN202110729293 A CN 202110729293A CN 113467832 A CN113467832 A CN 113467832A
Authority
CN
China
Prior art keywords
instruction
control instruction
target control
change data
logic engine
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
CN202110729293.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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110729293.7A priority Critical patent/CN113467832A/en
Publication of CN113467832A publication Critical patent/CN113467832A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30094Condition code generation, e.g. Carry, Zero flag
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30076Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/3017Runtime instruction translation, e.g. macros
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances

Abstract

The invention provides a device control processing method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a configuration file of equipment; converting the control instruction according to the configuration file through a logic engine to obtain a target control instruction, and sending the target control instruction to the equipment through the SDK; the method comprises the steps that device attribute change data are received through a logic engine, the device attribute change data are device attribute data changed after a device executes a target control instruction, the device attribute change data are used for indicating a control result of the control instruction, the problems that in the related art, a new device does not conform to an original control instruction flow, an APP needs to be subjected to compatible processing according to device differences, versions are frequently issued and updated are caused, the differences of the control instructions of different devices are processed through the unified logic engine, a user can rapidly experience various new and old devices under remote control without updating the versions, and user experience and development flows are well improved.

Description

Equipment control processing method, device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a device control processing method and apparatus, a storage medium, and an electronic apparatus.
Background
The development of the internet of things and the mobile phone is more and more perfect and intelligent, various requirements in life of people can not be separated from the mobile phone, so that the remote control of equipment through the mobile phone becomes more important, various intelligent household appliances are frequently updated, if no tool is available for unifying the remote control of the equipment by the mobile phone, once new equipment does not conform to the original instruction control flow, the APP is required to be subjected to compatible processing according to equipment differences, the version is frequently released and updated, and the experience is extremely poor for development and users.
Aiming at the problems that in the related technology, new equipment does not conform to the original control instruction flow, and the APP needs to be subjected to compatible processing according to equipment difference, so that the version is frequently issued and updated, a solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a device control processing method, a device, a storage medium and an electronic device, which are used for at least solving the problems that in the related technology, new devices do not conform to the original control instruction flow, and the versions are frequently issued and updated due to the fact that APP (application) needs to perform compatible processing according to device differences.
According to an embodiment of the present invention, there is provided an apparatus control processing method including:
acquiring a configuration file of equipment;
converting the control instruction according to the configuration file through a logic engine to obtain a target control instruction;
sending the targeted control instructions to the device through a Software Development Kit (SDK);
and changing the device attribute data through the logic engine, wherein the device attribute data is changed after the device executes the target control instruction, and the device attribute change data is used for indicating the control result of the control instruction.
Optionally, the converting, by the logic engine, the control instruction according to the configuration file to obtain the target control instruction includes:
converting the control instruction into an instruction which can be recognized by the equipment through the logic engine to obtain the target control instruction; and/or
And linearly converting the value of the control instruction to obtain the target control instruction.
Optionally, sending the target control instruction to the device through the SDK includes:
determining, by the logic engine, a value of the target control instruction;
determining whether the target control instruction is reasonable according to the value of the target control instruction;
if the target control instruction is reasonable, acquiring a constraint instruction matched with the target control instruction;
assembling an instruction queue according to the constraint instruction and the target control instruction;
and sequentially issuing the target control instruction according to the instruction queue through the SDK.
Optionally, determining whether the control instruction is reasonable according to the value of the target control instruction includes:
judging whether the value of the target control instruction is within a preset range or not;
if the judgment result is yes, determining that the instruction logic of the target control instruction is reasonable;
and under the condition that the judgment result is negative, determining that the instruction logic of the target control instruction is unreasonable.
Optionally, the obtaining of the constraint instruction matched with the target control instruction includes: inquiring whether a constraint instruction exists in the configuration file or not according to the value of the target control instruction; if the constraint instruction exists, obtaining the most matched constraint instruction according to the configuration file;
assembling an instruction queue according to the constraint instruction and the target control instruction comprises: determining whether a merge instruction is required; if the instruction needs to be merged, merging the constraint instruction and the target control instruction in a replacement, preposition and addition mode according to the type of the constraint instruction, and assembling the instruction queue.
Optionally, receiving, by the logic engine, the device attribute change data includes:
converting the device attribute change data through the logic engine to obtain converted data, wherein the device attribute change data is sent to the logic engine through an SDK (software development kit);
and receiving the converted data sent by the logic engine.
Optionally, converting, by the logic engine, the device attribute change data, and obtaining converted data includes:
loading the configuration file of the equipment through the logic engine and monitoring equipment attribute report;
acquiring device attribute change data reported by the device;
if the device attribute change data needs to be split, splitting the device attribute change data;
updating the logic attribute of the local storage according to the split equipment attribute change data;
and under the condition that the logic attribute needs to be corrected, correcting the logic attribute to obtain the converted data.
According to another embodiment of the present invention, there is also provided an apparatus control processing device including:
the acquisition module is used for acquiring a configuration file of the equipment;
the conversion module is used for converting the control instruction according to the configuration file through a logic engine to obtain a target control instruction;
the sending module is used for sending the target control instruction to the equipment through the SDK;
a receiving module, configured to receive, by the logic engine, device attribute change data, where the device attribute change data is device attribute data that changes after the device executes the target control instruction, and the device attribute change data is used to indicate a control result of the control instruction.
Optionally, the conversion module is further used for
Converting the control instruction into an instruction which can be recognized by the equipment through the logic engine to obtain the target control instruction; and/or
And linearly converting the value of the control instruction to obtain the target control instruction.
Optionally, the sending module includes:
a first determining submodule for determining, by the logic engine, a value of the target control instruction;
the second determining submodule is used for determining whether the target control instruction is reasonable according to the value of the target control instruction;
the obtaining submodule is used for obtaining a constraint instruction matched with the target control instruction if the target control instruction is reasonable;
the assembling submodule is used for assembling an instruction queue according to the constraint instruction and the target control instruction;
and the issuing sub-module is used for sequentially issuing the target control instruction according to the instruction queue through the SDK.
Optionally, the second determining submodule is further used for
Judging whether the value of the target control instruction is within a preset range or not;
if the judgment result is yes, determining that the instruction logic of the target control instruction is reasonable;
and under the condition that the judgment result is negative, determining that the instruction logic of the target control instruction is unreasonable.
Optionally, the obtaining sub-module is further configured to
Inquiring whether a constraint instruction exists in the configuration file or not according to the value of the target control instruction;
if the constraint instruction exists, obtaining the most matched constraint instruction according to the configuration file;
the assembling submodule is also used for determining whether an instruction needs to be merged; if the instruction needs to be merged, merging the constraint instruction and the target control instruction in a replacement, preposition and addition mode according to the type of the constraint instruction, and assembling the instruction queue.
Optionally, the receiving module includes:
the conversion submodule is used for converting the device attribute change data through the logic engine to obtain converted data, wherein the device attribute change data is sent to the logic engine through an SDK (software development kit);
and the receiving submodule is used for receiving the converted data sent by the logic engine.
Optionally, the conversion submodule is also used for
Loading the configuration file of the equipment through the logic engine and monitoring equipment attribute report;
acquiring device attribute change data reported by the device;
if the device attribute change data needs to be split, splitting the device attribute change data;
updating the logic attribute of the local storage according to the split equipment attribute change data;
and under the condition that the logic attribute needs to be corrected, correcting the logic attribute to obtain the converted data.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the configuration file of the equipment is obtained; converting the control instruction according to the configuration file through a logic engine to obtain a target control instruction, and sending the converted target control instruction to the equipment through the SDK; through logic engine receiving equipment attribute change data, equipment attribute change data is the equipment attribute data that changes after the equipment execution the target control instruction, equipment attribute change data is used for instructing control instruction's control result can solve and have new equipment not conform to original target control instruction flow among the correlation technique, need APP to do compatible processing according to the equipment difference, lead to the problem that the version frequently issues and updates, handle the difference of the control instruction of different equipment through unified logic engine, make the user need not to update the version just can be quick experience remote control various old and new equipment, fine improvement user experience and development flow.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of an apparatus control processing method of an embodiment of the present invention;
FIG. 2 is a flow chart of a device control processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for efficient and fast APP access to various types of devices according to an embodiment of the present invention;
FIG. 4 is a flow diagram of instruction conversion according to an embodiment of the invention;
FIG. 5 is a flow diagram of data conversion according to an embodiment of the present invention;
fig. 6 is a block diagram of a device control processing apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a hardware structure block diagram of a mobile terminal of the device control processing method according to the embodiment of the present invention, and as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the device control processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio FrequeNcy (RF) module, which is used to communicate with the internet in a wireless manner.
Based on the above mobile terminal or network architecture, in this embodiment, a device control processing method is provided, and fig. 2 is a flowchart of the device control processing method according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, acquiring a configuration file of the equipment;
step S204, converting the control instruction according to the configuration file through a logic engine to obtain a target control instruction;
in an embodiment of the present invention, the step S204 may specifically include: converting the control instruction into an instruction which can be recognized by the equipment through the logic engine to obtain the target control instruction; and/or linearly converting the value of the control instruction to obtain the target control instruction.
Step S206, the target control instruction is sent to the equipment through the SDK;
in step S208, device attribute change data is received by the logic engine, where the device attribute change data is device attribute data that changes after the device executes the target control instruction, and the device attribute change data is used to indicate a control result of the control instruction.
Acquiring a configuration file of the equipment through the steps S202 to S208; converting the control instruction according to the configuration file through the logic engine, and sending a target control instruction to the equipment through the SDK; the logic engine is used for receiving the device attribute change data which changes after the device executes the target control instruction, the device attribute change data is used for indicating the control result of the control instruction, the problems that in the related technology, new devices do not conform to the original control instruction flow, APP needs to be subjected to compatible processing according to device differences, and versions are frequently issued and updated can be solved, the differences of the control instructions of different devices are processed through the unified logic engine, a user can quickly experience various new and old devices under remote control without updating the versions, and user experience and development flow are well improved.
In an embodiment of the present invention, the step S206 may specifically include:
s2061, determining the value of the target control instruction by the logic engine;
determining whether the target control instruction is reasonable according to the value of the target control instruction, and specifically, judging whether the value of the target control instruction is within a preset range; if the judgment result is yes, determining that the instruction logic of the target control instruction is reasonable; determining that the instruction logic of the target control instruction is unreasonable under the condition that the judgment result is negative;
s2062, if the target control instruction is reasonable, acquiring a constraint instruction matched with the target control instruction;
further, the step S2062 may specifically include: inquiring whether a constraint instruction exists in the configuration file or not according to the value of the target control instruction; and if the constraint instruction exists, acquiring the most matched constraint instruction according to the configuration file.
S2063, assembling an instruction queue according to the constraint instruction and the target control instruction;
further, the step S2063 may specifically include: determining whether a merge instruction is required; if the instruction needs to be merged, merging the constraint instruction and the target control instruction in a replacement, preposition and addition mode according to the type of the constraint instruction, and assembling the instruction queue.
S2064, the target control instruction is sequentially issued according to the instruction queue through the SDK.
In an embodiment of the present invention, the step S208 may specifically include:
s2081, converting the device attribute change data through the logic engine to obtain converted data, wherein the device attribute change data is sent to the logic engine through an SDK;
further, step S2081 may specifically include: loading the configuration file of the equipment through the logic engine and monitoring the reporting of the equipment attribute; acquiring device attribute change data reported by the device; if the attribute change data of the equipment needs to be split, splitting the attribute change data of the equipment; updating the logic attribute of the local storage according to the split equipment attribute change data; and if the logic attribute needs to be corrected, correcting the logic attribute to obtain the converted data.
S2082, receiving the converted data sent by the logic engine.
Various intelligent household appliances are updated frequently, if a tool does not exist for unified remote control of the appliances, once new appliances are not in accordance with the original instruction control flow, APP is required to be compatible according to the appliance difference, so that versions are frequently released and updated, experience is extremely poor for development and users, so that the differences of different appliance instructions caused by scientific and technological development reasons are processed through unified middleware, the problem is well solved, meanwhile, the users can quickly experience various new and old appliances under remote control without updating the versions, and the user experience and the development flow are well improved. A user does not directly transmit data to a device through an APP remote control device, and needs to implement uniform processing according to differences of device configuration documents obtained by a network through a logic engine, fig. 3 is a flowchart of a method for efficiently and quickly accessing an APP to various devices of different models according to an embodiment of the present invention, as shown in fig. 3, including:
step 1, opening APP;
step 2, the network acquires the equipment configuration information;
step 3, issuing an instruction and remotely controlling the equipment;
step 4, the logic engine performs data conversion on the instruction, and fig. 4 is a flowchart of instruction conversion according to an embodiment of the present invention, as shown in fig. 4, including:
step S401, receiving an operation instruction (corresponding to the control instruction);
step S402, calculating instruction logic for checking whether the instruction data is legal, mainly checking whether the value of the instruction is in a legal range
Step S403, judging whether the current state can be issued, if yes, executing step S405, and if no, executing step S404;
step S404, returning error information;
step S405, returning an attribute list influenced and changed by the instruction;
step S406, judging whether any command needs to be calculated, returning to step S402 if the judgment result is yes, and executing step S407 if the judgment result is no;
step S407, preparing to issue an instruction;
step S408, judging whether a constraint instruction exists, specifically, inquiring whether the constraint instruction exists in the equipment configuration file according to the value of the instruction, if so, finding the most matched constraint instruction according to the configuration, if so, executing step S409, and if not, executing step S410;
step S409, adding a constraint instruction;
step S410, assembling an instruction queue;
step S411, judging whether the device command needs to be merged, returning to step S412 if the judgment result is yes, and executing step S413 if the judgment result is no;
step S412, merging the device instructions;
step S413, sequentially issuing device instructions.
Combining the instruction information if the instruction information needs to be combined, specifically, performing replacement, preposition and additional constraint instructions according to the constraint instruction type, reassembling and integrating all instructions to obtain final instruction information, and issuing instructions in sequence; if no constraint instruction exists, the instruction is assembled and then directly issued.
Step 5, the logic engine transmits the converted instruction to the SDK;
when compatible with old non-standard equipment, the logic engine equipment meets a plurality of marking model attributes of operation and needs to be combined into a 6-bit code instruction which can be identified by the equipment for issuing, if necessary, the logic engine equipment needs to be converted into 6-bit code for issuing, and if not, the logic engine equipment uses standard attributes for issuing.
Due to the configuration requirements of some devices, the value of the issued command needs to be issued after linear conversion, and if some devices belong to the configuration which is linear conversion, the value needs to be issued after linear conversion.
The instruction is issued to the SDK, and the interaction with the equipment is completed by the SDK
Step 6, the SDK sends the converted instruction to the equipment;
step 7, the equipment executes the instruction, responds to the operation, namely the equipment executes the received command, responds and completes the operation;
step 8, the device reports the data to the SDK, namely after the device completes the response, the current changed data is reported to the SDK;
step 9, reporting data to the logic engine by the SDK, namely reporting the equipment data to the logic engine by the SDK;
step 10, the logic engine converts the reported data, fig. 5 is a flow chart of data conversion according to the embodiment of the present invention, and as shown in fig. 5, the flow chart includes:
step S501, starting an engine (namely a logic engine);
step S502, the logic engine records configuration files;
step S503, the logic engine monitors the equipment change;
step S504, the device reports the attribute and the alarm;
step S505, the logic engine judges whether the device attribute needs to be split, if the judgment result is yes, step S506 is executed, otherwise, step S507 is executed;
step S506, the logic engine splits the device attribute;
splitting attributes: when the device state is updated, for example, for compatibility with an old device, one 6-bit code reported by the device needs to be split into a plurality of standard attributes, for example, to support such logic, attribute splitting logic can be configured in a configuration file, and the 6-bit code reported by the device needs to be converted into a standard attribute which can be identified by an upload service to be reported. Judging whether the equipment attribute needs to be split, if so, splitting the equipment attribute; and if not, updating the cache attribute.
Step S507, the logic engine updates the logic attribute;
step S508, determining whether the logic attribute needs to be modified, if yes, performing step S509, otherwise performing step S510;
step S509, correcting the logical attribute;
attribute modification in order to solve the problem that some devices need to report data values reported by the devices after re-modifying the values under specific conditions, the idea is triggered when reporting certain fixed attribute values. And judging whether the attribute needs to be corrected, if so, correcting the attribute.
Step S510, the UI data change is notified.
Step 11, reporting the converted data;
and step 12, refreshing the UI and displaying the control result.
The embodiment of the invention aims at the problems that various intelligent devices are frequently updated and the command control flows are different, and ensures that the devices of different types can be quickly accessed to carry out remote control through the conversion flow of the logic engine. Frequent updating of APP versions due to access to different devices is avoided.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, an apparatus control processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a device control processing apparatus according to an embodiment of the present invention, as shown in fig. 6, including:
an obtaining module 62, configured to obtain a configuration file of the device;
a conversion module 64, configured to convert, by the logic engine, the control instruction according to the configuration file to obtain a target control instruction;
a sending module 66, configured to send the target control instruction to the device through the SDK;
a receiving module 68, configured to receive, by the logic engine, device attribute change data, where the device attribute change data is device attribute data that changes after the device executes the target control instruction, and the device attribute change data is used to indicate a control result of the control instruction.
Optionally, the conversion module 64 is further used for
Converting the control instruction into an instruction which can be recognized by the equipment through the logic engine to obtain the target control instruction; and/or
And linearly converting the value of the control command to obtain the target control command.
Optionally, the sending module 66 includes:
a first determining submodule for determining a value of the target control instruction by the logic engine;
the second determining submodule is used for determining whether the target control instruction is reasonable or not according to the value of the target control instruction;
the obtaining submodule is used for obtaining a constraint instruction matched with the target control instruction if the target control instruction is reasonable;
the assembling submodule is used for assembling an instruction queue according to the constraint instruction and the target control instruction;
and the issuing submodule is used for sequentially issuing the target control instruction according to the instruction queue through the SDK.
Optionally, the second determining submodule is further used for
Judging whether the value of the target control instruction is within a preset range or not;
if the judgment result is yes, determining that the instruction logic of the target control instruction is reasonable;
and under the condition that the judgment result is negative, determining that the instruction logic of the target control instruction is unreasonable.
Optionally, the obtaining sub-module is further configured to query whether a constraint instruction exists in the configuration file according to the value of the target control instruction; if the constraint instruction exists, obtaining the most matched constraint instruction according to the configuration file;
the assembling submodule is also used for determining whether an instruction needs to be merged; if the instruction needs to be merged, merging the constraint instruction and the target control instruction in a replacement, preposition and addition mode according to the type of the constraint instruction, and assembling the instruction queue.
Optionally, the receiving module 68 includes:
the conversion submodule is used for converting the device attribute change data through the logic engine to obtain converted data, wherein the data is sent to the logic engine through the SDK;
and the receiving submodule is used for receiving the converted data sent by the logic engine.
Optionally, the conversion submodule is also used for
Loading the configuration file of the equipment through the logic engine and monitoring the reporting of the equipment attribute;
acquiring device attribute change data reported by the device;
if the attribute change data of the equipment needs to be split, splitting the attribute change data of the equipment;
updating the logic attribute of the local storage according to the split equipment attribute change data;
and if the logic attribute needs to be corrected, correcting the logic attribute to obtain the converted data.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a configuration file of the equipment;
s2, converting the control instruction according to the configuration file through the logic engine to obtain a target control instruction;
s3, sending the target control instruction to the equipment through the SDK;
s4, receiving, by the logic engine, device attribute change data, where the device attribute change data is device attribute data that changes after the device executes the target control instruction, and the device attribute change data is used to indicate a control result of the control instruction.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-ONly Memory (ROM), a RaNdom Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store computer programs.
Example 4
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a configuration file of the equipment;
s2, converting the control instruction according to the configuration file through the logic engine to obtain a target control instruction;
s3, sending the target control instruction to the equipment through the SDK;
s4, receiving, by the logic engine, device attribute change data, where the device attribute change data is device attribute data that changes after the device executes the target control instruction, and the device attribute change data is used to indicate a control result of the control instruction.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An apparatus control processing method characterized by comprising:
acquiring a configuration file of equipment;
converting the control instruction according to the configuration file through a logic engine to obtain a target control instruction;
sending the target control instruction to the equipment through the SDK;
receiving, by the logic engine, device attribute change data, where the device attribute change data is device attribute data that changes after the device executes the target control instruction, and the device attribute change data is used to indicate a control result of the control instruction.
2. The device control processing method of claim 1, wherein converting, by the logic engine, control instructions according to the configuration file comprises:
converting the control instruction into an instruction which can be recognized by the equipment through the logic engine to obtain the target control instruction; and/or
And linearly converting the value of the control instruction to obtain the target control instruction.
3. The device control processing method according to claim 1, wherein sending the target control instruction to the device by an SDK includes:
determining, by the logic engine, a value of the target control instruction;
determining whether the target control instruction is reasonable according to the value of the target control instruction;
if the target control instruction is reasonable, acquiring a constraint instruction matched with the target control instruction;
assembling an instruction queue according to the constraint instruction and the target control instruction;
and sequentially issuing the target control instruction according to the instruction queue through the SDK.
4. The device control processing method according to claim 3, wherein determining whether the target control instruction is legitimate according to the value of the target control instruction comprises:
judging whether the value of the target control instruction is within a preset range or not;
if the judgment result is yes, determining that the instruction logic of the target control instruction is reasonable;
and under the condition that the judgment result is negative, determining that the instruction logic of the target control instruction is unreasonable.
5. The device control processing method according to claim 3,
acquiring the constraint instruction matched with the control instruction comprises the following steps: inquiring whether a constraint instruction exists in the configuration file or not according to the value of the target control instruction; if the constraint instruction exists, obtaining the most matched constraint instruction according to the configuration file;
assembling an instruction queue according to the constraint instruction and the target control instruction comprises: determining whether a merge instruction is required; if the instruction needs to be merged, merging the constraint instruction and the target control instruction in a replacement, preposition and addition mode according to the type of the constraint instruction, and assembling the instruction queue.
6. The device control processing method of claim 1, wherein receiving, by the logic engine, the device attribute change data comprises:
converting the device attribute change data through the logic engine to obtain converted data, wherein the device attribute change data is sent to the logic engine through an SDK (software development kit);
and receiving the converted data sent by the logic engine.
7. The device control processing method according to claim 6, wherein converting the device attribute change data by the logic engine to obtain converted data comprises:
loading the configuration file of the equipment through the logic engine and monitoring equipment attribute report;
acquiring device attribute change data reported by the device;
if the device attribute change data needs to be split, splitting the device attribute change data;
updating the logic attribute of the local storage according to the split equipment attribute change data;
and under the condition that the logic attribute needs to be corrected, correcting the logic attribute to obtain the converted data.
8. An apparatus control processing device characterized by comprising:
the acquisition module is used for acquiring a configuration file of the equipment;
the conversion module is used for converting the control instruction according to the configuration file through a logic engine to obtain a target control instruction;
the sending module is used for sending the target control instruction to the equipment through the SDK;
a receiving module, configured to receive, by the logic engine, device attribute change data, where the device attribute change data is device attribute data that changes after the device executes the target control instruction, and the device attribute change data is used to indicate a control result of the control instruction.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202110729293.7A 2021-06-29 2021-06-29 Equipment control processing method, device, storage medium and electronic device Pending CN113467832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110729293.7A CN113467832A (en) 2021-06-29 2021-06-29 Equipment control processing method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110729293.7A CN113467832A (en) 2021-06-29 2021-06-29 Equipment control processing method, device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113467832A true CN113467832A (en) 2021-10-01

Family

ID=77873866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110729293.7A Pending CN113467832A (en) 2021-06-29 2021-06-29 Equipment control processing method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113467832A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114499964A (en) * 2021-12-24 2022-05-13 青岛海尔科技有限公司 Device control method and apparatus, storage medium, and electronic apparatus
CN114697368A (en) * 2022-02-25 2022-07-01 青岛海尔科技有限公司 Method and device for determining equipment control file, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253520A1 (en) * 2013-03-11 2014-09-11 Barnesandnoble.Com Llc Stylus-based slider functionality for ui control of computing device
CN107680295A (en) * 2017-06-12 2018-02-09 平安科技(深圳)有限公司 Automatic teller machine control update method and device
CN108130682A (en) * 2017-11-24 2018-06-08 海尔优家智能科技(北京)有限公司 A kind of control method for washing, system, mobile terminal and terminal
CN111489540A (en) * 2020-03-25 2020-08-04 腾讯科技(深圳)有限公司 Intelligent device control method and device, computer readable medium and electronic device
CN111522264A (en) * 2020-04-02 2020-08-11 青岛海尔科技有限公司 Device control method and device, storage medium, and electronic device
CN111880446A (en) * 2020-07-20 2020-11-03 海尔优家智能科技(北京)有限公司 Control instruction sending method and control instruction receiving method
CN111901155A (en) * 2020-07-06 2020-11-06 上海庆科信息技术有限公司 Internet of things debugging method, device and system and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253520A1 (en) * 2013-03-11 2014-09-11 Barnesandnoble.Com Llc Stylus-based slider functionality for ui control of computing device
CN107680295A (en) * 2017-06-12 2018-02-09 平安科技(深圳)有限公司 Automatic teller machine control update method and device
CN108130682A (en) * 2017-11-24 2018-06-08 海尔优家智能科技(北京)有限公司 A kind of control method for washing, system, mobile terminal and terminal
CN111489540A (en) * 2020-03-25 2020-08-04 腾讯科技(深圳)有限公司 Intelligent device control method and device, computer readable medium and electronic device
CN111522264A (en) * 2020-04-02 2020-08-11 青岛海尔科技有限公司 Device control method and device, storage medium, and electronic device
CN111901155A (en) * 2020-07-06 2020-11-06 上海庆科信息技术有限公司 Internet of things debugging method, device and system and storage medium
CN111880446A (en) * 2020-07-20 2020-11-03 海尔优家智能科技(北京)有限公司 Control instruction sending method and control instruction receiving method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114499964A (en) * 2021-12-24 2022-05-13 青岛海尔科技有限公司 Device control method and apparatus, storage medium, and electronic apparatus
CN114499964B (en) * 2021-12-24 2023-12-19 青岛海尔科技有限公司 Equipment control method and device, storage medium and electronic device
CN114697368A (en) * 2022-02-25 2022-07-01 青岛海尔科技有限公司 Method and device for determining equipment control file, storage medium and electronic device
CN114697368B (en) * 2022-02-25 2023-12-19 青岛海尔科技有限公司 Method and device for determining equipment control file, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US20190181901A1 (en) Local profile assistant and application programming interface
CN113467832A (en) Equipment control processing method, device, storage medium and electronic device
CN112073471A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN111880446A (en) Control instruction sending method and control instruction receiving method
CN111885115A (en) Equipment binding change method and device
CN105656643B (en) Method and equipment for performing compatible management based on network configuration protocol
CN111736938B (en) Information display method and device, storage medium and electronic device
CN105530630B (en) A kind of OTA upgrade method and equipment
CN113407157A (en) Object model determination method and device, storage medium and electronic device
CN112671572B (en) Method and device for intelligent equipment network distribution, storage medium and electronic device
CN110941634A (en) Data processing method and device, storage medium and electronic device
CN111177182A (en) Data query method and device, storage medium and electronic equipment
CN113055490B (en) Data storage method and device
CN113434190B (en) Data processing method and device, storage medium and electronic equipment
CN111385110B (en) Network management method and device
CN113434525A (en) Cache data updating method and device, storage medium and electronic device
CN112698948A (en) Method and device for acquiring product resources, storage medium and electronic device
CN115878443A (en) Interface test script generation method and device, storage medium and electronic device
CN112416618A (en) Application layer data transmission method and device, storage medium and electronic device
CN112380411A (en) Sensitive word processing method and device, electronic equipment, system and storage medium
JP2011035811A (en) Storage system, access management apparatus, data transfer method and program
CN111475189A (en) Upgrading method, head-mounted equipment, storage medium and electronic device
CN111209613A (en) Rapid design method and system of intelligent product
CN113434612B (en) Data statistics method and device, storage medium and electronic device
CN113434167B (en) Function upgrading method and device, storage medium and electronic device

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