[go: up one dir, main page]

CN115834446A - Dual-control device, control method, storage medium and electronic device - Google Patents

Dual-control device, control method, storage medium and electronic device Download PDF

Info

Publication number
CN115834446A
CN115834446A CN202211371977.5A CN202211371977A CN115834446A CN 115834446 A CN115834446 A CN 115834446A CN 202211371977 A CN202211371977 A CN 202211371977A CN 115834446 A CN115834446 A CN 115834446A
Authority
CN
China
Prior art keywords
control device
master
configuration information
main control
standby
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
CN202211371977.5A
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202211371977.5A priority Critical patent/CN115834446A/en
Publication of CN115834446A publication Critical patent/CN115834446A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

本发明实施例提供了一种双控设备、控制方法、存储介质及电子装置,其中,该双控设备包括:主主控设备,与存储设备连接,用于加载目标配置信息,并实时将目标配置信息存储到存储设备中;备主控设备,与主主控设备连接,用于在基于主主控设备发送的心跳信号确定主主控设备发生故障的情况下,退出低功耗状态,以与存储设备连接,从存储设备中获取目标配置信息、系统文件以及应用信息,加载系统文件、应用信息,以及目标配置信息;存储设备,用于存储系统文件、应用信息以及目标配置信息。通过本发明,解决了相关技术中存在的无法无缝切换主主控和备主控问题,达到无缝切换主主控设备和备主控设备的效果。

Figure 202211371977

Embodiments of the present invention provide a dual-control device, a control method, a storage medium, and an electronic device, wherein the dual-control device includes: a main master control device connected to a storage device for loading target configuration information and real-time The configuration information is stored in the storage device; the standby master control device is connected to the master master control device, and is used to exit the low power consumption state when the master master control device fails based on the heartbeat signal sent by the master master control device. Connect with a storage device, obtain target configuration information, system files and application information from the storage device, load system files, application information, and target configuration information; the storage device is used to store system files, application information and target configuration information. The present invention solves the problem of inability to seamlessly switch between the main control device and the standby main control device in the related art, and achieves the effect of seamlessly switching the main control device and the standby main control device.

Figure 202211371977

Description

双控设备、控制方法、存储介质及电子装置Dual-control device, control method, storage medium and electronic device

技术领域technical field

本发明实施例涉及通信领域,具体而言,涉及一种双控设备、控制方法、存储介质及电子装置。Embodiments of the present invention relate to the communication field, and specifically, to a dual-control device, a control method, a storage medium, and an electronic device.

背景技术Background technique

随着5G网络的快速普及,人们对数据的请求越来越频繁;同时对数据的稳定性要求越来越高。提高系统稳定性普遍采用的是一种冗余备份机制,即一个系统中有两个可以担任控制的核心的板卡,称为双主控设备。双主控设备在数据存储中心得到广泛使用。With the rapid popularization of 5G networks, people request data more and more frequently; at the same time, the requirements for data stability are getting higher and higher. A redundant backup mechanism is commonly used to improve system stability, that is, there are two boards that can serve as the core of control in a system, called dual-master devices. Dual-master devices are widely used in data storage centers.

在冗余设备中,双主控分主主控和备主控两种角色,主主控和备主控分别独立工作,其中,主主控负责与所有接口板进行通信(如包括核心数据读取和写入、收发报文及响应各种事件等),以及控制整台双主控设备的正常运行。当主主控设备出现故障时,备主控设备切换成新的主主控设备,负责控制整台双主控设备的运行,由于备主控设备接收了主主控设备的备份数据,所以能无缝接管原主主控设备的所有工作。但是,若存在备主控设备对应的配置与主主控设备对应的配置不一致,可能导致备主控设备切换为主主控设备后不能继续控制整机正常运行,因而引起业务中断、数据读写失败等严重后果。In a redundant device, dual master controllers are divided into two roles: master master and backup master. The master master and the slave master work independently. The master master is responsible for communicating with all read and write, send and receive messages, respond to various events, etc.), and control the normal operation of the entire dual-master device. When the master and master control device fails, the standby master and master control device will switch to the new master and master control device, which is responsible for controlling the operation of the entire dual master and control device. Seam takes over all the work of the original main control device. However, if there is an inconsistency between the configuration corresponding to the standby master control device and the configuration corresponding to the master master control device, the slave master control device may not be able to continue to control the normal operation of the whole machine after switching to the master master control device, thus causing service interruption and data read and write. serious consequences of failure.

由此可知,相关技术中存在无法无缝切换主主控和备主控的问题。It can be seen that there is a problem in the related art that the master control and the backup master control cannot be switched seamlessly.

针对相关技术中存在的上述问题,目前尚未提出有效的解决方案。Aiming at the above-mentioned problems existing in related technologies, no effective solution has been proposed yet.

发明内容Contents of the invention

本发明实施例提供了一种双控设备、控制方法、存储介质及电子装置,以至少解决相关技术中存在的无法无缝切换主主控和备主控的问题。Embodiments of the present invention provide a dual-control device, a control method, a storage medium, and an electronic device, so as to at least solve the problem in the related art that the master-master control and the backup-master control cannot be switched seamlessly.

根据本发明的一个实施例,提供了一种双控设备,包括:主主控设备,与存储设备连接,用于加载目标配置信息,并实时将所述目标配置信息存储到所述存储设备中;备主控设备,与所述主主控设备连接,用于在基于所述主主控设备发送的心跳信号确定所述主主控设备发生故障的情况下,退出低功耗状态,以与所述存储设备连接,从所述存储设备中获取所述目标配置信息、系统文件以及应用信息,加载所述系统文件、所述应用信息,以及所述目标配置信息;所述存储设备,用于存储所述系统文件、所述应用信息以及所述目标配置信息。According to an embodiment of the present invention, a dual-control device is provided, including: a main control device connected to a storage device for loading target configuration information and storing the target configuration information in the storage device in real time ; The standby master control device is connected to the master master control device, and is used to exit the low power consumption state when the heartbeat signal sent by the master master control device determines that the master master control device fails, so as to communicate with the master master control device The storage device is connected, and the target configuration information, system files and application information are obtained from the storage device, and the system file, the application information, and the target configuration information are loaded; the storage device is used for The system file, the application information and the target configuration information are stored.

根据本发明的另一个实施例,提供了一种控制方法,应用于上述备主控设备中,包括:确定所述主主控设备的第一状态信息;在所述第一状态信息指示所述主主控设备发生故障的情况下,从所述存储设备获取所述目标配置信息、系统文件以及应用信息,其中,所述目标配置信息为所述主主控设备实时存储至所述存储设备中的信息;加载所述系统文件、所述应用信息以及所述目标配置信息。According to another embodiment of the present invention, a control method is provided, which is applied to the above standby master control device, including: determining the first state information of the master master control device; when the first state information indicates the In the case of failure of the main control device, the target configuration information, system files and application information are obtained from the storage device, wherein the target configuration information is stored in the storage device by the main control device in real time information; loading the system file, the application information and the target configuration information.

根据本发明的另一个实施例,还提供了一种控制方法,应用于上述主主控设备中,包括:接收目标配置信息,并实时将所述目标配置信息存储至所述存储设备中;向所述备主控设备发送心跳信号,以指示所述备主控设备基于所述心跳信号确定所述主主控设备的第一状态信息,并在所述第一状态信息指示所述主主控设备发生故障的情况下,从所述存储设备获取所述目标配置信息、系统文件以及应用信息,加载所述系统文件、所述应用信息以及所述目标配置信息。According to another embodiment of the present invention, there is also provided a control method, which is applied to the above-mentioned master and control device, including: receiving target configuration information, and storing the target configuration information in the storage device in real time; The standby master control device sends a heartbeat signal to instruct the standby master control device to determine the first state information of the master master control device based on the heartbeat signal, and instruct the master master control device in the first state information When the device fails, the target configuration information, system files and application information are obtained from the storage device, and the system files, the application information and the target configuration information are loaded.

根据本发明的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to perform any one of the above methods when running Steps in the examples.

根据本发明的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above Steps in the method examples.

通过本发明,双控设备包括主主控设备、备主控设备以及存储设备,主主控设备与存储设备连接,用于加载目标配置信息,并实时将目标配置信息存储到存储设备中,备主控设备与主主控设备连接,用于在根据主主控设备发送的心跳信号确定主主控设备发生故障的情况下,退出低功耗状态,以实现与存储设备的连接,从存储设备中获取目标配置信息、系统文件以及应用信息,并加载系统文件、应用信息以及目标配置信息。实现了当主主控设备故障时,备主控设备可以获取到最新的目标配置信息,并接替主主控设备的工作,因此,可以解决相关技术中存在的无法无缝切换主主控和备主控问题,达到无缝切换主主控设备和备主控设备的效果。According to the present invention, the dual-control device includes a main and main control device, a backup and main control device, and a storage device. The main control device is connected with the main control device, and is used to exit the low power consumption state when the main control device is determined to fail according to the heartbeat signal sent by the main control device, so as to realize the connection with the storage device, and the slave storage device Obtain target configuration information, system files, and application information in the system, and load system files, application information, and target configuration information. It is realized that when the main control device fails, the standby main control device can obtain the latest target configuration information and take over the work of the main control device. Therefore, it can solve the problem of the inability to seamlessly switch between the main control device and the standby device in related technologies. control problems, to achieve the effect of seamlessly switching the master and master control devices and standby master control devices.

附图说明Description of drawings

图1是根据本发明实施例的双控设备结构示意图;Fig. 1 is a schematic structural diagram of a dual-control device according to an embodiment of the present invention;

图2是根据本发明示例性实施例的双主控设备主主控板与备主控板工作示意图一;Fig. 2 is a working schematic diagram 1 of the main main control board and the standby main control board of a dual main control device according to an exemplary embodiment of the present invention;

图3是根据本发明示例性实施例的双主控设备主主控板与备主控板工作示意图二;Fig. 3 is a working schematic diagram 2 of the main main control board and the standby main control board of a dual main control device according to an exemplary embodiment of the present invention;

图4是根据本发明示例性实施例的存储设备内部结构示意图;FIG. 4 is a schematic diagram of the internal structure of a storage device according to an exemplary embodiment of the present invention;

图5是本发明实施例的一种控制方法的移动终端的硬件结构框图;5 is a block diagram of a hardware structure of a mobile terminal according to a control method according to an embodiment of the present invention;

图6是根据本发明实施例的控制方法的流程图一;FIG. 6 is a first flowchart of a control method according to an embodiment of the present invention;

图7是根据本发明示例性实施例的控制方法流程图一;FIG. 7 is a first flowchart of a control method according to an exemplary embodiment of the present invention;

图8是根据本发明实施例的控制方法的流程图二;FIG. 8 is a second flowchart of a control method according to an embodiment of the present invention;

图9是根据本发明示例性实施例的控制方法流程图二。Fig. 9 is a second flowchart of a control method according to an exemplary embodiment of the present invention.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本发明的实施例。Embodiments of the present invention will be described in detail below with reference to the drawings and in combination with the embodiments.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.

在本实施例中提供了一种双控设备,图1是根据本发明实施例的双控设备结构示意图,如图1所示,该双控设备包括:In this embodiment, a dual-control device is provided. FIG. 1 is a schematic structural diagram of a dual-control device according to an embodiment of the present invention. As shown in FIG. 1 , the dual-control device includes:

主主控设备12,与存储设备连接,用于加载目标配置信息,并实时将所述目标配置信息存储到所述存储设备中;The main control device 12 is connected to the storage device, and is used for loading target configuration information, and storing the target configuration information in the storage device in real time;

备主控设备14,与所述主主控设备连接,用于在基于所述主主控设备发送的心跳信号确定所述主主控设备发生故障的情况下,退出低功耗状态,以与所述存储设备连接,从所述存储设备中获取所述目标配置信息、系统文件以及应用信息,加载所述系统文件、所述应用信息,以及所述目标配置信息;A standby master control device 14, connected to the master master control device, is used to exit the low power consumption state when the heartbeat signal sent by the master master control device determines that the master master control device fails, so as to communicate with the master master control device The storage device is connected, the target configuration information, system files and application information are obtained from the storage device, and the system files, the application information and the target configuration information are loaded;

所述存储设备16,用于存储所述系统文件、所述应用信息以及所述目标配置信息。The storage device 16 is configured to store the system files, the application information and the target configuration information.

在上述实施例中,主主控设备可以安装在主主控板中,备主控设备可以安装在备主控板中,存储设备可以安装在备板中。双主控设备正常工作时,主主控设备负责所有业务有序运行。此时主主控板与存储设备通信,而备主控板与存储设备处于断开状态。因此,主主控板工作时从共用存储设备加载系统与应用信息,同时,实时更新用户的目标配置信息到共用的存储设备当中。当主主控板出现问题的时候,主主控板与背板存储设备断开,备主控板与存储设备选通。备主控板能快速识别共用存储设备并快速加载存储设备中的系统与应用信息、用户最新的目标配置信息并获取主主控板的任务信息,然后继续工作。最终实现主主控板与备用主控板无缝切换,同时因使用了共用的存储设备设计,不仅降低整机成本(通常主主控板与备用主控板都有独立存储设备,即可以节省一块存储设备),还降低整机功耗并延长备主控板使用寿命。备主控板与主主控板无需实时同步配置以及任务信息,备主控板可以长时间处于低功耗状态。In the foregoing embodiment, the master main control device may be installed on the main main control board, the standby main control device may be installed on the standby main control board, and the storage device may be installed on the standby board. When the dual master control devices are working normally, the master master control device is responsible for the orderly operation of all services. At this time, the active main control board communicates with the storage device, and the standby main control board is disconnected from the storage device. Therefore, when the main control board is working, it loads system and application information from the shared storage device, and at the same time, updates the user's target configuration information to the shared storage device in real time. When the main main control board has a problem, the main main control board is disconnected from the backplane storage device, and the standby main control board is connected to the storage device. The standby main control board can quickly identify the shared storage device and quickly load the system and application information in the storage device, the user's latest target configuration information and obtain the task information of the main main control board, and then continue to work. Finally, the seamless switching between the main main control board and the standby main control board is realized. At the same time, due to the use of the shared storage device design, it not only reduces the cost of the whole machine (usually the main main control board and the standby main control board have independent storage devices, which can save a storage device), it also reduces the power consumption of the whole machine and prolongs the service life of the standby main control board. The standby main control board and the main main control board do not need to synchronize configuration and task information in real time, and the standby main control board can be in a low power consumption state for a long time.

通过本发明,双控设备包括主主控设备、备主控设备以及存储设备,主主控设备与存储设备连接,用于加载目标配置信息,并实时将目标配置信息存储到存储设备中,备主控设备与主主控设备连接,用于在根据主主控设备发送的心跳信号确定主主控设备发生故障的情况下,退出低功耗状态,以实现与存储设备的连接,从存储设备中获取目标配置信息、系统文件以及应用信息,并加载系统文件、应用信息以及目标配置信息。实现了当主主控设备故障时,备主控设备可以获取到最新的目标配置信息,并接替主主控设备的工作,因此,可以解决相关技术中存在的无法无缝切换主主控和备主控问题,达到无缝切换主主控设备和备主控设备的效果。According to the present invention, the dual-control device includes a main and main control device, a backup and main control device, and a storage device. The main control device is connected with the main control device, and is used to exit the low power consumption state when the main control device is determined to fail according to the heartbeat signal sent by the main control device, so as to realize the connection with the storage device, and the slave storage device Obtain target configuration information, system files, and application information in the system, and load system files, application information, and target configuration information. It is realized that when the main control device fails, the standby main control device can obtain the latest target configuration information and take over the work of the main control device. Therefore, it can solve the problem of the inability to seamlessly switch between the main control device and the standby device in related technologies. control problems, to achieve the effect of seamlessly switching the master and master control devices and standby master control devices.

在一个示例性实施例中,所述双控设备还包括:目标开关,所述目标开关的第一端与所述存储设备连接,第二端与所述主主控设备连接,在所述主主控设备发生故障的情况下,第三端与所述备主控设备连接。在本实施例中,目标开关可以是高速选通开关,主主控板通过高速选通开关与背板上的存储设备通信,而备主控板与存储设备处于断开状态。当主主控板出现问题的时候,触发高速选通开关工作,即主主控板与背板的存储设备断开,备主控设备与存储设备选通。In an exemplary embodiment, the dual-control device further includes: a target switch, the first end of the target switch is connected to the storage device, the second end is connected to the master master control device, and the master When the master control device fails, the third terminal is connected to the standby master control device. In this embodiment, the target switch may be a high-speed gating switch, the main main control board communicates with the storage device on the backplane through the high-speed gating switch, and the standby main control board is disconnected from the storage device. When there is a problem with the main main control board, the high-speed gating switch is triggered to work, that is, the main main control board is disconnected from the storage device on the backplane, and the standby main control device is strobed with the storage device.

在一个示例性实施例中,所述备主控设备包括:第一处理器,用于在所述主主控设备发生故障的情况下,从所述存储设备中获取所述目标配置信息、系统文件以及应用信息,加载所述系统文件、所述应用信息以及所述目标配置信息;第一存储单元,用于存储临时数据,其中,所述临时数据为在所述第一处理器确定所述主主控设备发送故障时到所述第一处理器加载所述系统文件、所述应用信息以及所述目标配置信息完成时所产生的文件。在本实施例中,当备主控设备接管业务后,将用户数据临时存储至板载存储设备上,即第一存储单元中。等待备主板完成配置信息加载之后,将数据转移至背板大容量的存储设备上。因为板载的存储容量有限,且会间隔覆盖,因此,等待备主板完成配置信息加载之后,将数据转移至背板大容量的存储设备中,可以解决主备板切换期间丢失用户存储的实时性要求高的数据,比如录像信息。其中,第一处理器可以为中央处理器CPU。双主控设备主主控板与备主控板工作示意图可参见附图2。In an exemplary embodiment, the standby master control device includes: a first processor, configured to acquire the target configuration information from the storage device, the system file and application information, loading the system file, the application information and the target configuration information; the first storage unit is used to store temporary data, wherein the temporary data is determined by the first processor The main control device sends the file generated when the system file, the application information, and the target configuration information is loaded to the first processor when the failure is complete. In this embodiment, after the standby master control device takes over the service, it temporarily stores the user data on the onboard storage device, that is, in the first storage unit. After waiting for the standby motherboard to finish loading the configuration information, transfer the data to the large-capacity storage device on the backplane. Because the onboard storage capacity is limited and will be overwritten at intervals, after waiting for the standby mainboard to finish loading the configuration information, transfer the data to the large-capacity storage device on the backplane, which can solve the problem of losing the real-time performance of user storage during the switchover of the active and standby boards Data with high requirements, such as video information. Wherein, the first processor may be a central processing unit CPU. For the working schematic diagram of the main main control board and the standby main control board of the dual main control equipment, please refer to attached drawing 2.

在一个示例性实施例中,所述存储设备包括:第一收发接口,所述存储设备通过所述第一收发接口与所述主主控设备连接;第二收发接收,所述存储设备通过所述第二收发接口与所述备主控设备连接。在本实施例中,第一收发接口和第二收发接口可以是SATA或者PCIE物理收发器。双主控设备主主控板与备主控板工作示意图可参见附图3。In an exemplary embodiment, the storage device includes: a first transceiver interface, the storage device is connected to the main control device through the first transceiver interface; a second transceiver, the storage device connects to the main control device through the The second transceiver interface is connected to the standby master control device. In this embodiment, the first transceiver interface and the second transceiver interface may be SATA or PCIE physical transceivers. For the working schematic diagram of the main main control board and the standby main control board of dual main control equipment, please refer to Figure 3.

在一个示例性实施例中,所述第一收发接口包括SATA接口或PCIE接口,所述第二收发接口包括SATA接口或PCIE接口。在本实施例中,第一收发接口和第二收发接口可以相同,也可以不同,即第一收发接口和第二收发接口可以为SATA接口,第一收发接口和第二收发接口还可以是PCIE接口。第一收发接口还可以是SATA接口,第二收发接口还可以是PCIE接口。或者第一收发接口是PCIE接口,第二收发接口可以是SATA接口。双主控设备正常工作时,主主控设备负责所有业务有序运行。主主控板与备主控板分别与背板上共用存储设备通过SATA或者PCIE通信。此时共用存储设备的控制器拥有2个独立的物理收发接口,存储设备内部结构示意图可参见附图4,如图4所示,其中,物理收发器1与物理收发器2可以独立工作相互不影响,可以理解为一个支持双主机的存储设备。In an exemplary embodiment, the first transceiver interface includes a SATA interface or a PCIE interface, and the second transceiver interface includes a SATA interface or a PCIE interface. In this embodiment, the first transceiver interface and the second transceiver interface can be the same or different, that is, the first transceiver interface and the second transceiver interface can be SATA interfaces, and the first transceiver interface and the second transceiver interface can also be PCIE interfaces. interface. The first transceiver interface may also be a SATA interface, and the second transceiver interface may also be a PCIE interface. Or the first transceiver interface is a PCIE interface, and the second transceiver interface may be a SATA interface. When the dual master control devices are working normally, the master master control device is responsible for the orderly operation of all services. The main main control board and the standby main control board communicate with the shared storage device on the backplane through SATA or PCIE respectively. At this time, the controller of the shared storage device has two independent physical transceiver interfaces. The schematic diagram of the internal structure of the storage device can be found in Figure 4, as shown in Figure 4, wherein the physical transceiver 1 and the physical transceiver 2 can work independently. The impact can be understood as a storage device that supports dual hosts.

在上述实施例中,主主控板工作时从共用存储设备加载系统与应用信息,同时实时更新用户的配置信息到共用的存储设备当中。当主主控板出现问题的时候,备主控板将快速加载共用存储的系统与应用信息、用户最新配置信息并获取主主控板的任务信息,然后继续工作(此时共用存储设备拥有2个独立的物理收发接口,彼此工作互不干扰)。最终实现主主控板与备用主控板无缝切换,同时因使用了共用存储设备设计,不仅降低整机成本(通常主主控板与备用主控板都有独立存储设备,即可以节省一块存储设备),还降低整机功耗并延长备主控板使用寿命。备主控板与主主控板无需实时同步配置以及任务信息,备主控板可以长时间处于低功耗状态。In the above embodiments, the main control board loads system and application information from the shared storage device when it is working, and at the same time updates user configuration information to the shared storage device in real time. When there is a problem with the main main control board, the standby main control board will quickly load the system and application information of the shared storage, the latest configuration information of the user and obtain the task information of the main main control board, and then continue to work (at this time, the shared storage device has 2 Independent physical transceiver interface, work without interfering with each other). Finally, the seamless switching between the main main control board and the standby main control board is realized. At the same time, due to the use of the shared storage device design, it not only reduces the cost of the whole machine (usually the main main control board and the standby main control board have independent storage devices, which can save one storage device), it also reduces the power consumption of the whole machine and prolongs the service life of the standby main control board. The standby main control board and the main main control board do not need to synchronize configuration and task information in real time, and the standby main control board can be in a low power consumption state for a long time.

本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图5是本发明实施例的一种控制方法的移动终端的硬件结构框图。如图5所示,移动终端可以包括一个或多个(图5中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,其中,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图5所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图5中所示更多或者更少的组件,或者具有与图5所示不同的配置。The method embodiments provided in the embodiments of the present application may be executed in mobile terminals, computer terminals or similar computing devices. Taking running on a mobile terminal as an example, FIG. 5 is a block diagram of a hardware structure of a mobile terminal according to a control method according to an embodiment of the present invention. As shown in Figure 5, the mobile terminal may include one or more (only one is shown in Figure 5) processors 102 (processor 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and a memory 104 for storing data, wherein the above-mentioned mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. Those skilled in the art can understand that the structure shown in FIG. 5 is only for illustration, and it does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG. 5, or have a different configuration from that shown in FIG.

存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的控制方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the control method in the embodiment of the present invention, and the processor 102 executes various programs by running the computer programs stored in the memory 104 Functional application and data processing are to realize the above-mentioned method. The 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 a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is used to receive or transmit data via a network. The specific example of the above network may include a wireless network provided by the communication provider of the mobile terminal. In one example, the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.

在本实施例中提供了一种控制方法,应用于上述实施例中的备主控设备中,图6是根据本发明实施例的控制方法的流程图,如图6所示,该流程包括如下步骤:In this embodiment, a control method is provided, which is applied to the standby master control device in the above embodiment. FIG. 6 is a flow chart of the control method according to the embodiment of the present invention. As shown in FIG. 6, the process includes the following step:

步骤S602,确定所述主主控设备的第一状态信息;Step S602, determining the first state information of the master and control device;

步骤S604,在所述第一状态信息指示所述主主控设备发生故障的情况下,从所述存储设备获取所述目标配置信息、系统文件以及应用信息,其中,所述目标配置信息为所述主主控设备实时存储至所述存储设备中的信息;Step S604, if the first state information indicates that the master and control device fails, obtain the target configuration information, system files and application information from the storage device, wherein the target configuration information is the the information stored in the storage device in real time by the main control device;

步骤S606,加载所述系统文件、所述应用信息以及所述目标配置信息。Step S606, loading the system file, the application information and the target configuration information.

在上述实施例中,第一状态信息可以包括发生故障状态和正常状态。双主控设备上电后,进入正常工作模式;主主控板从共用存储设备加载系统与应用信息(主主控板默认通过高速选通开关与共用存储连接),并且实时更新用户最新的目标配置信息到共用的存储设备中。当备主控板超过一定时间t2都未收到主主控板的心跳信号。则默认主主控板出现故障。此时,高速选通开通断开主主控板与共用存储的连接;同时选通备主控板与共用存储体的连接。同时备主控板退出低功耗模式,并且存储用户数据至板载存储设备中。备主控板从共用存储加载系统和业务信息,同时快速加载用户最新配置信息和任务信息。此时,备主控板主动进入业务模式。然后备主板将板载存储的数据转移至背板大容量存储中,解决主备切换期间实时数据存储丢失问题。此时备主控板已经接管了所有业务信息,即无缝完成了主备切换。In the above embodiments, the first state information may include a fault state and a normal state. After the dual main control device is powered on, it enters the normal working mode; the main main control board loads system and application information from the shared storage device (the main main control board is connected to the shared storage through a high-speed strobe switch by default), and updates the user's latest target in real time configuration information to a shared storage device. The standby main control board does not receive the heartbeat signal from the main main control board for a certain period of time t2. Then the main main control board is faulty by default. At this time, the high-speed strobe is turned on to disconnect the connection between the main control board and the shared storage; at the same time, the connection between the standby main control board and the shared storage is selected. At the same time, the standby main control board exits the low power consumption mode, and stores user data in the onboard storage device. The standby main control board loads system and business information from the shared storage, and at the same time quickly loads the latest user configuration information and task information. At this point, the standby main control board actively enters the service mode. Then the standby mainboard transfers the data stored onboard to the large-capacity storage on the backplane to solve the problem of real-time data storage loss during active-standby switchover. At this time, the standby main control board has taken over all business information, that is, the active/standby switchover has been seamlessly completed.

通过本发明,双控设备包括主主控设备、备主控设备以及存储设备,主主控设备与存储设备连接,用于加载目标配置信息,并实时将目标配置信息存储到存储设备中,备主控设备与主主控设备连接,用于在确定主主控设备发生故障的情况下,与存储设备连接,从存储设备中获取目标配置信息、系统文件以及应用信息,并加载系统文件、应用信息以及目标配置信息。实现了当主主控设备故障时,备主控设备可以获取到最新的目标配置信息,并接替主主控设备的工作,因此,可以解决相关技术中存在的无法无缝切换主主控和备主控问题,达到无缝切换主主控设备和备主控设备的效果。According to the present invention, the dual-control device includes a main and main control device, a backup and main control device, and a storage device. The main control device is connected to the main control device, which is used to connect to the storage device when the main control device is determined to be faulty, obtain target configuration information, system files and application information from the storage device, and load system files and applications. information and target configuration information. It is realized that when the main control device fails, the standby main control device can obtain the latest target configuration information and take over the work of the main control device. Therefore, it can solve the problem of the inability to seamlessly switch between the main control device and the standby device in related technologies. control problems, to achieve the effect of seamlessly switching the master and master control devices and standby master control devices.

在一个示例性实施例中,确定所述主主控设备的第一状态信息包括:在接收所述主主控设备按照预定时间周期发送的心跳信号的情况下,确定所述第一状态信息为正常状态;在超过预定时间周期未接收到所述主主控设备发送的心跳信号的情况下,确定所述第一状态信息为发生故障状态。在本实施例中,当主主控板正常工作期间,需要按照特定间隔,即预定时间周期的时间t1给备主控板发送心跳信号。告知备主控板整机正常工作,此时备主控板处于低功耗状态。当主主控设备超过预定时间未发送心跳信号的情况下,确定主主控设备处于发送故障状态。In an exemplary embodiment, determining the first status information of the master and control device includes: determining that the first status information is Normal state: when the heartbeat signal sent by the main control device is not received for more than a predetermined time period, it is determined that the first state information is a fault state. In this embodiment, when the main main control board is working normally, it needs to send a heartbeat signal to the standby main control board at a specific interval, that is, time t1 of a predetermined time period. Inform the standby main control board that the whole machine is working normally, and the standby main control board is in a low power consumption state. When the master master control device does not send a heartbeat signal within a predetermined time, it is determined that the master master control device is in a sending failure state.

在一个示例性实施例中,在接收所述主主控设备按照预定时间周期发送的心跳信号之后,所述方法还包括:向所述主主控设备发送反馈信号,以指示所述主主控设备基于所述反馈信号确定所述备主控设备的第二状态信息,并在所述第二状态信息指示所述备主控设备发生故障或不存在的情况下,缩短所述预定时间周期。在本实施例中,备主控板收到心跳信号之后,需要返回一个确定信息,即反馈信号,告知主主控板备主控板功能性能正常。确保主备之间通信是否正常。若主主控板与备主控板的数据通讯的间隔大于预设时间,则增加心跳信号发送频率。例如,主主控板在X秒内未接收到备主控板的确定信号,则认为主备之间暂未建立通信,则需要增加发送新跳信号的频率。若主主控板与备主控板的数据通讯的间隔小于预设时间周期,则保持心跳信号发送频率不变。In an exemplary embodiment, after receiving the heartbeat signal sent by the main control device according to a predetermined time period, the method further includes: sending a feedback signal to the main control device to indicate that the main control device The device determines second state information of the standby master control device based on the feedback signal, and shortens the predetermined time period when the second state information indicates that the standby master control device fails or does not exist. In this embodiment, after receiving the heartbeat signal, the standby main control board needs to return a confirmation message, that is, a feedback signal, to inform the main main control board that the function and performance of the standby main control board are normal. Make sure that the communication between the master and backup is normal. If the data communication interval between the main main control board and the standby main control board is greater than the preset time, then increase the heartbeat signal sending frequency. For example, if the main main control board does not receive a confirmation signal from the standby main control board within X seconds, it is considered that the communication between the main and standby main control boards has not been established yet, and the frequency of sending new jump signals needs to be increased. If the data communication interval between the main main control board and the standby main control board is less than a preset time period, the sending frequency of the heartbeat signal remains unchanged.

在一个示例性实施例中,加载所述目标配置信息包括:确定所述目标配置信息与已加载的初始配置信息是否相同;在所述初始配置信息与所述目标配置信息不同的情况下,加载所述目标配置信息。在本实施例中,备主控设备加载目标配置信息时,备主控设备定时依次逐条读取当前共用的存储设备中的目标配置文件中的所有配置命令,并与已经加载的初始配置信息的全部配置命令进行比较。若存在配置信息在当前共用的存储设备中的配置文件与已经加载的配置文件中同时存在,则不作处理;若存在配置信息在当前共用存储设备中的配置文件中存在,但在已经加载的配置文件中不存在,则执行最新配置命令。In an exemplary embodiment, loading the target configuration information includes: determining whether the target configuration information is the same as the loaded initial configuration information; if the initial configuration information is different from the target configuration information, loading The target configuration information. In this embodiment, when the standby master control device loads the target configuration information, the standby master control device regularly reads all the configuration commands in the target configuration file in the currently shared storage device one by one, and compares them with the loaded initial configuration information. All configuration commands are compared. If there is configuration information in the configuration file in the current shared storage device and the configuration file that has been loaded at the same time, it will not be processed; if there is configuration information in the configuration file in the current shared storage device, but in the configuration file that has been loaded If the file does not exist, execute the latest configuration command.

在一个示例性实施例中,在加载所述系统文件、所述应用信息以及所述目标配置信息之后,所述方法还包括:在所述主主控设备恢复正常的情况下,控制所述主主控设备进入低功耗状态,并将所述主主控设备确定为备主控设备。在本实施例中,当主主控设备故障排除后,则当备主控设备使用,即主备角色切换。其中,控制方法流程图一可参见附图7。In an exemplary embodiment, after loading the system file, the application information, and the target configuration information, the method further includes: when the master and control device returns to normal, control the master The master control device enters a low power consumption state, and determines the master master control device as a standby master control device. In this embodiment, after the failure of the master and master control device is eliminated, it will be used as the standby master control device, that is, the master and slave roles are switched. Wherein, the flow chart 1 of the control method can be referred to FIG. 7 .

在本实施例中提供了一种控制方法,应用于上述实施例中的主主控设备中,图8是根据本发明实施例的控制方法的流程图,如图8所示,该流程包括如下步骤:In this embodiment, a control method is provided, which is applied to the main control device in the above-mentioned embodiments. FIG. 8 is a flow chart of the control method according to the embodiment of the present invention. As shown in FIG. 8, the process includes the following step:

步骤S802,接收目标配置信息,并实时将所述目标配置信息存储至所述存储设备中;Step S802, receiving target configuration information, and storing the target configuration information in the storage device in real time;

步骤S804,向所述备主控设备发送心跳信号,以指示所述备主控设备基于所述心跳信号确定所述主主控设备的第一状态信息,并在所述第一状态信息指示所述主主控设备发生故障的情况下,从所述存储设备获取所述目标配置信息、系统文件以及应用信息,加载所述系统文件、所述应用信息以及所述目标配置信息。Step S804, sending a heartbeat signal to the standby master control device to instruct the standby master control device to determine first state information of the master master control device based on the heartbeat signal, and to indicate the first state information of the master master control device in the first state information. In the event that the main control device fails, acquire the target configuration information, system files and application information from the storage device, and load the system files, the application information and the target configuration information.

在上述实施例中,第一状态信息可以包括发生故障状态和正常状态。双主控设备上电后,进入正常工作模式;主主控板从共用存储设备加载系统与应用信息(主主控板默认通过高速选通开关与共用存储连接),并且实时更新用户最新的目标配置信息到共用的存储设备中。当备主控板超过一定时间t2都未收到主主控板的心跳信号。则默认主主控板出现故障。此时,高速选通开通断开主主控板与共用存储的连接;同时选通备主控板与共用存储体的连接。同时备主控板退出低功耗模式,并且存储用户数据至板载存储设备中。备主控板从共用存储加载系统和业务信息,同时快速加载用户最新配置信息和任务信息。此时,备主控板主动进入业务模式。然后备主板将板载存储的数据转移至背板大容量存储中,解决主备切换期间实时数据存储丢失问题。此时备主控板已经接管了所有业务信息,即无缝完成了主备切换。其中,控制方法流程图二可参见附图9。In the above embodiments, the first state information may include a fault state and a normal state. After the dual main control device is powered on, it enters the normal working mode; the main main control board loads system and application information from the shared storage device (the main main control board is connected to the shared storage through a high-speed strobe switch by default), and updates the user's latest target in real time configuration information to a shared storage device. The standby main control board does not receive the heartbeat signal from the main main control board for a certain period of time t2. Then the main main control board is faulty by default. At this time, the high-speed strobe is turned on to disconnect the connection between the main control board and the shared storage; at the same time, the connection between the standby main control board and the shared storage is selected. At the same time, the standby main control board exits the low power consumption mode, and stores user data in the onboard storage device. The standby main control board loads system and business information from the shared storage, and at the same time quickly loads the latest user configuration information and task information. At this point, the standby main control board actively enters the service mode. Then the standby mainboard transfers the data stored onboard to the large-capacity storage on the backplane to solve the problem of real-time data storage loss during active-standby switchover. At this time, the standby main control board has taken over all business information, that is, the active/standby switchover has been seamlessly completed. Wherein, the flowchart 2 of the control method can refer to the accompanying drawing 9 .

通过本发明,双控设备包括主主控设备、备主控设备以及存储设备,主主控设备与存储设备连接,用于加载目标配置信息,并实时将目标配置信息存储到存储设备中,备主控设备与主主控设备连接,用于在确定主主控设备发生故障的情况下,与存储设备连接,从存储设备中获取目标配置信息、系统文件以及应用信息,并加载系统文件、应用信息以及目标配置信息。实现了当主主控设备故障时,备主控设备可以获取到最新的目标配置信息,并接替主主控设备的工作,因此,可以解决相关技术中存在的无法无缝切换主主控和备主控问题,达到无缝切换主主控设备和备主控设备的效果。According to the present invention, the dual-control device includes a main and main control device, a backup and main control device, and a storage device. The main control device is connected to the main control device, which is used to connect to the storage device when the main control device is determined to be faulty, obtain target configuration information, system files and application information from the storage device, and load system files and applications. information and target configuration information. It is realized that when the main control device fails, the standby main control device can obtain the latest target configuration information and take over the work of the main control device. Therefore, it can solve the problem of the inability to seamlessly switch between the main control device and the standby device in related technologies. control problems, to achieve the effect of seamlessly switching the master and master control devices and standby master control devices.

在一个示例性实施例中,在向所述备主控设备发送心跳信号之后,所述方法还包括:在超过第一预定时间未收到所述备主控设备发送的反馈信号的情况下,确定所述备主控设备的第二状态信息为发生故障或不存在;缩短向所备主控设备发送所述心跳信号的预定时间周期;在超过第二预定时间仍未收到所述备主控设备发送的反馈信号的情况下,执行提示操作。在本实施例中,当主主控板正常工作期间,需要按照特定间隔的时间t1给备主控板发送心跳信号。告知备主控板整机正常工作,此时备主控板处于低功耗状态。备主控板收到心跳信号之后,需要返回一个确定信息,告知主主控板备主控板功能性能正常。确保主备之间通信是否正常。若主主控板与备主控板的数据通讯的间隔大于预设时间,则增加心跳信号发送频率。例如,主主控板在X秒内未接收到备主控板的确定信号,则认为主备之间暂未建立通信,则需要增加发送新跳信号的频率。若主主控板与备主控板的数据通讯的间隔小于预设时间,则保持心跳信号发送频率不变。若当主主控板超过一定的时间阈值都无法与备主控板建立通信,则认为备主板不存在或者是故障,提醒用户确认。当备主控板超过一定时间t2都未收到主主控板的心跳信号。则默认主主控板出现故障。此时,备主控板退出低功耗模式,并且存储用户数据至板载存储设备中。In an exemplary embodiment, after sending the heartbeat signal to the standby master control device, the method further includes: if no feedback signal sent by the standby master control device is received within a first predetermined time, Determining that the second status information of the standby master control device is failure or non-existence; shortening the predetermined time period for sending the heartbeat signal to the standby master control device; and not receiving the standby master after the second predetermined time In the case of feedback signal sent by the control device, perform prompt operation. In this embodiment, when the main main control board is working normally, it needs to send a heartbeat signal to the standby main control board at a specific interval time t1. Inform the standby main control board that the whole machine is working normally, and the standby main control board is in a low power consumption state. After the standby main control board receives the heartbeat signal, it needs to return a confirmation message to inform the main main control board that the function and performance of the standby main control board are normal. Make sure that the communication between the master and backup is normal. If the data communication interval between the main main control board and the standby main control board is greater than the preset time, then increase the heartbeat signal sending frequency. For example, if the main main control board does not receive a confirmation signal from the standby main control board within X seconds, it is considered that the communication between the main and standby main control boards has not been established yet, and the frequency of sending new jump signals needs to be increased. If the data communication interval between the main main control board and the standby main control board is less than the preset time, keep the sending frequency of the heartbeat signal unchanged. If the main main control board fails to establish communication with the standby main control board after a certain time threshold, it is considered that the standby main control board does not exist or is faulty, and the user is reminded to confirm. The standby main control board does not receive the heartbeat signal from the main main control board for a certain period of time t2. Then the main main control board is faulty by default. At this point, the standby main control board exits the low power consumption mode, and stores user data in the onboard storage device.

在上述实施例中,备主控板从共用存储加载系统和业务信息,同时快速加载用户最新配置信息和任务信息。此时,备主控板主动进入业务模式。然后备主板将板载存储的数据转移至背板大容量存储中,解决主备切换期间实时数据存储丢失问题。此时备主控板已经接管了所有业务信息,即无缝完成了主备切换。当主主控板故障排除后,则当备主控板使用。即主备角色切换。In the above embodiment, the standby main control board loads system and service information from the shared storage, and at the same time quickly loads the latest configuration information and task information of the user. At this point, the standby main control board actively enters the service mode. Then the standby mainboard transfers the data stored onboard to the large-capacity storage on the backplane to solve the problem of real-time data storage loss during active-standby switchover. At this time, the standby main control board has taken over all business information, that is, the active/standby switchover has been seamlessly completed. When the failure of the main main control board is eliminated, it will be used as the standby main control board. That is, active and standby role switching.

在前述实施例中,双主控设备主主控板与备主控板采用共用存储设备设计,主要装置包含主主控板、备主控板、高速选通开关、共用存储设备,存储设备可以是固定硬盘、机械硬盘或者其他类型存储设备。使得主备主板之间系统业务信息和配置信息实时共享。实现主备主板无缝切换,并不影响业务运行。不仅降低了整机BOM成本(节省一块存储设备),还降低了主控板的设计难度。双主控设备正常工作时,主主控板通过高速选通开关与存储设备连接;主主控板出现故障时,备主控板与存储设备连接,换成主备无缝切换。存储设备内部容量可以是主主控板存储空间与备主控板存储空间,相互独立相互备份;也可以是不分区共同使用。备主控板无需实时接收主主控板的配置信息,备主控板可以长时间处于低功耗状态,降低了整机功耗。主主控板需要实时保存配置信息至共用存储设备。主主控板与备主控板通过心跳信号唤醒。共用存储设备拥有2个物理接口,可以分别都是SATA接口或者都是PCIE接口,也可以是一个SATA接口一个PCIE接口。In the aforementioned embodiments, the main main control board and the standby main control board of the dual main control equipment adopt a shared storage device design, and the main devices include the main main control board, the standby main control board, high-speed gating switches, and shared storage devices. It is a fixed hard disk, mechanical hard disk or other types of storage devices. Real-time sharing of system business information and configuration information between the active and standby motherboards. Realize the seamless switching of main board and standby board without affecting business operation. It not only reduces the BOM cost of the whole machine (saving a storage device), but also reduces the design difficulty of the main control board. When the dual main control equipment is working normally, the main main control board is connected to the storage device through the high-speed strobe switch; when the main main control board fails, the standby main control board is connected to the storage device, and the master and backup seamlessly switch. The internal capacity of the storage device can be the storage space of the main main control board and the storage space of the standby main control board, which are independent and mutually backed up; or can be shared without partitions. The standby main control board does not need to receive the configuration information of the main main control board in real time, and the standby main control board can be in a low power consumption state for a long time, reducing the power consumption of the whole machine. The main main control board needs to save the configuration information to the shared storage device in real time. The main main control board and the standby main control board wake up through the heartbeat signal. The shared storage device has two physical interfaces, which can be both SATA interfaces or both PCIE interfaces, or one SATA interface and one PCIE interface.

本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.

在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.

本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.

在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.

本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details will not be repeated here in this embodiment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims (14)

1.一种双控设备,其特征在于,包括:1. A dual control device, characterized in that, comprising: 主主控设备,与存储设备连接,用于加载目标配置信息,并实时将所述目标配置信息存储到所述存储设备中;The main control device is connected to the storage device, and is used to load the target configuration information, and store the target configuration information in the storage device in real time; 备主控设备,与所述主主控设备连接,用于在基于所述主主控设备发送的心跳信号确定所述主主控设备发生故障的情况下,退出低功耗状态,以与所述存储设备连接,从所述存储设备中获取所述目标配置信息、系统文件以及应用信息,加载所述系统文件、所述应用信息,以及所述目标配置信息;A standby master control device, connected to the master master control device, is used to exit the low power consumption state when it is determined that the master master control device fails based on the heartbeat signal sent by the master master control device, so as to communicate with the master master control device connecting to the storage device, obtaining the target configuration information, system files, and application information from the storage device, and loading the system files, the application information, and the target configuration information; 所述存储设备,用于存储所述系统文件、所述应用信息以及所述目标配置信息。The storage device is used to store the system files, the application information and the target configuration information. 2.根据权利要求1所述的双控设备,其特征在于,所述双控设备还包括:2. The dual-control device according to claim 1, wherein the dual-control device further comprises: 目标开关,所述目标开关的第一端与所述存储设备连接,第二端与所述主主控设备连接,在所述主主控设备发生故障的情况下,第三端与所述备主控设备连接。A target switch, the first end of the target switch is connected to the storage device, the second end is connected to the main control device, and when the main control device fails, the third end is connected to the backup Master device connection. 3.根据权利要求1所述的双控设备,其特征在于,所述备主控设备包括:3. The dual-control device according to claim 1, wherein the standby-master control device comprises: 第一处理器,用于在所述主主控设备发生故障的情况下,从所述存储设备中获取所述目标配置信息、系统文件以及应用信息,加载所述系统文件、所述应用信息以及所述目标配置信息;The first processor is configured to obtain the target configuration information, system files, and application information from the storage device, and load the system files, the application information, and the said target configuration information; 第一存储单元,用于存储临时数据,其中,所述临时数据为在所述第一处理器确定所述主主控设备发送故障时到所述第一处理器加载所述系统文件、所述应用信息以及所述目标配置信息完成时所产生的文件。The first storage unit is configured to store temporary data, wherein the temporary data is to load the system file, the The file generated when the application information and the target configuration information are completed. 4.根据权利要求1所述的双控设备,其特征在于,所述存储设备包括:4. The dual-control device according to claim 1, wherein the storage device comprises: 第一收发接口,所述存储设备通过所述第一收发接口与所述主主控设备连接;a first transceiver interface, the storage device is connected to the main control device through the first transceiver interface; 第二收发接收,所述存储设备通过所述第二收发接口与所述备主控设备连接。For the second transceiver, the storage device is connected to the standby master control device through the second transceiver interface. 5.根据权利要求4所述的双控设备,其特征在于,所述第一收发接口包括SATA接口或PCIE接口,所述第二收发接口包括SATA接口或PCIE接口。5. The dual-control device according to claim 4, wherein the first transceiver interface comprises a SATA interface or a PCIE interface, and the second transceiver interface comprises a SATA interface or a PCIE interface. 6.一种控制方法,其特征在于,应用于权利要求1至5任一项所述的备主控设备中,包括:6. A control method, characterized in that it is applied to the standby master control device according to any one of claims 1 to 5, comprising: 确定所述主主控设备的第一状态信息;determining the first status information of the master and control device; 在所述第一状态信息指示所述主主控设备发生故障的情况下,从所述存储设备获取所述目标配置信息、系统文件以及应用信息,其中,所述目标配置信息为所述主主控设备实时存储至所述存储设备中的信息;If the first state information indicates that the master and control device fails, acquire the target configuration information, system files, and application information from the storage device, where the target configuration information is the master The information stored in the storage device by the control device in real time; 加载所述系统文件、所述应用信息以及所述目标配置信息。Load the system file, the application information and the target configuration information. 7.根据权利要求6所述的方法,其特征在于,确定所述主主控设备的第一状态信息包括:7. The method according to claim 6, wherein determining the first status information of the master master control device comprises: 在接收所述主主控设备按照预定时间周期发送的心跳信号的情况下,确定所述第一状态信息为正常状态;Determining that the first state information is in a normal state when receiving a heartbeat signal sent by the master and control device according to a predetermined time period; 在超过预定时间周期未接收到所述主主控设备发送的心跳信号的情况下,确定所述第一状态信息为发生故障状态。If the heartbeat signal sent by the main control device is not received for more than a predetermined time period, it is determined that the first status information is a failure status. 8.根据权利要求7所述的方法,其特征在于,在接收所述主主控设备按照预定时间周期发送的心跳信号之后,所述方法还包括:8. The method according to claim 7, characterized in that, after receiving the heartbeat signal sent by the main control device according to a predetermined time period, the method further comprises: 向所述主主控设备发送反馈信号,以指示所述主主控设备基于所述反馈信号确定所述备主控设备的第二状态信息,并在所述第二状态信息指示所述备主控设备发生故障或不存在的情况下,缩短所述预定时间周期。sending a feedback signal to the active master control device to instruct the master master control device to determine the second state information of the standby master control device based on the feedback signal, and to indicate the standby master control device in the second state information If the control device fails or does not exist, the predetermined time period is shortened. 9.根据权利要求6所述的方法,其特征在于,加载所述目标配置信息包括:9. The method according to claim 6, wherein loading the target configuration information comprises: 确定所述目标配置信息与已加载的初始配置信息是否相同;determining whether the target configuration information is the same as the loaded initial configuration information; 在所述初始配置信息与所述目标配置信息不同的情况下,加载所述目标配置信息。If the initial configuration information is different from the target configuration information, load the target configuration information. 10.根据权利要求6所述的方法,其特征在于,在加载所述系统文件、所述应用信息以及所述目标配置信息之后,所述方法还包括:10. The method according to claim 6, wherein after loading the system file, the application information and the target configuration information, the method further comprises: 在所述主主控设备恢复正常的情况下,控制所述主主控设备进入低功耗状态,并将所述主主控设备确定为备主控设备。When the master and control device returns to normal, control the master and control device to enter a low power consumption state, and determine the master and control device as a standby master and control device. 11.一种控制方法,其特征在于,应用于权利要求1至5任一项所述的主主控设备中,包括:11. A control method, characterized in that it is applied to the main control device according to any one of claims 1 to 5, comprising: 接收目标配置信息,并实时将所述目标配置信息存储至所述存储设备中;receiving target configuration information, and storing the target configuration information in the storage device in real time; 向所述备主控设备发送心跳信号,以指示所述备主控设备基于所述心跳信号确定所述主主控设备的第一状态信息,并在所述第一状态信息指示所述主主控设备发生故障的情况下,从所述存储设备获取所述目标配置信息、系统文件以及应用信息,加载所述系统文件、所述应用信息以及所述目标配置信息。Sending a heartbeat signal to the standby master control device to instruct the standby master control device to determine the first state information of the master master control device based on the heartbeat signal, and to indicate the active master control device in the first state information If the control device fails, obtain the target configuration information, system files and application information from the storage device, and load the system files, the application information and the target configuration information. 12.根据权利要求10所述的方法,其特征在于,在向所述备主控设备发送心跳信号之后,所述方法还包括:12. The method according to claim 10, characterized in that, after sending a heartbeat signal to the standby master control device, the method further comprises: 在超过第一预定时间未收到所述备主控设备发送的反馈信号的情况下,确定所述备主控设备的第二状态信息为发生故障或不存在;If the feedback signal sent by the standby master control device is not received within the first predetermined time, determine that the second status information of the standby master control device is failure or non-existent; 缩短向所备主控设备发送所述心跳信号的预定时间周期;shortening the predetermined time period for sending the heartbeat signal to the prepared main control device; 在超过第二预定时间仍未收到所述备主控设备发送的反馈信号的情况下,执行提示操作。If the feedback signal sent by the standby master control device is not received within the second predetermined time, a prompt operation is performed. 13.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求6至10任一项中所述的方法,或者执行权利要求11至12任一项中所述的方法。13. A computer-readable storage medium, characterized in that, a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of claims 6 to 10 when running. described method, or perform the method described in any one of claims 11 to 12. 14.一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求6至10任一项中所述的方法,或者执行权利要求11至12任一项中所述的方法。14. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any one of claims 6 to 10 The method described in, or carry out the method described in any one of claims 11 to 12.
CN202211371977.5A 2022-11-03 2022-11-03 Dual-control device, control method, storage medium and electronic device Pending CN115834446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211371977.5A CN115834446A (en) 2022-11-03 2022-11-03 Dual-control device, control method, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211371977.5A CN115834446A (en) 2022-11-03 2022-11-03 Dual-control device, control method, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115834446A true CN115834446A (en) 2023-03-21

Family

ID=85526467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211371977.5A Pending CN115834446A (en) 2022-11-03 2022-11-03 Dual-control device, control method, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115834446A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116343503A (en) * 2023-04-07 2023-06-27 安徽科力信息产业有限责任公司 Signal control system, method, electronic device and storage medium for seamless switching
CN118519790A (en) * 2024-07-24 2024-08-20 浙江大华技术股份有限公司 Service processing method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733684A (en) * 2017-08-31 2018-02-23 北京宇航系统工程研究所 A kind of multi-controller computing redundancy cluster based on Loongson processor
WO2021012169A1 (en) * 2019-07-22 2021-01-28 华为技术有限公司 Method of improving reliability of storage system, and related apparatus
CN115048048A (en) * 2022-05-31 2022-09-13 浙江大华技术股份有限公司 Data storage system, data storage method, storage medium, and electronic device
CN115145768A (en) * 2022-06-20 2022-10-04 北京计算机技术及应用研究所 Four-control storage data access system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733684A (en) * 2017-08-31 2018-02-23 北京宇航系统工程研究所 A kind of multi-controller computing redundancy cluster based on Loongson processor
WO2021012169A1 (en) * 2019-07-22 2021-01-28 华为技术有限公司 Method of improving reliability of storage system, and related apparatus
CN115048048A (en) * 2022-05-31 2022-09-13 浙江大华技术股份有限公司 Data storage system, data storage method, storage medium, and electronic device
CN115145768A (en) * 2022-06-20 2022-10-04 北京计算机技术及应用研究所 Four-control storage data access system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李善荣等: "一种基于自主可控的双控存储设计", 《计算机应用》, 31 December 2021 (2021-12-31), pages 150 - 152 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116343503A (en) * 2023-04-07 2023-06-27 安徽科力信息产业有限责任公司 Signal control system, method, electronic device and storage medium for seamless switching
CN118519790A (en) * 2024-07-24 2024-08-20 浙江大华技术股份有限公司 Service processing method and electronic equipment

Similar Documents

Publication Publication Date Title
CN115834446A (en) Dual-control device, control method, storage medium and electronic device
CN110275680B (en) A dual-control dual-active storage system
CN101645915B (en) Disk array host channel daughter card, on-line switching system and switching method thereof
EP2608049B1 (en) Control system and relay apparatus
WO2018010501A1 (en) Global transaction identifier (gtid) synchronization method, apparatus and system, and storage medium
US12229025B2 (en) Data storage method and device
US12066961B2 (en) Method for improving reliability of storage system, and related apparatus
CN107528710A (en) Switching method, equipment and the system of raft distributed system leader nodes
CN100428155C (en) How to upgrade communication equipment
US20080040552A1 (en) Duplex system and processor switching method
CN101776983A (en) Synchronization method of information of double controllers in disk array and disk array system
CN111767244A (en) Dual-redundancy computer equipment based on domestic Loongson platform
CN116881053B (en) Data processing method, exchange board, data processing system and data processing device
CN111400285A (en) MySQ L data fragment processing method, apparatus, computer device and readable storage medium
CN112612653B (en) A business recovery method, device, arbitration server and storage system
US11604635B2 (en) Online program updating method
CN212541329U (en) Dual-redundancy computer equipment based on domestic Loongson platform
US20250077100A1 (en) Control method, storage apparatus, and electronic device
CN114337944A (en) A system-level active-standby redundancy general control method
CN204406385U (en) The management devices of computer system
CN118606117A (en) A four-controller interconnected mirroring system, data transmission method, device and medium
CN116795195A (en) Main board system with multiple CPU modules, control method of main board and computing equipment
CN116150068A (en) Extended chip management method, device, storage medium and electronic equipment
JP7556593B1 (en) Control system, control device, control method, and program
CN117112223A (en) Distributed system configuration distribution 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