Extended servo system and data updating method
By introducing active update notifications and multiple line transmission mechanisms into the servo system, the problem that the servo system cannot obtain the latest data in a timely manner is solved, and the continuous up-to-date data and efficient utilization of hardware resources are achieved.
Patent Information
- Application Number
- CN202310534277.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2024-11-12
AI Technical Summary
The existing servo system cannot obtain the latest data of the replaceable unit in time after booting, resulting in data errors, and the timing update technology increases the computing workload and hardware resource usage.
By introducing the first and second control modules in the extended servo system, the first control module actively issues update notifications, the second control module generates a download request, transmits update data, and ensures the complete data through multiple lines (I2C and SAS interfaces) , and reliability, only handle update operations when data is updated.
The goal of keeping data up to date without regular updates is achieved, reducing hardware resource usage and computing workload, and ensuring continuous up-to-date and reliable data.
Smart Images

Figure CN118939175A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a data updating technology, and more particularly to an expansion servo system and a data updating method. Background Art
[0002] See also Figure 1 The existing expansion system of the server chassis is suitable for electrically connecting a host 9, and includes two control modules 91, 92, a bus S1 electrically connecting the two control modules 91, 92, and two replaceable units 93, 94. The two replaceable units 93, 94 are electrically connected to the two control modules 91, 92 respectively. When the two control modules 91, 92 simultaneously access the same replaceable unit through the bus S1, a conflict will occur, resulting in data errors. Therefore, the design restricts the control modules 91, 92 to only access the replaceable units 93, 94 connected to themselves. That is, each time the server chassis is turned on, the control module 92 sends an access notification to the control module 91 via the bus S1. The control module 91 reads data from the replaceable unit 93 according to the access notification, and transmits the data back to the control module 2 via the bus S1. The control module 2 then stores the data in the random access memory 96.
[0003] Although this method can avoid data errors caused by read conflicts, it leads to another disadvantage: after a period of time after the machine is turned on, the content of the data stored in the replaceable unit 93 may have been changed. If the data in the replaceable unit 93 is updated, the control module 2 cannot know it, and the control module 92 cannot obtain the latest data in the replaceable unit 93 until the machine is restarted. Even if the timed update technology is used after the machine is turned on, the control module 92 needs to occupy hardware resources to operate continuously to detect whether the data in the replaceable unit 93 is updated, which will increase the computing workload. Summary of the invention
[0004] Therefore, an object of the present invention is to provide a data updating method that can maintain the latest data without periodically updating the data.
[0005] Therefore, the data updating method is performed by an expansion server system, the expansion server system includes a first control module, a second control module, and a first replaceable unit electrically connected to the first control module, and the data updating method includes the following steps: In step (B), the first control module sends an update notification to the second control module, wherein the update notification is related to the change of the data stored in the first replaceable unit.
[0006] In step (C), the second control module generates a first download request to the first control module according to the triggering of the update notification.
[0007] In step (D), the first control module transmits the update data to the second control module according to the first download request from the first control module.
[0008] Another object of the present invention is to provide an extended servo system that can maintain the latest data without periodically updating the data.
[0009] The expansion server system includes a first replaceable unit for storing data, a first control module electrically connected to the first replaceable unit, a second control module, and a first line and a second line electrically connected between the first control module and the second control module.
[0010] The first control module issues an update notification, which is transmitted to the second control module via one of the first line and the second line. The update notification is related to the change of data stored in the first replaceable unit. The second control module generates a first download request to the first control module based on the triggering of the update notification. The first control module transmits the updated data to the second control module based on the first download request from the first control module.
[0011] Compared with the prior art, in the data updating method of the present invention, the first control module actively informs the second control module that the data has been updated without the need for periodic updating, thereby achieving the goal of continuously ensuring that the data stored in the second random access memory element is the latest, and only processing once when the data of the first replaceable unit is updated can reduce the workload of updating data to a minimum and reduce the occupation of hardware resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Other features and effects of the present invention will be clearly presented in the embodiments with reference to the accompanying drawings, in which: Figure 1 It is a system diagram of the expansion system of the existing servo chassis; Figure 2 is a system diagram of an embodiment of an expansion servo system of the present invention; and Figure 3 It is a flow chart of the data updating method. DETAILED DESCRIPTION
[0013] Before the present invention is described in detail, it should be noted that similar elements are denoted by the same reference numerals in the following description.
[0014] See also Figure 2, is an embodiment of the expansion server system of the present invention, electrically connected to a host 9 (for example, a server), and the expansion server system includes a first control module 1, a second control module 2, a first replaceable unit (Field Replace Unit, referred to as FRU) 11 electrically connected to the first control module 1, a first random access memory (Non-volatile Static Random Access Memory, referred to as NVSRAM) 12 electrically connected to the first control module 1, a second replaceable unit 21 electrically connected to the second control module 2, a second random access memory 22 electrically connected to the second control module 2, a first line L1 electrically connected between the first control module 1 and the second control module 2, and a second line L2 electrically connected between the first control module 1 and the second control module 2. The first line L1 includes an Inter-Integrated Circuit Bus (hereinafter referred to as I2C) interface, and the second line L2 includes a Serial Attached Small Computer System Interface (hereinafter referred to as SAS) interface. The first control module 1 and the second control module 2 are both SAS expanders. The first replaceable unit L1 and the second replaceable unit L2 are used to store static data. The static data is not real-time status data (such as fan speed, chip temperature), so it does not need to be updated in time. The static data includes serial number, manufacturing date, and factory burned data as factory information. The storage format of the static data is Intelligent Platform Management Interface (IPMI for short).
[0015] like Figure 3 As shown, this embodiment implements a data updating method, including steps (A) to (J).
[0016] In step (A), the first control module 1 modifies the data stored in the first replaceable unit 11 , that is, at least one of the serial number, manufacturing date, and factory burned data in the original static data is modified by the first control module 1 to generate updated data.
[0017] In step (B), the first control module 1 issues an update notification, which is transmitted to the second control module via one of the first line L1 and the second line L2 . The update notification is related to the change of the data stored in the first replaceable unit 11 . Here, it is further explained that in this embodiment, the first line L1 is the default line and the second line L2 is the backup line, that is, when the data of the first replaceable unit 11 is modified at the beginning, the first control module 1 selects the first line L1 as the main transmission interface to transmit an update notification to the second control module 2. If the first line L1 is operating normally, the second control module 2 will generate an acknowledgment message (ACK) corresponding to the update notification; if the first line L1 is not operating normally at this time, the first control module 1 does not receive the acknowledgment message (ACK) after a default waiting period, and the subsequent actions can be the first state or the second state of this embodiment, wherein the first state is that the first control module 1 changes to select the second line L2 to transmit the update notification, and the second state is that the first control module 1 repeats the transmission of N times (N≧1) using the first line L1 and still fails to receive the acknowledgment message (ACK), and then changes to select the second line L2 to transmit the update notification. The following subsequent process will be described by taking the update notification being transmitted to the second control module 2 via the first line L1 as an example.
[0018] Step (C), when the update notification is transmitted to the second control module 2 via the first line L1, the second control module 2 generates a first download request according to the trigger of the update notification, and the second control module 2 selects the first line L1 to reply, and sends the first download request to the first control module 1 via the first line L1.
[0019] In step (D), the first control module 1 receives the first download request from the second control module 2 via the first line L1, selects the first line L1 to transmit data according to the first download request, and transmits the updated data to the second control module 2 via the first line L1.
[0020] In step (E), the second control module 2 calculates whether the update data is complete and generates a first calculation result indicating whether the data is complete. It is further explained here that the first calculation result is used to determine whether the download is successful or not based on "data integrity". The calculation of data integrity is performed by the second control module 2 calculating the content of the update data to obtain a checksum, such as checksum a. The second control module compares checksum a with checksum b (in the last field of the update data) to confirm whether the update data is complete. If the two are different (a!=b), it means that the update data is damaged and is judged to have failed.
[0021] Step (F), when the first calculation result is negative, the second control module 2 generates a second download request, and selects the second line L2 to send the second download request to the first control module 1 via the second line L2.
[0022] In step (G), the first control module 1 receives the second download request from the second control module 2 via the second line L2, selects the second line L2 to transmit data according to the second download request, and transmits the updated data back to the second control module 2 via the second line L2.
[0023] In step (H), the second control module 2 calculates whether the updated data is complete and generates a second calculation result indicating whether the data is complete. If so, the process proceeds to step (I). If not, the process indicates that the retransmitted updated data is still damaged and the process ends after a failure.
[0024] Step (I), when one of the first calculation result and the second calculation result is yes, the second control module 2 stores the updated data into the second random access memory 22 .
[0025] In step (J), the second control module 2 generates a completion response of the updated data corresponding to the complete data, wherein when the first calculation result is yes, the completion response is transmitted to the first control module 1 via the first line L1, and when the second calculation result is yes, the completion response is transmitted to the first control module 1 via the second line L2.
[0026] In step (K), the first control module 1 determines whether the completion response is received from the second module 2. If so, the process ends; if not, the process returns to step (B).
[0027] In summary, the above embodiment has the following advantages: 1. The first control module 1 actively informs the second control module 2 that the data has been updated, without the need to update the data regularly, so as to continuously ensure that the data stored in the second random access memory element is the latest, and only once the data of the first replaceable unit is updated, the workload of updating the data can be reduced to a minimum, thereby reducing the occupation of hardware resources. 2. The default first line uses the second line L2 as a backup to prevent the first line L1 from operating normally, and the second line L2 can still achieve the purpose of updating the data.
[0028] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A data updating method, executed by an expansion servo system, the expansion servo system comprising a first control module, a second control module, and a first replaceable unit electrically connected to the first control module, characterized in that: The data update method includes: (A) the first control module modifies the data stored in the first replaceable unit to generate updated data; (B) the first control module sends an update notification to the second control module, the update notification being related to a change in data stored in the first replaceable unit; (C) the second control module generates a first download request and sends it to the first control module according to the trigger of the update notification; (D) The first control module transmits the update data to the second control module according to the first download request.
2. The data updating method according to claim 1, characterized in that: The servo system includes a first line electrically connecting the first control module and the second control module, and a second line electrically connecting the first control module and the second control module, wherein the step (B) further includes that the update notification is transmitted to the second control module via one of the first line and the second line.
3. The data updating method according to claim 2, characterized in that: The first circuit includes an integrated circuit bus interface, and the second circuit includes a serial small computer system interface.
4. The data updating method according to claim 2, characterized in that: When the update notification of step (B) is transmitted to the second control module via the first line, the first download request of step (C) is transmitted to the first control module via the first line and the update data of step (D) is transmitted to the second control module via the first line.
5. The data updating method according to claim 1, characterized in that: Also includes, (E) the second control module calculates whether the updated data is complete and generates a first calculation result indicating whether the data is complete; (F) when the first calculation result is negative, the second control module generates a second download request and sends it to the first control module; (G) The first control module retransmits the update data to the second control module according to the second download request.
6. The data updating method according to claim 5, characterized in that: The servo system includes a first line electrically connecting the first control module and the second control module, and a second line electrically connecting the first control module and the second control module, wherein, when the update notification of the step (B) is transmitted to the second control module via the first line, the second download request of the step (F) is transmitted to the first control module via the second line, and the update data of the step (G) is retransmitted to the first control module via the second line.
7. The data updating method according to claim 5, characterized in that: Also includes, (H) the second control module calculates whether the updated data is complete and generates a second calculation result indicating whether the data is complete; (I) when one of the first calculation result and the second calculation result is yes, the second control module stores the updated data into a corresponding random access memory; (J) The second control module generates a completion response according to the calculation result and transmits it to the first control module.
8. The data updating method according to claim 7, characterized in that: The servo system includes a first line electrically connecting the first control module and the second control module, and a second line electrically connecting the first control module and the second control module, wherein, when the first calculation result is yes and the update notification of the step (B) is transmitted to the second control module via the first line, the completion response is transmitted via the first line, wherein, when the second calculation result is yes and the update notification of the step (B) is transmitted to the second control module via the first line, the completion response is transmitted via the second line.
9. The data updating method according to claim 1, characterized in that: The data stored in the first replaceable unit is static data, and the static data includes at least one of a serial number, a manufacturing date, and factory-burned data.
10. An expansion servo system, characterized in that: Include: a first replaceable unit for storing data; a first control module electrically connected to the first replaceable unit; a second control module; a first circuit electrically connecting the first control module and the second control module; a second circuit electrically connecting the first control module and the second control module; The first control module modifies the data stored in the first replaceable unit, generates updated data, and issues an update notification, which is transmitted to the second control module via one of the first line and the second line. The update notification is related to the change of the data stored in the first replaceable unit. The second control module generates a first download request to the first control module based on the triggering of the update notification. The first control module transmits the updated data to the second control module based on the first download request from the first control module.
