CN108196941A - The method, apparatus and computer readable storage medium of terminal control - Google Patents

The method, apparatus and computer readable storage medium of terminal control Download PDF

Info

Publication number
CN108196941A
CN108196941A CN201711499679.3A CN201711499679A CN108196941A CN 108196941 A CN108196941 A CN 108196941A CN 201711499679 A CN201711499679 A CN 201711499679A CN 108196941 A CN108196941 A CN 108196941A
Authority
CN
China
Prior art keywords
terminal
control
conversion script
converted
parameter value
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
CN201711499679.3A
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.)
Midea Group Co Ltd
Midea Smart Home Technology Co Ltd
Original Assignee
Midea Group Co Ltd
Midea Smart Home 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 Midea Group Co Ltd, Midea Smart Home Technology Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201711499679.3A priority Critical patent/CN108196941A/en
Publication of CN108196941A publication Critical patent/CN108196941A/en
Pending legal-status Critical Current

Links

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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45516Runtime code conversion or optimisation
    • G06F9/4552Involving translation to a different instruction set architecture, e.g. just-in-time translation in a JVM
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • G06F9/45512Command shells

Abstract

The invention discloses a kind of method of terminal control, including:When terminal receives control signal, control keyword and control parameter value in the control signal are obtained, the control signal is sent in a manner of natural language;Preset conversion script is called, the keyword and control parameter value are converted into machine instruction;The terminal is controlled to respond the machine instruction.The invention also discloses the devices and computer readable storage medium of a kind of terminal control.The present invention is interacted by the way that script is called to realize between user or user equipment terminal and terminal with natural language, intelligent terminal control protocol hard to understand need not be parsed thereby using family terminal software developer, development efficiency is improved, while improves user experience.

Description

The method, apparatus and computer readable storage medium of terminal control
Technical field
The present invention relates to the method, apparatus of field of computer technology more particularly to a kind of terminal control and computer-readable Storage medium.
Background technology
With the development of intelligent terminal technology, more and more intelligent terminals can pass through network and different users or use Family terminal interacts, and realizes and enriches flexible personalized customization function, promotes user experience.
In the prior art, intelligent terminal manufacturer provides terminal control agreement and terminal interface, different user terminals it is soft Part developer needs to realize complicated code logic according to terminal control agreement and terminal interface.Software developer is in the process of realization In, it since terminal control agreement is more difficult, needs to link up repeatedly with manufacturer, easily error and development and maintenance cost height.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
Invention content
It is a primary object of the present invention to provide a kind of method, apparatus of terminal control and readable storage medium storing program for executing, it is intended to solve The technical issues of certainly terminal control agreement is more difficult in the prior art, development and maintenance cost is high.
To achieve the above object, the present invention provides a kind of method of terminal control, and the method for the terminal control is included such as Lower step:
When terminal receives control signal, control keyword and control parameter value in the control signal, institute are obtained Control signal is stated to send in a manner of natural language;
Preset conversion script is called, the keyword and control parameter value are converted into machine instruction;
The terminal is controlled to respond the machine instruction.
Preferably, it is described to call preset conversion script that the control keyword and control parameter are converted to machine instruction Step includes:
Obtain the terminal models;
Call preset conversion script;
The keyword and control parameter value are converted into machine and referred to by the conversion script and the terminal models It enables.
Preferably, it is described to call preset conversion script, the keyword and control parameter value are converted into machine and referred to Step is enabled to include:
Obtain the control protocol information of the terminal;
Call preset conversion script;
The keyword and control parameter value are converted to by machine by the conversion script and the control protocol information Device instructs.
Preferably, it is described by the conversion script and the control protocol information by the keyword and control parameter Value is converted to the step of machine instruction and includes:
By the model and control protocol information of the conversion script and terminal by the keyword and control parameter value Be converted to machine instruction.
Preferably, the control keyword obtained in control signal and control parameter value step include later:
Judge whether the control parameter value in the control signal is more than preset numberical range;
If the control parameter value is less than preset numberical range, performs and call preset conversion script, by described in The step of keyword and control parameter value are converted to machine instruction.
Preferably, the terminal control step includes:
Obtain the corresponding machine code of terminal current state;
Call default conversion script;
The machine code is converted to, and send the status signal by status signal by the default conversion script, The status signal is the form of natural language.
Preferably, it is described the machine code is converted into status signal step to include by the default conversion script:
Obtain terminal models;
Call preset conversion script;
The machine instruction is converted by status signal by the conversion script and the terminal models.
Preferably, it is described the machine code is converted into status signal step to include by the default conversion script:
Obtain terminal control protocol information;
Call preset conversion script;
The machine instruction is converted by status signal by the conversion script and the terminal control agreement.
In addition, to achieve the above object, the present invention also provides the device of the terminal control, including:Memory, processor And it is stored in the program of terminal control that can be run on the memory and on the processor, the program of the terminal control The step of method of terminal control as described above being realized when being performed by the processor.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, which is characterized in that institute It states and terminal control program is stored on computer readable storage medium, realized such as when the terminal control program is executed by processor Above the step of terminal control method.
The method, apparatus and readable storage medium storing program for executing for a kind of terminal control that the embodiment of the present invention proposes, receive in terminal When controlling signal, control keyword and control parameter value in the control signal are obtained, the control signal is with natural language Mode send;Preset conversion script is called, the keyword and control parameter value are converted into machine instruction;Control institute It states terminal and responds the machine instruction.
The present invention by call script realize between user or user equipment terminal and intelligent terminal with natural language into Row interaction, intelligent terminal control protocol hard to understand need not be parsed thereby using family terminal software developer, improves exploitation Efficiency, while improve user experience.
Description of the drawings
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of air-conditioning method first embodiment of the present invention;
Fig. 3 is the flow diagram of air-conditioning method second embodiment of the present invention;
Fig. 4 is the flow diagram of air-conditioning method 3rd embodiment of the present invention;
Fig. 5 is the flow diagram of air-conditioning method fourth embodiment of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of air-conditioning method of the present invention;
Fig. 7 is the flow diagram of air-conditioning method sixth embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:When terminal receives control signal, the control signal is obtained In control keyword and control parameter value, it is described control signal sent in a manner of natural language;Call preset conversion foot This, machine instruction is converted to by the keyword and control parameter value;The terminal is controlled to respond the machine instruction.
Due in the prior art, in the user terminal software development process of control terminal, needing to realize with complicated logic Terminal control agreement hard to understand, both easily error, exploitation and the cost safeguarded are again high.
The present invention provides a solution, is asked by the terminal control for calling script realization natural language form and whole Hold machine instruction between conversion, realize control terminal user or user terminal software in the form of natural language between terminal Interaction, reduce the cost of exploitation and maintenance.
As shown in Figure 1, the terminal structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Terminal of the embodiment of the present invention is the device of terminal control.
As shown in Figure 1, the device can include:Processor 1001, such as CPU, communication bus 1002, memory 1003. Wherein, communication bus 1002 is used to implement the connection communication between these components.Memory 1003 can be high-speed RAM storage Device or the memory of stabilization (non-volatilememory), such as magnetic disk storage.Memory 1003 is optionally gone back It can be independently of the storage device of aforementioned processor 1001.
It will be understood by those skilled in the art that the restriction of the terminal structure shown in Fig. 1 not structure paired terminal, can wrap It includes and either combines certain components or different components arrangement than illustrating more or fewer components.
As shown in Figure 1, as operating system and terminal can be included in a kind of memory 1003 of computer storage media Control program.
In device shown in Fig. 1, processor 1001 can be used for calling at the terminal control stored in memory 1003 Program is managed, and performs following operate:
When terminal receives control signal, control keyword and control parameter value in the control signal, institute are obtained Control signal is stated to send in a manner of natural language;
Preset conversion script is called, the keyword and control parameter value are converted into machine instruction;
The terminal is controlled to respond the machine instruction.
Further, processor 1001 can call the terminal control program stored in memory 1003, also perform following Operation:
Obtain the terminal models;
Call preset conversion script;
The keyword and control parameter value are converted into machine and referred to by the conversion script and the terminal models It enables.
Further, processor 1001 can call the terminal control program stored in memory 1003, also perform following Operation:
Obtain the control protocol information of the terminal;
Call preset conversion script;
The keyword and control parameter value are converted to by machine by the conversion script and the control protocol information Device instructs.
Further, processor 1001 can call the terminal control program stored in memory 1003, also perform following Operation:
By the model and control protocol information of the conversion script and terminal by the keyword and control parameter value Be converted to machine instruction.
Further, processor 1001 can call the terminal control program stored in memory 1003, also perform following Operation:
Judge whether the control parameter value in the control signal is more than preset numberical range;
If the control parameter value is less than preset numberical range, performs and call preset conversion script, by described in The step of keyword and control parameter value are converted to machine instruction.
Further, processor 1001 can call the terminal control program stored in memory 1003, also perform following Operation:
Obtain the corresponding machine code of terminal current state;
Call default conversion script;
The machine code is converted to, and send the status signal by status signal by the default conversion script, The status signal is the form of natural language.
Further, processor 1001 can call the terminal control program stored in memory 1003, also perform following Operation:
Obtain terminal models;
Call preset conversion script;
The machine instruction is converted by status signal by the conversion script and the terminal models.
Further, processor 1001 can call the terminal control program stored in memory 1003, also perform following Operation:
Obtain terminal control protocol information;
Call preset conversion script;
The machine instruction is converted by status signal by the conversion script and the terminal control agreement.
With reference to Fig. 2, first embodiment of the invention provides a kind of method of terminal control, the method includes:
Step S10, when terminal receives control signal, the control keyword and control that obtain in the control signal are joined Numerical value, the control signal are sent in a manner of natural language.
Natural language typically refers to a kind of naturally with the language of culture accomplishment, is main expression side of the people for exchange Formula, such as English, Chinese, Japanese.Natural language is simply understood well, should be readily appreciated that.
Terminal control signal there are many natural language transmission form, such as user directly with voice send control signal, Or the control signal by terminal user's control software sending information form.Control signal is sent by natural language mode to carry The human-computer interactive control mode that supplied a kind of close friend, should be readily appreciated that and operate.The different communications taken according to control signal Mode, such as cable network, mobile network, WIFI, bluetooth or infrared, terminal handle the control received with corresponding communication mode Signal processed.
When terminal receives the control signal of natural language form, terminal first passes through Speech processing or text file Processing obtains the control statement that user sends out, then obtains control keyword and control parameter from control signal by semanteme parsing Value, finally calls preset conversion script, and control keyword and control parameter value are converted to machine instruction.
It, can be by establishing a large amount of natural language control statement in order to improve the efficiency of natural language processing and accuracy Database and the corresponding keyword dictionary of control command can also show in the display screen of terminal or be answered by the way that terminal is relevant The terminal control sentence or vocabulary recommended with end software push, prompt user to use.If such as terminal be air-conditioning, the control of recommendation Vocabulary has:Open air-conditioning, close air-conditioning, open display screen, close display screen, be adjusted to automatic mode, be adjusted to sleep pattern, Wind speed elevated by one step, wind speed reduce level-one etc..
Step S20 calls preset conversion script, the keyword and control parameter value is converted to machine instruction.
Before calling conversion script that keyword and control parameter value will be controlled to be converted to machine instruction, need to first pass through and turn The change of feet this will control keyword and control parameter be converted into unified data format.JSON (JavaScript can be chosen Object Notation) data interchange format.
JSON is a kind of data interchange format of lightweight, has good readable and convenient for quickly writing characteristic. JSON using compatibility it is very high, be totally independent of language text format, while also have similar to C language custom (including C, C++, C#, Java, JavaScript, Perl, Python etc.) system behavior, data friendship can be carried out between different platform It changes.These characteristics make JSON become ideal data interchange language.
Preset conversion script can be realized, such as Lua, Python, Perl etc. with the script of a variety of prevalences, choose Script need using simple, the platform of compatible a variety of mainstreams.
Step S30 controls the terminal to respond the machine instruction.
Conditioner terminal air is exemplified below by the detailed process of control signal control sent in a manner of natural language.
User opens cell phone application in way home, says control data:" air-conditioning please be open now, temperature is dropped to 26 Degree, thanks!", after handset processes voice signal obtains control statement, further obtaining control keyword by semanteme parsing is: Air-conditioning, refrigeration, temperature are opened, it is 26 to obtain control parameter value.
According to the style of code, the control keyword that will identify that is English, calls preset conversion script transformation It is as follows for JSON data formats:
{“power”:”on”,”temperature”:20,”mode”:”cool”}
JSON data are further converted to binary machine instruction by preset conversion script:
00000001 00010100 00000100
Cell phone application is sent to house after the corresponding machine instruction of control data is obtained, by machine instruction by mobile network In air-conditioning.Air-conditioning starts refrigeration after receiving the order and indoor temperature is dropped to 26 degree of user's formulation.
In the present embodiment, sending out the request of control terminal in a manner of natural language, will be controlled using script please The machine instruction for being converted to terminal is sought, has provided a kind of conveniently man-machine interaction mode to the user, while is user terminal The developer of software provides the development scheme of simple and effective.
Further, with reference to Fig. 3, second embodiment of the invention provides a kind of side of terminal control based on first embodiment Method, the present embodiment include in step S20:
Step S210 obtains the terminal models
Step S220 calls preset conversion script.
Step S230 is converted to the keyword and control parameter value by the conversion script and the terminal models Machine instruction.
Since the control protocol of different types of terminal is different, for the control statement of identical control keyword, inhomogeneity The machine instruction of type terminal is different.When user needs to control more different types of terminals, need to call different conversions When script or the conversion process script in the compatible multiple types terminal of execution, conversion script walks difference according to the model of terminal Processing branch.
Since default conversion script is there are many method of operation, so corresponding obtain terminal models also there are many mode, below Illustrate one by one:
1) operation of conversion script is preset on the subscriber terminal:
When by user terminal come when realizing control instruction and the mutual conversion function of machine instruction, it is first in the software of user terminal It first needs to obtain default conversion script.For terminal it is safe to use the considerations of, that is, avoid leakage terminal control agreement, by terminal factory Quotient provides default conversion script corresponding function library.When the model of terminal is numerous, function library size of code is larger and version is more, is The raising function library efficiency of management, function library can be positioned on network server by manufacturer terminal supplies user terminal software development Quotient downloads.
Before user terminal software transfer conversion script is converted, software prompt user is needed, which to input, needs what is controlled The model of terminal or when user terminal software and terminal establish communication connection for the first time, is actively given user terminal soft by terminal Part returns to its model.
2) conversion script is preset to operate in terminal:
When default conversion script is operated in terminal, user terminal software only needs to send terminal in a manner of natural language Signal is controlled, does not need to convert, reduces user terminal software implementation complexity.
Default conversion script calls terminal physical layer interface that can obtain terminal models.
3) conversion script is preset to operate on network server:
Network server receives the control data of natural language form that user terminal is sent out, and network server is converted For the machine instruction of controlled terminal, with control terminal.Network server with networked terminals when establishing connection, from the response of terminal The model of terminal is obtained in message.
As a concentration transfer point, realization natural language control data and machine that can be more efficient refer to network server The mutual conversion enabled.Such as the mechanism of state is registered and safeguarded automatically after network server offer terminal networking, by end to be controlled The effective management in end is got up.Network server can be from the control signal of the common natural language form of a large number of users of reception Key sentence and keyword are commonly used in automatic study, for establishing natural language control statement database and the corresponding pass of control command Keyword dictionary, for being used when the extraction control keyword from control signal and control parameter value.Network server can also be to User terminal carries out edition code update push, shows new control function etc..When some complexities are high, a large amount of processing of consumption It, can be real on the server when the speech recognition of resource or natural language parsing function are not suitable for being placed on user terminal realization It is existing.
In the present embodiment, by obtaining terminal models, keyword and control are joined by converting script and terminal models Numerical value conversion is machine instruction, realizes user and control to different types of terminals can be realized by unified software interface.
Further, with reference to Fig. 4, third embodiment of the invention provides a kind of side of terminal control based on first embodiment Method, the present embodiment include in step S20:
Step S240 obtains the control protocol information of the terminal.
Step S250 calls preset conversion script.
Step S260, by script and the control protocol information converted by the keyword and control parameter value Be converted to machine instruction.
Even the terminal of same model, by the agreement that it is supported as the upgrading of hardware or the extension of function exist It constantly updates, the protocol version that the terminal of same model that different user uses is supported can be caused different.Such as with end The upgrading of processor resource is held, the bit wide of manageable machine instruction is elongated, and corresponding machine instruction is just different, so as to lead Cause the change of control protocol.
Called conversion script needs to obtain the control protocol information that terminal is supported, will be controlled according to corresponding agreement Request is converted into the machine instruction of terminal.
In the present embodiment, by obtaining terminal control protocol information, by converting script and terminal control protocol information Keyword and control parameter value are converted into machine instruction, user is realized and can be realized by unified software interface to supporting The control of the terminal of different agreement.
Further, with reference to Fig. 5, fourth embodiment of the invention is based on first, second or third embodiment and provides a kind of end The method for holding control, the present embodiment include in step S20:
Step S270 obtains the model of the terminal and control protocol information.
Step S280 calls preset conversion script.
Step S290, by the model and control protocol information of the conversion script and terminal by the keyword and control Parameter value processed is converted to machine instruction.
The considerations of for common codes and maintenance cost, manufacturer terminal is for belonging to the production of the different model of same series Product can provide unified conversion script.Script is converted when performing because different product type and protocol information discrepant turn When changing operation, corresponding conversion operation is performed according to the model of terminal and the selection of control protocol information.
In the present embodiment, by converting script and terminal models and terminal control protocol information by keyword and control Parameter value is converted to machine instruction, realizes user and can be realized by unified software interface to different types of, support not With the control of the terminal of agreement.
Further, with reference to Fig. 6, any embodiment of the fifth embodiment of the invention based on first to fourth embodiment provides A kind of method of terminal control, the present embodiment include after step slo:
Step S40 judges whether the control parameter value in the control signal is more than preset numberical range.
Step S50 if the control parameter value is less than preset numberical range, is performed and is called preset conversion script, The step of the keyword and control parameter value are converted to machine instruction.
User sends out mistake to terminal sometimes when by the control signal of voice or the raw paired terminal of word input Control signal, conversion script need to receive control signal in control parameter into property detect, judge whether it exceeds Preset numberical range.Such as the temperature set in the control signal that sends out of user has exceeded the preset maximum temperature of air-conditioning, The wind speed of user setting has exceeded the preset highest wind velocity of air-conditioning or user thinks that the operational mode of setting is not present.
It is when terminal judges to control the control parameter value in signal to have exceeded preset numberical range, control signal is wrong Information accidentally feeds back to user.
In the present embodiment, by control signal in control parameter value whether be more than default value range detection, will Abnormality detecting process is preposition, avoids the normal operational process of terminal and is interrupted by the control instruction of mistake, ensure that terminal Normal smoothly running and service.
Further, with reference to Fig. 7, sixth embodiment of the invention provides a kind of side of terminal control based on first embodiment Method, the present embodiment include:
Step S60 obtains the corresponding machine code of terminal current state.
Step S70 calls default conversion script.
The machine code is converted to status signal, and send the shape by step S80 by the default conversion script State signal, the status signal are the form of natural language.
Terminal inevitably breaks down in the long-term use, and terminal causes user service to be affected because of failure, Whether whether one side can be found in time depending on terminal fault, on the other hand depending on can be examined in time when breaking down Disconnected and solution, the latter depend particularly on the response speed and service experience of maintenance personal.
In order to reduce the influence that terminal fault brings user experience, when terminal breaks down, malfunction pair is obtained Machine code is converted to status signal and the transmission of natural language form by preset conversion script by the machine code answered.
For example, when the failure of Thermal Cutoffs disconnection protection occurs for air-conditioning, corresponding hexadecimal machine code is 0xEB.Its machine code is converted into JSON data as follows by preset conversion script:
{“Thermal cutoff”:”breakdown”}
The JSON data conversions further " note that air-conditioning breaks down, Temperature protection by conversion script into Chinese sentence Silk disconnects, and please repairs as early as possible!" and generate corresponding status signal and sent.
When default conversion script is run on the subscriber terminal, terminal directly displays status signal on the subscriber terminal; When default conversion script is operated in terminal, status signal is sent to user terminal by terminal;Default conversion script operates in net When on network server, status signal is sent to user terminal by network server.
In addition, terminal is when the control signal for detecting that user sends is incorrect, it is also desirable to call preset conversion script Terminal can not be handled and receive the state letter that the corresponding machine code for controlling signal is converted into " it is incorrect to receive control signal " Number feed back to user.
Machine code is converted to according to the difference of application scenarios by the detailed process of status signal by default conversion script There are following three kinds:
1) terminal models are obtained, default conversion script is called, is turned machine instruction by converting script and terminal models Change status signal into.
Since the machine code of different types of terminal is different, to realize to different model terminal machine code and state Conversion between signal, first, the conversion script of different types of terminals can be provided, two are to provide unified conversion script, according to The model of terminal walks different processing branches.So it needs first to obtain terminal models, call different conversion scripts or is uniting Machine code is converted by corresponding status signal according to the model of terminal in one conversion script operation.
2) terminal control protocol information is obtained, default conversion script is called, by converting script and terminal control agreement Machine instruction is converted into status signal.
For the terminal of similary model, with the upgrading of hardware and the extension of function, the control protocol supported can not yet Equally.Default conversion script is before being converted, by obtaining the control protocol information of terminal, the root when performing conversion operation Corresponding conversion operation is selected according to control protocol information.
3) terminal models and control protocol information are obtained, default conversion script is called, by converting script and terminal type Number and control protocol information machine instruction is converted into status signal.
When unified conversion script compatibility supports various types of terminals, which needs to obtain terminal simultaneously Signal and control protocol information, the first control protocol major class according to belonging to terminal models determine terminal when performing conversion operation, Control protocol version is determined further according to the control protocol information of terminal.
In the present embodiment, by obtaining the corresponding machine code of terminal current state, preset conversion script handle is called Machine code is converted into status signal and sends, and realizes and finds terminal fault state in time, and terminal fault wound is repaired to be quick Good condition has been made, the influence that terminal fault state is brought to user service has been reduced, improves user experience.
The present invention also provides a kind of device of terminal control, which includes:Memory, processor and it is stored in described deposit On reservoir and the terminal control program that can run on the processor, when the terminal control program is performed by the processor The step of realizing the terminal control method.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with terminal control program, the step of the terminal control method is realized when the terminal control program is executed by processor Suddenly.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or system institute Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, Computer, server, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of terminal control method, which is characterized in that the method for the terminal control includes the following steps:
When terminal receives control signal, control keyword and control parameter value in the control signal, the control are obtained Signal processed is sent in a manner of natural language;
Preset conversion script is called, the keyword and control parameter value are converted into machine instruction;
The terminal is controlled to respond the machine instruction.
2. the method for terminal control as described in claim 1, which is characterized in that described to call preset conversion script by described in Keyword and control parameter are converted to machine instruction step and include:
Obtain the terminal models;
Call preset conversion script;
The keyword and control parameter value are converted to by machine instruction by the conversion script and the terminal models.
3. the method for terminal control as described in claim 1, which is characterized in that it is described to call preset conversion script, it will The keyword and control parameter value are converted to machine instruction step and include:
Obtain the control protocol information of the terminal;
Call preset conversion script;
The keyword and control parameter value are converted into machine and referred to by the conversion script and the control protocol information It enables.
4. the method for terminal control as described in claim 1, which is characterized in that described by the conversion script and described The step of keyword and control parameter value are converted to machine instruction by control protocol information includes:
The keyword and control parameter value are converted by the model and control protocol information of the conversion script and terminal For machine instruction.
5. such as the method for Claims 1-4 any one of them terminal control, which is characterized in that described to obtain in control signal Control keyword and control parameter value step after include:
Judge whether the control parameter value in the control signal is more than preset numberical range;
If the control parameter value is less than preset numberical range, performs and call preset conversion script, by the key The step of word and control parameter value are converted to machine instruction.
6. the method for terminal control as described in claim 1, which is characterized in that the terminal control step includes:
Obtain the corresponding machine code of terminal current state;
Call default conversion script;
The machine code is converted to, and send the status signal by status signal by the default conversion script, it is described Status signal is the form of natural language.
7. the method for terminal control as claimed in claim 6, which is characterized in that it is described by the default conversion script by institute It states machine code and is converted to status signal step and include:
Obtain terminal models;
Call preset conversion script;
The machine instruction is converted by status signal by the conversion script and the terminal models.
8. the method for terminal control as claimed in claim 6, which is characterized in that it is described by the default conversion script by institute It states machine code and is converted to status signal step and include:
Obtain terminal control protocol information;
Call preset conversion script;
The machine instruction is converted by status signal by the conversion script and the terminal control agreement.
9. a kind of device of terminal control, which is characterized in that described device includes:Memory, processor and it is stored in described deposit On reservoir and the terminal control program that can run on the processor, when the terminal control program is performed by the processor It realizes such as the step of terminal control described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that terminal control is stored on the computer readable storage medium Processing procedure sequence realizes such as terminal control described in any item of the claim 1 to 8 when the terminal control program is executed by processor The step of method.
CN201711499679.3A 2017-12-29 2017-12-29 The method, apparatus and computer readable storage medium of terminal control Pending CN108196941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711499679.3A CN108196941A (en) 2017-12-29 2017-12-29 The method, apparatus and computer readable storage medium of terminal control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711499679.3A CN108196941A (en) 2017-12-29 2017-12-29 The method, apparatus and computer readable storage medium of terminal control

Publications (1)

Publication Number Publication Date
CN108196941A true CN108196941A (en) 2018-06-22

Family

ID=62587875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711499679.3A Pending CN108196941A (en) 2017-12-29 2017-12-29 The method, apparatus and computer readable storage medium of terminal control

Country Status (1)

Country Link
CN (1) CN108196941A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110095992A (en) * 2019-06-21 2019-08-06 南京邮电大学 Smart home system based on wechat small routine
CN110177033A (en) * 2019-05-21 2019-08-27 四川虹美智能科技有限公司 Method, terminal and Internet of things system based on Internet of Things control household electrical appliances
CN110414014A (en) * 2019-08-05 2019-11-05 珠海格力电器股份有限公司 A kind of speech ciphering equipment control method, device, storage medium and speech ciphering equipment
CN111190657A (en) * 2020-01-07 2020-05-22 北京字节跳动网络技术有限公司 Activity configuration method and device, readable medium and electronic equipment
CN111343134A (en) * 2018-12-19 2020-06-26 美的集团股份有限公司 Communication method, medium, household appliance and device based on script parsing protocol
CN111459748A (en) * 2020-03-17 2020-07-28 中国建设银行股份有限公司 Operation and maintenance control method, system and device based on command control and storage medium
CN111596895A (en) * 2020-04-07 2020-08-28 厦门极致互动网络技术股份有限公司 Software development management method and system based on communication tool and mobile terminal
CN113676382A (en) * 2020-05-13 2021-11-19 云米互联科技(广东)有限公司 IOT voice command control method, system and computer readable storage medium
CN113934146A (en) * 2020-06-29 2022-01-14 阿里巴巴集团控股有限公司 Method and device for controlling Internet of things equipment and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102692068A (en) * 2012-06-15 2012-09-26 海尔集团公司 Voice-controlled air conditioner with voice interaction function
CN103617159A (en) * 2012-12-07 2014-03-05 万继华 Method for translating natural languages into computer language, semantic analyzer and human-machine conversation system
CN103941653A (en) * 2013-01-21 2014-07-23 广东美的制冷设备有限公司 Intelligent household electrical appliance master and slave control methods and systems
CN105609104A (en) * 2016-01-22 2016-05-25 北京云知声信息技术有限公司 Information processing method and apparatus, and intelligent voice router controller
CN105700364A (en) * 2016-01-20 2016-06-22 宇龙计算机通信科技(深圳)有限公司 Intelligent household control method and wearable equipment
CN106057199A (en) * 2016-05-31 2016-10-26 广东美的制冷设备有限公司 Control method, control device and terminal
CN106292321A (en) * 2016-08-30 2017-01-04 无锡小天鹅股份有限公司 Washing machine and control method thereof and control system
CN106444452A (en) * 2016-10-31 2017-02-22 广东美的制冷设备有限公司 Household appliance control method and apparatus thereof
CN106601248A (en) * 2017-01-20 2017-04-26 浙江小尤鱼智能技术有限公司 Smart home system based on distributed voice control

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102692068A (en) * 2012-06-15 2012-09-26 海尔集团公司 Voice-controlled air conditioner with voice interaction function
CN103617159A (en) * 2012-12-07 2014-03-05 万继华 Method for translating natural languages into computer language, semantic analyzer and human-machine conversation system
CN103941653A (en) * 2013-01-21 2014-07-23 广东美的制冷设备有限公司 Intelligent household electrical appliance master and slave control methods and systems
CN105700364A (en) * 2016-01-20 2016-06-22 宇龙计算机通信科技(深圳)有限公司 Intelligent household control method and wearable equipment
CN105609104A (en) * 2016-01-22 2016-05-25 北京云知声信息技术有限公司 Information processing method and apparatus, and intelligent voice router controller
CN106057199A (en) * 2016-05-31 2016-10-26 广东美的制冷设备有限公司 Control method, control device and terminal
CN106292321A (en) * 2016-08-30 2017-01-04 无锡小天鹅股份有限公司 Washing machine and control method thereof and control system
CN106444452A (en) * 2016-10-31 2017-02-22 广东美的制冷设备有限公司 Household appliance control method and apparatus thereof
CN106601248A (en) * 2017-01-20 2017-04-26 浙江小尤鱼智能技术有限公司 Smart home system based on distributed voice control

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343134A (en) * 2018-12-19 2020-06-26 美的集团股份有限公司 Communication method, medium, household appliance and device based on script parsing protocol
CN110177033A (en) * 2019-05-21 2019-08-27 四川虹美智能科技有限公司 Method, terminal and Internet of things system based on Internet of Things control household electrical appliances
CN110177033B (en) * 2019-05-21 2021-08-31 四川虹美智能科技有限公司 Method and terminal for controlling household appliances based on Internet of things and Internet of things system
CN110095992A (en) * 2019-06-21 2019-08-06 南京邮电大学 Smart home system based on wechat small routine
CN110414014A (en) * 2019-08-05 2019-11-05 珠海格力电器股份有限公司 A kind of speech ciphering equipment control method, device, storage medium and speech ciphering equipment
CN111190657B (en) * 2020-01-07 2022-07-05 北京字节跳动网络技术有限公司 Activity configuration method and device, readable medium and electronic equipment
CN111190657A (en) * 2020-01-07 2020-05-22 北京字节跳动网络技术有限公司 Activity configuration method and device, readable medium and electronic equipment
CN111459748A (en) * 2020-03-17 2020-07-28 中国建设银行股份有限公司 Operation and maintenance control method, system and device based on command control and storage medium
CN111596895A (en) * 2020-04-07 2020-08-28 厦门极致互动网络技术股份有限公司 Software development management method and system based on communication tool and mobile terminal
CN111596895B (en) * 2020-04-07 2022-08-09 厦门极致互动网络技术股份有限公司 Software development management method and system based on communication tool and mobile terminal
CN113676382A (en) * 2020-05-13 2021-11-19 云米互联科技(广东)有限公司 IOT voice command control method, system and computer readable storage medium
CN113676382B (en) * 2020-05-13 2023-04-07 云米互联科技(广东)有限公司 IOT voice command control method, system and computer readable storage medium
CN113934146A (en) * 2020-06-29 2022-01-14 阿里巴巴集团控股有限公司 Method and device for controlling Internet of things equipment and electronic equipment

Similar Documents

Publication Publication Date Title
CN108196941A (en) The method, apparatus and computer readable storage medium of terminal control
KR102304698B1 (en) Method and apparatus for automatic device program generation
US20170293834A1 (en) Techniques to respond to user requests using natural-language machine learning based on branching example conversations
US20220335268A1 (en) Bot builder dialog map
US9619122B2 (en) Method and apparatus for automatic device program generation
CN109725901A (en) Development approach, device, equipment and the computer storage medium of front-end code
CN104714817B (en) Upgrade method, system and the control terminal of home appliance software by infrared signal
US11182565B2 (en) Method to learn personalized intents
CN101930400A (en) SDK (Software Development Kit) automatic test system and method
US9654347B2 (en) Configuring method and device relying on management rules
CN107948746A (en) Smart television application startup method, smart television and computer-readable recording medium
CN105577721A (en) Remote terminal control method and system thereof
CN107688529A (en) Component adjustment method and device
CN112954717B (en) Household appliance network distribution method and device based on H5 page
CN110058850A (en) A kind of development approach of application, device and storage medium
CN112135325A (en) Network switching method, device, storage medium and terminal
CN102821211A (en) Automatic testing method and device for communication network elements
CN110364155A (en) Voice control error-reporting method, electric appliance and computer readable storage medium
US11010558B2 (en) Temporary slots for storing chat data
US20120035911A1 (en) Customer premises equipment and configuration method thereof
US10229678B2 (en) Device-described natural language control
CN105278928A (en) IVR external interface configuration method and IVR external interface configuration device
US8306213B1 (en) Skill and level assignment via concentric inlaid circles
CN107767872A (en) Audio recognition method, terminal device and storage medium
CN108156534A (en) Generation method, device and the computer readable storage medium of demonstration application

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

Application publication date: 20180622

RJ01 Rejection of invention patent application after publication