A network time synchronization method, device and equipment based on UEFI system

By setting up the UEFI system on the test machine and using the server transmission time information to write into the motherboard BIOS, the problem of low motherboard timing efficiency and low accuracy is solved, fast and accurate timing operations are achieved, and production efficiency is improved.

CN115622649BActive Publication Date: 2024-09-24SHENZHEN ZHIWEI INTELLIGENT SOFTWARE DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211084545.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-06
Publication Date
2024-09-24
Estimated Expiration
2042-09-06

AI Technical Summary

Technical Problem

The existing technology cannot provide a network time adjustment method based on the UEFI system, resulting in low motherboard time adjustment efficiency, low accuracy, and easy omission.

Method used

By setting up the UEFI system on the test machine and using the server to transmit system time information to the test machine, the test machine writes the information into the BIOS of the motherboard to be calibrated for time calibration and transmits the log file to the server to achieve fast and accurate time calibration operations. .

Benefits of technology

It significantly shortens the time for adjusting the time, improves the efficiency and accuracy of the time adjustment, and avoids omissions. It saves about 35 seconds compared to logging in to the Windows system for network time adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115622649B
    Figure CN115622649B
Patent Text Reader

Abstract

The present invention relates to the technical field of motherboard time calibration, and provides a network time calibration method based on UEFI system, wherein the UEFI system is arranged on a test machine, and the test machine is network-connected to a server, and the method comprises the following steps: S1: installing a motherboard to be calibrated on the test machine, and powering on the UEFI system to start, so as to realize the electrical signal connection between the motherboard to be calibrated and the test machine; S2: the server transmits the system time information of the server to the test machine; S3: after receiving the system time information, the test machine writes the system time information into the BIOS of the motherboard to be calibrated for time calibration; S4: after the time calibration is completed, the test machine transmits the test log file information of the test machine to the server; S5: the server receives and stores the test log file information, the time used for time calibration is significantly shortened, the time calibration efficiency and time calibration accuracy are effectively improved, and it is not easy to cause omissions in time calibration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of motherboard timing, and in particular to a network timing method, device and equipment based on UEFI system. Background Art

[0002] The clock chip on the motherboard controls the system time of the computer, and each motherboard has its original clock frequency when it is produced. Therefore, on the motherboard production line, the motherboard needs to be calibrated after it is produced and offline, otherwise the system time of the computer will be inaccurate. At present, there are two traditional methods for calibrating the motherboard: one is to log in to the Windows system for network calibration, and the other is to calibrate the time manually; if the network calibration is performed by logging in to the Windows system, it will take about 40 seconds to log in to the Windows system for network calibration, which is time-consuming and has low calibration efficiency, resulting in a slower production rate; if the manual calibration method is used, it will not only take more time, but also have low calibration accuracy, and it is easy to miss something during calibration. Summary of the invention

[0003] The purpose of the present invention is to provide a network time synchronization method, device and equipment based on the UEFI system, aiming to solve the problem that the prior art cannot provide a network time synchronization method based on the UEFI system, resulting in low time synchronization efficiency of the mainboard using the Windows system, and low time synchronization accuracy and easy omissions of manual time synchronization.

[0004] On the one hand, the present invention provides a network time synchronization method based on a UEFI system, wherein the UEFI system is arranged on a test machine, and the test machine network is connected to a server, and the method comprises the following steps:

[0005] S1: installing the mainboard to be calibrated on the test machine, and powering on the UEFI system to achieve electrical signal connection between the mainboard to be calibrated and the test machine;

[0006] S2: The server transmits the system time information of the server to the testing machine;

[0007] S3: After receiving the system time information, the test machine writes the system time information into the BIOS of the motherboard to be calibrated for time calibration;

[0008] S4: After the time calibration is completed, the test machine transmits the test log file information of the test machine to the server;

[0009] S5: The server receives and stores the test log file information.

[0010] Preferably, the server is provided with host computer software, and the server obtains system time information of the host computer software and transmits the system time information to the test machine.

[0011] Preferably, the test machine is provided with time calibration software, and after receiving the system time information, the time calibration software writes the system time information into the BIOS of the mainboard to be calibrated for time calibration.

[0012] Preferably, the test machine is provided with file uploading software, and after the file uploading software obtains the test log file information of the test machine, the test log file information is transmitted to the upper computer software.

[0013] Preferably, the server is also connected to a database and a human-computer interaction device via a network. After receiving the test log file information, the server transmits the test log file information to the database and the human-computer interaction device respectively.

[0014] Preferably, the test log file information includes the IP address of the test machine, the time calibration time and the time calibration result.

[0015] On the other hand, the present invention provides a network timing device based on the UEFI system, the device comprising:

[0016] A startup unit, used to power on and start the UEFI system when the mainboard is installed on the test machine to be calibrated, so as to realize the electrical signal connection between the mainboard and the test machine when the mainboard is to be calibrated;

[0017] A first information transmission unit, used to enable the server to transmit the system time information of the server to the test machine;

[0018] An information receiving and reading and writing unit is used to enable the test machine to receive the system time information and then write the system time information into the BIOS of the motherboard to be calibrated for time calibration;

[0019] A second information transmission unit is used to enable the test machine to transmit the test log file information of the test machine to the server after the time calibration is completed;

[0020] The information receiving and storing unit is used to enable the server to receive and store the test log file information.

[0021] Preferably, the mainboard to be calibrated is provided with a time memory, and the system time information is written into and stored in the time memory through BIOS.

[0022] On the other hand, the present invention also provides a network timing device based on the UEFI system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.

[0023] On the other hand, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0024] The beneficial effects of the present invention are as follows: Different from the prior art, the present invention is based on the UEFI system, and by loading the UEFI network driver, the system time information of the server is transmitted to the test machine, and then the system time information is written into the mainboard to be calibrated installed on the test machine through the test machine. The UEFI system starts quickly and takes a short time, and the mainboard to be calibrated can be calibrated in less time. The calibration time is significantly shortened, which effectively improves the calibration efficiency and accuracy, and is less prone to omissions. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is an application schematic diagram of the network time synchronization method based on the UEFI system provided by an embodiment of the present invention;

[0026] Figure 2 It is a flow chart of an implementation of a network time synchronization method based on a UEFI system provided by an embodiment of the present invention;

[0027] Figure 3 It is a structural schematic diagram of a network time calibration device based on a UEFI system provided by an embodiment of the present invention;

[0028] Figure 4 It is a structural schematic diagram of a network time synchronization device based on a UEFI system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0030] It is known that the computer startup time is the startup time of hardware startup plus the startup time of booting the system. The quick startup of the Windows system writes some data checked at the last system startup into a system file when the computer is shut down, and then loads it directly when the computer is turned on again. With the continuous installation of software and drivers, the system kernel data that needs to be loaded into the memory when the system starts gradually increases, the data to be read will also increase, and the time based on Windows quick startup will also increase.

[0031] The present invention sets a UEFI (Unified Extensible Firmware Interface) system on a test machine, and based on the UEFI system, loads a UEFI network card driver under a UEFI Shell (UEFI Shell is an interactive command line Shell environment provided by UEFI, in which some UEFI applications can be executed and UEFI device drivers can be loaded), and directly writes a hardware check file into a UEFI startup file, thereby reducing the startup hardware self-check time and keeping the computer hardware relatively stable for a long time. Therefore, the quick startup will not increase due to the system installing an application (unless the hardware configuration is changed).

[0032] Figure 1 The application diagram of the network time synchronization method based on the UEFI system provided by the embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:

[0033] like Figure 1 As shown, the network timing method based on the UEFI system of an embodiment of the present invention is applied to the server 10 and the test machine 20, the UEFI system is set on the test machine 20, and the test machine 20 is connected to the server 10 network, and can be specifically set to be connected to the network through the TCP (Transmission Control Protocol) protocol 30.

[0034] Furthermore, the server 10 is provided with a host computer software 101 for issuing control, debugging and other commands to the test machine 20 and providing system time information of the host computer software 101, and then controlling the test machine 20 to correct the time of the mainboard to be calibrated through the system time information of the host computer software 101.

[0035] Furthermore, the test machine 20 is provided with a time calibration software 201 and a file upload software 202, wherein the time calibration software 201 is used to obtain the system time information transmitted from the server 10 to the test machine 20 and to correct the time of the mainboard to be calibrated through the system time information, and the file upload software 202 is used to obtain the test log file information of the test machine 20 and transmit the test log file to the server 10.

[0036] Furthermore, the test machine 20 communicates with the server 10 through Socket (socket, an abstract concept of endpoint for two-way communication between application processes on different hosts in the network) based on the TCP protocol. Therefore, the time calibration software 201 and the file upload software are also connected to the host computer software 101 TCP network through Socket.

[0037] Generally, the test log file information includes the IP address of the test machine 20, the time calibration time and the time calibration result, etc.

[0038] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:

[0039] Embodiment 1:

[0040] Figure 2 The implementation process of the network time synchronization method based on the UEFI system provided in the first embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown. The specific method is described in detail as follows:

[0041] S1: Install the mainboard to be calibrated on the test machine 20, and power on the UEFI system to achieve electrical signal connection between the mainboard to be calibrated and the test machine;

[0042] In step S1 , the UEFI system is installed on a test machine 20 , and the test machine 20 is connected to a server 10 via a TCP protocol 30 network.

[0043] S2: the server 10 transmits the system time information of the server 10 to the testing machine 20;

[0044] In step S2, the server 10 is provided with a host computer software 101, and the server 10 obtains the system time information of the host computer software 101 and transmits the system time information to the test machine 20, and the test machine 20 calibrates the time of the main board to be calibrated through the system time information; the principle of time calibration is: use the system time of the host computer software 101 with standard time to correct the time of the main board to be calibrated, so that the time of the main board to be calibrated is consistent with the system time of the host computer software 101.

[0045] S3: After receiving the system time information, the test machine 20 writes the system time information into the BIOS (Basic Input Output System) of the motherboard to be calibrated for time calibration;

[0046] In step S3, the test machine 20 is provided with a time calibration software 201. The time calibration software 201 calibrates the mainboard to be calibrated by acquiring the system time information received by the test machine 20, and writes the system time information into the BIOS of the mainboard to be calibrated. The mainboard to be calibrated is provided with a time memory, and the system time information will be written into and stored in the time memory of the mainboard to be calibrated. Finally, the time calibration operation of the mainboard to be calibrated is implemented. The whole process takes a very short time, about 5 seconds. Since the UEFI system starts quickly and stably, the UEFI system can be entered quickly, which makes the calibration time shorter. Compared with logging into the Windows system for network calibration, which takes about 40 seconds, it greatly saves operation time, thereby improving production efficiency.

[0047] The time calibration software 201 is connected to the host computer software 101 via a TCP protocol Socket network.

[0048] S4: After the time calibration is completed, the test machine 20 transmits the test log file information of the test machine 20 to the server 10;

[0049] In step S4 , the test machine 20 is provided with a file uploading software 202 . After the calibration is completed, the test log file information of the test machine 20 will be uploaded to the server 10 through the file uploading software 202 .

[0050] The file upload software 202 is connected to the host computer software 101 via a TCP protocol Socket network.

[0051] S5: The server 10 receives and stores the test log file information.

[0052] In step S5, the server 10 can be connected to the database 102 and the human-computer interaction device 103 via a wired or wireless network. The server 10 further transmits the test log file information to the database 102 and the host computer 103 respectively for storage and verification. Specifically, the test log file information in this embodiment includes the IP address, time calibration time and time calibration result of the test machine 20.

[0053] The human-computer interaction device 103 may be understood as an electronic device with input and output functions, such as a device equipped with a mouse, keyboard, display screen, etc., which is convenient for checking and correcting relevant parameters and instructions of the time calibration operation.

[0054] The database 102 is a collection of a large amount of data with the functions of organizing, storing and managing data, and is usually permanently set up in a computer or other device.

[0055] The server 10 is provided with a local hard disk, and the test log file of the test machine 20 can be stored in the local hard disk.

[0056] Embodiment 2:

[0057] Figure 3 The structure of the network timing device based on the UEFI system provided by the second embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, including:

[0058] The startup unit 601 is used to install the mainboard on the test machine 20 when the mainboard is to be calibrated, so as to power on the UEFI system and realize the electrical signal connection between the mainboard and the test machine 20 when the mainboard is to be calibrated;

[0059] A first information transmission unit 602, the first information transmission unit 602 is used to enable the server 10 to transmit the system time information of the server 10 to the test machine 20;

[0060] The information receiving and reading and writing unit 603 is used to enable the test machine 20 to receive the system time information and then write the system time information into the BIOS of the motherboard to be calibrated for time calibration;

[0061] A second information transmission unit 604, the second information transmission unit 604 is used to enable the test machine 20 to transmit the test log file information of the test machine 20 to the server 10 after the time calibration is completed;

[0062] The information receiving and storing unit 605 is used to enable the server 10 to receive and store the test log file information.

[0063] Wherein, the mainboard to be calibrated is provided with a time memory, and the system time information is written into and stored in the time memory through BIOS.

[0064] The network timing device based on the UEFI system can adopt the method described in Example 1. Specifically, the UEFI system is first installed on the test machine 20, and the test machine 20 is connected to the server 10 through the TCP protocol 30 network; wherein, the server 10 is provided with a host computer software 101, and the server 10 transmits the system time information of the host computer software 101 to the test machine 20, and the test machine 20 performs time calibration on the mainboard to be calibrated through the system time information; the time calibration principle is: use the system time of the host computer software 101 of the standard time to calibrate the time of the mainboard to be calibrated, so that the time of the mainboard to be calibrated is consistent with the system time of the host computer software 101.

[0065] Specifically, the test machine 20 is provided with a time calibration software 201. The time calibration software 201 calibrates the mainboard to be calibrated by acquiring the system time information received by the test machine 20, and writes the system time information into the BIOS of the mainboard to be calibrated. The mainboard to be calibrated is provided with a time memory, and then the system time information will be written and stored in the time memory of the mainboard to be calibrated. Finally, the time calibration operation of the mainboard to be calibrated is implemented. The whole process takes a very short time, about 5 seconds. Since the UEFI system starts quickly and stably, it enters the UEFI system quickly, which makes the calibration time shorter. Compared with logging into the Windows system for network calibration, which takes about 40 seconds, it greatly saves operation time, thereby improving production efficiency. Among them, the time calibration software 201 is connected to the host computer software 101 through a TCP protocol Socket network.

[0066] Specifically, the test machine 20 is provided with a file upload software 202. After the calibration is completed, the test log file information of the test machine 20 will be uploaded to the server 10 through the file upload software 202; wherein, the file upload software 202 is connected to the host computer software 101 through a TCP protocol Socket network.

[0067] Specifically, the server 10 can be connected to the database 102 and the human-computer interaction device 103 via a wired or wireless network. The server 10 further transmits the test log file information to the database 102 and the host computer 103 respectively for storage and verification. Specifically, the test log file in this embodiment includes the IP address, time calibration time and time calibration result of the test machine 20.

[0068] The human-computer interaction device 103 may be understood as an electronic device with input and output functions, such as a computer device equipped with a mouse, keyboard, display screen, etc., to facilitate checking and correcting relevant parameters and instructions of the time calibration operation.

[0069] The database 102 is a collection of a large amount of data with the functions of organizing, storing and managing data, and is usually permanently set in a computer device.

[0070] The server 10 is provided with a local hard disk, and the test log file of the test machine 20 can be stored in the local hard disk.

[0071] It should be noted that, in the embodiment of the present invention, each unit of the network timing device based on the UEFI system can be implemented by a corresponding hardware or software unit. Each unit can be an independent software or hardware unit or integrated into a software or hardware unit, which is not intended to limit the present invention.

[0072] Embodiment three:

[0073] Figure 4 The structure of a network time synchronization device based on a UEFI system provided in Embodiment 3 of the present invention is shown. For the sake of convenience of description, only the part related to the embodiment of the present invention is shown.

[0074] The network time synchronization device based on the UEFI system in the embodiment of the present invention includes a processor 40, a memory 41, and a computer program stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program, the steps in the embodiment of the network time synchronization method based on the UEFI system are implemented, such as Figure 2 Alternatively, the processor 40 implements the functions of each unit in the above-mentioned network timing device embodiment based on the UEFI system when executing the computer program, for example Figure 3 The functions of units 601 to 605 are shown.

[0075] In an embodiment of the present invention, when the mainboard to be calibrated is installed on the test machine 20, the UEFI system is powered on and started through the startup unit 601 to realize the electrical signal connection between the mainboard to be calibrated and the test machine 20; then, the server 10 transmits the system time information of the server 10 to the test machine 20 through the first information transmission unit 602; then, after the test machine 20 receives the system time information through the information receiving and reading and writing unit 603, the system time information is written into the BIOS of the mainboard to be calibrated for time calibration; after the time calibration is completed, the test machine 20 transmits the test log file information of the test machine 20 to the server 10 through the second information transmission unit 604; then, the server 10 receives and stores the test log file information through the information receiving and storing unit 605.

[0076] The network time synchronization device based on the UEFI system in the embodiment of the present invention may be a computer network device provided with a processor 40 and a memory 41 that can execute a computing program. The steps implemented when the processor 40 in the network time synchronization device based on the UEFI system executes the computer program to implement the time synchronization method based on the UEFI system can refer to the description of the aforementioned method embodiment, which will not be repeated here.

[0077] Embodiment five:

[0078] In an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned network timing method embodiment based on the UEFI system are implemented. For example, Figure 2 Alternatively, when the computer program is executed by a processor, the functions of each unit in the above-mentioned device embodiments are realized, for example Figure 3 The functions of units 601 to 605 are shown.

[0079] In this embodiment, the UEFI system is first powered on, and the network card driver of the UEFI system is loaded under the UEFI Shell; then, the system time information of the upper computer software 101 is obtained through the server 10 and the system time information is transmitted to the test machine 20; then, the test machine 20 receives the system time information and writes the system time information into the BIOS and calibrates the mainboard to be calibrated; then, the test log file information of the test machine 20 is obtained through the test machine 20, and then the test log file information is transmitted to the server 10; the server 10 receives and stores the test log file information, and then, the server 10 transmits the test log file information to the database 102 and the human-computer interaction device 103 respectively, wherein the server 10 is provided with a local hard disk, and the test log file information can be stored in the local hard disk of the server 10.

[0080] The computer-readable storage medium of the embodiment of the present invention may include any entity or device or recording medium capable of carrying computer program code, for example, ROM / RAM, magnetic disk, optical disk, flash memory and other memories.

[0081] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A network timing method based on UEFI system, wherein the UEFI system is set in a test machine, and the test machine network is connected to a server, Features: The method comprises the following steps: S1: installing the mainboard to be calibrated on the test machine, and powering on the UEFI system to achieve electrical signal connection between the mainboard to be calibrated and the test machine; S2: The server transmits the system time information of the server to the testing machine; S3: After receiving the system time information, the test machine writes the system time information into the BIOS of the motherboard to be calibrated for time calibration; S4: After the time calibration is completed, the test machine transmits the test log file information of the test machine to the server; S5: The server receives and stores the test log file information.

2. The method according to claim 1, Features: The server is provided with a host computer software, and the server obtains system time information of the host computer software and transmits the system time information to the test machine.

3. The method according to claim 2, Features: The test machine is provided with time calibration software. After receiving the system time information, the time calibration software writes the system time information into the BIOS of the mainboard to be calibrated for time calibration.

4. The method according to claim 2, Features: The test machine is provided with file uploading software. After the file uploading software obtains the test log file information of the test machine, the test log file information is transmitted to the upper computer software.

5. The method according to claim 1, Features: The server is also connected to a database and a human-computer interaction device through a network. After receiving the test log file information, the server transmits the test log file information to the database and the human-computer interaction device respectively.

6. The method according to claim 1, Features: The test log file information includes the IP address of the test machine, the time calibration time and the time calibration result.

7. A network time calibration device based on UEFI system, Features: The device comprises: A startup unit, used to power on and start the UEFI system when the mainboard is installed on the test machine to be calibrated, so as to realize the electrical signal connection between the mainboard and the test machine when the mainboard is to be calibrated; A first information transmission unit, used to enable the server to transmit the system time information of the server to the test machine; An information receiving and reading and writing unit is used to enable the test machine to receive the system time information and then write the system time information into the BIOS of the motherboard to be calibrated for time calibration; A second information transmission unit is used to enable the test machine to transmit the test log file information of the test machine to the server after the time calibration is completed; The information receiving and storing unit is used to enable the server to receive and store the test log file information.

8. The device according to claim 7, Features: The mainboard to be calibrated is provided with a time memory, and the system time information is written into and stored in the time memory through BIOS.

9. A network timing device based on a UEFI system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, Features: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium storing a computer program. Features: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.