CN117406986A - Human-computer interface generation method and device, storage medium and electronic device - Google Patents

Human-computer interface generation method and device, storage medium and electronic device Download PDF

Info

Publication number
CN117406986A
CN117406986A CN202311404973.7A CN202311404973A CN117406986A CN 117406986 A CN117406986 A CN 117406986A CN 202311404973 A CN202311404973 A CN 202311404973A CN 117406986 A CN117406986 A CN 117406986A
Authority
CN
China
Prior art keywords
target
file
script
generating
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.)
Pending
Application number
CN202311404973.7A
Other languages
Chinese (zh)
Inventor
林亦宁
徐明江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Shanma Zhiqing Technology Co Ltd
Shanghai Supremind Intelligent Technology Co Ltd
Original Assignee
Hangzhou Shanma Zhiqing Technology Co Ltd
Shanghai Supremind 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 Hangzhou Shanma Zhiqing Technology Co Ltd, Shanghai Supremind Intelligent Technology Co Ltd filed Critical Hangzhou Shanma Zhiqing Technology Co Ltd
Priority to CN202311404973.7A priority Critical patent/CN117406986A/en
Publication of CN117406986A publication Critical patent/CN117406986A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a human-computer interface generation method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: obtaining a target JSON file, wherein the target JSON file is obtained by converting a target table file, and the target table file is recorded with information sets of preset states under different modes, which are respectively configured for a group of devices in a target electromechanical system in advance; generating a first interface description file according to the target JSON file, wherein the first interface description file is used for generating a base map of a target human-computer interface; generating a target script according to the target JSON file, filling the target script into the first interface description file to obtain a second interface description file, wherein the second interface description file is used for generating a target human-machine interface. By the embodiment of the invention, the technical problem of low human-computer interface development efficiency in the related technology is solved.

Description

Human-computer interface generation method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a human-computer interface generation method and device, a storage medium and an electronic device.
Background
Along with the continuous progress of track traffic technology and informatization technology, traditional track traffic business has gradually developed to intelligent, digital and scene, more and more cities begin to build full-automatic unmanned circuits and intelligent stations, and compared with traditional track traffic business in the past, intelligent track traffic is more based on operation scenes, and equipment operation states matched with corresponding scenes are automatically executed under different operation scenes of the stations. Under different operation scenes, each device is automatically started and stopped in a preset mode, such as mode control of a building automation system BAS (Building Automatic System or building electromechanical system), and under different scenes (such as normal operation, fire operation and ventilation modes), each device executes control logic of starting/stopping, frequency conversion/power frequency, forward rotation/reverse rotation and the like according to preset actions. And the comparison of the action required to be executed by the equipment in the mode and the actual running state is displayed on the human-computer interface HMI (Human Machine Interface) in a mode comparison table mode.
However, in the related art, the conventional device mode control man-machine interface development flow is: drawing a static base chart according to a mode control comparison table in a CAD drawing of a design institute; the tag point position information in the real-time database corresponding to the equipment in the mode comparison table is found; writing a display script in a human-computer interface, and binding and associating tag point information with equipment in a mode comparison table; and writing a comparison script in the human-computer interface, and highlighting when the actual running state of the equipment is inconsistent with the corresponding state of the mode. Therefore, the device mode control development flow in the related technology is complex, the mode diagram interface is required to be manufactured by comparing with CAD drawings provided by the design institutes, and the mode diagram interface is corresponding to and bound with the configured device instance information, so that the problems of artificial binding errors, incomplete configuration information and the like are easy to occur in the binding process. Moreover, aiming at stations with different scales, the operation scenes are different, and at present, scripts are manually written, so that the development workload is large.
Aiming at the technical problem of low development efficiency of a human-computer interface in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a human-computer interface generation method, a device, a storage medium and an electronic device, which are used for at least solving the technical problem of low human-computer interface development efficiency in the related technology.
According to an embodiment of the present invention, there is provided a human-machine interface generating method including: obtaining a target JSON file, wherein the target JSON file is obtained by converting a target table file, and the target table file is recorded with information sets of preset states in different modes, which are respectively configured for a group of devices in a target electromechanical system in advance; generating a first interface description file according to the target JSON file, wherein the first interface description file is used for generating a base map of a target human-computer interface; generating a target script according to the target JSON file, and filling the target script into the first interface description file to obtain a second interface description file, wherein the second interface description file is used for generating the target human-machine interface.
In an exemplary embodiment, the generating a first interface description file according to the target JSON file includes: generating an initial interface description file according to the target JSON file, wherein the initial interface file is used for representing a file which meets the file structure of the target human-computer interface; and under the condition that the object database is determined to store the instance information corresponding to each device in the group of devices, filling an element set included in the object JSON file into the initial interface description file to obtain the first interface description file, wherein the object database is used for storing the device information in the pre-configured object electromechanical system, and the element set at least comprises lines, texts and names of the group of devices.
In an exemplary embodiment, the above method further comprises: and sending out target prompt information when determining that the instance information of the first device is not stored in the target database or when determining that the instance information of the first device is stored in the target database and the instance information of the first device does not contain a designated field, wherein the target prompt information is used for indicating to check the instance information of the devices stored in the target database, and the group of devices comprises the first device.
In an exemplary embodiment, the generating a target script according to the target JSON file includes: and generating a first script according to the target JSON file when the target JSON file indicates that the state of the set of devices is displayed in the target man-machine interface in a mode matching manner, wherein the first script is used for indicating a button to be displayed in a unit table corresponding to a first field in the target JSON file in the target man-machine interface, the mode of the set of devices in the target electromechanical system is allowed to be adjusted by touching the button, and the target script comprises the first script.
In an exemplary embodiment, the generating a target script according to the target JSON file includes: generating, for each device in the set of devices, a sub-script corresponding to each device based on the target JSON file, the target script including the sub-script corresponding to each device; the subtropics corresponding to each device are used for executing the following operations, and when executing the following operations, each device is a current device: searching current equipment instance information corresponding to the current equipment in a target database according to the target JSON file; acquiring the actual running state of the current equipment in the current mode according to the current equipment instance information, and recording the actual running state in a first cell in the target human-computer interface; and comparing the actual running state with the preset state to obtain a comparison result, and recording the comparison result in a second cell in the target human-computer interface, wherein the preset state in the current mode configured for the group of equipment in advance is recorded in the target JSON file.
In one exemplary embodiment, prior to obtaining the target JSON file, it comprises: the original paper file is exported to be a first form file, wherein the original paper file is used for indicating the state requirements of each device in the group of devices in different modes; filling a second script in the first table file to obtain the target table file, wherein the second script is used for generating a first row table and a second row table in the target human-computer interface, the first row table is used for recording actual running states of each device in the group of devices in the current mode, the second row table is used for recording comparison results of the actual running states of each device in the group of devices and the preset states, the first row table comprises the first unit cells, and the second row table comprises the second unit cells.
In an exemplary embodiment, the generating a target script according to the target JSON file includes: generating a third script according to the target JSON file under the condition that the target JSON file indicates that the target equipment is controlled to execute a preset operation in a target sequence control mode, wherein the target script comprises the third script, and the target equipment is part or all of the group of equipment; wherein, the third script is used for executing the following operations: sequentially acquiring each sequence control sequence number in the target JSON file; determining target sub-equipment instance information corresponding to each sequence control sequence number; and generating a target trigger instruction of a target operation corresponding to each sequence control sequence number, wherein the target trigger instruction is used for instructing and controlling a target sub-device corresponding to the determined target sub-device instance information to execute the target operation.
In an exemplary embodiment, the generating a target script according to the target JSON file includes: searching instance information corresponding to each device in the group of devices in a target database according to the target JSON file to obtain a group of device instance information; and generating an external script corresponding to each device in the group of devices according to the group of device instance information and the preset code fragments, wherein the preset code is stored in the target database, and the target script comprises the external script.
According to another embodiment of the present invention, there is also provided a human-machine interface generating apparatus including: the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a target JSON file, the target JSON file is obtained by converting a target table file, and the target table file is recorded with information sets of preset states in different modes, which are respectively configured for a group of devices in a target electromechanical system in advance; the generation module is used for generating a first interface description file according to the target JSON file, wherein the first interface description file is used for generating a base map of a target human-computer interface; and the processing module is used for generating a target script according to the target JSON file, filling the target script into the first interface description file to obtain a second interface description file, wherein the second interface description file is used for generating the target human-machine interface.
According to a further embodiment of the invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device for generating the target human-machine interface, the target JSON file is obtained through conversion according to the target table file, the target table file is recorded with the information sets of preset states under different modes, which are respectively configured for a group of devices in the target electromechanical system, in advance, the first interface description file is generated according to the target JSON file, the first interface description file is used for generating a base map of the target human-machine interface, the target script is generated according to the target JSON file, and the target script is filled into the first interface description file to obtain the second interface description file, wherein the second interface description file is used for generating the target human-machine interface. The method and the device achieve the purposes of generating the target script according to the target JSON file and obtaining the second interface description file for generating the target human-computer interface, and solve the problem that in the related art, the static base diagram is required to be drawn according to the mode control comparison table in the CAD drawing and the workload is high because the script is manually written in the human-computer interface. The technical problem of low development efficiency of the human-computer interface in the related technology is solved, and the effect of improving the development efficiency of the human-computer interface is achieved.
Drawings
FIG. 1 is a block diagram of a hardware configuration of a mobile terminal according to a human-computer interface generating method of an embodiment of the present invention;
FIG. 2 is a flow chart of a human-machine interface generation method according to an embodiment of the invention;
FIG. 3 is an exemplary diagram of a CAD drawing of a BAS system model in accordance with an embodiment of the present invention;
FIG. 4 is a diagram of an example of a style sheet of an Excel sheet according to an embodiment of the present invention;
FIG. 5 is a diagram of an example base map table and HMI interface generated in accordance with an embodiment of the invention;
fig. 6 is a block diagram of a man-machine interface generating apparatus according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the operation on a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal according to a human-computer interface generating method of an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a human-computer interface generating method in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a human-computer interface generating method is provided, fig. 2 is a flowchart of a human-computer interface generating method according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
step S202, obtaining a target JSON file, wherein the target JSON file is obtained by converting a target table file, and the target table file is recorded with information sets of preset states in different modes, which are respectively configured for a group of devices in a target electromechanical system in advance;
step S204, generating a first interface description file according to the target JSON file, wherein the first interface description file is used for generating a base map of a target human-computer interface;
step S206, generating a target script according to the target JSON file, and filling the target script into the first interface description file to obtain a second interface description file, wherein the second interface description file is used for generating the target human-machine interface.
Through the steps, the target JSON file is obtained through conversion according to the target table file, the target table file records information sets of preset states under different modes, which are respectively configured for a group of devices in the target electromechanical system, in advance, the first interface description file is generated according to the target JSON file, the first interface description file is used for generating a base map of the target human-computer interface, the target script is generated according to the target JSON file, and the target script is filled into the first interface description file to obtain the second interface description file, wherein the second interface description file is used for generating the target human-computer interface. The method and the device achieve the purposes of generating the target script according to the target JSON file and obtaining the second interface description file for generating the target human-computer interface, and solve the problem that in the related art, the static base diagram is required to be drawn according to the mode control comparison table in the CAD drawing and the workload is high because the script is manually written in the human-computer interface. The technical problem of low development efficiency of the human-computer interface in the related technology is solved, and the effect of improving the development efficiency of the human-computer interface is achieved.
The main execution body of the steps may be a terminal, a processor, a background, an application program, such as an HMI interface generating program, a processing device with feature extraction and analysis, a processor with man-machine interaction capability configured on a storage device, a processing device or a processing unit with similar processing capability, or the like, but is not limited thereto.
In the solution provided in step S202, the target JSON file may be converted from a target table file (such as an Excel table), in which a set of information of predetermined states in different modes, which are set in advance for a set of devices in the target electromechanical system, is recorded, for example, the content of the Excel table includes information of predetermined states in different modes for a set of devices in the Excel table, taking the station BAS system (or referred to as an electromechanical system) as an example, and it is assumed that the BAS system includes 50 devices (corresponding to the set of devices) and may be devices of different types or different types in the same type of device, and in each specific mode, a set of devices in the pre-designed BAS system may have multiple modes, for example, a normal running mode, a fire running mode, a ventilation mode, or other modes, and in each specific mode, the set of devices are set of information in advance in a predetermined state, for example, and in each specific mode, the set of devices in each specific mode may be in a frequency conversion state, and in each specific mode, the set of devices in the specific mode may be in a frequency state, and in a frequency conversion state, and in each mode, the set of the specific mode may be in a specific mode. Alternatively, the target table file may be an Excel table derived from table information contained in the DXF format file by an Excel derivation tool, and the DXF format file may be obtained from an original design CAD drawing. In this step, a target JSON file is generated according to the Excel table content, and the target JSON file may contain all information in the header and the table body for the human-machine interface HMI generating program to read.
In the technical solution provided in the step S204, a first interface description file may be generated according to the target JSON file, for example, the HMI interface generating program generates an initial interface description file according to the HMI interface file structure by reading the target JSON file, the rank and the header both correspond to an Excel table (or CAD drawing), in practical application, the corresponding device instance information in the target database may be searched according to the target JSON file, whether the data is complete or not is checked, if not complete, the developer is returned and prompted to perform configuration check, if complete, the element set included in the target JSON file is filled into the initial interface description file to obtain the first interface description file, for example, whether the device instance information corresponding to the device code (or number) exists in the target database is searched according to a certain device code (or number) in the target JSON file, and if not, the developer is required to be prompted to perform configuration check; wherein the set of elements may include lines, text, names of a group of devices, and the like. Through this step, a base map table can be generated from the target JSON file as the target HMI interface base map.
In the technical solution provided in the above step S206, a target script is generated according to the target JSON file, for example, a script for indicating to display buttons in some cells in the target man-machine interface may be generated according to the target JSON file, by which the mode of a set of devices in the target electromechanical system may be allowed to be adjusted; a sub-script corresponding to each device in the set of devices may also be generated from the target JSON file, wherein the sub-script corresponding to each device is operable to: searching equipment instance information corresponding to each piece of equipment in a target database, acquiring the actual running state of the equipment in a current mode according to the equipment instance information, displaying the actual running state in a first cell of a target human-computer interface, comparing the actual running state of the equipment with a preset state of the equipment in the current mode to obtain a comparison result, and displaying the comparison result in a second cell of the target human-computer interface. After the second interface description file is operated, the actual operation state corresponding to each device and the comparison result of the actual operation state of each device and the preset state can be displayed in the target human-computer interface; optionally, other scripts can also be generated according to the target JSON file; and filling the target script into the first interface description file to obtain a second interface description file. Through the step, the target script can be generated according to the target JSON file, and the target script is filled into the first interface description file to obtain the second interface description file, so that the target human-computer interface can be generated after the second interface description file is operated.
In the embodiment, the purposes of generating the target script according to the target JSON file and obtaining the second interface description file for generating the target human-computer interface are achieved, and the problem that in the related art, the workload is large because a static base diagram is required to be drawn according to a mode control comparison table in a CAD drawing and the script is manually written in the human-computer interface is solved. The technical problem of low development efficiency of the human-computer interface in the related technology is solved, and the effect of improving the development efficiency of the human-computer interface is achieved.
In an optional embodiment, the generating a first interface description file according to the target JSON file includes: generating an initial interface description file according to the target JSON file, wherein the initial interface file is used for representing a file which meets the file structure of the target human-computer interface; and under the condition that the object database is determined to store the instance information corresponding to each device in the group of devices, filling an element set included in the object JSON file into the initial interface description file to obtain the first interface description file, wherein the object database is used for storing the device information in the pre-configured object electromechanical system, and the element set at least comprises lines, texts and names of the group of devices.
In the above embodiment, the above operation may be performed by the HMI interface generating program, for example, the HMI interface generating program generates an initial interface description file conforming to the HMI interface file structure by reading the target JSON file, where the rank and header correspond to an Excel table (or CAD drawing); when it is determined that the object database stores the instance information corresponding to each device in a group of devices, the element set included in the object JSON file is filled into the initial interface description file to obtain the first interface description file, the object database stores the instance information of the devices in the pre-configured object electromechanical system, optionally, the instance information of each device may include an installation position, a frequency, a switch state, a device number (or code) or other information of the device, for example, whether the device instance information corresponding to the device number (or code) exists is searched in the object database according to a certain device number (or code) in the object JSON file, and if not, a developer needs to be prompted to perform configuration check. By the embodiment, the data verification is performed before the second interface description file is generated, so that the possible problems of mismatch of CAD drawings, user-imported data, equipment instance information configuration and the like can be found early.
In an alternative embodiment, the method further comprises: and sending out target prompt information when determining that the instance information of the first device is not stored in the target database or when determining that the instance information of the first device is stored in the target database and the instance information of the first device does not contain a designated field, wherein the target prompt information is used for indicating to check the instance information of the devices stored in the target database, and the group of devices comprises the first device.
In the above embodiment, when it is determined that the instance information of the first device is not stored in the target database, or when the instance information of the first device is stored in the target database, but the instance information of the first device does not include a specified field, the target prompt information is issued, for example, the specified field may be a field for indicating the on-off state of the device, or a field for indicating that the device operates at a different frequency, or the like, and the target prompt information may be used to prompt a developer to reconfigure or check the instance information of the device, or the like. Through the embodiment, data verification is performed before the second interface description file is generated so as to verify whether the data is complete, and prompt information can be timely sent out for reminding when the data is not complete.
In an optional embodiment, the generating the target script according to the target JSON file includes: and generating a first script according to the target JSON file when the target JSON file indicates that the state of the set of devices is displayed in the target man-machine interface in a mode matching manner, wherein the first script is used for indicating a button to be displayed in a unit table corresponding to a first field in the target JSON file in the target man-machine interface, the mode of the set of devices in the target electromechanical system is allowed to be adjusted by touching the button, and the target script comprises the first script.
In the above embodiment, in the case where the target JSON file indicates that the state of a group of devices is displayed in the target man-machine interface in a mode-contrast manner, that is, corresponding to the foregoing device mode control, a first script may be generated according to the target JSON file, where the first script is used to indicate that some cells in the target man-machine interface display buttons, for example, buttons may be displayed in a cell table corresponding to a first field (such as a mode number) in the target JSON file in the target man-machine interface, where the buttons may be used to perform man-machine interaction, and by touching the buttons, the mode of a group of devices in the target electromechanical system is allowed to be adjusted, for example, in practical application, a button corresponding to a certain mode may also be touched by an operator to designate a current device mode as the mode; optionally, one or more buttons may be displayed in the target man-machine interface, one button may be corresponding to each specific mode (or mode number), and primitive information of the displayed buttons may be further included in the target JSON file. Optionally, the first script may be further used to indicate that the information of the predetermined state of the set of devices corresponding to the current mode is highlighted in the target human-machine interface, which may be a row of tables corresponding to the current mode, for example, the row of tables may be highlighted, or an outer frame of the row of tables may be displayed as a specified color (such as green, yellow, or the like).
In an optional embodiment, the generating the target script according to the target JSON file includes: generating, for each device in the set of devices, a sub-script corresponding to each device based on the target JSON file, the target script including the sub-script corresponding to each device; the subtropics corresponding to each device are used for executing the following operations, and when executing the following operations, each device is a current device: searching current equipment instance information corresponding to the current equipment in a target database according to the target JSON file; acquiring the actual running state of the current equipment in the current mode according to the current equipment instance information, and recording the actual running state in a first cell in the target human-computer interface; and comparing the actual running state with the preset state to obtain a comparison result, and recording the comparison result in a second cell in the target human-computer interface, wherein the preset state in the current mode configured for the group of equipment in advance is recorded in the target JSON file.
In the above embodiment, a sub-script corresponding to each device in the set of devices may also be generated according to the target JSON file, where the sub-script corresponding to each device may be used to perform the following operations: searching equipment instance information corresponding to each piece of equipment in a target database, acquiring the actual running state of the equipment in a current mode according to the equipment instance information, displaying the actual running state in a first cell of a target human-computer interface, comparing the actual running state of the equipment with a preset state of the equipment in the current mode to obtain a comparison result, and displaying the comparison result in a second cell of the target human-computer interface. Thus, after the second interface description file is operated, the corresponding actual operation state of each device and the comparison result of the actual operation state of each device and the preset state can be displayed in the target human-computer interface. For example, after the second interface description is run, one of the rows is used to display a predetermined state of each device in the set of devices in the current mode, the other row is used to display an actual running state of each device in the set of devices in the current mode, and the other row is used to display a comparison result of the actual running state of each device with the predetermined state, where the comparison result may be used to indicate whether the actual running state of each device matches the predetermined state, for example, a solid circle (or other symbol) of red (or other color) if the discrepancy may be represented by another symbol of green (or other color). According to the method and the device, the sub-script corresponding to each device can be generated according to the target JSON file, the target script comprises the sub-script corresponding to each device, and then the target script is filled into the first interface description file to obtain the second interface description file, so that after the second interface description file operates, the actual operating state corresponding to each device and the comparison result of the actual operating state of each device and the preset state can be displayed in the target man-machine interface, the actual operating state of the device and the comparison result of the actual operating state and the preset state can be intuitively displayed, and if the actual operating state and the preset state have differences, the display can be performed to related staff through the target man-machine interface, and therefore inspection and maintenance can be performed in time.
In an alternative embodiment, prior to obtaining the target JSON file, it comprises: the original paper file is exported to be a first form file, wherein the original paper file is used for indicating the state requirements of each device in the group of devices in different modes; filling a second script in the first table file to obtain the target table file, wherein the second script is used for generating a first row table and a second row table in the target human-computer interface, the first row table is used for recording actual running states of each device in the group of devices in the current mode, the second row table is used for recording comparison results of the actual running states of each device in the group of devices and the preset states, the first row table comprises the first unit cells, and the second row table comprises the second unit cells.
In the above embodiment, the form information contained in the original paper file (such as the DXF format file) may be exported by the Excel export tool to be the first form file, for example, the original paper file may include a state requirement of each device in a group of devices in different modes, or may be understood as a predetermined state of each device in the originally designed group of devices in different modes; and filling a second script in the first table file to obtain a target table file, for example, the second script can be used for generating two rows of tables, such as a first row of tables and a second row of tables, in the target human-machine interface, wherein the first row of tables is used for recording actual running states of all devices in a group of devices in a current mode, the second row of tables is used for recording comparison results of the actual running states of all the devices with preset states, and optionally, after the second interface description file is run, the first row of tables and the second row of tables can be the tables corresponding to the second last row and the first last row displayed in the generated target human-machine interface.
In an optional embodiment, the generating the target script according to the target JSON file includes: generating a third script according to the target JSON file under the condition that the target JSON file indicates that the target equipment is controlled to execute a preset operation in a target sequence control mode, wherein the target script comprises the third script, and the target equipment is part or all of the group of equipment; wherein, the third script is used for executing the following operations: sequentially acquiring each sequence control sequence number in the target JSON file; determining target sub-equipment instance information corresponding to each sequence control sequence number; and generating a target trigger instruction of a target operation corresponding to each sequence control sequence number, wherein the target trigger instruction is used for instructing and controlling a target sub-device corresponding to the determined target sub-device instance information to execute the target operation.
In the above embodiment, in the case where the target JSON file indicates that the target device is controlled to perform the predetermined operation in the manner of target sequential control, the third script may be generated according to the target JSON file, for example, taking the operation of the rail transit station as an example, in some operation scenarios, some devices need to perform the predetermined action in the manner of sequential control, and at the same time, the completion of the operation of the previous step is also an interlocking condition for the execution of the next action, such as early departure of the station, and the corresponding devices will be started in the order of self-checking, lighting, environmental control, passenger information system PIS (Passenger Information System), public broadcasting PA (Public Address) system, escalator, and roller shutter door, respectively. The third script may be used to perform the following operations: each sequence control sequence number in the target JSON file is sequentially acquired, for example, the target JSON file may include the sequence control sequence number (for example, 1-30), the device number (or code) corresponding to each sequence control sequence number, and the action (or target operation) executed by the device corresponding to each sequence control sequence number, where each sequence control sequence number is equivalent to one step, and the operation corresponding to each sequence number is sequentially executed according to the sequence control sequence number; for each sequential control sequence number, the instance information (such as the instance information of the # 1 escalator device) of the target sub-device corresponding to the sequential control sequence number can be determined, for example, the number (or code) of the target sub-device corresponding to the sequential control sequence number is included in the target JSON file, then a target trigger instruction of the target operation corresponding to the sequential control sequence number is generated, the target trigger instruction is used for controlling the target sub-device (such as the # 1 escalator device) corresponding to the determined instance information of the target sub-device to execute the target operation, the target operation can be an on operation or an off operation, different actions can be controlled to execute for different target sub-devices, for example, a delay operation can also be controlled to execute in a certain target sub-device corresponding to a certain sequential control sequence number, alternatively, the target operation can also be a control device or a system execution detection operation, and the like. The generated third script is used for executing the operation, and the target script comprises the third script, so that after the second interface description file is run, the preset operation of each device in the target device can be executed in a mode of sequential control in the target human-computer interface.
In an optional embodiment, the generating the target script according to the target JSON file includes: searching instance information corresponding to each device in the group of devices in a target database according to the target JSON file to obtain a group of device instance information; and generating an external script corresponding to each device in the group of devices according to the group of device instance information and the preset code fragments, wherein the preset code is stored in the target database, and the target script comprises the external script.
In the above embodiment, the instance information corresponding to each device in a group of devices may be searched in the target database according to the target JSON file to obtain a group of device instance information, and then an external script corresponding to each device in a group of devices may be generated according to a group of device instance information and a preset code segment, for example, the generation of the interlocking condition may be performed for the device involved in the pattern diagram (such as the CAD drawing or the original paper file), in the practical application, the device instance information and the interlocking condition are stored in the target data, the configuration of the device instance information in the target database may be read, the corresponding determination script may be generated according to the preset code segment, and the HMI interface generating program performs the filling of the device instance information by reading the variable name or the code block beginning with the $symbol in the preset code segment, so as to generate the external script. By this embodiment, according to the device instance information and the preset code segments stored in the target JSON file and the target database in advance, the sequentially controlled logic code (or may be referred to as an interlock logic script) may be generated.
It will be apparent that the embodiments described above are merely some, but not all, embodiments of the invention. The present invention will be specifically described with reference to examples.
In an actual operation scenario, other relevant services may occur besides the mode control service scenario involving the device, such as:
sequential control of the devices: in some operation scenes, the equipment will execute the preset actions in a sequential control mode, and meanwhile, the operation of the previous step is completed as an interlocking condition for executing the next step, for example, the station starts in the early stage, and corresponding equipment is started according to the sequence of self-checking, lighting, environmental control, PIS, PA, escalator and rolling shutter door.
Automatic dispatch of the scheduled tasks: in an operation scene, besides the automatic control of each device, the task of human field disposal required by the associated plan in the scene is pushed to a mobile terminal of a station staff or a third party system, for example, in a large passenger flow scene, and the station staff is required to execute a current limiting measure in the field.
The intelligent plan mode of the system in the intelligent station operation scene is a combination of the above types.
In the related art, 1) the development flow of the equipment sequence control human-computer interface is as follows: according to actual use requirements of station crews, combing sequential control logic and interlocking conditions of all equipment in all operation scenes of the station; writing a control script in a human-computer interface to realize the sequential control function of the equipment; 2) The development flow of the man-machine interface of the dispatch of the plan task is as follows: according to the station plan management regulations, combing the task arrangement of the station staff under each scene plan; and writing a script in the background, and matching and managing corresponding tasks in the regulation to automatically release under the corresponding scene plans.
However, in the related art, aiming at stations with different scales, the operation scenes are different, various equipment sequence control combinations exist, manual script writing is needed at present, and the development workload is large. The management regulations of the plans in different cities, different lines and different stations are different, the development of the task release of the plans is often required to be customized and developed according to the characteristics of the stations and the characteristics of passenger transportation, or the adjustment is required according to working days and holidays, and the workload is large. The intelligent station is different from the traditional comprehensive monitoring system, integrates equipment, personnel and events, integrates various linkage business processes of equipment mode control, equipment sequence control and plan task release, performs a unified scene mode, and has more complex development process.
Therefore, a method suitable for automatically generating the operation scene mode of the intelligent station of the rail transit is needed, repeated development of a human-computer interface can be avoided, labor and time cost are saved, newly-increased demand response time is improved, and development efficiency and development quality are greatly improved.
The embodiment of the invention provides a generation mode of a class 2 mode, which comprises BAS electromechanical system mode processing and intelligent station operation mode, wherein the intelligent station operation mode mainly comprises equipment sequence control (one-key switch station) and plan issuing control.
1. BAS electromechanical system mode processing flow
(1) Generating a BAS (electromechanical system) mode table through CAD drawings:
the CAD drawing is stored in DXF format for structural analysis, and because the CAD pattern is mainly a table, LINE type data in DXF file is recorded for subsequent generation of EXCEL table and JSON file, as shown in fig. 3, fig. 3 is an exemplary diagram of CAD drawing of BAS system pattern according to an embodiment of the present invention, and fig. 3 is an exemplary diagram of equipment pattern control in a large station system, including various equipment such as new air conditioner, combined air conditioner, return/exhaust fan, smoke exhaust fan, air purifier, and air defense fan in fig. 3Electric fire valves, electric smoke evacuation valves, etc., and may also include other devices, such as electric multi-leaf valves; each device may also include one or more different models, such as TK/KXF-A1, TK/KXF-B1, etc. in FIG. 3; the modes of the system can comprise normal operation and fire operation modes, each mode can be subdivided into one or more specific modes, such as TK/01-TK/09 modes in the normal operation mode in FIG. 3, humidity and temperature corresponding to different modes can be different, h1 in FIG. 3 represents humidity, t1 and Tw represent temperature, and TK/09 in FIG. 3 corresponds to CO 2 Modes with concentration of more than 1500ppm, each mode number corresponds to a specific mode, and the modes can be subdivided into TK/10-TK/14 modes in a fire operation mode, and other types of equipment, other modes and the like can be further included in the CAD drawing of the electromechanical system mode by way of example only. In fig. 3, there is corresponding status information of each device in each specific mode, for example, a circle "∈o" in fig. 3 indicates an on state, a cross "×" indicates an off state, a "-" indicates no operation (or hold), a "change" indicates variable frequency operation of the variable frequency fan, and a "worker" indicates power frequency operation of the variable frequency fan.
When LINE type data are processed, a starting point coordinate code and an end point coordinate code corresponding to each LINE instance are recorded, the LINE instance can be judged to be a horizontal LINE or a vertical LINE according to the information of the starting point coordinate code and the end point coordinate code, the combination of the horizontal LINEs is a row of the table, and the combination of the vertical LINEs is a column of the table.
All elements in the table, such as information of a mode description, a device code, a mode operation range and the like, exist in an area divided by a horizontal line and a vertical line, a cell coordinate linked list is established according to coordinates of the horizontal line and the vertical line, when a TEXT type (TEXT) and a SHAPE type (graph) in a DXF file are read, the cell coordinate linked list is traversed according to the read TEXT or SHAPE coordinate information, and the cell in which the read TEXT or SHAPE is can be judged.
And after the DXF file is processed, a form with mode information can be obtained, and the form is exported as an EXCEL form through an EXCEL export tool, so that the export as the EXCEL form can facilitate subsequent processing, such as data modification, database importing and the like, by a developer. Fig. 4 is a diagram illustrating a style of an Excel sheet according to an embodiment of the present invention. In this embodiment, the style instance diagram of the excel table shown in fig. 4 may be obtained by calling an excel table export tool and filling a script, where the filled script is used to generate the penultimate row table and the penultimate row table shown in fig. 4. The row and column information of the table in fig. 4 is substantially the same as that of the CAD drawing in fig. 3, two more rows of tables, namely, a penultimate row and a penultimate row of the table in fig. 4, a "current mode status" row table is used for recording the actual running status of each device in the current mode, and a "mode comparison" row table is used for recording the comparison result of the actual running status of each device in the current mode with the predetermined status (i.e., the status designed in the CAD drawing in fig. 3), for example, the red solid circles may be used to indicate that the comparison result is inconsistent with the comparison result.
(2) Generating corresponding JSON file according to table content
And generating a JSON file (corresponding to the target JSON file) according to the content of the EXCEL table (corresponding to the target table file), wherein the JSON file contains all information in a table header and a table body for reading by an HMI interface generating program.
(3) Generating a base graph table as an interface base graph according to the JSON file
The HMI interface generating program generates an interface description file (corresponding to the initial interface description file) which accords with the HMI interface file structure by reading the JSON file, the row, column and header are corresponding to the CAD drawing, the corresponding equipment instance information in the database (corresponding to the target database) is searched according to the JSON file, whether the data is complete or not is checked, if not, the process returns to the previous step, a developer is prompted to perform configuration check, and if complete, the process is filled into the HMI interface file. FIG. 5 is a diagram of an example base map table and HMI interface generated in accordance with an embodiment of the invention. Fig. 5 is a diagram of the human-machine interface that is finally generated, and fig. 5 is only an example, and the result that is displayed may be different according to the actual mode.
(4) Generating corresponding interlocking logic script according to equipment instance information in the database and preset code segments
After the generation of the HMI interface description file is finished, generating interlocking conditions aiming at equipment involved in the pattern diagram, storing equipment instance information and the interlocking conditions in a database, generating corresponding judgment scripts according to preset code segments by reading equipment instance information configuration in the database, and filling equipment instance information by an HMI generating program by reading variable names or code blocks beginning with $symbols in the preset code segments to generate external scripts for subsequent use (for modification or interface generation, wherein the method comprises the following steps of:
/>
(5) Synthesizing equipment base map, equipment instance and script code (corresponding to the target script) into a complete integrated monitoring system interface file
And generating the base map, the equipment instance primitive and the generated interlocking logic script which are manufactured in the steps into an interface description file (corresponding to the second interface description file), and finishing the generation of the mode interface.
2. Intelligent station operation mode processing flow
(1) Providing a user operation interface for pattern arrangement:
the intelligent station operation mode can refer to the working mode of the BAS electromechanical system mode diagram to conduct arrangement and import of the operation mode, and learning cost of a user on a new tool can be reduced. Because the intelligent station operation mode needs to be arranged and planned by a user (rail transit operator) according to the passenger flow characteristics of each station, and data conversion is not needed from a design yard drawing, a corresponding arranging interface is provided when the intelligent station operation mode is arranged, a corresponding mode map base table can be directly generated according to the edit data in an EXCEL file, a JSON file or an HMI interface imported by the user, and table 1 is an EXCEL table configured by sequential control logic, as shown in the following table 1.
Table 1:
/>
(2) And searching corresponding equipment instance information in the database according to the data provided by the user, checking whether the data provided by the user is complete, returning to the previous step if the data is incomplete, and filling the data into the HMI interface file if the data is complete.
(3) Generating a corresponding interlocking logic script according to the equipment instance information in the database and the preset code segment:
this step is consistent with the BAS electromechanical system mode generation process and will not be described in detail herein.
(4) The equipment base map, the equipment instance and the script code are synthesized into a complete integrated monitoring system interface file:
this step is consistent with the BAS electromechanical system mode generation process and will not be described in detail herein.
Compared with the related art, the embodiment of the invention uses the rail transit comprehensive monitoring human-computer interface automatic generation tool and has the following advantages: 1) The processing flow of the traditional BAS system mode diagram is simplified, and the development efficiency is improved; 2) Development cost and user learning cost are reduced; 3) The automatic generation of the interface file can prevent the developer from generating human errors when making the interface; 4) The use mode of the traditional BAS system mode diagram is fused into the manufacture and use of the intelligent station operation mode, the linkage automatic development of system scenes in various operation scenes of the rail transit intelligent station and the unmanned driving is expanded, and the interlocking logic script of the corresponding system can be quickly and automatically constructed based on the personalized treatment flow, management mode and operation mode of different urban rail transit in various operation scenes; 5) The data verification is carried out before the interface file is generated, so that the problems of possible CAD drawing, user-imported data, equipment instance information configuration and mismatching of information in the primitive script are found early, and the problems of easy artificial binding errors, incomplete configuration information and the like in the related technology can be avoided.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
In this embodiment, a human-machine interface generating device is also provided, and fig. 6 is a block diagram of a human-machine interface generating device according to an embodiment of the present invention, as shown in fig. 6, where the device includes:
an obtaining module 602, configured to obtain a target JSON file, where the target JSON file is obtained by converting a target table file, and the target table file records information sets of predetermined states in different modes, which are configured for a group of devices in a target electromechanical system in advance, respectively;
The generating module 604 is configured to generate a first interface description file according to the target JSON file, where the first interface description file is used to generate a base map of a target human-machine interface;
the processing module 606 is configured to generate a target script according to the target JSON file, and fill the target script into the first interface description file to obtain a second interface description file, where the second interface description file is used to generate the target human-machine interface.
In an alternative embodiment, the generating module 604 includes: the first generation unit is used for generating an initial interface description file according to the target JSON file, wherein the initial interface file is used for representing a file which meets the file structure of the target human-computer interface; the first processing unit is configured to, when determining that the object database stores instance information corresponding to each device in the set of devices, populate an element set included in the object JSON file into the initial interface description file to obtain the first interface description file, where the object database is configured to store device information in the pre-configured object electromechanical system, and the element set includes at least a line, a text, and a name of the set of devices.
In an alternative embodiment, the apparatus further comprises: and the sending module is used for sending out target prompt information when the condition that the instance information of the first device is not stored in the target database is determined, or when the condition that the instance information of the first device is stored in the target database and the instance information of the first device does not contain a designated field is determined, wherein the target prompt information is used for indicating to check the instance information of the devices stored in the target database, and the group of devices comprises the first device.
In an alternative embodiment, the processing module 606 includes: and a second generating unit, configured to generate a first script according to the target JSON file when the target JSON file indicates that the state of the set of devices is displayed in the target man-machine interface in a mode matching manner, where the first script is used to indicate a button displayed in a cell table corresponding to a first field in the target JSON file in the target man-machine interface, and allow adjustment of the mode of the set of devices in the target electromechanical system by touching the button, where the target script includes the first script.
In an alternative embodiment, the processing module 606 includes: a third generation unit, configured to generate, for each device in the set of devices, a sub-script corresponding to each device based on the target JSON file, where the target script includes the sub-script corresponding to each device; the subtropics corresponding to each device are used for executing the following operations, and when executing the following operations, each device is a current device: searching current equipment instance information corresponding to the current equipment in a target database according to the target JSON file; acquiring the actual running state of the current equipment in the current mode according to the current equipment instance information, and recording the actual running state in a first cell in the target human-computer interface; and comparing the actual running state with the preset state to obtain a comparison result, and recording the comparison result in a second cell in the target human-computer interface, wherein the preset state in the current mode configured for the group of equipment in advance is recorded in the target JSON file.
In an alternative embodiment, the apparatus further comprises: the export module is used for exporting an original paper file into a first table file before acquiring the target JSON file, wherein the original paper file is used for indicating the state requirements of each device in the group of devices in different modes; the obtaining module is configured to fill a second script in the first table file to obtain the target table file, where the second script is configured to generate a first row of table and a second row of table in the target human-machine interface, the first row of table is configured to record an actual running state of each device in the set of devices in the current mode, the second row of table is configured to record a comparison result between the actual running state and the predetermined state of each device in the set of devices, the first row of table includes the first cell, and the second row of table includes the second cell.
In an alternative embodiment, the processing module 606 includes: a fourth generating unit, configured to generate a third script according to the target JSON file when the target JSON file indicates that the target device is controlled to perform a predetermined operation in a manner of target sequential control, where the target script includes the third script, and the target device is part or all of the devices in the group of devices; wherein, the third script is used for executing the following operations: sequentially acquiring each sequence control sequence number in the target JSON file; determining target sub-equipment instance information corresponding to each sequence control sequence number; and generating a target trigger instruction of a target operation corresponding to each sequence control sequence number, wherein the target trigger instruction is used for instructing and controlling a target sub-device corresponding to the determined target sub-device instance information to execute the target operation.
In an alternative embodiment, the processing module 606 includes: the second processing unit is used for searching instance information corresponding to each device in the group of devices in a target database according to the target JSON file to obtain a group of device instance information; and a fifth generating unit, configured to generate an external script corresponding to each device in the set of devices according to the set of device instance information and the preset code segments, where the preset code is stored in the target database, and the target script includes the external script.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A human-machine interface generation method, comprising:
obtaining a target JSON file, wherein the target JSON file is obtained by converting a target table file, and the target table file is recorded with information sets of preset states in different modes, which are respectively configured for a group of devices in a target electromechanical system in advance;
generating a first interface description file according to the target JSON file, wherein the first interface description file is used for generating a base map of a target human-computer interface;
generating a target script according to the target JSON file, and filling the target script into the first interface description file to obtain a second interface description file, wherein the second interface description file is used for generating the target human-machine interface.
2. The method of claim 1, wherein generating a first interface description file from the target JSON file comprises:
Generating an initial interface description file according to the target JSON file, wherein the initial interface file is used for representing a file meeting the file structure of the target human-computer interface;
under the condition that the object database is determined to store the instance information corresponding to each device in the group of devices, filling an element set included in the object JSON file into the initial interface description file to obtain the first interface description file, wherein the object database is used for storing the device information in the pre-configured object electromechanical system, and the element set at least comprises lines, texts and names of the group of devices.
3. The method according to claim 2, wherein the method further comprises:
and sending out target prompt information under the condition that the instance information of the first device is not stored in the target database or under the condition that the instance information of the first device is stored in the target database and a designated field is not contained in the instance information of the first device, wherein the target prompt information is used for indicating to check the instance information of the devices stored in the target database, and the group of devices comprises the first device.
4. The method of claim 1, wherein generating the target script from the target JSON file comprises:
and under the condition that the target JSON file represents that the state of the group of devices is displayed in the target human-computer interface in a mode comparison mode, generating a first script according to the target JSON file, wherein the first script is used for indicating to display a button in a unit table corresponding to a first field in the target JSON file in the target human-computer interface, the button is controlled by touch, so that the mode of the group of devices in the target electromechanical system can be adjusted, and the target script comprises the first script.
5. The method of claim 1, wherein generating the target script from the target JSON file comprises:
generating, for each device in the set of devices, a sub-script corresponding to each device based on the target JSON file, the target script including the sub-script corresponding to each device;
the subtropics corresponding to each device are used for executing the following operations, and when executing the following operations, each device is a current device:
Searching current equipment instance information corresponding to the current equipment in a target database according to the target JSON file;
acquiring the actual running state of the current equipment in the current mode according to the current equipment instance information, and recording the actual running state in a first cell in the target human-computer interface;
and comparing the actual running state with the preset state to obtain a comparison result, and recording the comparison result in a second cell in the target human-computer interface, wherein the preset state in the current mode, which is configured for the group of equipment in advance, is recorded in the target JSON file.
6. The method of claim 5, comprising, prior to obtaining the target JSON file:
the method comprises the steps of exporting an original paper file into a first table file, wherein the original paper file is used for indicating the state requirements of each device in the group of devices in different modes;
filling a second script in the first table file to obtain the target table file, wherein the second script is used for generating a first row of tables and a second row of tables in the target human-computer interface, the first row of tables is used for recording actual running states of all devices in the group of devices in the current mode, the second row of tables is used for recording comparison results of the actual running states of all devices in the group of devices and the preset states, the first row of tables comprise the first unit cells, and the second row of tables comprise the second unit cells.
7. The method of claim 1, wherein generating the target script from the target JSON file comprises:
generating a third script according to the target JSON file under the condition that the target JSON file indicates that target equipment is controlled to execute a preset operation in a target sequence control mode, wherein the target script comprises the third script, and the target equipment is part or all of the group of equipment;
wherein the third script is configured to perform the following operations:
sequentially acquiring each sequence control sequence number in the target JSON file;
determining target sub-equipment instance information corresponding to each sequence control sequence number;
and generating a target trigger instruction of a target operation corresponding to each sequence control sequence number, wherein the target trigger instruction is used for indicating and controlling target sub-equipment corresponding to the determined target sub-equipment instance information to execute the target operation.
8. The method of claim 1, wherein generating the target script from the target JSON file comprises:
searching instance information corresponding to each device in the group of devices in a target database according to the target JSON file to obtain a group of device instance information;
And generating an external script corresponding to each device in the group of devices according to the group of device instance information and the preset code fragments, wherein the preset codes are stored in the target database, and the target script comprises the external script.
9. A human-machine interface generating apparatus, comprising:
the system comprises an acquisition module, a target JSON file generation module and a storage module, wherein the acquisition module is used for acquiring a target JSON file, the target JSON file is obtained by converting a target table file, and the target table file is recorded with information sets of preset states under different modes, which are respectively configured for a group of devices in a target electromechanical system in advance;
the generation module is used for generating a first interface description file according to the target JSON file, wherein the first interface description file is used for generating a base map of a target human-computer interface;
and the processing module is used for generating a target script according to the target JSON file, filling the target script into the first interface description file to obtain a second interface description file, wherein the second interface description file is used for generating the target man-machine interface.
10. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method according to any of the claims 1 to 8.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 8 when the computer program is executed.
CN202311404973.7A 2023-10-26 2023-10-26 Human-computer interface generation method and device, storage medium and electronic device Pending CN117406986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311404973.7A CN117406986A (en) 2023-10-26 2023-10-26 Human-computer interface generation method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311404973.7A CN117406986A (en) 2023-10-26 2023-10-26 Human-computer interface generation method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN117406986A true CN117406986A (en) 2024-01-16

Family

ID=89486709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311404973.7A Pending CN117406986A (en) 2023-10-26 2023-10-26 Human-computer interface generation method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN117406986A (en)

Similar Documents

Publication Publication Date Title
CN104699036B (en) Site equipment management device, facility information display methods, computer readable storage medium
CN109491735B (en) Integrated data generation and verification integrated monitoring human-computer interface configuration implementation method
CN104680320A (en) BIM-based project management system and method
CN102117444A (en) System for comprehensive arrangement and execution management of production equipment maintenance plan
CN104407576A (en) Realization method for general type production and manufacturing unit and control system thereof
CN102750301A (en) Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description
CN112541692B (en) Scientific data management plan generation method and device
CN115238359A (en) Construction progress simulation method and device, electronic equipment and storage medium
CN111666619A (en) BIM technology-based substation engineering implementation field digital management system
CN111569427B (en) Resource processing method and device, storage medium and electronic device
CN111984882A (en) Data processing method, system and equipment
CN111723515A (en) Method, device and system for operating operator
US7127307B2 (en) Generation/management apparatus of production processing structure in factory production management system
CN111221517A (en) Model creating method and device, computer equipment and readable storage medium
WO2024114543A1 (en) Unmanned aerial vehicle permission management method and system, and storage medium
CN114979251B (en) Cross-system collaborative service heterogeneous data exchange system
CN117406986A (en) Human-computer interface generation method and device, storage medium and electronic device
CN116935320A (en) Image modeling and recognition method based on image template
CN112132300A (en) Transformer substation maintenance method, device and system
CN116663098A (en) Construction scene graphical management method and device based on BIM
CN113642851B (en) BIM-based highway bridge building and maintenance integrated management system
CN115204832A (en) Full-flow electrical construction process monitoring method and system
CN103809973A (en) Graphic control interface design system and graphic control interface design operation method thereof
CN113379369A (en) Full life cycle's management system based on wisdom building
CN112529222A (en) Vehicle maintenance service system, vehicle maintenance service generation method and device

Legal Events

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