Firmware adjustment method and device of bus equipment, storage medium and electronic equipment

By detecting and adjusting the firmware version of the bus device in the server, the problem of low efficiency of firmware adjustment of the bus device is solved, a more efficient matching of data transmission parameters is achieved, and the risk of firmware adjustment to the business daughter card is reduced.

CN118689502APending Publication Date: 2024-09-24INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410692914.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, the firmware adjustment efficiency of the bus device is low, resulting in the firmware of the service subcard needing to be repeatedly adjusted, which is time-consuming and may cause firmware failure and affect normal operation.

Method used

By deploying a processor and multiple bus device slots in the server, the processor is used to read the target device attributes and firmware version, detect the match between the initial firmware version and the target firmware version, and adjust when the match is lower than the threshold. Initial firmware version to target version to improve matching of data receiving and sending parameters.

Benefits of technology

It improves the efficiency of firmware adjustment of bus devices, reduces the time required for version adjustment, reduces the risk of firmware adjustment to business daughter cards, and improves signal quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689502A
    Figure CN118689502A
Patent Text Reader

Abstract

The embodiment of the invention provides a firmware adjustment method and device of bus equipment, a storage medium and electronic device.The method comprises the steps that when it is detected that target bus equipment is connected to a target slot position on a server, the target slot position of the server is connected to the target bus equipment; reading a target processor firmware version corresponding to the target device attribute of the processor from the device attribute of the processor and the processor firmware version of the processor which have a corresponding relationship, and obtaining an initial bus device firmware version of the target bus device; detecting the matching degree between the firmware version of the target processor and the firmware version of the initial bus equipment; under the condition that the matching degree is smaller than or equal to a matching degree threshold value, the initial bus equipment firmware version is adjusted to the target bus equipment firmware version according to the target processor firmware version. By means of the method and device, the problem that the firmware adjustment efficiency of the bus equipment is low is solved, and then the effect of improving the firmware adjustment efficiency of the bus equipment is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the server field, and more specifically, to a method and apparatus for adjusting firmware of a bus device, a storage medium, and an electronic device. Background Art

[0002] The main control board (e.g., motherboard) of a centralized storage device (e.g., server) will expand multiple slots as much as possible to connect service daughter cards with various functions to meet the application requirements of the storage device. The data transmission parameters (e.g., CTLE parameters) of the service daughter cards connected to the slots are often fixed, and the data transmission parameters will affect the quality of the signal received by the receiving end (e.g., the service daughter card connected to the slot). In this case, the quality of the signal received by the receiving end may be uneven when it is connected to different slots.

[0003] In the related art, when selecting the data transmission parameters (e.g., CTLE parameters) with the best signal quality, it is necessary to repeatedly adjust the firmware of the service daughter card to adjust the data transmission parameters. This method involves adjusting the firmware of the service daughter card multiple times, which consumes a long time and may cause the firmware of the service daughter card to malfunction, affecting the normal operation of the service daughter card. Summary of the invention

[0004] The embodiments of the present application provide a method and apparatus for adjusting the firmware of a bus device, a storage medium, and an electronic device, so as to at least solve the problem of low efficiency in adjusting the firmware of the bus device in the related art.

[0005] According to an embodiment of the present application, a method for adjusting the firmware of a bus device is provided, wherein a processor and a plurality of bus device slots are deployed in a server, wherein device attributes of the processor having a corresponding relationship and processor firmware versions of the processor are stored on the server, wherein each bus device slot of the plurality of bus device slots is used to connect a bus device, and the processor allows data interaction with the bus devices on each slot, and the method is applied to the processor, and the method comprises: when it is detected that a target bus device is connected to a target slot on the server, reading a target processor firmware version corresponding to the target device attributes of the processor from the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor, and obtaining an initial bus device firmware version of the target bus device, wherein the bus device firmware of the initial bus device firmware version is used Configuring initial data receiving parameters for the target bus device to receive data sent by the processor, wherein the processor firmware of the target processor firmware version is used to configure data sending parameters for the processor to send data to the target bus device; detecting the degree of match between the target processor firmware version and the initial bus device firmware version, wherein the degree of match is used to indicate the degree of match between the initial data receiving parameters and the data sending parameters; and adjusting the initial bus device firmware version to the target bus device firmware version according to the target processor firmware version when the degree of match is less than or equal to a matching degree threshold, wherein the degree of match between the target data receiving parameters indicated by the bus device firmware of the target bus device firmware version and the data sending parameters is higher than the degree of match between the initial data receiving parameters and the data sending parameters.

[0006] In an exemplary embodiment, an adaptation service is deployed in the processor, and a first storage space is deployed in the server, the first storage space is used to store the device attributes of the processor with a corresponding relationship and the processor firmware version of the processor, and the reading of the target processor firmware version corresponding to the target device attributes of the processor from the device attributes of the processor with a corresponding relationship and the processor firmware version of the processor includes: obtaining a target read instruction, wherein the target read instruction is used to request to read the target processor firmware version from the first storage space; in response to the target read instruction, calling the adaptation service to read the target processor firmware version corresponding to the target device attributes from the first storage space.

[0007] In an exemplary embodiment, an adaptation service is deployed in the processor, and the detection of the matching degree between the target processor firmware version and the initial bus device firmware version includes: obtaining a target detection request, wherein the target detection request is used to request the detection of the matching degree between the target processor firmware version and the initial bus device firmware version; in response to the target detection request, calling the adaptation service to detect the matching degree between the target processor firmware version and the initial bus device firmware version.

[0008] In an exemplary embodiment, the calling of the adaptation service to detect the degree of match between the target processor firmware version and the initial bus device firmware version includes: calling the adaptation service to generate first verification information corresponding to the target processor firmware version, and calling the adaptation service to generate second verification information corresponding to the initial bus device firmware version; calling the adaptation service to detect the degree of match between the target processor firmware version and the initial bus device firmware version based on the first verification information and the second verification information.

[0009] In an exemplary embodiment, the calling of the adaptation service to detect the degree of match between the target processor firmware version and the initial bus device firmware version based on the first verification information and the second verification information includes: when the first verification information includes a first version identifier of the target processor firmware version and when the second verification information includes a second version identifier of the initial bus device firmware version, calling the adaptation service to detect the degree of match between the first version identifier and the second version identifier; when the first verification information includes a first verification value of the target processor firmware version and when the second verification information includes a second verification value of the initial bus device firmware version, calling the adaptation service to detect the degree of match between the first verification value and the second verification value.

[0010] In an exemplary embodiment, an adaptation service is deployed in the processor, and when the matching degree is less than or equal to a matching degree threshold, the initial bus device firmware version is adjusted to the target bus device firmware version according to the target processor firmware version, including: obtaining a target adjustment request, wherein the target adjustment request is used to request that the initial bus device firmware version be adjusted to the target bus device firmware version; in response to the target adjustment request, calling the adaptation service to adjust the initial bus device firmware version to the target bus device firmware version according to the target processor firmware version.

[0011] In an exemplary embodiment, a second storage space is deployed in the server, and a third storage space is deployed in the target bus device, the third storage space is used to store the initial bus device firmware version, and the calling of the adaptation service adjusts the initial bus device firmware version to the target bus device firmware version according to the target processor firmware version, including: obtaining a target backup request, wherein the target backup request is used to request a backup of the target bus device firmware version and the initial bus device firmware version; in response to the target backup request, calling the adaptation service to perform a backup operation on the target processor firmware version to obtain a backup processor firmware version, and calling the adaptation service to perform a backup operation on the initial bus device firmware version to obtain a backup bus device firmware version, and calling the adaptation service to perform a backup operation on the backup processor firmware version The method comprises the steps of: calling the adapter service to store the backup processor firmware version in the second storage space, calling the adapter service to store the backup bus device firmware version in the second storage space, calling the adapter service to read the backup processor firmware version from the second storage space, calling the adapter service to extract the data sending parameters in the backup processor firmware version, and calling the adapter service to determine the target data receiving parameters according to a preset matching degree; calling the adapter service to read the backup bus device firmware version from the second storage space, and calling the adapter service to adjust the backup bus device firmware version according to the target data receiving parameters to obtain the target bus device firmware version; calling the adapter service to delete the initial bus device firmware version stored in the third storage space, and calling the adapter service to store the target bus device firmware version in the third storage space.

[0012] According to another embodiment of the present application, a firmware adjustment device for a bus device is provided. A processor and a plurality of bus device slots are deployed in a server. The server stores device attributes of the processor having a corresponding relationship and a processor firmware version of the processor. Each of the plurality of bus device slots is used to connect a bus device. The processor allows data interaction with the bus devices on each slot. The device is applied to the processor. The device includes:

[0013] a reading module, configured to read a target processor firmware version corresponding to the target device attribute of the processor from the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor, and obtain an initial bus device firmware version of the target bus device, wherein the bus device firmware of the initial bus device firmware version is used to configure the initial data receiving parameters for the target bus device to receive data sent by the processor, and the processor firmware of the target processor firmware version is used to configure the data sending parameters for the processor to send data to the target bus device;

[0014] A detection module, used to detect the matching degree between the target processor firmware version and the initial bus device firmware version, wherein the matching degree is used to indicate the matching degree between the initial data receiving parameters and the data sending parameters;

[0015] an adjustment module, for adjusting the initial bus device firmware version to a target bus device firmware version according to the target processor firmware version when the matching degree is less than or equal to a matching degree threshold, wherein the matching degree between the target data receiving parameters indicated by the bus device firmware of the target bus device firmware version and the data sending parameters is higher than the matching degree between the initial data receiving parameters and the data sending parameters.

[0016] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0017] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0018] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0019] Through the present application, the matching degree between the data receiving parameters of the data sent by the processor received by the bus device connected to the server and the data sending parameters of the data sent by the processor may be low. In such a case, the version of the firmware of the bus device can be adjusted to an appropriate version based on, but not limited to, the firmware version of the processor's firmware. In this way, the matching degree between the data receiving parameters of the data sent by the processor received by the bus device and the data sending parameters of the data sent by the processor is improved, and the time required to adjust the version of the firmware of the bus device to an appropriate version is reduced. Therefore, the problem of low firmware adjustment efficiency of the bus device can be solved, thereby achieving the effect of improving the firmware adjustment efficiency of the bus device. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a hardware structure block diagram of a server device of a method for adjusting the firmware of a bus device according to an embodiment of the present application;

[0021] Figure 2 is a flowchart of a firmware adjustment method for a bus device according to an embodiment of the present application;

[0022] Figure 3 This is a schematic diagram of an optional connection between a bus device and a processor according to an embodiment of the present application. Figure 1 ;

[0023] Figure 4 This is a schematic diagram of an optional connection between a bus device and a processor according to an embodiment of the present application. Figure 2 ;

[0024] Figure 5 is a schematic diagram of an optional method for adjusting the firmware of a bus device according to an embodiment of the present application;

[0025] Figure 6 It is a structural block diagram of a firmware adjustment device for a bus device according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0028] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a bus device firmware adjustment method according to an embodiment of the present application. Figure 1As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0029] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the firmware adjustment method of the bus device in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0030] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), 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 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0031] First, the terms involved in the embodiments of the present application are explained as follows:

[0032] CTLE: Continuous Time Linear Equalizer, is a signal equalizer used in communication systems. Its basic principle is to eliminate high-frequency attenuation in the communication channel by compensating for the high-frequency part. This is achieved by adding a continuous time linear equalizer to the signal path. By compensating for the high-frequency part, CTLE can improve the signal-to-noise ratio and reduce the bit error rate. CTLE is a technology on the receiving chip. The role of CTLE can effectively improve the performance of the receiving eye diagram in links with large transmission losses.

[0033] PCI-Express: peripheral component interconnect express, is a high-speed serial computer expansion bus standard.

[0034] PCIe Switch, a hardware device that provides expansion or aggregation capabilities and allows more devices to be connected to a PCIe port.

[0035] The OCP (Open Compute Project) interface is an open server architecture that provides a scalable server architecture that can meet different server requirements. It supports multiple network interfaces, including Ethernet, InfiniBand, FibreChannel, etc.

[0036] In this embodiment, a method for adjusting the firmware of a bus device is provided. A processor and a plurality of bus device slots are deployed in a server. The server stores device attributes of the processor having a corresponding relationship and a processor firmware version of the processor. Each of the plurality of bus device slots is used to connect a bus device. The processor allows data interaction with the bus devices on each slot. The method is applied to the processor. Figure 2 is a flowchart of a firmware adjustment method for a bus device according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0037] Step S202, when it is detected that the target bus device is connected to the target slot on the server, read the target processor firmware version corresponding to the target device attribute of the processor from the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor, and obtain the initial bus device firmware version of the target bus device, wherein the bus device firmware of the initial bus device firmware version is used to configure the initial data receiving parameters for the target bus device to receive the data sent by the processor, and the processor firmware of the target processor firmware version is used to configure the data sending parameters for the processor to send data to the target bus device;

[0038] Step S204, detecting the matching degree between the target processor firmware version and the initial bus device firmware version, wherein the matching degree is used to indicate the matching degree between the initial data receiving parameters and the data sending parameters;

[0039] Step S206, when the matching degree is less than or equal to the matching degree threshold, the initial bus device firmware version is adjusted to the target bus device firmware version according to the target processor firmware version, wherein the matching degree between the target data receiving parameters indicated by the bus device firmware of the target bus device firmware version and the data sending parameters is higher than the matching degree between the initial data receiving parameters and the data sending parameters.

[0040] Through the above steps, the matching degree between the data receiving parameters of the bus device connected to the server for receiving the data sent by the processor and the data sending parameters of the data sent by the processor may be low. In this case, the version of the firmware of the bus device can be adjusted to a suitable version based on, but not limited to, the firmware version of the processor's firmware. In this way, the matching degree between the data receiving parameters of the bus device for receiving the data sent by the processor and the data sending parameters of the data sent by the processor is improved, and the time required to adjust the version of the firmware of the bus device to a suitable version is reduced. Therefore, the problem of low firmware adjustment efficiency of the bus device can be solved, thereby achieving the effect of improving the firmware adjustment efficiency of the bus device.

[0041] In the technical solution provided in the above step S202, the processor may include but is not limited to a CPU (Central Processing Unit), an MCU (Microcontroller Unit), etc., and the present application does not impose any restrictions on this. Each bus device slot in the multiple bus device slots deployed in the server is used to connect a bus device. As an optional example, the bus device may include but is not limited to a device that meets the target bus protocol. For example, the target bus protocol may include but is not limited to a PCIE protocol or an OCP protocol, etc.

[0042] The processor can, but is not limited to, directly interact with the bus device connected to the bus device slot. Figure 3 This is a schematic diagram of an optional connection between a bus device and a processor according to an embodiment of the present application. Figure 1 ,like Figure 3 As shown, it can be but not limited to take a server motherboard with a processor (e.g., CPU), bus device slots including SLOT1 and SLOT2, and bus devices including external card 1 and external card 2 as an example. SLOT1 and SLOT2 can be but not limited to PCIE standard slots. In this case, external card 1 can be but not limited to being connected to SLOT1, external card 2 can be but not limited to being connected to SLOT2, the CPU can be but not limited to allowing data interaction with external card 1 connected to SLOT1, and the CPU can be but not limited to allowing data interaction with external card 1 connected to SLOT2 through PCIE Switch.

[0043] The motherboard can, but is not limited to, exchange data with the device connected to the expanded slot through the adapter board. Figure 4 This is a schematic diagram of an optional connection between a bus device and a processor according to an embodiment of the present application. Figure 2 ,like Figure 4 As shown, it can be but not limited to taking a server motherboard with a processor (eg, CPU), connector 1 and connector 2 deployed thereon, and a bus device including an external card 1 and an external card 2 as an example.

[0044] In this case, the external card 1 may be connected to SLOT1 on the adapter board 1, but not limited to, and the external card 2 may be connected to SLOT2 on the adapter board 2, but not limited to. The CPU may allow data exchange between the external card 1 connected to SLOT1 on the adapter board 1 through the adapter board 1, but not limited to. The CPU may allow data exchange between the external card 2 connected to SLOT2 on the adapter board 2 through the adapter board 2, but not limited to. SLOT1 and SLOT2 may be, but not limited to, PCIE standard slots.

[0045] Optionally, in this embodiment, the target device attribute may include, but is not limited to, a processor model, a processor serial number, a processor manufacturer, or a processor identifier, etc.

[0046] Optionally, in this embodiment, the initial bus device firmware version of the target bus device can be obtained in the following manner but is not limited to: a first storage space is deployed in the server, and the first storage space is used to store bus device attributes of bus devices with corresponding relationships and processor firmware versions of bus devices. The initial bus device firmware version corresponding to the bus device attributes of the target bus device can be read from the first storage space but is not limited to.

[0047] Optionally, in this embodiment, the processor firmware version of the processor may be but is not limited to being used to indicate a version of the processor's firmware, the processor's firmware may be but is not limited to including a processing program solidified in the processor, and different versions of the processor's firmware may be but are not limited to including different versions of the processing program solidified in the processor.

[0048] Optionally, in this embodiment, the bus device firmware version of the target bus device may be but is not limited to indicating the version of the firmware of the target bus device, the firmware of the target bus device may be but is not limited to including a target program solidified in the target bus device, and different versions of the firmware of the target bus device may be but are not limited to including different versions of the target program solidified in the target bus device.

[0049] In an exemplary embodiment, an adaptation service is deployed in the processor, and a first storage space is deployed in the server, wherein the first storage space is used to store the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor, and the target processor firmware version corresponding to the target device attributes of the processor can be read from the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor in the following manner, but is not limited to: obtaining a target read instruction, wherein the target read instruction is used to request to read the target processor firmware version from the first storage space; in response to the target read instruction, calling the adaptation service to read the target processor firmware version corresponding to the target device attributes from the first storage space.

[0050] Optionally, in this embodiment, the target read instruction may, but is not limited to, carry target device attributes, and may, but is not limited to, call an adaptation service to extract the target device attributes carried in the target read instruction, and call the adaptation service to read the target processor firmware version corresponding to the target device attributes from the first storage space.

[0051] In this way, the storage service deployed in the processor automatically detects the processor firmware version corresponding to the processor, thereby improving the efficiency of detecting the processor firmware version corresponding to the processor.

[0052] In the technical solution provided in the above step S204, the initial data receiving parameter may be, but is not limited to, used to control the quality of the data sent by the processor received by the target bus device, and the data sending parameter may be, but is not limited to, used to control the quality of the data sent by the processor to the target bus device. For example, when the data receiving parameter includes the CTLE parameter, by adjusting the CTLE parameter, the signal-to-noise ratio can be improved and the bit error rate can be reduced, thereby improving the quality of the signal received by the bus device.

[0053] As an optional example, the matching degree may be but is not limited to indicating the matching degree between the quality of data sent by the processor received by the target bus device indicated by the initial data reception parameter and the quality of data sent by the processor to the target bus device indicated by the data transmission parameter.

[0054] In an exemplary embodiment, an adaptation service is deployed in the processor, which can detect the matching degree between the target processor firmware version and the initial bus device firmware version in the following manner, but is not limited to: obtaining a target detection request, wherein the target detection request is used to request the matching degree between the target processor firmware version and the initial bus device firmware version to be detected; in response to the target detection request, calling the adaptation service to detect the matching degree between the target processor firmware version and the initial bus device firmware version.

[0055] Optionally, in this embodiment, the adaptation service can be called but is not limited to detect the matching degree between the target processor firmware version and the initial bus device firmware version. In this way, the matching degree between the target processor firmware version and the initial bus device firmware version is detected during the normal processing of the business by the processor, thereby reducing the impact of the matching degree between the target processor firmware version and the initial bus device firmware version on the business executed by the processor.

[0056] In an exemplary embodiment, the adaptation service can be called to detect the degree of match between the target processor firmware version and the initial bus device firmware version in the following manner, but is not limited to: calling the adaptation service to generate first verification information corresponding to the target processor firmware version, and calling the adaptation service to generate second verification information corresponding to the initial bus device firmware version; calling the adaptation service to detect the degree of match between the target processor firmware version and the initial bus device firmware version based on the first verification information and the second verification information.

[0057] Optionally, in this embodiment, the adaptation service can be called to generate first verification information corresponding to the target processor firmware version, and the adaptation service can be called to generate second verification information corresponding to the initial bus device firmware version in the following manner, but is not limited to: calling the adaptation service to extract the first verification information carried in the target processor firmware version, and calling the adaptation service to extract the second verification information carried in the initial bus device firmware version; or, calling the adaptation service to generate first verification information based on the acquired target processor firmware version, and calling the adaptation service to generate second verification information based on the acquired initial bus device firmware version.

[0058] In an exemplary embodiment, the adaptation service can be called in the following manner to detect the match between the target processor firmware version and the initial bus device firmware version based on the first verification information and the second verification information, but is not limited to: when the first verification information includes a first version identifier of the target processor firmware version and when the second verification information includes a second version identifier of the initial bus device firmware version, the adaptation service is called to detect the match between the first version identifier and the second version identifier; when the first verification information includes a first verification value of the target processor firmware version and when the second verification information includes a second verification value of the initial bus device firmware version, the adaptation service is called to detect the match between the first verification value and the second verification value.

[0059] Optionally, in this embodiment, the first version identifier may be but is not limited to being carried in the target processor firmware version, the second version identifier may be but is not limited to being carried in the initial bus device firmware version, and the adaptation service may be but is not limited to being called to detect the degree of match between the first version identifier and the second version identifier: for example, calling the adaptation service to detect whether the first version identifier and the second version identifier are consistent, or calling the adaptation service to detect the consistent part of the first version identifier and the second version identifier.

[0060] Optionally, in this embodiment, the first verification value can be generated in the following manner but is not limited to: calling an adaptation service to input the target processor firmware version into a target algorithm to obtain a first verification value output by the target algorithm, wherein the target algorithm is set to calculate the verification value corresponding to the input firmware version.

[0061] Optionally, in this embodiment, the second verification value can be generated in the following manner but is not limited to: calling the adaptation service to input the initial bus device firmware version into the target algorithm, and obtaining the second verification value output by the target algorithm, wherein the target algorithm is set to calculate the verification value corresponding to the input firmware version.

[0062] Optionally, in this embodiment, an adaptation service may be called, but is not limited to, to detect whether the first verification value and the second verification value are consistent, to obtain a matching degree between the first verification value and the second verification value.

[0063] In the technical solution provided in the above step S206, when the matching degree is greater than the matching degree threshold, it can be indicated that the matching degree between the initial data receiving parameters and the data sending parameters is relatively high. In this case, there is no need to adjust the bus device firmware version of the target bus device. The processor can, but is not limited to, send data to the target bus device according to the data sending parameters, and the bus device can, but is not limited to, receive the data sent by the processor according to the initial data receiving parameters.

[0064] Optionally, in this embodiment, when the matching degree is less than or equal to the matching degree threshold, it can be indicated that the matching degree between the initial data receiving parameter and the data sending parameter is low, for example, the data sending parameter is higher than the initial data receiving parameter, or the initial data receiving parameter is higher than the data sending parameter. It can be understood that the quality of the data sent by the processor received by the target bus device indicated by the initial data receiving parameter may be higher than the quality of the data sent by the processor to the target bus device indicated by the data sending parameter, or the quality of the data sent by the processor received by the target bus device indicated by the initial data receiving parameter may be lower than the quality of the data sent by the processor to the target bus device indicated by the data sending parameter.

[0065] In an exemplary embodiment, an adaptation service is deployed in the processor, which can, but is not limited to, adjust the initial bus device firmware version to the target bus device firmware version according to the target processor firmware version when the matching degree is less than or equal to the matching degree threshold in the following manner: obtaining a target adjustment request, wherein the target adjustment request is used to request that the initial bus device firmware version be adjusted to the target bus device firmware version; in response to the target adjustment request, calling the adaptation service to adjust the initial bus device firmware version to the target bus device firmware version according to the target processor firmware version.

[0066] Optionally, in this embodiment, the initial bus device firmware version can be adjusted to the target bus device firmware version according to the target processor firmware version by calling the adaptation service, but is not limited to. In this way, the adaptation service is called to adjust the initial bus device firmware version according to the accurate adjustment basis, thereby improving the adjustment efficiency of the bus device firmware version of the bus device.

[0067] In an exemplary embodiment, a second storage space is deployed in the server, and a third storage space is deployed in the target bus device, and the third storage space is used to store the initial bus device firmware version. The adaptation service can be called in the following manner to adjust the initial bus device firmware version to the target bus device firmware version according to the target processor firmware version, but is not limited to: obtaining a target backup request, wherein the target backup request is used to request a backup of the target bus device firmware version and the initial bus device firmware version; in response to the target backup request, calling the adaptation service to perform a backup operation on the target processor firmware version to obtain a backup processor firmware version, and calling the adaptation service to perform a backup operation on the initial bus device firmware version to obtain a backup bus device firmware version, and calling the adaptation service to back up the backup The method comprises the steps of: calling the adapter service to store the backup processor firmware version in the second storage space, calling the adapter service to store the backup bus device firmware version in the second storage space, calling the adapter service to read the backup processor firmware version from the second storage space, calling the adapter service to extract the data sending parameters in the backup processor firmware version, and calling the adapter service to determine the target data receiving parameters according to a preset matching degree; calling the adapter service to read the backup bus device firmware version from the second storage space, and calling the adapter service to adjust the backup bus device firmware version according to the target data receiving parameters to obtain the target bus device firmware version; calling the adapter service to delete the initial bus device firmware version stored in the third storage space, and calling the adapter service to store the target bus device firmware version in the third storage space.

[0068] Optionally, in this embodiment, the preset matching degree may be but is not limited to being determined based on the signal quality requirements of the data interaction. For example, when the signal quality requirements of the data interaction are high, the preset matching degree may be but is not limited to including a complete match (for example, a matching degree of 100%), or a relatively good match (for example, a matching degree of 90%).

[0069] Optionally, in this embodiment, the adaptation service may be called but is not limited to adjust the backup bus device firmware version according to the target data reception parameters. For example, when the preset matching degree is 100%, the target data reception parameters and the data sending parameters may be but are not limited to completely matching. In this case, the target bus device firmware version may be but is not limited to including the backup processor firmware version. It can be understood that the initial bus device firmware version may be but is not limited to directly replacing the backup processor firmware version.

[0070] In order to better understand the firmware adjustment method of the bus device in the embodiment of the present application, the firmware adjustment method of the bus device in the embodiment of the present application is explained and illustrated in combination with optional embodiments below, which can be applicable to but not limited to the embodiment of the present application.

[0071] The main devices included in the embodiments of the present application include: (1) a main board; (2) an adapter board (optional); (3) an external card; and (4) a software OS.

[0072] 1. The motherboard is equipped with key components such as processors (for example, CPU), PCIE Switch, etc., which are used to expand the PCIE bus external card slot (equivalent to the bus device slot).

[0073] 2. The adapter board is optional. Some motherboards are directly designed with PCIE bus plug-in card slots, such as OCP slots or PCIE standard slots. Some motherboards expand the PCIE bus to OCP slots or PCIE standard slots through the adapter board.

[0074] 3. The plug-in card (equivalent to the bus device) may include but is not limited to a standard PCIE bus service card, which may be in OCP form or a PCIE standard card. It is mainly aimed at plug-in cards whose bus communication is abnormal due to the poor balancing ability of the chip itself, and the plug-in card supports the online firmware upgrade function.

[0075] 4. Software OS (equivalent to adaptation service) mainly refers to the software system running on the hardware platform, which can support card firmware loading, card firmware comparison and card firmware upgrade.

[0076] In this way, the hardware platform (equivalent to the motherboard) can be flexibly applied and is applicable to products with different CPU platforms and hardware platforms with different structures; and the embodiments of the present application are applicable to plug-in cards of OCP slots, PCIE standard slots, etc., without any structural restrictions; the software OS (equivalent to the adaptation service) compares the card firmware in various forms, which can be achieved by comparing the checksum value of the firmware file or the version number of the firmware, and the methods are diverse. The automatic maintenance of the software OS can realize the use of different firmware for the same card on different hardware platforms, saving the management and maintenance costs of the card (equivalent to the bus device).

[0077] Figure 5 is a schematic diagram of an optional method for adjusting the firmware of a bus device according to an embodiment of the present application, such as Figure 5As shown, the hardware platform may include, but is not limited to, a server motherboard, which has a processor (such as a CPU) and a PCIE switch onboard, and provides an expandable PCIE bus. Some motherboards have simple structures and can be directly designed with plug-in card slots to connect plug-in cards. This generally has low link loss. Some motherboards have relatively complex functions and structures, and need to be connected to adapter boards to expand plug-in card slots and connect plug-in cards. This link has an extra layer of transfer, which results in a large loss in link signal quality, and bus communication negotiation is prone to degradation.

[0078] For plug-in cards (equivalent to bus devices) with poor signal balancing capabilities of the card chip itself, the default CTLE parameters are generally adaptive. Due to the poor adaptive capabilities, in some designs with large link losses, the signal cannot be negotiated to the CTLE optimal value, resulting in PCIE link rate and bandwidth degradation. For the degradation problem of the same card on different hardware platforms, the data receiving parameters (for example, CTLE parameters) of the card are traversed and tested to lock the CTLE optimal value and fix it in the firmware of the card chip.

[0079] For plug-in cards with poor signal balancing capabilities of the chip itself, degradation problems are prone to occur and the online firmware upgrade function can be supported so that the OS can package different firmware and adapt to different hardware platforms.

[0080] For example, OS (equivalent to adaptation service) packs firmware adapted to different hardware platforms. After the hardware platform is powered on and the OS is started, OS loads the external card firmware and identifies the current hardware platform type (equivalent to the device attributes of the processor), and compares it with the firmware adapted to the current hardware platform. The comparison can be performed by comparing the checksum value, version number, etc. If the comparison is successful, it will prompt success and there is no need to upgrade the firmware. If the comparison fails, the card firmware is upgraded to the firmware version corresponding to the current hardware platform. After the upgrade is successful, OS is restarted. OS will perform a comparison every time it is started. After the comparison is successful, the system will run normally.

[0081] In this way, the hardware platform has a motherboard, an adapter board (optional), and an external card. Different hardware platforms are equipped with the same card, and their PCIE link loss is different. For cards with poor signal balancing capabilities, the PCIE link may be degraded, and the CTLE parameters of the card-side chip (equivalent to the bus device) are adaptively adjusted. The CTLE parameters need to be fixed in the firmware of the chip. Different firmwares of the same card correspond to different PN numbers. In order to reduce the PN number and facilitate supply chain management and maintenance, the firmware of the card is compared and upgraded through software, and the card only retains a default PN number. In this way, while solving the PCIE link degradation problem caused by signal quality, the firmware of external cards on different hardware platforms is managed by software, reducing the planning and supply preparation problems caused by the increase of PN numbers due to different firmware of the same card. This mechanism can be flexibly applied to various product configurations, saving human maintenance costs.

[0082] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0083] In this embodiment, a firmware adjustment device for a bus device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0084] Figure 6 is a structural block diagram of a firmware adjustment device for a bus device according to an embodiment of the present application, such as Figure 6 As shown, a processor and a plurality of bus device slots are deployed in the server, and the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor are stored on the server, each bus device slot in the plurality of bus device slots is used to connect a bus device, and the processor allows data interaction with the bus devices on each slot, and the device is applied to the processor, and the device includes:

[0085] A reading module 602 is used to read the target processor firmware version corresponding to the target device attribute of the processor from the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor, and obtain the initial bus device firmware version of the target bus device, wherein the bus device firmware of the initial bus device firmware version is used to configure the initial data receiving parameters for the target bus device to receive data sent by the processor, and the processor firmware of the target processor firmware version is used to configure the data sending parameters for the processor to send data to the target bus device;

[0086] A detection module 604 is used to detect the matching degree between the target processor firmware version and the initial bus device firmware version, wherein the matching degree is used to indicate the matching degree between the initial data receiving parameters and the data sending parameters;

[0087] The adjustment module 606 is used to adjust the initial bus device firmware version to the target bus device firmware version according to the target processor firmware version when the matching degree is less than or equal to the matching degree threshold, wherein the matching degree between the target data receiving parameters indicated by the bus device firmware of the target bus device firmware version and the data sending parameters is higher than the matching degree between the initial data receiving parameters and the data sending parameters.

[0088] Through the above-mentioned device, the matching degree between the data receiving parameters of the data sent by the processor received by the bus device connected to the server and the data sending parameters of the data sent by the processor may be low. In this case, the version of the firmware of the bus device can be adjusted to a suitable version based on, but not limited to, the firmware version of the processor's firmware. In this way, the matching degree between the data receiving parameters of the data sent by the processor received by the bus device and the data sending parameters of the data sent by the processor is improved, and the time required to adjust the version of the firmware of the bus device to a suitable version is reduced. Therefore, the problem of low firmware adjustment efficiency of the bus device can be solved, thereby achieving the effect of improving the firmware adjustment efficiency of the bus device.

[0089] In an exemplary embodiment, an adaptation service is deployed in the processor, a first storage space is deployed in the server, the first storage space is used to store the device attributes of the processor having the corresponding relationship and the processor firmware version of the processor, and the reading module includes:

[0090] A first acquisition unit, configured to acquire a target read instruction, wherein the target read instruction is used to request to read the target processor firmware version from the first storage space;

[0091] The first calling unit is used to respond to the target read instruction and call the adaptation service to read the target processor firmware version corresponding to the target device attribute from the first storage space.

[0092] In an exemplary embodiment, an adaptation service is deployed in the processor, and the detection module includes:

[0093] A second acquisition unit, configured to acquire a target detection request, wherein the target detection request is used to request detection of a matching degree between the target processor firmware version and the initial bus device firmware version;

[0094] The second calling unit is used to respond to the target detection request and call the adaptation service to detect the matching degree between the target processor firmware version and the initial bus device firmware version.

[0095] In an exemplary embodiment, the second calling unit is used to:

[0096] Calling the adaptation service to generate first verification information corresponding to the target processor firmware version, and calling the adaptation service to generate second verification information corresponding to the initial bus device firmware version;

[0097] The adaptation service is called to detect the matching degree between the target processor firmware version and the initial bus device firmware version according to the first verification information and the second verification information.

[0098] In an exemplary embodiment, the second calling unit is further configured to:

[0099] In a case where the first verification information includes a first version identifier of the target processor firmware version, and the second verification information includes a second version identifier of the initial bus device firmware version, calling the adaptation service to detect a match between the first version identifier and the second version identifier;

[0100] When the first verification information includes a first verification value of the target processor firmware version and when the second verification information includes a second verification value of the initial bus device firmware version, the adaptation service is called to detect a match between the first verification value and the second verification value.

[0101] In an exemplary embodiment, an adaptation service is deployed in the processor, and the adjustment module includes:

[0102] A third acquiring unit, configured to acquire a target adjustment request, wherein the target adjustment request is used to request to adjust the initial bus device firmware version to the target bus device firmware version;

[0103] The third calling unit is used to respond to the target adjustment request, call the adaptation service and adjust the initial bus device firmware version to the target bus device firmware version according to the target processor firmware version.

[0104] In an exemplary embodiment, a second storage space is deployed in the server, a third storage space is deployed in the target bus device, the third storage space is used to store the initial bus device firmware version, and the third calling unit is used to:

[0105] Obtaining a target backup request, wherein the target backup request is used to request to back up the target bus device firmware version and to back up the initial bus device firmware version;

[0106] In response to the target backup request, calling the adaptation service to perform a backup operation on the target processor firmware version to obtain a backup processor firmware version, calling the adaptation service to perform a backup operation on the initial bus device firmware version to obtain a backup bus device firmware version, calling the adaptation service to store the backup processor firmware version in the second storage space, and calling the adaptation service to store the backup bus device firmware version in the second storage space;

[0107] Calling the adaptation service to read the backup processor firmware version from the second storage space, calling the adaptation service to extract the data sending parameters in the backup processor firmware version, and calling the adaptation service to determine the target data receiving parameters according to a preset matching degree;

[0108] Calling the adaptation service to read the backup bus device firmware version from the second storage space, and calling the adaptation service to adjust the backup bus device firmware version according to the target data receiving parameter to obtain the target bus device firmware version;

[0109] The adaptation service is called to delete the initial bus device firmware version stored in the third storage space, and the adaptation service is called to store the target bus device firmware version in the third storage space.

[0110] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0111] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0112] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0113] An embodiment of the present application further provides 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 execute the steps in any one of the above method embodiments.

[0114] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0115] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0116] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0117] An embodiment of the present application also provides a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0118] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0119] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0120] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for adjusting the firmware of a bus device, characterized in that: A processor and a plurality of bus device slots are deployed in a server, and the server stores device attributes of the processor and a processor firmware version having a corresponding relationship, each of the plurality of bus device slots is used to connect a bus device, and the processor allows data interaction with the bus devices on each slot, and the method is applied to the processor, and the method includes: In the case where it is detected that the target bus device is connected to the target slot on the server, the target processor firmware version corresponding to the target device attribute of the processor is read from the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor, and the initial bus device firmware version of the target bus device is obtained, wherein the bus device firmware of the initial bus device firmware version is used to configure the initial data receiving parameters for the target bus device to receive the data sent by the processor, and the processor firmware of the target processor firmware version is used to configure the data sending parameters for the processor to send data to the target bus device; Detecting a matching degree between the target processor firmware version and the initial bus device firmware version, wherein the matching degree is used to indicate a matching degree between the initial data receiving parameters and the data sending parameters; When the degree of match is less than or equal to a matching degree threshold, the initial bus device firmware version is adjusted to a target bus device firmware version according to the target processor firmware version, wherein a degree of match between target data receiving parameters indicated by the bus device firmware of the target bus device firmware version and the data sending parameters is higher than a degree of match between the initial data receiving parameters and the data sending parameters.

2. The method according to claim 1, characterized in that The processor is deployed with an adaptation service, the server is deployed with a first storage space, the first storage space is used to store the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor, and the reading of the target processor firmware version corresponding to the target device attribute of the processor from the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor includes: Obtaining a target read instruction, wherein the target read instruction is used to request to read the target processor firmware version from the first storage space; In response to the target read instruction, the adaptation service is called to read the target processor firmware version corresponding to the target device attribute from the first storage space.

3. The method according to claim 1, characterized in that The processor is deployed with an adaptation service, and the detecting the matching degree between the target processor firmware version and the initial bus device firmware version includes: Obtaining a target detection request, wherein the target detection request is used to request detection of a matching degree between the target processor firmware version and the initial bus device firmware version; In response to the target detection request, the adaptation service is called to detect the matching degree between the target processor firmware version and the initial bus device firmware version.

4. The method according to claim 3, characterized in that The calling of the adaptation service to detect the matching degree between the target processor firmware version and the initial bus device firmware version includes: Calling the adaptation service to generate first verification information corresponding to the target processor firmware version, and calling the adaptation service to generate second verification information corresponding to the initial bus device firmware version; The adaptation service is called to detect the matching degree between the target processor firmware version and the initial bus device firmware version according to the first verification information and the second verification information.

5. The method according to claim 4, characterized in that The calling of the adaptation service to detect the matching degree between the target processor firmware version and the initial bus device firmware version according to the first verification information and the second verification information includes: In a case where the first verification information includes a first version identifier of the target processor firmware version, and the second verification information includes a second version identifier of the initial bus device firmware version, calling the adaptation service to detect a match between the first version identifier and the second version identifier; When the first verification information includes a first verification value of the target processor firmware version and when the second verification information includes a second verification value of the initial bus device firmware version, the adaptation service is called to detect a match between the first verification value and the second verification value.

6. The method according to claim 1, characterized in that The processor is deployed with an adaptation service, and the initial bus device firmware version is adjusted to a target bus device firmware version according to the target processor firmware version when the matching degree is less than or equal to a matching degree threshold, including: Obtaining a target adjustment request, wherein the target adjustment request is used to request adjusting the initial bus device firmware version to the target bus device firmware version; In response to the target adjustment request, the adaptation service is called to adjust the initial bus device firmware version to the target bus device firmware version according to the target processor firmware version.

7. The method according to claim 6, characterized in that The server is provided with a second storage space, the target bus device is provided with a third storage space, the third storage space is used to store the initial bus device firmware version, and the calling of the adaptation service adjusts the initial bus device firmware version to the target bus device firmware version according to the target processor firmware version, including: Obtaining a target backup request, wherein the target backup request is used to request to back up the target bus device firmware version and to back up the initial bus device firmware version; In response to the target backup request, calling the adaptation service to perform a backup operation on the target processor firmware version to obtain a backup processor firmware version, calling the adaptation service to perform a backup operation on the initial bus device firmware version to obtain a backup bus device firmware version, calling the adaptation service to store the backup processor firmware version in the second storage space, and calling the adaptation service to store the backup bus device firmware version in the second storage space; Calling the adaptation service to read the backup processor firmware version from the second storage space, calling the adaptation service to extract the data sending parameters in the backup processor firmware version, and calling the adaptation service to determine the target data receiving parameters according to a preset matching degree; Calling the adaptation service to read the backup bus device firmware version from the second storage space, and calling the adaptation service to adjust the backup bus device firmware version according to the target data receiving parameter to obtain the target bus device firmware version; The adaptation service is called to delete the initial bus device firmware version stored in the third storage space, and the adaptation service is called to store the target bus device firmware version in the third storage space.

8. A firmware adjustment device for a bus device, characterized in that: A processor and a plurality of bus device slots are deployed in a server, and the server stores device attributes of the processor and a processor firmware version having a corresponding relationship, each of the plurality of bus device slots is used to connect a bus device, and the processor allows data interaction with the bus devices on each slot, and the device is applied to the processor, and the device includes: a reading module, configured to read a target processor firmware version corresponding to the target device attribute of the processor from the device attributes of the processor having a corresponding relationship and the processor firmware version of the processor, and obtain an initial bus device firmware version of the target bus device, wherein the bus device firmware of the initial bus device firmware version is used to configure the initial data receiving parameters for the target bus device to receive data sent by the processor, and the processor firmware of the target processor firmware version is used to configure the data sending parameters for the processor to send data to the target bus device; A detection module is used to detect the matching degree between the target processor firmware version and the initial bus device firmware version, wherein the matching degree is used to indicate the matching degree between the initial data receiving parameters and the data sending parameters; an adjustment module is used to adjust the initial bus device firmware version to a target bus device firmware version according to the target processor firmware version when the matching degree is less than or equal to a matching degree threshold, wherein the matching degree between the target data receiving parameters indicated by the bus device firmware of the target bus device firmware version and the data sending parameters is higher than the matching degree between the initial data receiving parameters and the data sending parameters.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.