Software integration method and device, equipment and medium
By adopting a loosely controlled software integration method in the ship monitoring system to generate navigation signs and navigation bars, the problems of user operation difficulties and difficulty in timely attention to important information under multiple software systems are solved, convenient software navigation and exception handling are achieved, and stable system operation is ensured.
Patent Information
- Application Number
- CN202410313697.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-19
- Publication Date
- 2025-09-19
AI Technical Summary
In the existing ship monitoring system, multiple single-service software provided by different professional manufacturers require users to open multiple software at the same time when monitoring multiple types of business data, making it difficult to use the software and difficult to pay attention to important prompt information in a timely manner.
A variety of single-service software are integrated into the same platform in a loosely controlled manner. Navigation logos and navigation bars are generated through configuration files to achieve navigation and switching of multiple service software. The software status is monitored through heartbeat messages and periodic inspections to handle abnormal situations in a timely manner.
It enables convenient navigation and switching of multiple business software in the same integrated interface, avoiding the difficulty of users finding software, ensuring that important alarm information is conveyed in a timely manner, and processing when software anomalies occur to prevent unstable system operation.
Smart Images

Figure CN120670095A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of ship monitoring technology, and in particular to a software integration method, device, equipment and medium. Background Art
[0002] Currently, existing monitoring systems in the ship monitoring field are becoming increasingly complex as demand increases. These systems consist of multiple single-service software packages provided by different specialized manufacturers, all of which must run on the same monitoring console. When users monitor multiple types of service data, they need to simultaneously activate multiple single-service software packages to monitor the status and operation of different systems. Consequently, users must switch back and forth between different software packages during use. However, as the number of service software packages increases, it becomes increasingly difficult for users to find specific software based on memory or experience alone. Furthermore, users may also customize the order and duration of software usage based on their personal habits, which can lead to them failing to pay attention to important information. Summary of the Invention
[0003] In order to overcome the defects of the above-mentioned existing technologies, the present application provides a software integration method, device, equipment and medium, which integrates multiple single-business software into the same platform in a loosely controlled manner, and realizes the navigation and switching of multiple business software in the same integrated interface.
[0004] To solve the above technical problems, this application provides the following technical solutions:
[0005] According to a first aspect of an embodiment of the present application, a software integration method is provided, comprising:
[0006] Obtaining a configuration file, wherein the configuration file records configuration information;
[0007] Based on the configuration file, each business software is started at a preset software running location, and a navigation identifier for controlling the business software and corresponding to the business software is generated, and a corresponding navigation bar is generated according to the navigation identifier;
[0008] Acquire target identification signal;
[0009] querying the running status of the target business software corresponding to the target identification signal; the target business software is one of the plurality of business software;
[0010] When it is determined that the running state of the target business software is running, the target navigation identifier corresponding to the target business software is linked to change the window stacking order of each business software, thereby completing the interface switching.
[0011] In an exemplary embodiment, when it is determined that the target business software is in a non-operating state, the method includes:
[0012] A file identifier in a link menu bar; the menu bar is set at a preset menu position;
[0013] Obtaining a restart identifier corresponding to each of the business software;
[0014] A target restart identifier corresponding to the target business software is linked to restart the target business software.
[0015] In an exemplary embodiment, the method further includes the step of generating an abnormality alarm, wherein the step of generating an abnormality alarm includes:
[0016] Based on the configuration file, obtaining alarm information in the business software;
[0017] When the alarm information is obtained, filtering the obtained alarm information based on preset rules to obtain target alarm information;
[0018] Matching the target alarm information with the preset level information to obtain the alarm level;
[0019] Displaying the target alarm information in the alarm bar according to the corresponding alarm levels in a preset order;
[0020] According to the target alarm information displayed in the alarm bar, a downlink command corresponding to the target alarm information is executed.
[0021] In an exemplary embodiment, the method further includes a step of determining an operating status, wherein the step of determining an operating status includes:
[0022] Based on the configuration file, periodically sending a heartbeat message to the business software;
[0023] When the heartbeat reply sent by the business software is received, the running state of the business software is determined to be running.
[0024] In an exemplary embodiment, the method further comprises:
[0025] In the case where the heartbeat reply is not received, the running state of the business software is determined to be not running.
[0026] In an exemplary embodiment, the method further includes a step of monitoring the operating status, wherein the step of monitoring the operating status includes:
[0027] Based on the configuration file, periodically polling the running status information of the business software;
[0028] Matching the retrieved operating status information with the preset operating status information recorded in the configuration file to obtain a status information matching result;
[0029] When the status information matching result is determined to be abnormal, the business software is processed accordingly according to a preset processing mechanism.
[0030] In an exemplary embodiment, the step of monitoring the operating status further comprises:
[0031] Based on the configuration file, periodically query the CPU usage and memory usage of the business software;
[0032] Comparing the CPU usage and memory usage of the business software obtained with the corresponding thresholds recorded in the configuration file to obtain a comparison result;
[0033] If the comparison result shows that the CPU usage of the business software obtained by query exceeds the corresponding threshold recorded in the configuration file for a preset number of times, and / or the memory usage of the business software obtained by query exceeds the corresponding threshold recorded in the configuration file, the business software is forcibly closed.
[0034] According to a second aspect of an embodiment of the present application, a software integration device is provided, the device comprising:
[0035] A configuration file acquisition module is used to acquire a configuration file, wherein the configuration file records configuration information;
[0036] A navigation generation module is used to start each business software at a preset software running position based on the configuration file, generate a navigation identifier for controlling the business software and corresponding to the business software, and generate a corresponding navigation bar according to the navigation identifier;
[0037] A target signal acquisition module is used to acquire a target identification signal;
[0038] A target operation status query module, configured to query the operation status of the target business software corresponding to the target identification signal; the target business software is one of the plurality of business software;
[0039] The interface switching module is used to link the target navigation identifier corresponding to the target business software when it is determined that the running state of the target business software is running, so as to change the window stacking order of each business software, thereby completing the interface switching.
[0040] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement any of the above-mentioned software integration methods.
[0041] According to the fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one instruction or at least one program is stored. The at least one instruction or the at least one program is loaded and executed by a processor to implement any of the above-mentioned software integration methods.
[0042] By adopting the above technical solution, this application has the following beneficial effects:
[0043] (1) A loosely controlled approach is adopted to integrate multiple single-business software into the same platform. Without the need for additional modifications to the display layer of the business software, the integrated management of each business software at the display level is achieved. Users can navigate and switch between multiple business software in the same integrated interface, avoiding the difficulty of users relying on experience to find a certain business software, or the phenomenon of favoring one over the other due to usage habits.
[0044] (2) Except for the target alarm information obtained after filtering, which needs to be reported for display and the control execution of downlink commands, other business software data does not require the participation of the software integration system.
[0045] (3) The software integration system can achieve unified management of various business software without changing the business software. That is, the business software does not need to make corresponding changes for integration, and there is no direct data interaction between the business software. The failure of one business software will not affect the normal operation of other business software.
[0046] (4) The health status of the software integration system can be monitored through periodic inspections. When business software runs abnormally, corresponding processing is carried out according to the preset plan to avoid the normal operation of the software integration system being affected by the abnormal operation of the business software. Specifically, it can prevent the software integration system from running unstable due to a freeze or memory leak in a certain business software.
[0047] (5) Important alarm information will be integrated and conveyed to the user in a timely manner. No matter which business software interface the user is currently displaying, the user will receive important alarm information from other business software as soon as possible. The user will not fail to receive important alarm information just because the user is not in a certain business software interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0049] Figure 1 A flowchart of a software integration method provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of the operation flow of a software integration system provided in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of the operation flow of a navigation generation module provided in an embodiment of the present application;
[0052] Figure 4 A schematic diagram of a software restart process provided in an embodiment of the present application;
[0053] Figure 5 A structural block diagram of a software integration device provided in an embodiment of the present application;
[0054] Figure 6 A hardware structure block diagram of an electronic device running a software integration method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative work are within the scope of protection of this application.
[0056] As used herein, "one embodiment" or "embodiment" refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present application. In describing the embodiments of the present application, it should be understood that the terms "upper," "lower," "top," "bottom," and the like, indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely for ease of description and simplification. They do not indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation, and are therefore not to be construed as limiting the present application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly specifying the number of the technical features indicated. Thus, a feature designated "first" or "second" may explicitly or implicitly include one or more of the features. Furthermore, the terms "first," "second," and the like are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0057] See also Figure 1 , which is a flow chart of a software integration method provided in an embodiment of the present application, the software integration method includes:
[0058] Step S101: Obtain a configuration file, which contains configuration information. Optionally, the configuration information includes, but is not limited to, the startup path, process mapping name, and other information of each business software. By modifying the configuration information in the configuration file, the corresponding information of each business software can be changed, and the business software automatically recognizes the changed content.
[0059] Step S102: Based on the configuration file, each business software is started at the preset software running location, and a navigation identifier for controlling the business software and corresponding to each business software is generated, and a corresponding navigation bar is generated according to the navigation identifier; optionally, each business software is started uniformly in the preset software running location in the form of a window stack, and the navigation identifier may be a navigation button, and a matching navigation bar may be generated according to the size and position of the navigation button;
[0060] Step S103: Acquire a target identification signal; optionally, the target identification signal may be a query signal received temporarily, an important alarm signal, or a monitoring signal corresponding to a business software that is monitored during a fixed time period;
[0061] Step S104: querying the running status of the target business software corresponding to the target identification signal; the target business software is one of the multiple business software;
[0062] Step S105: When it is determined that the target business software is in the running state, the target navigation identifier corresponding to the target business software is linked to change the window stacking order of each business software, thereby completing the interface switching.
[0063] In an optional embodiment, a preset help position is also provided next to the preset software running position. The preset help position is provided with a help bar for displaying help documents, and has retrieval and quick positioning functions, which can help users quickly master the application of the software integration system, and help users find the corresponding business software in time in special circumstances.
[0064] In a specific embodiment, when it is determined that the running status of the target business software is not running, the above method may further include:
[0065] Step S201: linking a file identifier in a menu bar; the menu bar is set at a preset menu position; optionally, the preset menu position is located above a preset software running position;
[0066] Step S202: Obtain the restart identifier corresponding to each business software; optionally, the restart identifier corresponding to each business software may be a mapping name corresponding to each business software, etc.;
[0067] Step S203: linking the target restart identifier corresponding to the target business software to restart the target business software.
[0068] In an optional embodiment, in addition to the software integration system determining whether the software is running by sending signals and receiving feedback signals, the user can also intuitively judge whether the business software is running based on the color of the navigation button corresponding to the business software; optionally, when it is running, the navigation button is a preset color and can be manually clicked, and when it is not running, the navigation button is gray and is unclickable.
[0069] In a specific embodiment, the above method may further include the step of generating an abnormality alarm, wherein the step of generating an abnormality alarm includes:
[0070] Step S301: Acquire alarm information from the business software based on the configuration file. Specifically, the software integration system and each business software can communicate with each other through the configuration information in the configuration file. When an alarm is generated in each business software, the alarm information in each business software is acquired through communication.
[0071] Step S302: When alarm information is obtained, the obtained alarm information is filtered based on preset rules to obtain target alarm information; optionally, the device layer data and the application layer data are sent via multicast, and the software integration system obtains data information of each business software by joining the multicast. The software integration system matches the communication data received during the multicast with the preset communication data format, data source, target IP address, port number and other information, and the obtained matched data is the target alarm information;
[0072] Step S303: Match the target alarm information with the preset level information to obtain the alarm level;
[0073] Step S304: Displaying the target alarm information in the alarm bar in a preset order according to the corresponding alarm levels; optionally, the preset order may be an order of decreasing importance from top to bottom;
[0074] Step S305: Execute the downlink command corresponding to the target alarm information according to the target alarm information displayed in the alarm bar; optionally, the downlink command includes but is not limited to the alarm information confirmation, silencing and other commands.
[0075] In a specific embodiment, the above method may further include a step of determining an operating status, wherein the step of determining an operating status includes:
[0076] Step S401: periodically sending heartbeat messages to the service software based on the configuration file;
[0077] Step S4021: When a heartbeat reply is received from the business software, the running state of the business software is determined to be running.
[0078] Step S4022: When no heartbeat reply is received, the running status of the business software is determined to be not running.
[0079] In a specific embodiment, the above method may further include a step of monitoring the operating status, wherein the step of monitoring the operating status includes:
[0080] Step S501: periodically polling the operating status information of the business software based on the configuration file;
[0081] Step S502: matching the retrieved running status information with the preset running status information recorded in the configuration file to obtain a status information matching result;
[0082] Step S503: When the status information matching result is determined to be abnormal, the business software is processed accordingly according to a preset processing mechanism.
[0083] In an optional embodiment, the step of monitoring the operating status may specifically include:
[0084] Step S601: periodically querying the CPU usage and memory usage of the business software based on the configuration file;
[0085] Step S602: Compare the CPU usage and memory usage of the queried business software with the corresponding thresholds recorded in the configuration file to obtain a comparison result;
[0086] Step S603: When the comparison result shows that the CPU occupancy rate of the queried business software exceeds the corresponding threshold value recorded in the configuration file for a continuous preset number of times, and / or the memory occupancy rate of the queried business software exceeds the corresponding threshold value recorded in the configuration file, the business software is forcibly closed; optionally, the business software whose memory exceeds the threshold value and / or the CPU occupancy rate exceeds the threshold value for 5 continuous times is forcibly closed.
[0087] In a specific embodiment, the above-mentioned software integration system also has the functions of time synchronization and periodic data storage. The time synchronization function can realize the precise management of system time, and the periodic data storage function can regularly transfer the operation data to form a log file to facilitate subsequent user query records.
[0088] See also Figure 2-4 In a specific implementation scenario, the software integration system using the above software integration method may include a navigation module, an alarm module, an inspection module and a business flow data scheduling device, and the system main interface has a title bar, a navigation bar, an alarm bar and a menu bar.
[0089] Specific definitions and uses may include:
[0090] Navigation Module: Users define information such as the name of a single business system software, operating parameters, operating path, operating instance name, navigation bar definition name, navigation button size and location, and the desired size and location of the business software interface through a configuration file. The navigation module generates navigation buttons for controlling the business system software based on the configuration file information and creates a navigation bar based on the size and location of all navigation buttons. When the business system software is running, it communicates to obtain the main interface handle and links button events to change the Z order of each business system software interface, thereby completing the interface transition.
[0091] Alarm module: This module displays information and sends downlink commands. It receives alarm information through the data stream dispatcher and displays it in the alarm bar according to the alarm level. The data stream dispatcher then issues downlink commands such as alarm confirmation and silencing.
[0092] Inspection module: Periodically monitors the system's operating status and determines the operating status based on the operating data of the professional system. If the operating status is abnormal, the professional system will be handled according to the set processing mechanism.
[0093] Service Flow Data Dispatcher: Device-layer and application-layer data are sent via multicast. The service flow data dispatcher obtains data information from all service software by joining the multicast. Users register the communication data format, data source, destination IP address, and port number information of a single service system software with the service flow data dispatcher. The data dispatcher then obtains the data that requires unified processing based on the port number and communication data format flag field and reports the data to a unified integrated interface.
[0094] Title bar: used to uniformly display the title of the entire system.
[0095] Navigation bar: It is a collection of navigation buttons for a single business system software.
[0096] Alarm bar: It is the display interface of the alarm module.
[0097] Menu bar: used for one-click start, one-click shutdown, one-click restart and other functions of the professional system.
[0098] It can be seen from the above technical solutions of the embodiments of the present application that the embodiments of the present application have the following beneficial effects:
[0099] (1) A loosely controlled approach is adopted to integrate multiple single-business software into the same platform. Without the need for additional modifications to the display layer of the business software, the integrated management of each business software at the display level is achieved. Users can navigate and switch between multiple business software in the same integrated interface, avoiding the difficulty of users relying on experience to find a certain business software, or the phenomenon of favoring one over the other due to usage habits.
[0100] (2) Except for the target alarm information obtained after filtering, which needs to be reported for display and the control execution of downlink commands, other business software data does not require the participation of the software integration system.
[0101] (3) The software integration system can achieve unified management of various business software without changing the business software. That is, the business software does not need to make corresponding changes for integration, and there is no direct data interaction between the business software. The failure of one business software will not affect the normal operation of other business software.
[0102] (4) The health status of the software integration system can be monitored through periodic inspections. When business software runs abnormally, corresponding processing is carried out according to the preset plan to avoid the normal operation of the software integration system being affected by the abnormal operation of the business software. Specifically, it can prevent the software integration system from running unstable due to a freeze or memory leak in a certain business software.
[0103] (5) Important alarm information will be integrated and conveyed to the user in a timely manner. No matter which business software interface the user is currently displaying, the user will receive important alarm information from other business software as soon as possible. The user will not fail to receive important alarm information just because the user is not in a certain business software interface.
[0104] Corresponding to the software integration method provided in the above embodiment, the embodiment of the present application also provides a software integration device. Since the software integration device provided in the embodiment of the present application corresponds to the software integration method provided in the above embodiment, the implementation method of the aforementioned software integration method is also applicable to the software integration device provided in this embodiment and will not be described in detail in this embodiment.
[0105] See also Figure 5 , which shows a structural block diagram of a software integration device provided in an embodiment of the present application; the device includes:
[0106] 001: Configuration file acquisition module, used to obtain configuration files, which record configuration information. Optionally, the configuration information includes but is not limited to the startup path of each business software, process mapping name, and other information. By modifying the configuration information in the configuration file, the corresponding information of each business software can be changed, and the business software automatically recognizes the changed content.
[0107] 002: A navigation generation module, configured to start each business software at a preset software running location based on a configuration file, generate navigation identifiers corresponding to each business software for controlling the business software, and generate corresponding navigation bars based on the navigation identifiers; optionally, each business software is started uniformly in a window stack at the preset software running location, the navigation identifiers may be navigation buttons, and a matching navigation bar may be generated based on the size and position of the navigation buttons;
[0108] 003: a target signal acquisition module, used to acquire a target identification signal; optionally, the target identification signal can be a query signal received temporarily, an important alarm signal, or a monitoring signal corresponding to a business software that is monitored during a fixed time period;
[0109] 004: a target operation status query module, used to query the operation status of the target business software corresponding to the target identification signal; the target business software is one of the multiple business software;
[0110] 005: Interface switching module, used to link the target navigation identifier corresponding to the target business software when determining that the running status of the target business software is running, so as to change the window stacking order of each business software, thereby completing the interface switching.
[0111] In a specific embodiment, the above device may further include:
[0112] A link file identification module is used to link the file identification in the menu bar; the menu bar is set at a preset menu position; optionally, the preset menu position is located above the preset software running position;
[0113] A restart identifier acquisition module is used to obtain the restart identifier corresponding to each business software; optionally, the restart identifier corresponding to each business software can be a mapping name corresponding to each business software, etc.;
[0114] The target restart identifier linking module is used to link the target restart identifier corresponding to the target business software to restart the target business software.
[0115] In a specific embodiment, the above device may further include:
[0116] The alarm information acquisition module is used to obtain the alarm information in the business software based on the configuration file. Specifically, the configuration information in the configuration file enables communication between the software integration system and each business software. When the alarm information is generated in each business software, the alarm information in each business software is obtained through communication;
[0117] The target alarm information acquisition module is used to filter the acquired alarm information based on preset rules to obtain the target alarm information when the alarm information is acquired; optionally, the device layer data and the application layer data are sent via multicast, and the software integration system obtains the data information of each business software by joining the multicast. The software integration system matches the communication data received during the multicast with the preset communication data format, data source, target IP address, port number and other information, and the matched data obtained is the target alarm information;
[0118] An alarm level determination module is used to match target alarm information with preset level information to obtain an alarm level;
[0119] The target alarm information display module is used to display the target alarm information in the alarm bar according to the corresponding alarm level in a preset order; optionally, the preset order can be an order of decreasing importance from top to bottom;
[0120] The downlink command execution module is used to execute the downlink command corresponding to the target alarm information according to the target alarm information displayed in the alarm bar; optionally, the downlink command includes but is not limited to the confirmation, silencing and other commands of the alarm information.
[0121] In a specific embodiment, the above device may further include:
[0122] Heartbeat message sending module, used to periodically send heartbeat messages to business software based on configuration files;
[0123] The heartbeat reply receiving module is used to determine the running status of the business software as running when a heartbeat reply sent by the business software is received.
[0124] The non-running determination module is used to determine the running status of the business software as non-running when no heartbeat response is received.
[0125] In a specific embodiment, the above device may further include:
[0126] The running status polling module is used to periodically poll the running status information of the business software based on the configuration file;
[0127] A status information matching module is used to match the queried running status information with the preset running status information recorded in the configuration file to obtain a status information matching result;
[0128] The processing mechanism startup module is used to perform corresponding processing on the business software according to the preset processing mechanism when the status information matching result is determined to be abnormal.
[0129] In an optional embodiment, the above device may specifically include:
[0130] The occupancy rate query module is used to periodically query the CPU occupancy rate and memory occupancy rate of business software based on the configuration file;
[0131] The occupancy comparison module is used to compare the CPU occupancy and memory occupancy of the queried business software with the corresponding thresholds recorded in the configuration file to obtain the comparison results;
[0132] The forced shutdown module is used to forcibly shut down the business software when the comparison results show that the CPU usage of the queried business software exceeds the corresponding threshold recorded in the configuration file for a continuous preset number of times, and / or the memory usage of the queried business software exceeds the corresponding threshold recorded in the configuration file; optionally, the business software whose memory exceeds the threshold and / or CPU usage exceeds the threshold for 5 continuous times is forcibly shut down.
[0133] In a specific embodiment, the above-mentioned software integration device can also include a time synchronization module and a periodic data storage module. The time synchronization module is used to realize precise management of system time, and the periodic data storage module is used to regularly transfer the operating data to form a log file to facilitate subsequent user query records.
[0134] It should be noted that the apparatus provided in the above embodiments, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0135] The software integration device of the embodiment of the present application has the following beneficial effects:
[0136] (1) A loosely controlled approach is adopted to integrate multiple single-business software into the same platform. Without the need for additional modifications to the display layer of the business software, the integrated management of each business software at the display level is achieved. Users can navigate and switch between multiple business software in the same integrated interface, avoiding the difficulty of users relying on experience to find a certain business software, or the phenomenon of favoring one over the other due to usage habits.
[0137] (2) Except for the target alarm information obtained after filtering, which needs to be reported for display and the control execution of downlink commands, other business software data does not require the participation of the software integration system.
[0138] (3) The software integration system can achieve unified management of various business software without changing the business software. That is, the business software does not need to make corresponding changes for integration, and there is no direct data interaction between the business software. The failure of one business software will not affect the normal operation of other business software.
[0139] (4) The health status of the software integration system can be monitored through periodic inspections. When business software runs abnormally, corresponding processing is carried out according to the preset plan to avoid the normal operation of the software integration system being affected by the abnormal operation of the business software. Specifically, it can prevent the software integration system from running unstable due to a freeze or memory leak in a certain business software.
[0140] (5) Important alarm information will be integrated and conveyed to the user in a timely manner. No matter which business software interface the user is currently displaying, the user will receive important alarm information from other business software as soon as possible. The user will not fail to receive important alarm information just because the user is not in a certain business software interface.
[0141] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the software integration method provided in the above method embodiment.
[0142] The memory can be used to store software programs and modules. The processor executes various functional applications and achieves advanced autonomous driving by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, application programs required for functions, etc.; the data storage area can store data created based on the use of the device, etc. In addition, the memory can include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0143] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal, a server or a similar computing device, that is, the above-mentioned electronic device can include a computer terminal, a server or a similar computing device. Figure 6 This is a hardware structure diagram of an electronic device running a software integration method provided in an embodiment of the present application, such as Figure 6 As shown, the internal structure of the electronic device may include but is not limited to: a processor, a network interface and a memory. The processor, network interface and memory in the electronic device may be connected via a bus or other means. Figure 6 The bus connection is taken as an example.
[0144] Among them, the processor (or CPU (Central Processing Unit)) is the computing core and control core of the electronic device. The network interface may optionally include a standard wired interface, a wireless interface (such as WI-FI, a mobile communication interface, etc.). Memory is a memory device in an electronic device for storing programs and data. It is understandable that the memory here can be a high-speed RAM storage device or a non-volatile memory device (non-volatile memory), such as at least one disk storage device; optionally, it can also be at least one storage device located away from the aforementioned processor. The memory provides a storage space, which stores the operating system of the electronic device, which may include but is not limited to: Windows system (an operating system), Linux (an operating system), Android (Android, a mobile operating system) system, IOS (a mobile operating system) system, etc., and this application is not limited to this; and, in the storage space, one or more instructions suitable for being loaded and executed by the processor are also stored, and these instructions can be one or more computer programs (including program codes). In the embodiment of this specification, the processor loads and executes one or more instructions stored in the memory to implement the software integration method provided in the above method embodiment.
[0145] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction or at least one program is stored. The at least one instruction or at least one program is loaded and executed by a processor to implement the software integration method provided in the method embodiment.
[0146] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0147] It should be noted that the order of the embodiments of the present application described above is for descriptive purposes only and does not represent the superiority or inferiority of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-small sample image classification and parallel processing are also possible or may be advantageous.
[0148] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the device embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
[0149] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0150] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A software integration method, characterized in that: include: Obtaining a configuration file, wherein the configuration file records configuration information; Based on the configuration file, each business software is started at a preset software running location, and a navigation identifier for controlling the business software and corresponding to the business software is generated, and a corresponding navigation bar is generated according to the navigation identifier; Acquire target identification signal; querying the running status of the target business software corresponding to the target identification signal; the target business software is one of the plurality of business software; When it is determined that the running state of the target business software is running, the target navigation identifier corresponding to the target business software is linked to change the window stacking order of each business software, thereby completing the interface switching.
2. The software integration method according to claim 1, characterized in that: When it is determined that the target business software is in a non-operating state, the method includes: A file identifier in a link menu bar; the menu bar is set at a preset menu position; Obtaining a restart identifier corresponding to each of the business software; A target restart identifier corresponding to the target business software is linked to restart the target business software.
3. The software integration method according to claim 1, wherein: The method further includes a step of generating an abnormality alarm, wherein the step of generating an abnormality alarm includes: Based on the configuration file, obtaining alarm information in the business software; When the alarm information is obtained, filtering the obtained alarm information based on preset rules to obtain target alarm information; Matching the target alarm information with the preset level information to obtain the alarm level; Displaying the target alarm information in the alarm bar according to the corresponding alarm levels in a preset order; According to the target alarm information displayed in the alarm bar, a downlink command corresponding to the target alarm information is executed.
4. The software integration method according to claim 1, wherein: The method further comprises the step of determining an operating state, wherein the step of determining an operating state comprises: Based on the configuration file, periodically sending a heartbeat message to the business software; When the heartbeat reply sent by the business software is received, the running state of the business software is determined to be running.
5. The software integration method according to claim 4, characterized in that: The method further comprises: In the case where the heartbeat reply is not received, the running state of the business software is determined to be not running.
6. The software integration method according to claim 4, characterized in that: The method further comprises the step of monitoring the operating status, wherein the step of monitoring the operating status comprises: Based on the configuration file, periodically polling the running status information of the business software; Matching the retrieved operating status information with the preset operating status information recorded in the configuration file to obtain a status information matching result; When the status information matching result is determined to be abnormal, the business software is processed accordingly according to a preset processing mechanism.
7. The software integration method according to claim 6, characterized in that: The step of monitoring the operating status further comprises: Based on the configuration file, periodically query the CPU usage and memory usage of the business software; Comparing the CPU usage and memory usage of the business software obtained with the corresponding thresholds recorded in the configuration file to obtain a comparison result; If the comparison result shows that the CPU usage of the business software obtained by query exceeds the corresponding threshold recorded in the configuration file for a preset number of times, and / or the memory usage of the business software obtained by query exceeds the corresponding threshold recorded in the configuration file, the business software is forcibly closed.
8. A software integration device, characterized in that: The device comprises: A configuration file acquisition module is used to acquire a configuration file, wherein the configuration file records configuration information; A navigation generation module is used to start each business software at a preset software running position based on the configuration file, generate a navigation identifier for controlling the business software and corresponding to the business software, and generate a corresponding navigation bar according to the navigation identifier; A target signal acquisition module is used to acquire a target identification signal; A target operation status query module, configured to query the operation status of the target business software corresponding to the target identification signal; the target business software is one of the plurality of business software; The interface switching module is used to link the target navigation identifier corresponding to the target business software when it is determined that the running state of the target business software is running, so as to change the window stacking order of each business software, thereby completing the interface switching.
9. An electronic device, characterized in that: It includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the software integration method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein the storage medium stores at least one instruction or at least one program, wherein the at least one instruction or the at least one program is loaded and executed by a processor to implement the software integration method according to any one of claims 1 to 7.