CN107991895B - Multi-system control method and device, computer equipment and storage medium - Google Patents

Multi-system control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN107991895B
CN107991895B CN201711214599.9A CN201711214599A CN107991895B CN 107991895 B CN107991895 B CN 107991895B CN 201711214599 A CN201711214599 A CN 201711214599A CN 107991895 B CN107991895 B CN 107991895B
Authority
CN
China
Prior art keywords
control
information
system component
command
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711214599.9A
Other languages
Chinese (zh)
Other versions
CN107991895A (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.)
Shenzhen Tendzone Intelligent Technology Co ltd
Original Assignee
Shenzhen Tendzone Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tendzone Intelligent Technology Co ltd filed Critical Shenzhen Tendzone Intelligent Technology Co ltd
Priority to CN201711214599.9A priority Critical patent/CN107991895B/en
Publication of CN107991895A publication Critical patent/CN107991895A/en
Application granted granted Critical
Publication of CN107991895B publication Critical patent/CN107991895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A multi-system control method, comprising: acquiring a control platform entering command; reading attribute information of a control in a control interface configuration file, and generating a control interface according to the attribute information of the control; receiving a system operation command initiated by a system component control displayed on a control interface; reading system component information in the system component file and control command information in a preset protocol file associated with the system component information, and controlling the system to enter an operating state according to the system component information and the control command information; triggering a function control in a system running state, and acquiring a script file inserted in a triggering event of the function control; and sending the control command information in the script file to the system, realizing the control of multiple systems and facilitating the use of users. A multi-system control apparatus, a computer device and a storage medium are also provided.

Description

Multi-system control method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling multiple systems, a computer device, and a storage medium.
Background
In the present society, different locations require different systems to control various devices in the location, for example, in a home environment, each camera requires a system control, lights in different rooms require a system control, curtains on doors and windows also require a system control, and the like. The existing system uses a fixed control interface, flexible change can not be realized according to the requirements of users, research and development personnel are required to participate in the system under different construction environments to meet the requirements of clients on the interface, the construction time is prolonged, the construction difficulty is increased, each set of the existing system has own control interface, different systems are controlled to enter different systems, different control interfaces are used for control, and the use is troublesome.
Disclosure of Invention
In view of the above, there is a need to provide a multi-system control method, apparatus, computer device and storage medium capable of controlling different systems through a control interface.
A multi-system control method, comprising:
acquiring a control platform entering command;
reading attribute information of a control in a control interface configuration file according to a control platform entering command, and generating a control interface according to the attribute information of the control, wherein the control comprises a system component control and a corresponding function control;
receiving a system operation command initiated by a system component control displayed on a control interface;
reading system component information in the system component file and control command information in a preset protocol file related to the system component information according to a system operation command, and controlling the system to enter an operation state according to the system component information and the control command information;
triggering the function control in a system running state, and acquiring a script file inserted in a triggering event of the function control, wherein the script file comprises control command information corresponding to the function control;
and sending the control command information in the script file to the system.
In one embodiment, before acquiring the control platform entry command, the method further includes:
acquiring a system protocol corresponding to a system;
the system protocol is divided again according to the requirement;
and writing the re-divided system protocol into a file with a corresponding protocol name in the form of control command information to obtain a preset protocol file.
In one embodiment, before reading the attribute information of the control in the control interface configuration file according to the control platform entry command and generating the control interface according to the attribute information of the control, the method further includes:
acquiring a system adding command;
generating an adding interface according to the adding system command;
acquiring system component information added through an adding interface, wherein the system component information comprises a system component name, a system component use protocol name, information whether the system component needs to be logged in, login command information and system component control command information;
and generating a system component file according to the system component information.
In one embodiment, after the system component information added through the adding interface is obtained, the method further comprises the following steps:
and acquiring a preset protocol file with the same protocol name as the system component in the added system component information, and associating the acquired preset protocol file with the added system component information.
In one embodiment, after generating the system component file according to the system component information, the method further includes:
generating an editing interface according to the system component information in the system component file and the control command information in the preset protocol file, wherein a control is displayed on the editing interface;
acquiring display information of the re-edited control through an editing interface, wherein the display information comprises the name of the control, the position information of the control and the display style information of the control;
and acquiring control associated information of the control for re-editing the display information, and generating a control interface configuration file according to the display information and the control associated information.
In one embodiment, after the function control is triggered in the system running state, the method further includes:
acquiring a script file inserted in a trigger event of a function control;
and acquiring the function control associated with the triggered function control according to the script file, and displaying the associated function control.
In one embodiment, after sending the control command information in the script file to the system, the method further includes:
acquiring control feedback information;
triggering a function control on the control interface according to the control feedback information;
acquiring a script file inserted in a trigger event of a function control, wherein the script file comprises the name of a system component and corresponding control command information;
acquiring a system associated with the function control according to the name of the system component in the script file;
and sending the control command information in the script file to a system associated with the function control.
A multi-system control apparatus comprising:
the command acquisition module is used for acquiring a control platform entry command;
the interface generation module is used for reading the attribute information of the control in the control interface configuration file according to the control platform entering command and generating a control interface according to the attribute information of the control, wherein the control comprises a system component control and a corresponding function control;
the command receiving module is used for receiving a system operation command initiated by a system component control displayed on a control interface;
the operation control module is used for reading system component information in the system component file and control command information in a preset protocol file related to the system component information according to a system operation command and controlling the system to enter an operation state according to the system component information and the control command information;
the script acquisition module is used for triggering the function control in the system running state and acquiring a script file inserted in a triggering event of the function control, wherein the script file comprises control command information corresponding to the function control;
and the information sending module is used for sending the control command information in the script file to the system.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the above-described multi-system control methods when executing the program.
A computer storage medium having a computer program stored thereon, the program when executed by a processor implementing the steps in any of the above-described multi-system control methods
The multi-system control method, the multi-system control device, the computer equipment and the storage medium enter the command by acquiring the control platform; reading attribute information of a control in a control interface configuration file according to a control platform entering command, and generating a control interface according to the attribute information of the control; receiving a system operation command initiated by a system component control displayed on a control interface; reading system component information in the system component file and control command information in a preset protocol file related to the system component information according to a system operation command, and controlling the system to enter an operation state according to the system component information and the control command information; triggering a function control in a system running state, and acquiring a script file inserted in a triggering event of the function control; control command information in the script file is sent to the system, and different systems can be controlled to enter an operating state through the control interface, so that a user can control a plurality of systems more conveniently.
Drawings
FIG. 1 is a flow diagram of a multi-system control method in one embodiment;
FIG. 2 is a control interface diagram of a lighting control system of the control platform of the embodiment of FIG. 1;
FIG. 3 is a control interface diagram of a monitoring system of the control platform of the embodiment of FIG. 1;
FIG. 4 is a flowchart illustrating obtaining a default protocol file according to an embodiment;
FIG. 5 is a schematic flow diagram illustrating the generation of system component files in one embodiment;
FIG. 6 is a diagram of an add interface in the embodiment of FIG. 4;
FIG. 7 is a schematic flow chart diagram illustrating the generation of a control interface configuration file in one embodiment;
FIG. 8 is a flow diagram that illustrates interaction between functionality controls in the system, in one embodiment;
FIG. 9 is a schematic diagram illustrating a flow between multiple systems in one embodiment;
FIG. 10 is a block diagram of a multi-system control apparatus according to an embodiment;
FIG. 11 is a diagram showing an internal configuration of a computer device according to an embodiment;
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, in an embodiment, a flow chart of a multi-system control method is provided, which includes the following steps:
and S100, acquiring a control platform entering command.
Specifically, a user can control a plurality of systems only when entering the control platform, and the control platform obtains an entering command.
And S102, reading attribute information of a control in a control interface configuration file according to a control platform entering command, and generating a control interface according to the attribute information of the control, wherein the control comprises a system component control and a corresponding function control.
Specifically, according to an entering command of the control platform, the control platform reads attribute information of a control in a control interface configuration file, and generates a control interface according to the attribute information of the control. Various controls are displayed on the control interface and can be divided into system component controls and function controls corresponding to the system components. The control interface also comprises a hidden control. For example, as shown in fig. 2, it is a control interface diagram of a light control system of a control platform, where among the controls displayed on the control interface, the system component controls include a camera control, a light control, an air conditioner control, and a curtain control. The functional control corresponding to the light control comprises a hall lamp switch-on, a hall lamp switch-off, a guest room lamp switch-on, a guest room lamp switch-off and a toilet lamp switch-on, and the toilet lamp switch-off and the corresponding state display functional control, wherein if the lamp is switched on, the state display functional control is lightened, otherwise, the state display functional control is darkened. Controls for controlling the on and off of other room lamps are also hidden on the control interface, as shown in fig. 3, the control interface is a control interface diagram of a monitoring system switched to the control platform, the control interface of the monitoring system is provided with controls for controlling the camera, the controls zoom + and zoom-which can control the switching of cameras in different rooms are provided, the controls for controlling the rotation of the cameras in the rooms are provided, and the controls with video playback are corresponding controls for displaying the video monitored by the camera.
And S104, receiving a system operation command initiated by the system component control displayed on the control interface.
Specifically, the user can control different systems by switching different system component controls, and the control platform receives a command for operating the system corresponding to the system component control, which is initiated by the system component control. For example: the user clicks the camera control, the control platform receives a monitoring system running command initiated through the camera control or the user clicks the light control, and the control platform receives a light control system command initiated through the light control.
And S106, reading system component information in the system component file and control command information in a preset protocol file related to the system component information according to the system operation command, and controlling the system to enter an operation state according to the system component information and the control command information.
Specifically, the control platform reads system component information in a system component file corresponding to the system and control command information in a preset protocol file associated with the system component information according to a system command corresponding to the operating system component, and controls the system to enter an operating state according to the system component information and the control command information. For example: according to the method, when a user clicks light control, a control platform receives a light control system running command initiated through the light control, reads system component information in a system component file corresponding to the light control system and control command information in a preset protocol file associated with the system component information, and controls the light control system to enter a running state according to the system component information and the control command information.
And S108, triggering the function control in the system running state, and acquiring a script file inserted in the triggering event of the function control, wherein the script file comprises control command information corresponding to the function control.
Specifically, a script engine is built in the control platform, and a script file can be written in the script engine. And triggering the function control in the system running state, and acquiring the script file inserted in the triggering event of the function control. And the script file writes the control command information corresponding to the functional control. The script file is pre-written and inserted into the trigger event of the function control. For example: in the operating state of the light control system, a user clicks the function control on the hall lamp to acquire a script file inserted in a click event of the function control on the hall lamp, and control command information of the function control on the hall lamp is written in the script file. Wherein, the script engine of the control platform is a Python script engine. Python scripts are written by a Python script engine.
S109, control command information in the script file is sent to the system.
Specifically, the control command information in the script file is sent to the system corresponding to the system component control. And the system receives the control command information, executes the control command information and feeds back an execution result to the control platform. For example: and the lamplight control system receives the control command information of the function control switched on by the hall lamp, controls the lamp of the living room to be switched on, and then feeds back the on-state of the lamp to the control platform, so that the state display function control corresponding to the function control switched on by the hall lamp on the control interface is lightened.
In the above embodiment, the control platform entry command is obtained. And reading the attribute information of the control in the control interface configuration file according to the control platform entering command, and generating a control interface according to the attribute information of the control. And receiving a system operation command initiated by a system component control displayed on the control interface. And reading system component information in the system component file and control command information in a preset protocol file related to the system component information according to the system operation command, and controlling the system to enter an operation state according to the system component information and the control command information. And triggering the function control in the system running state, and acquiring the script file inserted in the triggering event of the function control. And sending the control command information in the script file to the system. Different systems can be controlled to enter the running state through the control interface, and the corresponding systems are controlled through the function control on the control interface, so that a user can control the systems more conveniently.
As shown in fig. 4, in an embodiment, a schematic flowchart of a process for obtaining a preset protocol file is provided, and before step S100, that is, before obtaining a control platform entry command, the process further includes the steps of:
s402, acquiring a system protocol corresponding to the system.
Specifically, control protocols used by different systems are different, and in order to be compatible with different systems, protocols of different systems need to be supported. And acquiring a system protocol corresponding to each system. For example: the light control system has a corresponding light control protocol or the monitoring system has a corresponding camera control protocol.
S404, the system protocol is divided again according to the requirement.
Specifically, a system protocol corresponding to each system includes many control functions, but only a part of the control functions required by the user is included. We repartition the system protocol as required. For example: in a light control protocol corresponding to the light control system, the light control protocol is divided again according to requirements only by the switching function of the lamp.
S406, writing the re-divided system protocol into a file with a corresponding protocol name in the form of control command information to obtain a preset protocol file.
Specifically, the control command information indicates that the command corresponding to the function point includes a name of the command and a parameter of the corresponding command. The system protocol of each system is described in the form of JSON (JavaScript Object Notation). Writing the re-divided system protocol into a file with a corresponding protocol name in the form of control command information to obtain a preset protocol file, and putting the obtained preset protocol file into a protocol library of the control platform. For example: the method comprises the steps of writing { "action": up', "paramlist": { "speed":8, "port name": com _0"," address ":1} in a file with a protocol name of" ProtocaName ": visca", and indicating that control command information is written in a protocol file corresponding to a monitoring system. Wherein, action, up indicates that the name of the function point is upward rotation, paramlist is the parameter corresponding to the command, speed, 8 indicates that the speed parameter is 8, portName, com 0 indicates that the port name is com 0, and address, 1 indicates that the state is 1 corresponding state.
In the embodiment, the system protocol corresponding to the system is acquired, the system protocol is subdivided as required, and the subdivided system protocol is written into the file with the corresponding protocol name in the form of control command information to obtain the preset protocol file, so that the control platform can perform operation control on the corresponding system according to the preset protocol file and subdivide all the system protocols as required, thereby facilitating the use of users and improving the use efficiency.
As shown in fig. 5, in an embodiment, a flowchart for generating a system component file is provided, where before step 102, that is, before reading attribute information of a control in a control interface configuration file according to a control platform entry command and generating a control interface according to the attribute information of the control, the method further includes the steps of:
s502, acquiring a system adding command.
Specifically, after entering the control platform, if there is no system to be controlled by the user, the user can select to add a system to be controlled by the user. A command to add the system is obtained.
And S504, generating an adding interface according to the adding system command.
Specifically, an add interface is generated according to a command to add the system. For example: as shown in fig. 6, the system component can be added to the system component list on the add interface, and the function point command and the parameter corresponding to the command corresponding to the system can be added. Wherein the system components include components necessary to operate the system. For example: adding system components such as a Camera, a relay and a computer which are necessary for monitoring the operation of the system into a system component list, adding a system component name Camera, a used protocol name Visca, whether to log in information and command names such as Up, Down, Left, Zoom + and Zoom-, which correspond to function points, adding a command name Right, and adding corresponding parameters such as address being 1 and channel being 1 into a parameter list.
S506, system component information added through the adding interface is obtained, and the system component information comprises system components, system component names, system component use protocol names, information whether the system components need to be logged in, login command information and system component control command information.
Specifically, the system component information includes a system component, a system component name, a system component usage protocol name, whether the system component requires login information, login command information, and system component control command information. And acquiring the system component information added through the adding interface. When the system component is added with the interface and whether login information is needed or not, if login is needed, a login interface is generated, and login command information added in the login interface is acquired and comprises information such as a user name and a password. The system component control command information is a command and command parameter information corresponding to a unique function point of the system, namely the command and command parameter information corresponding to a function point which is not contained in the control command information in the protocol file. For example: in the monitoring system, login is needed during operation, and information such as a user name and a password input by a user through a login dialog box is acquired.
And S508, generating a system component file according to the system component information.
Specifically, a system component file in a JSON form is generated according to the system component information, and the system component file is placed in a system library of the control platform. For example, when adding system component information of a monitoring system, the generated system component file may be exemplified as follows: { "SystemType": camera "," Protocal ": Visca", "IsNeedLogin": false "," Info ": address":1}, "cmds": { "action": subscripteall "}, {" action ": location", "paramlist": ": admin", "password": admin "} }. Wherein "SystemType": camera "indicates that the system component name is camera," protocol ": Visca" indicates that the protocol name used by the system component is Visca. False indicates that the system component does not need to be logged in. The "Info" { "address":1} represents the state and control related parameters provided by the system corresponding to the system component. "cmds" [ { "action": subscriptAll "}, {" action ":" logic "," paramlist "{" userName ":" admin "," passswd ":" admin "} } represent control command information that is independent of the protocol by the system corresponding to the system component.
In the embodiment, the user generates the adding interface by acquiring the system adding command, adds the system component information on the adding interface, and finally generates the system component file. The system adding can be carried out according to the requirements of the user, the system required by the user can be controlled, and the use is flexible.
In one embodiment, after step 506, i.e. after obtaining the system component information added through the add interface, the method further comprises the steps of:
and acquiring a preset protocol file with the same protocol name as the system component in the added system component information, and associating the acquired preset protocol file with the added system component information.
Specifically, the user has pre-configured the protocol file of the system to be added, and there are a plurality of preset protocol files for controlling a plurality of systems. Associating the system component file with a corresponding preset protocol file, and associating the system component with the preset protocol file with the same protocol name in the acquired system component file. For example, a system component file of the monitoring system needs to be associated with a preset protocol file, and a system component file with a system component using protocol name of Visca in the obtained system component file is associated with a protocol file with a protocol name of Visca in the preset protocol file, so that the system can use the system component file and the preset protocol file more conveniently when in use.
As shown in fig. 7, in an embodiment, a flowchart for generating a control interface configuration file is provided, and after step 508, that is, after generating a system component file according to system component information, the method further includes the steps of:
and S702, generating an editing interface according to the system component information in the system component file and the control command information in the preset protocol file, wherein a control is displayed on the editing interface.
Specifically, an editable control interface is generated according to the system component information in the system component file, including the system component name, the system component control command information, and the like, and the control command information in the preset protocol file. And generating a corresponding system component control according to the system component name, a function control according to the control command information in the system component information and a function control according to the control command information in the preset protocol file.
S704, display information of the re-edited control is obtained through the editing interface, and the display information comprises the name of the control, the position information of the control and the display style information of the control.
Specifically, the user can edit the display information of the control on the interface through the editing interface, such as the name of the control, the position of the control, the display style of the control, and the like, and the control platform obtains the display information of the re-edited control. For example, we can replace the background map of the control, and so on.
S706, acquiring control associated information of the control for re-editing the display information, and generating a control interface configuration file according to the display information and the control associated information.
Specifically, the control association information of the control refers to a section of special path information for distinguishing different functions associated with different controls, and the controls on the interface correspond to the function points of the system one to one. And acquiring control associated information of the control for re-editing the display information, and generating a control interface configuration file according to the display information and the control associated information, wherein the display information of the control is described in the key and value forms of JSON. For example: wherein, the control related information can be/SystemId/Cmd/up, and up is a specific command. The method comprises the following steps of generating a control interface configuration file of a monitoring system, wherein the position information JSON of a control is as follows: { "Type": Button "," Width ": 100", "Height": 100 "," location X ": 30", and "location Y": 30}, where "Type": Button "indicates that the Type of this control is a Button," Width ": 100", "Height": 100 "indicates that the Button is forgiving 100, 100 high," location X ": 30", and "location Y": 30 indicates that the position coordinate X of the Button on the control interface is 30, and Y is 30.
In one embodiment, a user can adjust the presentation effect of the control interface by modifying JSON data in the configuration file of the control interface, so as to realize flexible configuration of the interface.
In the above embodiment, an editing interface is generated according to the system component information in the system component file and the control command information in the preset protocol file, the display information of the re-edited control is acquired through the editing interface, the control associated information of the control of the re-edited display information is acquired, and the control interface configuration file is generated according to the display information and the control associated information, so that a user can edit the interface according to the own requirements. The flexible change of the interface can be realized by modifying data in the configuration file of the control interface, different requirements of different users can be met, and the use is convenient.
As shown in fig. 8, in an embodiment, a flowchart of interaction between functionality controls in a system is provided, and after step S108, that is, after triggering the functionality controls in a system running state, the method further includes the steps of:
s802, acquiring a script file inserted in the trigger event of the function control.
Specifically, a script file inserted in a trigger event of the function control is obtained, and associated function control information to be controlled and corresponding control command information are written in the script file. The script file is triggered to execute by some event of other control. The associated functionality control is hidden on the control interface. For example: the script file may be placed in the click event of a button, which is clicked on to execute the script file.
S804, acquiring the function control related to the triggered function control according to the script file, and displaying the related function control.
Specifically, when the function control is triggered, the associated function control is acquired according to the associated function control information in the script file, the associated function control is displayed, and the triggered function control is hidden. Possibly, a plurality of functions exist in a system, and the functional control corresponding to the functional point in the control interface may not be placed, and the control which is not placed is hidden. And executing the script file to display the hidden function control by triggering the displayed function control.
In the above embodiment, the script file is inserted into the trigger event in the function control, and when the function control is triggered, the script file is executed, so that the hidden associated function control is displayed. The interaction between the controls on the control interface is realized, and the system can be more conveniently controlled by operating on the interface.
As shown in fig. 9, in an embodiment, a flowchart between multiple systems is provided, and after step S110, after sending the control command information in the script file to the system, the method further includes the steps of:
and S902, acquiring control feedback information.
Specifically, the system receives the control command information and executes the control command for control. After the control is finished, the system sends control feedback information to the control platform. And acquiring control feedback information sent by the system. For example, in a lighting control system, control command information for controlling lighting of a lamp is sent to the lamp in the lighting control system, so that the lamp is turned on, and when the lamp is turned on, control state feedback information of the lighting of the lamp is sent to a control platform.
And S904, triggering the function control on the control interface according to the control feedback information.
Specifically, the received control feedback information may trigger a function control on the control interface. For example: and the control platform acquires the information that the lamp sent by the light control system is on, so that the state display function control on the control interface is on.
S906, acquiring a script file inserted in the trigger event of the function control, wherein the script file comprises the name of the system component and the corresponding control command information.
Specifically, a script file inserted in a trigger event of the function control is obtained, and the script file includes a name of the system component and corresponding control command information. The insertion of the script file is supported in the triggering event of each functionality control. For example: in the light control system, the state display function control is lightened, a script file is inserted in the event, the name of a system component of the curtain control system and corresponding control command information are written in the script file, and when the light is lightened, the content written in the script file is obtained.
S908, acquiring the system associated with the function control according to the name of the system component in the script file.
Specifically, the system associated with the function control is acquired, for example: and acquiring the curtain control system according to the system component name of the curtain control system, wherein the curtain control system is associated with the state display function control.
S910, sending the control command information in the script file to a system associated with the function control.
Specifically, the control command information in the script file may control a function point in the corresponding system that corresponds to the control command information. For example: sending control command information in the script file to the window shade control system, such as: SendCmd (SystemId, up, param), where SystemId identifies the devices in the system to be controlled, up represents the command corresponding to the actual functional point, and param is the command parameter required to implement the command. And the control lamp is lightened in the light control system, and then the curtain control system receives the control command information to control the curtain to close.
In the embodiment, the script file is inserted into the trigger event of the function control, when the function control is triggered, the script file inserted into the trigger event of the function control is acquired, the system associated with the function control is acquired according to the name of the system component in the script file, and then the control command information in the script file is sent to the system associated with the function control, so that the associated system controls equipment in the system to perform corresponding actions according to the control command information, interaction among multiple systems is realized, and the use of a user is facilitated.
As shown in fig. 10, in one embodiment, a multi-system control apparatus 1000 is provided, including: a command acquisition module 1002, an interface generation module 1004, a command reception module 1006, an operation control module 1008, a script acquisition module 1010, and a send information module 1012. Wherein:
a command obtaining module 1002, configured to obtain a control platform entry command.
The interface generating module 1004 is configured to read attribute information of a control in the control interface configuration file according to the control platform entry command, and generate a control interface according to the attribute information of the control, where the control includes a system component control and a corresponding function control.
And a command receiving module 1006, configured to receive a system operation command initiated through a system component control displayed on the control interface.
And the operation control module 1008 is configured to read the system component information in the system component file and the control command information in the preset protocol file associated with the system component information according to the system operation command, and control the system to enter an operation state according to the system component information and the control command information.
The script obtaining module 1010 is configured to trigger the function control in the system running state, and obtain a script file inserted in a trigger event of the function control, where the script file includes control command information corresponding to the function control.
And a sending information module 1012, configured to send the control command information in the script file to the system.
In the above embodiment, the command obtaining module 1002 obtains a command for controlling the platform, the interface generating module 1004 generates a control interface, the command receiving module 1006 receives a system running command sent through a system component control, the running control module 1008 enables the system to enter a running state, the script obtaining module 1010 obtains a script file inserted in a trigger event, and the information sending module 1012 sends control command information in the script file to the system. The control of multiple systems is realized, the requirement that a user uses multiple sets of systems at the same time is met, and the use of the user is facilitated.
In one embodiment, the command obtaining module 1002 further includes:
and the protocol acquisition module is used for acquiring a system protocol corresponding to the system.
And the dividing module is used for re-dividing the system protocol according to the requirement.
And the writing module is used for writing the re-divided system protocol into a file with a corresponding protocol name in the form of control command information to obtain a preset protocol file.
In the embodiment, the system protocol is divided again according to the requirements of the user in advance to obtain the preset protocol file, so that the user can conveniently select the required functions when controlling the system.
In one embodiment, the interface generating module 1004 further comprises:
and the adding command acquisition module is used for acquiring a system adding command.
And the adding interface generating module is used for generating an adding interface according to the adding system command.
And the adding information acquisition module is used for acquiring the system component information added through the adding interface, and the system component information comprises a system component name, a system component use protocol name, whether the system component needs login information, login command information and system component control command information.
And the system file generation module is used for generating a system component file according to the system component information.
In one embodiment, the adding information obtaining module further includes:
and the association module is used for acquiring a preset protocol file with the same protocol name as the system component in the added system component information, and associating the acquired preset protocol file with the added system component information.
In one embodiment, the system file generation module further includes:
and the editing interface generating module is used for generating an editing interface according to the system component information in the system component file and the control command information in the preset protocol file, and a control is displayed on the editing interface.
And the display information acquisition module is used for acquiring the display information of the re-edited control through the editing interface, wherein the display information comprises the name of the control, the position information of the control and the display style information of the control.
And the interface file generation module is used for generating control associated information of the control for acquiring the re-edited display information and generating a control interface configuration file according to the display information and the control associated information.
In the embodiment, the system component file is generated by the system file generation module, and the protocol file is associated with the system component file, so that a user can acquire the protocol file and the system component file when controlling the system, thereby realizing the operation of the system. And the interface file generating module is used for generating the control interface configuration file, so that a user can modify the data of the control interface configuration file according to the requirement of the user when in use, and a control interface required by the user is generated, thereby being convenient to use.
In one embodiment, the script obtaining module 1010 further comprises:
and the script acquisition module is used for acquiring the script file inserted in the trigger event of the function control.
And the control display module is used for acquiring the function control associated with the triggered function control according to the script file and displaying the associated function control.
In the embodiment, the interaction between the functional controls in the system is realized through the script acquisition module and the control display module, so that the use of a user is facilitated.
In one embodiment, the send information module 1012 further includes:
and the feedback information acquisition module is used for acquiring control feedback information.
And the triggering module is used for triggering the function control on the control interface according to the control feedback information.
And the script acquisition module is used for acquiring a script file inserted in the trigger event of the function control, wherein the script file comprises the name of the system component and the corresponding control command information.
And the system acquisition module is used for acquiring the system related to the function control according to the name of the system component in the script file.
And the command information sending module is used for sending the control command information in the script file to a system associated with the function control.
In the above embodiment, the feedback information is acquired by the feedback information acquisition module, the trigger module triggers the function control corresponding to the feedback information, the script file is acquired by the script acquisition module, the name of the system to be controlled in the script file is acquired by the system acquisition module, and then the control command information in the script file is sent to the system to be controlled by the command information sending module. The interaction of multiple systems is realized, the fusion use of the multiple systems is met, and the use by a user is facilitated.
In one embodiment, as shown in fig. 11, a computer apparatus is provided that includes a processor, an internal memory, a storage medium, a network interface, and an input device connected by a system bus. The storage medium of the computer device stores an operating system and a computer program of a multi-system control apparatus for implementing a multi-system control method. The processor of the computer device is for providing computing and control capabilities, and is configured to perform a multi-system control method. The internal memory in the computer device provides an environment for running the computer program in the storage medium. The network interface in the computer device performs data transmission with other hardware, for example, acquires control feedback information sent by a system to be controlled. The input device is used for acquiring user input, for example, adding interface information input by the user or login command information input by the user. Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the inventive arrangements and is not intended to limit the computing devices to which the inventive arrangements may be applied, as a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements the steps of the following multi-system control method: acquiring a control platform entering command; reading attribute information of a control in a control interface configuration file according to a control platform entering command, and generating a control interface according to the attribute information of the control, wherein the control comprises a system component control and a corresponding function control; receiving a system operation command initiated by a system component control displayed on a control interface; reading system component information in the system component file and control command information in a preset protocol file related to the system component information according to a system operation command, and controlling the system to enter an operation state according to the system component information and the control command information; triggering the function control in a system running state, and acquiring a script file inserted in a triggering event of the function control, wherein the script file comprises control command information corresponding to the function control; and sending the control command information in the script file to the system.
In one embodiment, before acquiring the control platform entry command, the method further comprises:
acquiring a system protocol corresponding to a system;
the system protocol is divided again according to the requirement;
and writing the re-divided system protocol into a file with a corresponding protocol name in the form of control command information to obtain a preset protocol file.
In one embodiment, before reading the attribute information of the control in the control interface configuration file according to the control platform entry command and generating the control interface according to the attribute information of the control, the method further includes:
acquiring a system adding command;
generating an adding interface according to the adding system command;
acquiring system component information added through an adding interface, wherein the system component information comprises a system component name, a system component use protocol name, information whether the system component needs to be logged in, login command information and system component control command information;
and generating a system component file according to the system component information.
In one embodiment, after the system component information added through the adding interface is obtained, the method further comprises the following steps:
and acquiring a preset protocol file with the same protocol name as the system component in the added system component information, and associating the acquired preset protocol file with the added system component information.
In one embodiment, after generating the system component file according to the system component information, the method further comprises:
generating an editing interface according to the system component information in the system component file and the control command information in the preset protocol file, wherein a control is displayed on the editing interface;
acquiring display information of the re-edited control through an editing interface, wherein the display information comprises the name of the control, the position information of the control and the display style information of the control;
and acquiring control associated information of the control for re-editing the display information, and generating a control interface configuration file according to the display information and the control associated information.
In one embodiment, after the function control is triggered in the system running state, the method further comprises the following steps:
acquiring a script file inserted in a trigger event of a function control;
and acquiring the function control associated with the triggered function control according to the script file, and displaying the associated function control.
In one embodiment, after sending the control command information in the script file to the system, the method further comprises:
acquiring control feedback information;
triggering a function control on the control interface according to the control feedback information;
acquiring a script file inserted in a trigger event of a function control, wherein the script file comprises the name of a system component and corresponding control command information;
acquiring a system associated with the function control according to the name of the system component in the script file;
and sending the control command information in the script file to a system associated with the function control.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by a computer program, which is stored in a non-volatile computer-readable storage medium, and in the embodiments of the present invention, the program may be stored in the non-volatile storage medium of a computer system and executed by at least one processor in the computer system to implement the processes of the embodiments including the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A multi-system control method, comprising:
acquiring a control platform entering command;
reading attribute information of a control in a control interface configuration file according to the control platform entering command, and generating a control interface according to the attribute information of the control, wherein the control comprises a plurality of system component controls and corresponding function controls, and the corresponding system is controlled to run by switching the plurality of system component controls;
receiving a system operation command initiated by a system component control displayed on the control interface;
reading system component information in a system component file and control command information in a preset protocol file associated with the system component information according to the system operation command, and controlling a system to enter an operation state according to the system component information and the control command information;
triggering a function control in a system running state, and acquiring a script file inserted in a triggering event of the function control, wherein the script file comprises control command information corresponding to the function control;
sending control command information in the script file to a system;
acquiring control feedback information;
triggering a second function control on the control interface according to the control feedback information;
acquiring a script file inserted in a trigger event of the second function control;
acquiring a second system associated with the second function control according to the name of the system component in the script file;
and sending the control command information in the script file to a second system associated with the second function control.
2. The method of claim 1, prior to obtaining the control platform entry command, further comprising:
acquiring a system protocol corresponding to a system;
the system protocol is divided again according to requirements;
and writing the re-divided system protocol into a file with a corresponding protocol name in the form of control command information to obtain a preset protocol file.
3. The method according to claim 1, before reading attribute information of a control in a control interface configuration file according to the control platform entry command and generating a control interface according to the attribute information of the control, further comprising:
acquiring a system adding command;
generating an adding interface according to the adding system command;
acquiring system component information added through the adding interface, wherein the system component information comprises a system component, a system component name, a system component use protocol name, information whether the system component needs to be logged in, login command information and system component control command information;
and generating a system component file according to the system component information.
4. The method of claim 3, after obtaining the system component information added through the add interface, further comprising:
and acquiring a preset protocol file with the same protocol name as the system component in the added system component information, and associating the acquired preset protocol file with the added system component information.
5. The method of claim 3, further comprising, after generating a system component file from the system component information:
generating an editing interface according to the system component information in the system component file and the control command information in the preset protocol file, wherein a control is displayed on the editing interface;
acquiring display information of a re-edited control through the editing interface, wherein the display information comprises the name of the control, the position information of the control and the display style information of the control;
and acquiring control associated information of the control for re-editing the display information, and generating a control interface configuration file according to the display information and the control associated information.
6. The method of claim 1, after triggering the functionality control in the system running state, further comprising:
acquiring a script file inserted in a trigger event of the function control;
and acquiring the function control associated with the triggered function control according to the script file, and displaying the associated function control.
7. The method of claim 1, wherein the control command information comprises a name of a command and a parameter of a corresponding command.
8. A multi-system control apparatus, comprising:
the command acquisition module is used for acquiring a control platform entry command;
the interface generation module is used for reading attribute information of a control in a control interface configuration file according to the control platform entering command and generating a control interface according to the attribute information of the control, wherein the control comprises a plurality of system component controls and corresponding function controls, and the corresponding system is controlled to run by switching the plurality of system component controls;
the command receiving module is used for receiving a system operation command initiated by a system component control displayed on the control interface;
the operation control module is used for reading system component information in a system component file and control command information in a preset protocol file related to the system component information according to the system operation command and controlling the system to enter an operation state according to the system component information and the control command information;
the script acquisition module is used for triggering the function control in a system running state and acquiring a script file inserted in a triggering event of the function control, wherein the script file comprises control command information corresponding to the function control;
a sending information module for sending the control command information in the script file to the system
The feedback information acquisition module is used for acquiring control feedback information;
the triggering module is used for triggering a second function control on the control interface according to the control feedback information;
the script acquisition module is used for acquiring a script file inserted in the trigger event of the second function control;
the system acquisition module is used for acquiring a second system associated with the second function control according to the name of the system component in the script file;
and the command information sending module is used for sending the control command information in the script file to a second system associated with the second function control.
9. A computer apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the multi-system control method according to any one of claims 1 to 7 when executing the program.
10. A computer storage medium having a computer program stored thereon, the program, when executed by a processor, implementing the steps in the multi-system control method according to any one of claims 1-7.
CN201711214599.9A 2017-11-28 2017-11-28 Multi-system control method and device, computer equipment and storage medium Active CN107991895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711214599.9A CN107991895B (en) 2017-11-28 2017-11-28 Multi-system control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711214599.9A CN107991895B (en) 2017-11-28 2017-11-28 Multi-system control method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107991895A CN107991895A (en) 2018-05-04
CN107991895B true CN107991895B (en) 2021-09-07

Family

ID=62033629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711214599.9A Active CN107991895B (en) 2017-11-28 2017-11-28 Multi-system control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107991895B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271157B (en) * 2018-09-07 2021-09-07 深圳市东微智能科技股份有限公司 Software development method, device and computer readable storage medium
CN109656729B (en) * 2018-12-17 2022-12-13 浩云科技股份有限公司 Multi-control interaction method and device for webpage and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483563A (en) * 2008-01-07 2009-07-15 海尔集团公司 Control method and system for home network
CN106597860A (en) * 2015-10-19 2017-04-26 上海澜腾智能科技有限公司 Household electrical appliance control system, and control device, construction method and control method thereof
CN107368042A (en) * 2016-05-13 2017-11-21 上海澜腾智能科技有限公司 Intelligent home control system and its control device and control method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9632665B2 (en) * 2004-09-08 2017-04-25 Universal Electronics Inc. System and method for flexible configuration of a controlling device
CN101097443A (en) * 2007-07-17 2008-01-02 当代天启技术(北京)有限公司 User equipment control method, system and control device
CN100501621C (en) * 2007-11-13 2009-06-17 南京邮电大学 Self-adapting universal control point system structure based on universal plug and play and control method thereof
CN105739460B (en) * 2014-12-12 2018-11-09 青岛海尔智能家电科技有限公司 A kind of method and apparatus for the control interface automatically generating Internet of Things household electrical appliances
CN106814629B (en) * 2015-11-27 2021-03-12 大唐移动通信设备有限公司 Method and device for controlling smart home
CN106371324B (en) * 2016-08-31 2019-12-10 海信集团有限公司 operation interface display method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483563A (en) * 2008-01-07 2009-07-15 海尔集团公司 Control method and system for home network
CN106597860A (en) * 2015-10-19 2017-04-26 上海澜腾智能科技有限公司 Household electrical appliance control system, and control device, construction method and control method thereof
CN107368042A (en) * 2016-05-13 2017-11-21 上海澜腾智能科技有限公司 Intelligent home control system and its control device and control method

Also Published As

Publication number Publication date
CN107991895A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
US10338904B2 (en) Specialized app development and deployment system and method
US20160232871A1 (en) Display method and display device
CN107991895B (en) Multi-system control method and device, computer equipment and storage medium
CN109445891B (en) Picture configuration and display method, device and computer readable storage medium
CN114040243B (en) Live broadcasting room video playing method and device
CN113542851B (en) Menu refreshing method and display device
CN110784753A (en) Interactive video playing method and device, storage medium and electronic equipment
CN114422285A (en) Configuration method based on multi-manufacturer fusion scene of intelligent home client
CN113873316B (en) Live broadcasting room video playing method and device
CN109783144B (en) Method and device for processing variable in interactive realization of virtual environment and storage medium
US9921728B2 (en) Service providing device, and method of providing a user interface
CN114826805A (en) Computer readable storage medium, mobile terminal and intelligent home control method
CN110035294B (en) Processing method and device for live broadcast room, computer readable storage medium and computer equipment
US10651936B1 (en) Communication to device through lighting control
CN110673494A (en) Control page generation method, device, terminal and storage medium
CN110830578A (en) Remote control method, system and equipment
CN113282268B (en) Sound effect configuration method and device, storage medium and electronic equipment
KR102631405B1 (en) Electronic apparatus and Method for controlling the electronic apparatus thereof
CN110309401B (en) Information processing method and device
CN113254102A (en) Data processing method and device, electronic equipment and storage medium
US20150229534A1 (en) Integrated control system for devices in a premise
US20070276516A1 (en) Apparatus, method, system and software product for directing multiple devices to perform a complex task
WO2023221995A1 (en) Intelligent device control method and electronic device
KR102564797B1 (en) Media program integrated control system for exhibition hall
CN117440189A (en) Resource playing control method, device, equipment 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
CP02 Change in the address of a patent holder

Address after: 518000 R & D building 1601, block a, building 7, Vanke Cloud City Phase I, Xingke 1st Street, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province (16 / F, block a, building 1, international innovation Valley)

Patentee after: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 518051 floor 2, block C, office building, Hanchuang new garden, 16 Langshan Road, Nanshan District, Shenzhen, Guangdong, 2

Patentee before: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder