Control platform downtime processing method and device, server and medium
By using Bluetooth modules to obtain and execute firmware burning programs in the server, the problem of control platform downtime is solved, and system recovery and firmware upgrades are achieved in special cases.
Patent Information
- Application Number
- CN202510120706.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-04-18
AI Technical Summary
The prior art is difficult to effectively deal with the control platform downtime problem when the server operating system is not installed or the control platform chip cannot be disassembled.
Get the firmware burn program of the control platform through the Bluetooth module in the server, and store and execute the program in the Bluetooth module to refresh the firmware of the control platform and restart the control platform to restore normal work.
The function of restoring the control platform without an operating system or chip cannot be disassembled is realized, improving the stability and reliability of the system, and simplifying the firmware upgrade process.
Smart Images

Figure CN119847551A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of server control technology, and in particular to a control platform downtime processing method, device, server and medium. Background Art
[0002] The control platform (such as the Baseboard Management Controller (BMC)) is embedded on the server motherboard and is used to manage and monitor the hardware status of the server. In practice, the control platform may crash, resulting in the inability to manage and monitor the server hardware.
[0003] In order to solve the problem of control platform downtime, the related technology uses an in-band re-flashing method or a burner to burn the firmware code of the control platform. However, when the in-band re-flashing method is used, if the server's operating system is not installed, the in-band re-flashing method cannot be used to solve the problem; when the burner is used to burn the firmware code of the control platform, the control platform chip of some servers cannot be removed, so the burner cannot be used for burning.
[0004] It can be seen that providing a new method for solving the control platform downtime is a technical problem that people in this field urgently need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a control platform downtime processing method, device, server and medium to solve the technical problem that when the operating system of the server is not installed, the control platform downtime cannot be processed by using the in-band version re-flashing method; when the firmware code of the control platform is burned by a burner, the control platform chip of some servers cannot be removed, and the control platform downtime cannot be processed by using the burner.
[0006] In order to solve the above technical problems, the present invention provides a control platform downtime processing method, comprising:
[0007] Acquire a firmware burning program of the control platform through a first Bluetooth module, and store the burning program in the first Bluetooth module; wherein the first Bluetooth module is located in a server;
[0008] Controlling the first Bluetooth module to execute the burning program to refresh the firmware of the control platform;
[0009] Respond to the operation of restarting the control platform so that the control platform can work.
[0010] On the one hand, the program for burning the firmware of the control platform obtained through the first Bluetooth module includes:
[0011] Establishing a transmission link between the first Bluetooth module and the second Bluetooth module; wherein the second Bluetooth module is located in the terminal device;
[0012] Controlling the terminal device to send the burning program to the first Bluetooth module through the second Bluetooth module;
[0013] Control the first Bluetooth module to receive the burning program of the firmware of the control platform.
[0014] On the other hand, before establishing the transmission link between the first Bluetooth module and the second Bluetooth module, the method further includes:
[0015] Control the first Bluetooth module to be connected to the terminal device through an interface converter; wherein the data transmission pin of the interface converter is connected to the data reception pin of the terminal device, and the data reception pin of the interface converter is connected to the data transmission pin of the terminal device;
[0016] Controlling the first Bluetooth module to enter a configuration mode;
[0017] Controlling the terminal device to send a first configuration instruction to the first Bluetooth module;
[0018] When it is detected that the terminal device receives information that the first Bluetooth module responds to the first configuration instruction, configure the communication parameters of the first Bluetooth module to match the communication parameters of the second Bluetooth module; wherein the communication parameters include at least a baud rate, a data bit, a stop bit, and a check bit;
[0019] When it is detected that the communication parameter of the first Bluetooth module matches the communication parameter of the second Bluetooth module, disconnecting the interface converter between the first Bluetooth module and the second Bluetooth module;
[0020] The establishing of a transmission link between the first Bluetooth module and the second Bluetooth module comprises:
[0021] Responding to an operation of turning on a switch of the first Bluetooth module and responding to an operation of turning on a switch of the second Bluetooth module;
[0022] The first Bluetooth module is controlled to pair with the second Bluetooth module to establish a transmission link between the first Bluetooth module and the second Bluetooth module.
[0023] On the other hand, storing the burning program in the first Bluetooth module includes:
[0024] Receiving the burning program through the development tool provided by the first Bluetooth module;
[0025] Controlling the first Bluetooth module to enter a configuration mode;
[0026] In the configuration mode, sending a second configuration instruction to the first Bluetooth module through the development tool;
[0027] Burning the burning program into the first Bluetooth module according to the second configuration instruction, so that the first Bluetooth module uses the burning program as a built-in program;
[0028] The controlling the first Bluetooth module to execute the burning program includes:
[0029] Controlling the terminal device to send a third configuration instruction to the first Bluetooth module;
[0030] The first Bluetooth module is controlled to execute the burning program according to the third configuration instruction.
[0031] On the other hand, before the firmware burning program of the control platform is obtained through the first Bluetooth module, the method further includes:
[0032] In the event that the control platform is down, responding to a power-off and reconnection operation on the server;
[0033] After detecting that the server is powered off and reconnected, obtaining the status of the control platform;
[0034] If the state of the control platform is down, then entering the step of obtaining the firmware burning program of the control platform through the first Bluetooth module;
[0035] If the state of the control platform is working state, then end.
[0036] On the other hand, after controlling the first Bluetooth module to execute the burning program to refresh the firmware of the control platform and before responding to restarting the control platform, the method further includes:
[0037] Obtaining the execution result of the first Bluetooth module;
[0038] When it is detected that the execution result of the first Bluetooth module is successful, entering the step of responding to the operation of restarting the control platform;
[0039] In the case where it is detected that the execution result of the first Bluetooth module is an execution failure, returning to the step of obtaining the firmware burning program of the control platform through the first Bluetooth module;
[0040] The method of obtaining the execution result of the first Bluetooth module includes one of the following:
[0041] Method 1: Obtaining log information generated by the first Bluetooth module during the execution of the burning program;
[0042] Determine an execution result of the first Bluetooth module according to the log information;
[0043] Method 2: obtaining an upgraded version of the burning program of the firmware of the control platform received by the first Bluetooth module;
[0044] After controlling the first Bluetooth module to execute the burning program, sending information for characterizing and querying the current version of the firmware of the control platform to the first Bluetooth module;
[0045] In the case where it is detected that the current version is the same as the upgraded version, determining that the execution result of the first Bluetooth module is successful;
[0046] In a case where it is detected that the current version is different from the upgraded version, determining that the execution result of the first Bluetooth module is execution failure;
[0047] Mode 3: Starting from controlling the first Bluetooth module to execute the burning program, if it is detected within a preset time that the terminal device receives information sent by the first Bluetooth module indicating that the burning program has been executed successfully, then determining that the execution result of the first Bluetooth module is successful;
[0048] If it is detected that the terminal device has not received the information sent by the first Bluetooth module and used to indicate that the burning program has been executed successfully, it is determined that the execution result of the first Bluetooth module is an execution failure.
[0049] On the other hand, after the operation of restarting the control platform in response, the method further includes:
[0050] Controlling the first Bluetooth module to communicate with a management system interface of a server;
[0051] The monitoring information sent by the management system interface is received through the first Bluetooth module, and the monitoring information is output; wherein the monitoring information is the information of the control platform monitoring the server.
[0052] In order to solve the above technical problems, the present invention further provides a control platform downtime processing device, comprising:
[0053] An acquisition module, used for acquiring a firmware burning program of a control platform through a first Bluetooth module, and storing the burning program in the first Bluetooth module; wherein the first Bluetooth module is located in a server;
[0054] A control module, used for controlling the first Bluetooth module to execute the burning program to refresh the firmware of the control platform;
[0055] The response module is used to respond to the operation of restarting the control platform so that the control platform can work.
[0056] In order to solve the above technical problem, the present invention further provides a server, comprising:
[0057] Memory for storing computer programs;
[0058] A processor is used to implement the steps of the above-mentioned control platform crash processing method when executing the computer program.
[0059] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above control platform downtime processing method are implemented.
[0060] The beneficial effect of the present invention is that in the method, the burning program of the firmware of the control platform is obtained through the Bluetooth module in the server, and the burning program is stored in the Bluetooth module. Since the burning program is stored in the Bluetooth module, the Bluetooth module can be controlled to execute the internally stored burning program, so that the firmware of the control platform is refreshed through the Bluetooth module in the server, and the control platform works after restarting the control platform. It can be seen that the method realizes the downtime processing of the control platform, ensures that the control platform can work normally, and improves the stability and reliability of the system; secondly, since the burning program is stored in the Bluetooth module of the server and the burning program is executed in the Bluetooth module to complete the refresh of the firmware, it does not rely on the operating system to re-flash the version in the band. Therefore, even if the operating system is not installed, the control platform downtime recovery can be achieved through the Bluetooth module; and it does not rely on the burner to burn the program. Therefore, it is also possible to achieve the recovery of the control platform downtime without uninstalling the chip of the control platform; thirdly, the burning program is obtained and executed through the Bluetooth module of the server, which reduces manual intervention and improves the efficiency and accuracy of firmware upgrades; moreover, the use of the Bluetooth module for firmware burning makes remote management and maintenance possible, especially in the case of limited physical access, and even in an environment where the network connection is unstable or limited, the Bluetooth module can be used to achieve the processing of the control platform downtime.
[0061] In addition, the burning program is sent to the Bluetooth module of the server through the Bluetooth module of the terminal device, so that the server can obtain the burning program even without a network, so that the Bluetooth module of the server can execute the burning program to refresh the firmware of the control platform.
[0062] Before the Bluetooth module of the terminal device is connected to the Bluetooth module of the control platform, the Bluetooth module of the control platform is first controlled to be connected to the Bluetooth module of the terminal device through the interface conversion module, wherein the pins of the interface converter are cross-connected with the pins of the terminal device, ensuring that the data can be correctly transmitted; and, the communication parameters between the two Bluetooth modules are configured to ensure that the two Bluetooth modules can communicate normally. When the communication parameters of the two Bluetooth modules are configured to match, the Bluetooth module of the control platform is configured to perform a configuration mode, which improves the convenience, flexibility and efficiency of the configuration; in addition, the terminal device is controlled to send a first configuration instruction to the Bluetooth module of the server; only when it is detected that the terminal device receives information that the Bluetooth module of the server responds to the first configuration instruction, the communication parameters between the two Bluetooth modules are configured, realizing the detection of the status of the Bluetooth module of the server.
[0063] The invention relates to a method for receiving a burning program through a development tool provided by a Bluetooth module of a server; controlling the Bluetooth module of the server to enter a configuration mode; in the configuration mode, sending a second configuration instruction to the Bluetooth module of the server through the development tool; burning the burning program into the Bluetooth module of the server according to the second configuration instruction, thereby realizing that the Bluetooth module of the server uses the external burning program as a built-in program; and controlling the Bluetooth module of the server to execute the burning program through the configuration instruction, thereby improving the automation of a Bluetooth module upgrade control platform.
[0064] In the case of a control platform downtime, the server power-off reconnection operation is first performed; if the control platform is still in a downtime state after the operation, the firmware burning program of the control platform is obtained through the first Bluetooth module, otherwise, the process ends. That is, if the server can be restored to normal through power-off reconnection, the service can be quickly restored, reducing the downtime of the system.
[0065] After controlling the first Bluetooth module to execute the burning program to refresh the firmware of the control platform, before responding to the operation of restarting the control platform, the execution result of the first Bluetooth module is first judged to ensure that the execution is successful before responding to the operation of restarting the control platform, otherwise the program is re-burned, thereby improving the success rate of the firmware upgrade.
[0066] Through Bluetooth, the management system interface of the server is communicated, the information of the control platform monitoring the server is obtained, and the information is output after obtaining. In the absence of a network environment, the information obtained by the control platform detecting the server can still be obtained, and the real-time operation status of the server can be detected and controlled.
[0067] In addition, when the communication parameters of the two Bluetooth modules are configured to match, the present invention also provides a control platform downtime processing device, a server, and a computer-readable storage medium, which have the same or corresponding technical features as the above-mentioned control platform downtime processing method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0069] Figure 1 A flowchart of a control platform downtime processing method provided by an embodiment of the present invention;
[0070] Figure 2 A flowchart of a method for recovering a control platform after a crash provided by an embodiment of the present invention;
[0071] Figure 3 A structural diagram of a server provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0072] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.
[0073] The core of the present invention is to provide a control platform downtime processing method, device, server and medium to solve the technical problem that when the server's operating system is not installed, the control platform downtime cannot be processed by using the in-band version re-flashing method; when a burner is used to burn the firmware code of the control platform, the control platform chip of some servers cannot be removed, and the burner cannot be used to burn the control platform downtime.
[0074] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 A flowchart of a control platform downtime processing method provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0075] S10: Acquire a firmware burning program of the control platform through the first Bluetooth module, and store the burning program in the first Bluetooth module;
[0076] S11: controlling the first Bluetooth module to execute a burning program to refresh the firmware of the control platform;
[0077] S12: Respond to the operation of restarting the control platform so that the control platform can work.
[0078] It is worth noting that when handling the downtime of the control platform, the server can be powered off and reconnected. In some cases, the control platform can work normally after power off and reconnection, but in some cases, the control platform is still in a downtime state after power off and reconnection. In the case where the control platform can work normally after power off and reconnection, if the method of the present invention is directly used to handle the downtime, the system downtime time is relatively long. Therefore, before obtaining the firmware burning program of the control platform through the first Bluetooth module, it also includes:
[0079] In the event of a control platform outage, respond to the server power-off and reconnection operation;
[0080] After detecting that the server is powered off and reconnected, obtain the status of the control platform;
[0081] If the status of the control platform is down, then enter the step of obtaining the firmware burning program of the control platform through the first Bluetooth module;
[0082] If the status of the control platform is working, then end.
[0083] In practice, you can check the serial port log or the on / off status of the pins of the control platform to determine whether the control platform is in a downtime state or a normal state.
[0084] When using the control platform downtime processing method of the present invention, the server provided by the present invention includes a Bluetooth module. In order to distinguish the Bluetooth module in the server from the Bluetooth module in the terminal device, in the embodiment of the present invention, the Bluetooth module in the server is referred to as the first Bluetooth module, and the Bluetooth module in the terminal device is referred to as the second Bluetooth module.
[0085] In order to reasonably select the first Bluetooth module, the first Bluetooth module uses a compatible Bluetooth module, that is, the Bluetooth module can be built into the server, and the Bluetooth module can have a built-in program.
[0086] There is no limitation on the way in which the first Bluetooth module obtains the firmware burning program of the control platform, as long as the first Bluetooth module can obtain the burning program. In an environment where the network connection is unstable or limited, in order to enable the first Bluetooth module to obtain the burning program, the present invention sends the burning program to the first Bluetooth module through the Bluetooth module of the terminal device (i.e., the second Bluetooth module). There is no limitation on the terminal device used, such as a computer.
[0087] In order to ensure that the Bluetooth module of the terminal device can successfully send the burning program to the first Bluetooth module, in implementation, the first Bluetooth module is controlled to be connected to the terminal device through an interface converter; wherein the data sending pin of the interface converter is connected to the data receiving pin of the terminal device, and the data receiving pin of the interface converter is connected to the data sending pin of the terminal device;
[0088] Control the first Bluetooth module to enter configuration mode;
[0089] Controlling the terminal device to send a first configuration instruction to the first Bluetooth module;
[0090] When it is detected that the terminal device receives information that the first Bluetooth module responds to the first configuration instruction, configure the communication parameters of the first Bluetooth module to match the communication parameters of the second Bluetooth module; wherein the communication parameters include at least a baud rate, a data bit, a stop bit, and a check bit;
[0091] When it is detected that the communication parameter of the first Bluetooth module matches the communication parameter of the second Bluetooth module, the interface converter between the first Bluetooth module and the second Bluetooth module is disconnected.
[0092] The interface converter can be a Universal Serial Bus (USB) to Transistor-Transistor Logic (TTL) module. The Bluetooth module can be connected to the USB port of the computer through the USB to TTL module, and the USB to TTL module is connected to the first Bluetooth module using an appropriate connection line. For example, the data transmission end (Transmit Data, TXD) and the data receiving end (Receive Data, RXD) pins are cross-connected using Dupont wires, and the wire ground end (Ground, GND) pins are connected to ensure that the data can be transmitted correctly, and a series of setting and query operations are performed. This includes module reset, obtaining / setting module address, name, role, serial port parameters, binding Bluetooth address, Bluetooth password, etc. When configuring the communication parameters of the two Bluetooth modules (i.e., the first Bluetooth module and the second Bluetooth module) to match, in order to improve the efficiency of the configuration, the first Bluetooth module is controlled to enter the configuration mode. It is worth noting that the control of the first Bluetooth module to enter the configuration mode provided by the present invention refers to the Bluetooth module entering the AT (Attention) mode, and controlling the terminal device to send the first configuration instruction to the first Bluetooth module means controlling the terminal device to send an AT instruction to the first Bluetooth module (AT instructions are a group of text commands prefixed with "AT" and used to configure and control communication devices). In order to detect the state of the first Bluetooth module, the communication parameters between the two Bluetooth modules are configured only when it is detected that the terminal device receives the information that the Bluetooth module of the server responds to the first configuration instruction.
[0093] After completing the configuration of the communication parameters between the two Bluetooth modules, the burning program can be transmitted to the first Bluetooth module through the second Bluetooth module. Specifically, the burning program of the firmware of the control platform obtained through the first Bluetooth module includes:
[0094] Establishing a transmission link between the first Bluetooth module and the second Bluetooth module; wherein the second Bluetooth module is located in the terminal device;
[0095] Control the terminal device to send the burning program to the first Bluetooth module through the second Bluetooth module;
[0096] The first Bluetooth module is controlled to receive a firmware burning program of the control platform.
[0097] Specifically, establishing a transmission link between the first Bluetooth module and the second Bluetooth module includes:
[0098] Responding to an operation of turning on a switch of the first Bluetooth module and responding to an operation of turning on a switch of the second Bluetooth module; the operation of turning on the switch of the Bluetooth module may be operated by a user;
[0099] The first Bluetooth module is controlled to pair with the second Bluetooth module to establish a transmission link between the first Bluetooth module and the second Bluetooth module.
[0100] The first Bluetooth module is controlled to receive the burning program of the firmware of the control platform. In practice, the first Bluetooth module may fail to successfully receive the burning program sent by the second Bluetooth module, resulting in the first Bluetooth module being unable to execute the burning program to recover the control platform. In order to recover the control platform by executing the burning program through the first Bluetooth module as much as possible, after controlling the first Bluetooth module to receive the burning program of the firmware of the control platform, it also includes:
[0101] Starting from controlling the first Bluetooth module to receive the firmware burning program of the control platform, if a data packet sent by the first Bluetooth module is received within a preset time, the data packet is parsed to determine whether the first Bluetooth module has received the burning program. If it is determined that the first Bluetooth module has successfully received the burning program, the step of storing the burning program in the first Bluetooth module is entered; if the data packet sent by the first Bluetooth module is not received within the preset time, the terminal device is controlled to send the burning program to the first Bluetooth module through the second Bluetooth module; wherein the data packet is a response data packet generated by the first Bluetooth module according to the received data content, and the response data packet is encapsulated into a data packet in a target format using the development tool of the first Bluetooth module (such as an application programming interface (API) or a software development kit (SDK)); the function used to characterize the sent data is called, and the response data packet is sent to the second Bluetooth module through the link between the first Bluetooth module and the second Bluetooth module. There is no limit on the preset time, which is determined according to actual conditions.
[0102] In the method, after the first Bluetooth module receives the burning program of the firmware of the control platform, the time and content of the data packet returned by the second Bluetooth module are judged by the first Bluetooth module. If it is judged that the first Bluetooth module has not successfully received the burning program, the second Bluetooth module continues to send the burning program to the first Bluetooth module, thereby ensuring as much as possible that the first Bluetooth module can successfully receive the burning program, thereby improving the success rate of the control platform downtime recovery through the first Bluetooth module.
[0103] When the first Bluetooth module is controlled to successfully receive the burning program of the firmware of the control platform, the burning program is stored in the first Bluetooth module. When the burning program is stored in the first Bluetooth module, the burning program is received by the development tool provided by the first Bluetooth module; the first Bluetooth module is controlled to enter the configuration mode; in the configuration mode, the second configuration instruction is sent to the first Bluetooth module through the development tool; the burning program is burned into the first Bluetooth module according to the second configuration instruction, so that the first Bluetooth module uses the burning program as a built-in program.
[0104] In implementation, the process of the Bluetooth module built-in program specifically includes:
[0105] 1. Prepare development tools: including USB to TTL module, Bluetooth module, and serial port assistant software on the computer.
[0106] 2. Module initialization and settings: Set up the Bluetooth module by sending AT command sets. It should be noted that different Bluetooth modules may correspond to different AT command sets.
[0107] 3. Enter AT mode: Before the Bluetooth module is powered on, press and hold the setting button, and connect KEY to a high level. After power-on, the indicator light flashes slowly, indicating that it has entered AT mode.
[0108] 4. Send AT commands: In AT mode, you can send AT commands to the Bluetooth module through the serial port assistant software for setting and control to realize the built-in of external programs.
[0109] Through the above steps, the external program can be built into the first Bluetooth module to achieve specific functions and controls. After that, the first Bluetooth module can be controlled to execute the burning program.
[0110] Specifically, controlling the first Bluetooth module to execute the burning program includes:
[0111] Controlling the terminal device to send a third configuration instruction to the first Bluetooth module;
[0112] The first Bluetooth module is controlled to execute a burning program according to the third configuration instruction.
[0113] In the method, the Bluetooth module of the server is controlled by configuration instructions to execute the burning program, thereby improving the automation of the Bluetooth module upgrade control platform.
[0114] In the above process, the first Bluetooth module may fail to execute the burning program successfully. Therefore, after controlling the first Bluetooth module to execute the burning program to refresh the firmware of the control platform and before responding to the operation of restarting the control platform, the following steps are also included:
[0115] Obtaining the execution result of the first Bluetooth module;
[0116] When it is detected that the execution result of the first Bluetooth module is successful, entering a step of responding to an operation of restarting the control platform;
[0117] When it is detected that the execution result of the first Bluetooth module is execution failure, return to the step of obtaining the firmware burning program of the control platform through the first Bluetooth module.
[0118] The method of obtaining the execution result of the first Bluetooth module includes one of the following:
[0119] Method 1: Obtain the log information generated by the first Bluetooth module during the execution of the burning program;
[0120] The execution result of the first Bluetooth module is determined according to the log information.
[0121] Method 2: obtaining an upgraded version of the burning program of the firmware of the control platform received by the first Bluetooth module;
[0122] After controlling the first Bluetooth module to execute the burning program, sending information for characterizing the current version of the firmware of the query control platform to the first Bluetooth module;
[0123] When it is detected that the current version is the same as the upgraded version, determining that the execution result of the first Bluetooth module is successful;
[0124] When it is detected that the current version is different from the upgraded version, it is determined that the execution result of the first Bluetooth module is execution failure.
[0125] Method 3: Starting from controlling the first Bluetooth module to execute the burning program, if it is detected within a preset time that the terminal device receives information sent by the first Bluetooth module indicating that the burning program has been executed, then the execution result of the first Bluetooth module is determined to be successful;
[0126] If it is detected that the terminal device has not received the information sent by the first Bluetooth module to indicate that the burning program has been executed, the execution result of the first Bluetooth module is determined to be execution failure. There is no limit on the preset time length, which is determined according to actual conditions.
[0127] In the method, after controlling the first Bluetooth module to execute the burning program to refresh the firmware of the control platform, before responding to the operation of restarting the control platform, the execution result of the first Bluetooth module is first judged to ensure that the execution is successful before responding to the operation of restarting the control platform, otherwise the program is re-burned, thereby improving the success rate of the firmware upgrade.
[0128] After the control platform downtime is processed, in order to further determine the status of the control platform, after responding to the operation of restarting the control platform, the following is also included:
[0129] Controlling the first Bluetooth module to communicate with the management system interface of the server;
[0130] The monitoring information sent by the management system interface is received through the first Bluetooth module, and the monitoring information is output; wherein the monitoring information is information of the control platform monitoring server.
[0131] There is no limitation on the management system interface of the server. Through the first Bluetooth module, the management system interface of the server is communicated with to obtain the information of the control platform monitoring the server, and the interface is displayed after the information is obtained. In the absence of a network environment, the information obtained by the control platform detecting the server can still be obtained to detect and control the real-time operation status of the server. After the first Bluetooth module obtains the information of the control platform monitoring the server, it once again indicates that the control platform is in normal working condition.
[0132] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 2 A flowchart of a method for restoring a control platform after a crash is provided in an embodiment of the present invention, such as Figure 2 As shown, the method includes:
[0133] S13: The control platform is detected to be down;
[0134] S14: Turn on the Bluetooth module of the server and the Bluetooth module of the terminal device;
[0135] S15: The Bluetooth module of the server receives the burning program sent by the Bluetooth module of the terminal device;
[0136] S16: The Bluetooth module of the server calls the burning program and executes the refresh;
[0137] S17: After the refresh is completed, the control platform is restarted.
[0138] When the control platform crashes and it is determined that the power-off reconnection has not been restored, turn on the server Bluetooth switch and the terminal device (test machine) Bluetooth; the test machine connects to the server Bluetooth module for matching; the terminal device's Bluetooth module sends the burning program (i.e., upgrade package) to the server's Bluetooth module as a parameter of the built-in program; sends AT commands to the server to trigger program execution; after the upgrade is complete, the server's Bluetooth module automatically sends a message to the terminal device's Bluetooth module; manually restart the control platform to restore the control platform.
[0139] In the method provided by the embodiment of the present invention, the server first installs a Bluetooth module, and the Bluetooth module has a built-in burning program. After the control platform crashes, the Bluetooth module switch of the server is turned on to connect with the Bluetooth module of the terminal device, and the upgrade package is sent from the terminal device to the Bluetooth module of the server and temporarily stored in the transparent flash memory (TransFlash, TF) of the server. The Bluetooth module enters AT mode, and AT instructions are sent through the serial communication software to configure the module parameters, triggering the execution of the built-in burning program. It can solve the problem that there is no system to perform in-band upgrades after the control platform crashes, and the chip cannot be removed for burning, and the server with Bluetooth function can establish a connection with other Bluetooth devices in a wireless way, connect to personal devices such as mobile phones and tablets, exchange and backup data, and restore the control platform in an environment without a network; in addition, the Bluetooth module has very strong connectivity, supports one-to-many connections, and can support multiple devices to be connected at the same time, realizing smooth communication and data sharing between devices.
[0140] In the above embodiments, the control platform downtime processing method is described in detail, and the present invention also provides a corresponding embodiment of the control platform downtime processing device. It should be noted that the present invention describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.
[0141] An embodiment of the present invention provides a control platform downtime processing device. Based on the perspective of functional modules, the control platform downtime processing device includes:
[0142] An acquisition module, used for acquiring a firmware burning program of the control platform through a first Bluetooth module, and storing the burning program in the first Bluetooth module; wherein the first Bluetooth module is located in the server;
[0143] A control module, used for controlling the first Bluetooth module to execute a burning program to refresh the firmware of the control platform;
[0144] The response module is used to respond to the operation of restarting the control platform so that the control platform can work.
[0145] In some embodiments, the control platform downtime processing device further includes:
[0146] A first control module, used for controlling the first Bluetooth module to connect to the terminal device through an interface converter; wherein the data transmission pin of the interface converter is connected to the data reception pin of the terminal device, and the data reception pin of the interface converter is connected to the data transmission pin of the terminal device;
[0147] A second control module, used for controlling the first Bluetooth module to enter a configuration mode;
[0148] A third control module, used to control the terminal device to send a first configuration instruction to the first Bluetooth module;
[0149] A configuration module, configured to configure the communication parameters of the first Bluetooth module to match the communication parameters of the second Bluetooth module when detecting that the terminal device receives information that the first Bluetooth module responds to the first configuration instruction; wherein the communication parameters include at least a baud rate, a data bit, a stop bit, and a check bit;
[0150] The disconnection module is used to disconnect the interface converter between the first Bluetooth module and the second Bluetooth module when it is detected that the communication parameter of the first Bluetooth module matches the communication parameter of the second Bluetooth module.
[0151] In some embodiments, the control platform downtime processing device further includes:
[0152] The first response module is used to respond to the power-off reconnection operation of the server when the control platform is down;
[0153] A first acquisition module is used to acquire the status of the control platform after detecting that the server is powered off and reconnected;
[0154] If the status of the control platform is down, the acquisition module is triggered;
[0155] If the status of the control platform is working, then end.
[0156] In some embodiments, the control platform downtime processing device further includes:
[0157] A second acquisition module, used to acquire the execution result of the first Bluetooth module;
[0158] A first detection module, configured to trigger a response module when detecting that the execution result of the first Bluetooth module is successful;
[0159] The second detection module is used to return to the trigger acquisition module when detecting that the execution result of the first Bluetooth module is execution failure.
[0160] In some embodiments, the control platform downtime processing device further includes:
[0161] A fourth control module, used for controlling the first Bluetooth module to communicate with the management system interface of the server;
[0162] The receiving and outputting module is used to receive the monitoring information sent by the management system interface through the first Bluetooth module and output the monitoring information; wherein the monitoring information is the information of the control platform monitoring server.
[0163] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0164] Figure 3 The structural diagram of the server provided by the embodiment of the present invention. This embodiment is based on the hardware perspective, such as Figure 3 As shown, the server includes:
[0165] A memory 20, for storing computer programs;
[0166] The processor 21 is used to implement the steps of the method for controlling platform downtime processing mentioned in the above embodiment when executing a computer program.
[0167] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0168] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the control platform downtime processing method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to the data involved in the control platform downtime processing method mentioned above.
[0169] In some embodiments, the server may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0170] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the server, and may include more or fewer components than shown in the figure.
[0171] The server provided by the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: a control platform downtime processing method, and the effect is the same as above.
[0172] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned control platform downtime processing method when executed by a processor.
[0173] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0174] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.
[0175] The computer-readable storage medium provided by the present invention includes the above-mentioned control platform downtime processing method, and the effect is the same as above.
[0176] The above is a detailed introduction to a control platform downtime processing method, device, server and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
[0177] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A control platform downtime processing method, characterized in that: include: Acquire a firmware burning program of the control platform through a first Bluetooth module, and store the burning program in the first Bluetooth module; wherein the first Bluetooth module is located in a server; Controlling the first Bluetooth module to execute the burning program to refresh the firmware of the control platform; Respond to the operation of restarting the control platform so that the control platform can work.
2. The control platform downtime processing method according to claim 1, characterized in that: The program for burning the firmware of the control platform obtained by the first Bluetooth module includes: Establishing a transmission link between the first Bluetooth module and the second Bluetooth module; wherein the second Bluetooth module is located in the terminal device; Controlling the terminal device to send the burning program to the first Bluetooth module through the second Bluetooth module; Control the first Bluetooth module to receive the burning program of the firmware of the control platform.
3. The control platform downtime processing method according to claim 2, characterized in that: Before establishing the transmission link between the first Bluetooth module and the second Bluetooth module, the method further includes: Control the first Bluetooth module to be connected to the terminal device through an interface converter; wherein the data transmission pin of the interface converter is connected to the data reception pin of the terminal device, and the data reception pin of the interface converter is connected to the data transmission pin of the terminal device; Controlling the first Bluetooth module to enter a configuration mode; Controlling the terminal device to send a first configuration instruction to the first Bluetooth module; When it is detected that the terminal device receives information that the first Bluetooth module responds to the first configuration instruction, configure the communication parameters of the first Bluetooth module to match the communication parameters of the second Bluetooth module; wherein the communication parameters include at least a baud rate, a data bit, a stop bit, and a check bit; When it is detected that the communication parameter of the first Bluetooth module matches the communication parameter of the second Bluetooth module, disconnecting the interface converter between the first Bluetooth module and the second Bluetooth module; The establishing of a transmission link between the first Bluetooth module and the second Bluetooth module comprises: responding to an operation of turning on a switch of the first Bluetooth module and responding to an operation of turning on a switch of the second Bluetooth module; The first Bluetooth module is controlled to pair with the second Bluetooth module to establish a transmission link between the first Bluetooth module and the second Bluetooth module.
4. The control platform downtime processing method according to claim 2, characterized in that: The storing the burning program in the first Bluetooth module comprises: Receiving the burning program through the development tool provided by the first Bluetooth module; Controlling the first Bluetooth module to enter a configuration mode; In the configuration mode, sending a second configuration instruction to the first Bluetooth module through the development tool; Burning the burning program into the first Bluetooth module according to the second configuration instruction, so that the first Bluetooth module uses the burning program as a built-in program; The controlling the first Bluetooth module to execute the burning program includes: Controlling the terminal device to send a third configuration instruction to the first Bluetooth module; The first Bluetooth module is controlled to execute the burning program according to the third configuration instruction.
5. The control platform downtime processing method according to any one of claims 2 to 4, characterized in that: Before the firmware burning program of the control platform is acquired through the first Bluetooth module, the method further includes: In the event that the control platform is down, responding to a power-off and reconnection operation on the server; After detecting that the server is powered off and reconnected, obtaining the status of the control platform; If the state of the control platform is down, then entering the step of obtaining the firmware burning program of the control platform through the first Bluetooth module; If the state of the control platform is working state, then end.
6. The control platform downtime processing method according to claim 5, characterized in that: After controlling the first Bluetooth module to execute the burning program to refresh the firmware of the control platform and before responding to restarting the control platform, the method further includes: Obtaining the execution result of the first Bluetooth module; When it is detected that the execution result of the first Bluetooth module is successful, entering the step of responding to the operation of restarting the control platform; In the case where it is detected that the execution result of the first Bluetooth module is an execution failure, returning to the step of obtaining the firmware burning program of the control platform through the first Bluetooth module; The method of obtaining the execution result of the first Bluetooth module includes one of the following: Method 1: Obtaining log information generated by the first Bluetooth module during the execution of the burning program; Determine an execution result of the first Bluetooth module according to the log information; Method 2: obtaining an upgraded version of the burning program of the firmware of the control platform received by the first Bluetooth module; After controlling the first Bluetooth module to execute the burning program, sending information for characterizing and querying a current version of the firmware of the control platform to the first Bluetooth module; In the case where it is detected that the current version is the same as the upgraded version, determining that the execution result of the first Bluetooth module is successful; In a case where it is detected that the current version is different from the upgraded version, determining that the execution result of the first Bluetooth module is execution failure; Mode 3: Starting from controlling the first Bluetooth module to execute the burning program, if it is detected within a preset time that the terminal device receives information sent by the first Bluetooth module indicating that the burning program has been executed successfully, then determining that the execution result of the first Bluetooth module is successful; If it is detected that the terminal device has not received the information sent by the first Bluetooth module and used to indicate that the burning program has been executed successfully, it is determined that the execution result of the first Bluetooth module is an execution failure.
7. The control platform downtime processing method according to claim 1, characterized in that: After the response restarts the operation of the control platform, the method further includes: Controlling the first Bluetooth module to communicate with a management system interface of a server; The monitoring information sent by the management system interface is received through the first Bluetooth module, and the monitoring information is output; wherein the monitoring information is the information of the control platform monitoring the server.
8. A control platform downtime processing device, characterized in that: include: An acquisition module, used for acquiring a firmware burning program of a control platform through a first Bluetooth module, and storing the burning program in the first Bluetooth module; wherein the first Bluetooth module is located in a server; A control module, used for controlling the first Bluetooth module to execute the burning program to refresh the firmware of the control platform; The response module is used to respond to the operation of restarting the control platform so that the control platform can work.
9. A server, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of the control platform downtime processing method as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the control platform downtime processing method according to any one of claims 1 to 7 are implemented.