CN107450899A - The generation method and device of terminal control script - Google Patents

The generation method and device of terminal control script Download PDF

Info

Publication number
CN107450899A
CN107450899A CN201610388246.XA CN201610388246A CN107450899A CN 107450899 A CN107450899 A CN 107450899A CN 201610388246 A CN201610388246 A CN 201610388246A CN 107450899 A CN107450899 A CN 107450899A
Authority
CN
China
Prior art keywords
control
terminal
script
parameter
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610388246.XA
Other languages
Chinese (zh)
Other versions
CN107450899B (en
Inventor
施伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen
Original Assignee
Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen
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 Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen filed Critical Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen
Priority to CN201610388246.XA priority Critical patent/CN107450899B/en
Publication of CN107450899A publication Critical patent/CN107450899A/en
Application granted granted Critical
Publication of CN107450899B publication Critical patent/CN107450899B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of generation method of terminal control script, including:When receiving the configuring request of control strategy of terminal transmission, to the terminal feedback control parameters configuration interface, so that user inputs control parameter based on the control parameter configuration interface that terminal is shown, wherein, the control parameter includes trigger condition, control command and trigger action;When receiving the control parameter based on policy information configuration interface input, each control parameter is filled into default basic script according to the attribute information of each control parameter, to generate terminal control script.The invention also discloses a kind of generating means of terminal control script.User of the present invention only needs to input control parameter in control parameter configuration interface, not it should be understood that coding principle, you can for generation terminal control script to realize that control strategy is developed, the personnel without specialty carry out written in code, cost is relatively low, and development efficiency is higher.

Description

The generation method and device of terminal control script
Technical field
The present invention relates to internet of things field, more particularly to a kind of generation method and device of terminal control script.
Background technology
With the fast development of network technology, the imagination of all things on earth networking is done step-by-step.People are had been carried out by LAN Or the communication technology such as internet is linked together sensor, controller, machinery equipment, personnel and thing by new mode, shape Adult is connected with thing, thing and thing, carries out information exchange, realizes facility information, long-range and intelligentized management.Internet of Things is just located In fast development, the application based on Internet of Things is increasingly paid close attention to by everybody, such as current smart home, car networking, intelligence The Internet of product such as traffic, intelligent monitoring, intelligent electric power.The appearance of Internet of Things is essentially or for matter of making the life better Amount, lift the quality of the life of people, improve enterprise work efficiency.Internet of Things core frame is by sensing layer, Internet and application layer Composition.One complete Internet of things system is related to that equipment is found and configuration, equipment connection network, access-in management platform, equipment are remote The technology such as process control, device data acquisition and storage, device data intellectual analysis.Management platform based on cloud computing is Internet of Things Core, be responsible for equipment access, message forwarding, configuration equipment control strategy, monitoring device state, collecting device data, data Storage analysis etc..
Current Internet of things system scheme is made a general survey of, whole pattern is the API that platform of internet of things externally provides equipment access, intelligent After equipment connection network, the API that calling platform provides is connected to Internet of Things management platform, then real by intelligent APP or WEB page Existing remote control and data management.Most of platform of internet of things simply externally provides equipment access service, does not provide equipment Concrete application service is, it is necessary to which third party oneself develops specific business.Small part platform of internet of things supports that access is different types of Smart machine, and provide and create the control strategy set in advance, for controlling smart machine, and actual user's scene complexity it is various, Very strange, the control strategy predefined can only meet the popular scene in part, the particular field for needing to realize for certain customers Scape, control strategy can only be developed by User Defined, and need developer's progress of specialty self-defined during self-defined exploitation Operation code corresponding to control strategy is write, and development cost is high.
The content of the invention
It is a primary object of the present invention to propose a kind of generation method and device of terminal control script, it is intended to solve existing The high technical problem of Internet of Things control strategy development cost in technology.
To achieve the above object, the present invention provides a kind of generation method of terminal control script, the life of the control script Comprise the following steps into method:
When receiving the configuring request of control strategy of terminal transmission, boundary is configured to the terminal feedback control parameters Face, so that user inputs control parameter based on the control parameter configuration interface that terminal is shown, wherein, the control parameter bag Include trigger condition, control command and trigger action;
When receiving the control parameter based on policy information configuration interface input, according to each control parameter Attribute information each control parameter is filled into default basic script, to generate terminal control script.
Alternatively, it is described when receiving the configuring request of control strategy of terminal transmission, to the terminal feedback control The step of parameter configuration interface, includes:
When receiving the configuring request of control strategy of terminal transmission, boundary is selected to the terminal feedback mode control Face, so that user selects control model based on the selection interface that the terminal is shown;
When receiving the time control pattern selection instruction based on control model selection interface triggering, to the end Feedback time parameter inputting interface is held, so that user is based on the time parameter inputting interface input time parameter, and to described Terminal feedback control parameters configuration interface;
When receiving the instant control model selection instruction based on control model selection interface triggering, to the end Hold feedback control parameters configuration interface.
Alternatively, the generation method of the terminal control script also includes step:
When receiving terminal control script operating instruction, preset script interpreter is called to the terminal control script Parsed to generate execution code;
Run the execution code of generation.
Alternatively, it is described to before the step of terminal feedback control parameters configuration interface, the terminal control script Generation method also include step:
When receiving the configuring request of control strategy of terminal transmission, boundary is selected to the terminal back-to-back running scene Face, wherein, the application scenarios include platform Run-time scenario and equipment Run-time scenario;
When receiving the selection operation based on application scenarios selection interface triggering, perform to feed back to the terminal and control The step of parameter configuration interface processed;
The attribute information according to each control parameter fills each control parameter to default basis In script, the step of to generate terminal control script after, the generation method of the terminal control script also includes step:
When Run-time scenario corresponding to the terminal control script in generation is platform Run-time scenario, the described of generation is preserved Terminal control script;
When Run-time scenario corresponding to the terminal control script in generation is equipment Run-time scenario, by the terminal control Script is issued to equipment corresponding to the terminal control script, so that the equipment preserves the terminal control script.
Alternatively, the attribute information according to each control parameter fills each control parameter to default Basic script in step after, the generation method of the terminal control script also includes:
The script display interface of the terminal control script is shown to terminal feedback, so that user is based on the pin This display interface is modified to the terminal control script;
When receiving the script modification request based on script display interface triggering, changed and asked based on the script The terminal control script currently shown is modified.
In addition, to achieve the above object, the present invention also proposes a kind of generating means of terminal control script, the control pin This generating means include:
Sending module, for when receiving the configuring request of control strategy of terminal transmission, feeding back and controlling to the terminal Parameter configuration interface processed, so that user inputs control parameter based on the control parameter configuration interface that terminal is shown, wherein, institute Stating control parameter includes trigger condition, control command and trigger action;
Generation module, for receive based on the policy information configuration interface input control parameter when, according to each The attribute information of the individual control parameter fills each control parameter into default basic script, to generate terminal control Script processed.
Alternatively, the sending module, is additionally operable to:
When receiving the configuring request of control strategy of terminal transmission, boundary is selected to the terminal feedback mode control Face, so that user selects control model based on the selection interface that the terminal is shown;
When receiving the time control pattern selection instruction based on control model selection interface triggering, to the end Feedback time parameter inputting interface is held, so that user is based on the time parameter inputting interface input time parameter, and to described Terminal feedback control parameters configuration interface;
When receiving the instant control model selection instruction based on control model selection interface triggering, to the end Hold feedback control parameters configuration interface.
Alternatively, the generating means of the terminal control script also include:
Parsing module, for when receiving terminal control script operating instruction, calling preset script interpreter to institute Terminal control script is stated to be parsed to generate execution code;
Module is run, for running the execution code of generation.
Alternatively, the sending module, it is additionally operable to when receiving the configuring request of control strategy of terminal transmission, to institute Terminal back-to-back running scene selection interface is stated, wherein, the application scenarios include platform Run-time scenario and equipment Run-time scenario, And when receiving the selection operation based on application scenarios selection interface triggering, match somebody with somebody to the terminal feedback control parameters The step of putting interface;
The generating means of the terminal control script also include memory module, for the terminal control script in generation When corresponding Run-time scenario is platform Run-time scenario, the terminal control script of generation is preserved;
The sending module, it is additionally operable to Run-time scenario corresponding to the terminal control script in generation and runs field for equipment Jing Shi, the terminal control script is issued to equipment corresponding to the terminal control script, for described in equipment preservation Terminal control script.
Alternatively, the generating means of the terminal control script also include:
The sending module, the script for being additionally operable to show the terminal control script to terminal feedback show boundary Face, so that user is modified based on the script display interface to the terminal control script;
Modified module, for receive based on the script display interface triggering script change request when, based on institute Script modification request is stated to modify to the terminal control script currently shown.
The generation method and device of terminal control script proposed by the present invention, receiving the control strategy of terminal transmission During configuring request, to the terminal feedback control parameters configuration interface, matched somebody with somebody by user based on the control parameter that terminal is shown Put the control parameters such as interface input device attribute information, communication mode, trigger condition, control command and trigger action, and When receiving the control parameter based on policy information configuration interface input, according to the attribute information of each control parameter Each control parameter is filled into default basic script, to generate terminal control script, user only needs controlling Parameter configuration interface inputs control parameter, not it should be understood that coding principle, you can generation terminal control script is controlled with realizing Strategy Development, the personnel without specialty carry out written in code, and cost is relatively low, and development efficiency is higher.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the generation method first embodiment of terminal control script of the present invention;
Fig. 2 is the schematic flow sheet of the generation method 3rd embodiment of terminal control script of the present invention;
Fig. 3 is the schematic flow sheet of the generation method fourth embodiment of terminal control script of the present invention;
Fig. 4 is the high-level schematic functional block diagram of the generating means first embodiment of terminal control script of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the generating means 3rd embodiment of terminal control script of the present invention;
Fig. 6 is the high-level schematic functional block diagram of the generating means fourth embodiment of terminal control script of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
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 present invention provides a kind of generation method of terminal control script.
Reference picture 1, Fig. 1 are the schematic flow sheet of the embodiment of generation method one of terminal control script of the present invention.
The present embodiment proposes a kind of generation method of terminal control script, and the generation method of the terminal control script includes:
Step S10, when receiving the configuring request of control strategy of terminal transmission, configured to terminal feedback control parameters Interface, so that user inputs control parameter based on the control parameter configuration interface that terminal is shown, wherein, control parameter includes triggering Condition, control command and trigger action;
In the present embodiment, trigger condition may include that variable corresponding to the trigger condition (such as temperature, electric current), variable are wanted The condition of satisfaction as temperature be more than 20 degree and variable detection device as variable is temperature when corresponding to detection device be temperature biography Sensor, to realize that, to the coordinated signals between equipment, so that variable is temperature as an example, trigger condition can detect for temperature sensor Temperature be more than 20 degree;Control command can be the order of control device, then the control command may include controlled device, controlled device Corresponding order, such as open, close or run according to default parameter, such as trigger condition is what temperature sensor detected When temperature is more than 26 degree, corresponding control command is control air conditioner refrigerating operaton, i.e. controlled device is air conditioner, the air conditioner Corresponding order is refrigerating operaton, then needs to select the information of controlled device when selecting control command, to realize between equipment Linkage;Trigger action is the action that equipment local terminal performs, and trigger action is to reduce blower fan to turn such as when controlled device is air-conditioning Speed.It is understood that trigger condition, control command and trigger action form a control parameter group, control command or The execution condition of trigger action needs trigger condition corresponding to satisfaction.
Due to including controlled device in trigger condition, control command and trigger action, then in the controlled preparation of selection The attribute information of setting controlled device is needed, and communication mode corresponding to each equipment is set, you can is pre-configured with each control Parameter sets, such as control command set, trigger action set, equipment variables set, device type set and communication mode Set etc., when entering control parameter inputting interface, the input frame of each control parameter, the input of each control parameter can be shown Corresponding control parameter set can be included in combobox corresponding to frame, such as is wrapped in combobox corresponding to the input frame of control command Set containing control command.It is understood that also each control parameter can be shown by the other manner in addition to combobox Set, such as each control parameter set sub-interface, i.e., each control parameter is included in the control parameter configuration interface Corresponding input sub-interface, all control parameters in the control parameter set are included in the input sub-interface, such as trigger bar Part includes a variety of Variable Conditions such as temperature, acceleration, electric current, voltage, then can be shown in the input sub-interface of trigger condition should A variety of triggering variable conditions.The combination of the control parameter can be as needed configured by developer and is constantly updated.
In the present embodiment, device attribute information may include type, device name, device id and the equipment physics of equipment Address etc. can determine that the information of equipment identities, user can in control parameter configuration interface sub-interface corresponding to device attribute information Select the information such as device id or device name, selection equipment for be connected with Internet of Things cloud platform equipment when, can lead to The ID for crossing input equipment directly displays the information such as the device name associated with the ID, physical address;Communication mode may include to move Communicate (such as short message mode) or internet communication (HTTP) etc., and user can realize each equipment by configuring communication mode And the Control on Communication between equipment and platform of internet of things.
Step S20, when receiving the control parameter based on the input of policy information configuration interface, according to each control parameter Attribute information each control parameter is filled into default basic script, to generate terminal control script.
The default basic script includes the basic logic structure script required for execution action, and the basic script is supported Sequentially, three big logical constructions of condition and circulation, support variable assignments and compare operation, the conditional logic knot of the basic script In structure, corresponding control command is triggered if trigger condition is met or performs corresponding action, in the execution of basic script It can be command functions or function of movement etc. that Cheng Zhongke, which calls the pre-defined function pre-defined function,.The attribute information of control parameter For type corresponding to control parameter, such as when the control parameter is trigger condition, then control parameter condition is filled into trigger condition Corresponding field, when the control parameter is control command, by field corresponding to control parameter Filling power control command.
The terminal control script of the generation performs in a device, is also performed in platform of internet of things, can be in platform of internet of things And built-in script interpreter in equipment, to realize the execution of script.That is the generation method of the terminal control script also includes: When receiving terminal control script operating instruction, preset script interpreter is called to parse terminal control script to generate Perform code;Run the execution code of generation.
It is understood that equipment and platform of internet of things can perform the terminal control script, others are also can perform The compiled program code of developer so that equipment and the function of platform of internet of things are more abundant.
The generation method for the terminal control script that the present embodiment proposes, in the configuration for the control strategy for receiving terminal transmission During request, to terminal feedback control parameters configuration interface, set by user based on the control parameter configuration interface input that terminal is shown The control parameters such as standby attribute information, communication mode, trigger condition, control command and trigger action, and it is based on plan receiving Slightly the control parameter of information configuration interface input when, according to the attribute information of each control parameter by each control parameter fill to In default basic script, to generate terminal control script, user only needs to input control parameter in control parameter configuration interface, Not it should be understood that coding principle, you can generation terminal control script is to realize that control strategy is developed, without the people of specialty Member carries out written in code, and cost is relatively low, and development efficiency is higher.
Further, the generation method second embodiment of terminal control script of the present invention is proposed based on first embodiment, In the present embodiment, step S10 includes:
When receiving the configuring request of control strategy of terminal transmission, to terminal feedback mode control selection interface, with Control model is selected based on the selection interface that terminal is shown for user;
When receiving the time control pattern selection instruction based on the triggering of control model selection interface, when being fed back to terminal Between parameter inputting interface, so that user is based on time parameter inputting interface input time parameter, and to terminal feedback control parameters Configuration interface;
When receiving the instant control model selection instruction based on the triggering of control model selection interface, feed back and control to terminal Parameter configuration interface processed;
When the instruction triggered based on control model selection interface is time control pattern selection instruction, perform according to each While the attribute information of control parameter fills each control parameter to step in default basic script, by time parameter Filling is into basic script.
In the present embodiment, user can be controlled the selection of pattern and match somebody with somebody before the configuration of parameter is controlled Put, the control model may include timing mode and instant pattern, and timing mode performs the judgement and action of condition for timing Execution, the time parameter of the timing mode may include repetition period and stressed type, for improve the accuracy of control this when Between parameter can further comprise initial time, end time and triggered time, to control the execution period of timing mode;I.e. When pattern to perform in real time, after starting to perform the terminal control script, as long as condition meets to perform corresponding action.
In scheme disclosed in the present embodiment, user can configure timing as needed and perform and perform immediately so that control The configuration of strategy is more flexible.
Further, reference picture 2, the generation method of terminal control script of the present invention is proposed based on first or second embodiments 3rd embodiment, in the present embodiment, before step S10, in addition to:
Step S30, when receiving the configuring request of control strategy of terminal transmission, selected to terminal back-to-back running scene Interface, wherein, application scenarios include platform Run-time scenario and equipment Run-time scenario;
Step S40, when receiving the selection operation based on the triggering of application scenarios selection interface, it is corresponding to obtain selection operation Run-time scenario;
After step S20, the generation method of terminal control script also includes step:
Step S50, when Run-time scenario corresponding to the terminal control script in generation is platform Run-time scenario, preserve generation Terminal control script;
Step S60, when Run-time scenario corresponding to the terminal control script in generation is equipment Run-time scenario, by terminal control Script is issued to equipment corresponding to terminal control script, so that equipment preserves terminal control script.
In the present embodiment, before control parameter is configured can first configurating terminal control script Run-time scenario, the operation Scene may include equipment operation and platform operation, when Run-time scenario is that equipment is run, can directly be issued to corresponding equipment, When Run-time scenario is that platform is run, follow-up operation can be directly saved in order to, by flexibly setting Run-time scenario so that configuration It is more flexible.
Further, reference picture 3, the generation of terminal control script of the present invention is proposed based on the first to the 3rd any embodiment Method fourth embodiment, in the present embodiment, after step S20, in addition to:
Step S70, the script display interface of terminal control script is shown to terminal feedback, so that user is shown based on script Show that interface is modified to terminal control script;
Step S80, when receiving the script modification request based on the triggering of script display interface, changed and asked based on script The terminal control script currently shown is modified.
In scheme disclosed in the present embodiment, the user for understanding script knowledge can be to the terminal control pin that automatically generates Originally modify, to cause the generation of terminal control script more flexible, script after the modification do not meet script or When being clearly present syntax error, prompt message is exported, such as the Script Field of mistake occurs in mark.
The present invention further provides a kind of generating means of terminal control script.
Reference picture 4, Fig. 4 are the high-level schematic functional block diagram of the generating means preferred embodiment of terminal control script of the present invention.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 4 is only one preferably real The exemplary plot of example is applied, those skilled in the art, can around the functional module of the generating means of the terminal control script shown in Fig. 4 The supplement of new functional module is carried out easily;The title of each functional module is self-defined title, is only used for auxiliary and understands terminal control Each program function block of the generating means of script processed, is not used in restriction technical scheme, technical solution of the present invention Core is the function to be reached of functional module of each self-defined title.
The present embodiment proposes a kind of generating means of terminal control script, and the generating means of terminal control script include:
Sending module 10, for receive terminal transmission control strategy configuring request when, to terminal feedback control Parameter configuration interface, so that user inputs control parameter based on the control parameter configuration interface that terminal is shown, wherein, control parameter Including trigger condition, control command and trigger action;
In the present embodiment, trigger condition may include that variable corresponding to the trigger condition (such as temperature, electric current), variable are wanted The condition of satisfaction as temperature be more than 20 degree and variable detection device as variable is temperature when corresponding to detection device be temperature biography Sensor, to realize that, to the coordinated signals between equipment, so that variable is temperature as an example, trigger condition can detect for temperature sensor Temperature be more than 20 degree;Control command can be the order of control device, then the control command may include controlled device, controlled device Corresponding order, such as open, close or run according to default parameter, such as trigger condition is what temperature sensor detected When temperature is more than 26 degree, corresponding control command is control air conditioner refrigerating operaton, i.e. controlled device is air conditioner, the air conditioner Corresponding order is refrigerating operaton, then needs to select the information of controlled device when selecting control command, to realize between equipment Linkage;Trigger action is the action that equipment local terminal performs, and trigger action is to reduce blower fan to turn such as when controlled device is air-conditioning Speed.It is understood that trigger condition, control command and trigger action form a control parameter group, control command or The execution condition of trigger action needs trigger condition corresponding to satisfaction.
Due to including controlled device in trigger condition, control command and trigger action, then in the controlled preparation of selection The attribute information of setting controlled device is needed, and communication mode corresponding to each equipment is set, you can is pre-configured with each control Parameter sets, such as control command set, trigger action set, equipment variables set, device type set and communication mode Set etc., when entering control parameter inputting interface, the input frame of each control parameter, the input of each control parameter can be shown Corresponding control parameter set can be included in combobox corresponding to frame, such as is wrapped in combobox corresponding to the input frame of control command Set containing control command.It is understood that also each control parameter can be shown by the other manner in addition to combobox Set, such as each control parameter set sub-interface, i.e., each control parameter is included in the control parameter configuration interface Corresponding input sub-interface, all control parameters in the control parameter set are included in the input sub-interface, such as trigger bar Part includes a variety of Variable Conditions such as temperature, acceleration, electric current, voltage, then can be shown in the input sub-interface of trigger condition should A variety of triggering variable conditions.The combination of the control parameter can be as needed configured by developer and is constantly updated.
In the present embodiment, device attribute information may include type, device name, device id and the equipment physics of equipment Address etc. can determine that the information of equipment identities, user can in control parameter configuration interface sub-interface corresponding to device attribute information Select the information such as device id or device name, selection equipment for be connected with Internet of Things cloud platform equipment when, can lead to The ID for crossing input equipment directly displays the information such as the device name associated with the ID, physical address;Communication mode may include to move Communicate (such as short message mode) or internet communication (HTTP) etc., and user can realize each equipment by configuring communication mode And the Control on Communication between equipment and platform of internet of things.
Generation module 20, for receive based on policy information configuration interface input control parameter when, according to each The attribute information of control parameter fills each control parameter into default basic script, to generate terminal control script.
The default basic script includes the basic logic structure script required for execution action, and the basic script is supported Sequentially, three big logical constructions of condition and circulation, support variable assignments and compare operation, the conditional logic knot of the basic script In structure, corresponding control command is triggered if trigger condition is met or performs corresponding action, in the execution of basic script It can be command functions or function of movement etc. that Cheng Zhongke, which calls the pre-defined function pre-defined function,.The attribute information of control parameter For type corresponding to control parameter, such as when the control parameter is trigger condition, then control parameter condition is filled into trigger condition Corresponding field, when the control parameter is control command, by field corresponding to control parameter Filling power control command.
The terminal control script of the generation performs in a device, is also performed in platform of internet of things, can be in platform of internet of things And built-in script interpreter in equipment, to realize the execution of script.That is the generating means of the terminal control script also include:Solution Module is analysed, for when receiving terminal control script operating instruction, calling preset script interpreter to terminal control script Parsed to generate execution code;Module is run, for running the execution code of generation.
It is understood that equipment and platform of internet of things can perform the terminal control script, others are also can perform The compiled program code of developer so that equipment and the function of platform of internet of things are more abundant.
The generating means for the terminal control script that the present embodiment proposes, in the configuration for the control strategy for receiving terminal transmission During request, to terminal feedback control parameters configuration interface, set by user based on the control parameter configuration interface input that terminal is shown The control parameters such as standby attribute information, communication mode, trigger condition, control command and trigger action, and it is based on plan receiving Slightly the control parameter of information configuration interface input when, according to the attribute information of each control parameter by each control parameter fill to In default basic script, to generate terminal control script, user only needs to input control parameter in control parameter configuration interface, Not it should be understood that coding principle, you can generation terminal control script is to realize that control strategy is developed, without the people of specialty Member carries out written in code, and cost is relatively low, and development efficiency is higher.
Further, the generating means second embodiment of terminal control script of the present invention is proposed based on first embodiment, In the present embodiment, sending module 10, it is additionally operable to:
When receiving the configuring request of control strategy of terminal transmission, to terminal feedback mode control selection interface, with Control model is selected based on the selection interface that terminal is shown for user;
When receiving the time control pattern selection instruction based on the triggering of control model selection interface, when being fed back to terminal Between parameter inputting interface, so that user is based on time parameter inputting interface input time parameter, and to terminal feedback control parameters Configuration interface;
When receiving the instant control model selection instruction based on the triggering of control model selection interface, feed back and control to terminal Parameter configuration interface processed;
Generation module 20, it is that time control pattern selection refers to be additionally operable in the instruction triggered based on control model selection interface When making, time parameter is filled into basic script.
In the present embodiment, user can be controlled the selection of pattern and match somebody with somebody before the configuration of parameter is controlled Put, the control model may include timing mode and instant pattern, and timing mode performs the judgement and action of condition for timing Execution, the time parameter of the timing mode may include repetition period and stressed type, for improve the accuracy of control this when Between parameter can further comprise initial time, end time and triggered time, to control the execution period of timing mode;I.e. When pattern to perform in real time, after starting to perform the terminal control script, as long as condition meets to perform corresponding action.
In scheme disclosed in the present embodiment, user can configure timing as needed and perform and perform immediately so that control The configuration of strategy is more flexible.
Further, reference picture 5, the generation method of terminal control script of the present invention is proposed based on first or second embodiments 3rd embodiment, in the present embodiment, the generating means of terminal control script also include:
Sending module 10, it is additionally operable to, when receiving the configuring request of control strategy of terminal transmission, feed back and transport to terminal Row scene selection interface, wherein, application scenarios include platform Run-time scenario and equipment Run-time scenario;
Acquisition module 30, for when receiving the selection operation based on the triggering of application scenarios selection interface, obtaining selection Run-time scenario corresponding to operation;
When memory module 40 for Run-time scenario corresponding to the terminal control script in generation is platform Run-time scenario, protect Deposit the terminal control script of generation;
Sending module 10, when to be additionally operable to Run-time scenario corresponding to the terminal control script in generation be equipment Run-time scenario, Terminal control script is issued to equipment corresponding to terminal control script, so that equipment preserves terminal control script.
In the present embodiment, before control parameter is configured can first configurating terminal control script Run-time scenario, the operation Scene may include equipment operation and platform operation, when Run-time scenario is that equipment is run, can directly be issued to corresponding equipment, When Run-time scenario is that platform is run, follow-up operation can be directly saved in order to, by flexibly setting Run-time scenario so that configuration It is more flexible.
Further, reference picture 5, the generation of terminal control script of the present invention is proposed based on the first to the 3rd any embodiment Method fourth embodiment, in the present embodiment, the generating means of the terminal control script also include:
Sending module 10, it is additionally operable to show the script display interface of terminal control script to terminal feedback, for user Terminal control script is modified based on script display interface;
Modified module 50, for receive based on script display interface triggering script change request when, based on script Modification request is modified to the terminal control script currently shown.
In scheme disclosed in the present embodiment, the user for understanding script knowledge can be to the terminal control pin that automatically generates Originally modify, to cause the generation of terminal control script more flexible, script after the modification do not meet script or When being clearly present syntax error, prompt message is exported, such as the Script Field of mistake occurs in mark.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to contain the non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
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 is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, cloud Hold server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of generation method of terminal control script, it is characterised in that the generation method of the control script includes following step Suddenly:
When receiving the configuring request of control strategy of terminal transmission, to the terminal feedback control parameters configuration interface, with Control parameter is inputted based on the control parameter configuration interface that terminal is shown for user, wherein, the control parameter includes touching Clockwork spring part, control command and trigger action;
When receiving the control parameter based on policy information configuration interface input, according to the category of each control parameter Property information fills each control parameter into default basic script, to generate terminal control script.
2. the generation method of terminal control script as claimed in claim 1, it is characterised in that described to receive terminal transmission Control strategy configuring request when, include to the step of terminal feedback control parameters configuration interface:
When receiving the configuring request of control strategy of terminal transmission, to the terminal feedback mode control selection interface, with Control model is selected based on the selection interface that the terminal is shown for user;
It is anti-to the terminal when receiving the time control pattern selection instruction based on control model selection interface triggering Time parameter inputting interface is presented, so that user is based on the time parameter inputting interface input time parameter, and to the terminal Feedback control parameters configuration interface;
It is anti-to the terminal when receiving the instant control model selection instruction based on control model selection interface triggering Present control parameter configuration interface;
When the instruction triggered based on the control model selection interface is time control pattern selection instruction, the basis is performed The attribute information of each control parameter fills each control parameter same to the step in default basic script When, the time parameter is filled into the basic script.
3. the generation method of terminal control script as claimed in claim 1, it is characterised in that the life of the terminal control script Also include step into method:
When receiving terminal control script operating instruction, preset script interpreter is called to carry out the terminal control script Parse to generate execution code;
Run the execution code of generation.
4. the generation method of terminal control script as claimed in claim 1, it is characterised in that described fed back to the terminal is controlled Before the step of parameter configuration interface processed, the generation method of the terminal control script also includes step:
When receiving the configuring request of control strategy of terminal transmission, to the terminal back-to-back running scene selection interface, its In, the application scenarios include platform Run-time scenario and equipment Run-time scenario;
When receiving the selection operation based on application scenarios selection interface triggering, obtain and transported corresponding to the selection operation Row scene;
The attribute information according to each control parameter fills each control parameter to default basic script In, the step of to generate terminal control script after, the generation method of the terminal control script also includes step:
When Run-time scenario corresponding to the terminal control script in generation is platform Run-time scenario, the terminal of generation is preserved Control script;
When Run-time scenario corresponding to the terminal control script in generation is equipment Run-time scenario, by the terminal control script Equipment corresponding to the terminal control script is issued to, so that the equipment preserves the terminal control script.
5. the generation method of the terminal control script as described in any one of Claims 1-4, it is characterised in that the basis is each The attribute information of the individual control parameter fills each control parameter to the step in default basic script, institute Stating the generation method of terminal control script also includes:
The script display interface of the terminal control script is shown to terminal feedback, so that user is shown based on the script Show that interface is modified to the terminal control script;
When receiving the script modification request based on script display interface triggering, request is changed to working as based on the script The terminal control script of preceding display is modified.
6. a kind of generating means of terminal control script, it is characterised in that the generating means of the control script include:
Sending module, for when receiving the configuring request of control strategy of terminal transmission, joining to the terminal feedback control Number configuration interface, so that user inputs control parameter based on the control parameter configuration interface that terminal is shown, wherein, the control Parameter processed includes trigger condition, control command and trigger action;
Generation module, for receive based on the policy information configuration interface input control parameter when, according to each institute The attribute information for stating control parameter fills each control parameter into default basic script, to generate terminal control pin This.
7. the generating means of terminal control script as claimed in claim 6, it is characterised in that the sending module, be additionally operable to:
When receiving the configuring request of control strategy of terminal transmission, to the terminal feedback mode control selection interface, with Control model is selected based on the selection interface that the terminal is shown for user;
It is anti-to the terminal when receiving the time control pattern selection instruction based on control model selection interface triggering Time parameter inputting interface is presented, so that user is based on the time parameter inputting interface input time parameter, and to the terminal Feedback control parameters configuration interface;
It is anti-to the terminal when receiving the instant control model selection instruction based on control model selection interface triggering Present control parameter configuration interface;
The generation module, it is additionally operable to select for time control pattern in the instruction triggered based on the control model selection interface During instruction, the time parameter is filled into the basic script.
8. the generating means of terminal control script as claimed in claim 6, it is characterised in that the life of the terminal control script Also include into device:
Parsing module, for when receiving terminal control script operating instruction, calling preset script interpreter to the end End control script is parsed to generate execution code;
Module is run, for running the execution code of generation.
9. the generating means of terminal control script as claimed in claim 6, it is characterised in that the generation dress of terminal control script Putting also includes:
The sending module, it is additionally operable to, when receiving the configuring request of control strategy of terminal transmission, feed back to the terminal Run-time scenario selection interface, wherein, the application scenarios include platform Run-time scenario and equipment Run-time scenario;
Acquisition module, for when receiving the selection operation based on application scenarios selection interface triggering, obtaining the choosing Select Run-time scenario corresponding to operation;
When memory module for Run-time scenario corresponding to the terminal control script in generation is platform Run-time scenario, preserve The terminal control script of generation;
The sending module, it is equipment Run-time scenario to be additionally operable to Run-time scenario corresponding to the terminal control script in generation When, the terminal control script is issued to equipment corresponding to the terminal control script, so that the equipment preserves the end End control script.
10. the generating means of the terminal control script as described in any one of claim 6 to 9, it is characterised in that the terminal control The generating means of script processed also include:
The sending module, it is additionally operable to show the script display interface of the terminal control script to terminal feedback, with The terminal control script is modified based on the script display interface for user;
Modified module, for receive based on the script display interface triggering script change request when, based on the pin This modification request is modified to the terminal control script currently shown.
CN201610388246.XA 2016-06-01 2016-06-01 Method and device for generating terminal control script Active CN107450899B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610388246.XA CN107450899B (en) 2016-06-01 2016-06-01 Method and device for generating terminal control script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610388246.XA CN107450899B (en) 2016-06-01 2016-06-01 Method and device for generating terminal control script

Publications (2)

Publication Number Publication Date
CN107450899A true CN107450899A (en) 2017-12-08
CN107450899B CN107450899B (en) 2022-04-26

Family

ID=60484833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610388246.XA Active CN107450899B (en) 2016-06-01 2016-06-01 Method and device for generating terminal control script

Country Status (1)

Country Link
CN (1) CN107450899B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407534A (en) * 2018-12-04 2019-03-01 深圳绿米联创科技有限公司 Equipment control method and device, configuration equipment and control device
CN109683715A (en) * 2018-12-29 2019-04-26 北京诺亦腾科技有限公司 A kind of VR apparatus control method, device and computer readable storage medium
CN109839842A (en) * 2019-01-29 2019-06-04 深圳市眼界科技有限公司 Control method, apparatus and system based on visual programming
CN110061861A (en) * 2019-03-21 2019-07-26 广东瑞恩科技有限公司 Internet protocol configuration method, device, equipment and computer readable storage medium
CN111817930A (en) * 2020-06-09 2020-10-23 四川虹美智能科技有限公司 Equipment control method, intelligent household appliance, intelligent terminal and intelligent electronic equipment
CN112269566A (en) * 2020-11-03 2021-01-26 支付宝(杭州)信息技术有限公司 Script generation processing method, device, equipment and system
CN113407162A (en) * 2020-03-17 2021-09-17 桂林优利特医疗电子有限公司 Liquid path control language system with script analysis and construction method
WO2022105558A1 (en) * 2020-11-23 2022-05-27 深圳Tcl新技术有限公司 Scene configuration method, storage medium and border gateway
CN116192672A (en) * 2022-12-16 2023-05-30 中国联合网络通信集团有限公司 Script viewing method and related equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876908A (en) * 2010-06-30 2010-11-03 中兴通讯股份有限公司 User customizing method and system
CN103136669A (en) * 2011-11-23 2013-06-05 腾讯科技(深圳)有限公司 Product display method and product display system based on product model base
CN103135976A (en) * 2011-11-30 2013-06-05 阿里巴巴集团控股有限公司 Code automatic generation method and device
CN103428294A (en) * 2013-08-23 2013-12-04 广州唯创电子有限公司 System for realizing intellectualization of electric rice cooker by utilizing intelligent terminal
CN103970939A (en) * 2014-04-22 2014-08-06 南京航空航天大学 Layering and reconfigurable on-chip network modeling and simulation system
CN104007727A (en) * 2014-05-21 2014-08-27 珠海格力电器股份有限公司 Household appliance device control method and system
CN104202187A (en) * 2014-08-28 2014-12-10 杭州华三通信技术有限公司 Method and device for deploying edge virtual bridging function for switch
CN104317205A (en) * 2014-09-18 2015-01-28 广东美的集团芜湖制冷设备有限公司 Terminal control method and system
CN104866250A (en) * 2014-06-27 2015-08-26 广东美的环境电器制造有限公司 Household appliance, control system and method of household appliance, mobile terminal and cloud server
CN104898472A (en) * 2015-03-31 2015-09-09 广东美的制冷设备有限公司 Terminal control method and device
US20150318141A1 (en) * 2012-07-13 2015-11-05 Omniprobe, Inc. Gas injection system for energetic-beam instruments
WO2015183401A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Intelligent assistant for home automation
CN105137780A (en) * 2015-07-31 2015-12-09 郝居杰 Customizable control method and system for smart home equipment
US20150370621A1 (en) * 2014-06-23 2015-12-24 Google Inc. Methods and apparatus for using smart environment devices via application program interfaces
CN105913316A (en) * 2016-04-15 2016-08-31 中国银行股份有限公司 Rule configuration method and apparatus

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876908A (en) * 2010-06-30 2010-11-03 中兴通讯股份有限公司 User customizing method and system
CN103136669A (en) * 2011-11-23 2013-06-05 腾讯科技(深圳)有限公司 Product display method and product display system based on product model base
CN103135976A (en) * 2011-11-30 2013-06-05 阿里巴巴集团控股有限公司 Code automatic generation method and device
US20150318141A1 (en) * 2012-07-13 2015-11-05 Omniprobe, Inc. Gas injection system for energetic-beam instruments
CN103428294A (en) * 2013-08-23 2013-12-04 广州唯创电子有限公司 System for realizing intellectualization of electric rice cooker by utilizing intelligent terminal
CN103970939A (en) * 2014-04-22 2014-08-06 南京航空航天大学 Layering and reconfigurable on-chip network modeling and simulation system
CN104007727A (en) * 2014-05-21 2014-08-27 珠海格力电器股份有限公司 Household appliance device control method and system
WO2015183401A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Intelligent assistant for home automation
US20150370621A1 (en) * 2014-06-23 2015-12-24 Google Inc. Methods and apparatus for using smart environment devices via application program interfaces
CN104866250A (en) * 2014-06-27 2015-08-26 广东美的环境电器制造有限公司 Household appliance, control system and method of household appliance, mobile terminal and cloud server
CN104202187A (en) * 2014-08-28 2014-12-10 杭州华三通信技术有限公司 Method and device for deploying edge virtual bridging function for switch
CN104317205A (en) * 2014-09-18 2015-01-28 广东美的集团芜湖制冷设备有限公司 Terminal control method and system
CN104898472A (en) * 2015-03-31 2015-09-09 广东美的制冷设备有限公司 Terminal control method and device
CN105137780A (en) * 2015-07-31 2015-12-09 郝居杰 Customizable control method and system for smart home equipment
CN105913316A (en) * 2016-04-15 2016-08-31 中国银行股份有限公司 Rule configuration method and apparatus

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407534A (en) * 2018-12-04 2019-03-01 深圳绿米联创科技有限公司 Equipment control method and device, configuration equipment and control device
CN109683715A (en) * 2018-12-29 2019-04-26 北京诺亦腾科技有限公司 A kind of VR apparatus control method, device and computer readable storage medium
CN109683715B (en) * 2018-12-29 2020-12-18 北京诺亦腾科技有限公司 VR equipment control method and device and computer readable storage medium
CN109839842A (en) * 2019-01-29 2019-06-04 深圳市眼界科技有限公司 Control method, apparatus and system based on visual programming
CN110061861A (en) * 2019-03-21 2019-07-26 广东瑞恩科技有限公司 Internet protocol configuration method, device, equipment and computer readable storage medium
CN113407162A (en) * 2020-03-17 2021-09-17 桂林优利特医疗电子有限公司 Liquid path control language system with script analysis and construction method
CN111817930A (en) * 2020-06-09 2020-10-23 四川虹美智能科技有限公司 Equipment control method, intelligent household appliance, intelligent terminal and intelligent electronic equipment
CN112269566A (en) * 2020-11-03 2021-01-26 支付宝(杭州)信息技术有限公司 Script generation processing method, device, equipment and system
WO2022105558A1 (en) * 2020-11-23 2022-05-27 深圳Tcl新技术有限公司 Scene configuration method, storage medium and border gateway
CN116192672A (en) * 2022-12-16 2023-05-30 中国联合网络通信集团有限公司 Script viewing method and related equipment

Also Published As

Publication number Publication date
CN107450899B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
CN107450899A (en) The generation method and device of terminal control script
CN109725901A (en) Development approach, device, equipment and the computer storage medium of front-end code
CN107391626B (en) Land the creation method and device of page
CN107179697A (en) A kind of intelligent home equipment control method, apparatus and system
CN106302008A (en) Data-updating method and device
WO2019046764A1 (en) System and method for iot device signal simulation
US10880595B2 (en) Method and apparatus for adjusting virtual reality scene, and storage medium
EP2437524A1 (en) M2m service platform and work method thereof
CN106383704A (en) Progress bar data processing method and apparatus
CN108388988A (en) Synergetic office work method, system and computer readable storage medium based on block chain
CN107577622A (en) Back end interface analogy method, equipment and storage medium
CN109445323B (en) WEB-based distributed intelligent measurement and control software platform design method
CN108376094A (en) Notification message display methods, device, computer equipment and storage medium
CN110175029A (en) The forming method of front-end and back-end automatically dispose tool based on data analysis
CN109784011A (en) Watermark generation method and device
CN110515606A (en) A kind of Components Development method based on block
CN105252533A (en) Robot interactive system, cloud computing platform, user terminal and robot
CN109739505A (en) A kind for the treatment of method and apparatus of user interface
CN109472849A (en) Method, apparatus, terminal device and the storage medium of image in processing application
CN109558524A (en) The internet of things equipment monitoring method and device of configurableization
CN110516218A (en) Generation method, terminal and the computer readable storage medium of table
CN105337841A (en) Information processing method and system, client, and server
CN109544665A (en) Generation method, device and the storage medium of animation poster
CN106156189A (en) A kind of label generating method and device, information getting method and device
CN110109684A (en) Block chain node administration agent services installation method, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant