Parameter storage method, related device and computer readable medium

By introducing a shadow storage area to cache parameter values ​​in the electronic system and detecting differences in the hardware storage area, the problem of repeatedly downloading unchanged parameters is solved, thereby improving system performance and processing speed.

CN119376821BActive Publication Date: 2025-10-24SONOSCAPE MEDICAL CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310926041.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-26
Publication Date
2025-10-24
Estimated Expiration
2043-07-26

AI Technical Summary

Technical Problem

In existing electronic systems, during parameter interaction, unchanged parameters are repeatedly downloaded to the hardware, resulting in long download times and slow hardware processing speeds, affecting overall performance.

Method used

By setting the shadow storage area cache parameter value in the software part, and only downloading when the parameter value of the shadow storage area is detected to be different from that of the hardware storage area, the duplicate download of unchanged parameters is avoided.

Benefits of technology

It reduces the interaction between software and hardware, and improves the overall performance of electronic systems and hardware processing speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376821B_ABST
    Figure CN119376821B_ABST
Patent Text Reader

Abstract

The application provides a parameter storage method, a related device and a computer readable medium, which are applied to a parameter download framework of an electronic system. In response to a parameter change instruction, a parameter value of a specific parameter node is calculated to obtain a latest parameter value of the specific parameter node. The latest parameter value of the specific parameter node is written into a shadow storage area corresponding to the specific parameter node. The shadow storage area is a cache area of a software part of the electronic system. The shadow storage area is used for recording parameter values of parameter nodes currently stored in a hardware storage area corresponding to the shadow storage area. If it is detected that the latest parameter value written in the shadow storage area is different from a parameter value of the hardware storage area recorded before the writing, the latest parameter value in the shadow storage area is downloaded into the hardware storage area corresponding to the shadow storage area. The application avoids the operation of repeatedly downloading the latest parameter value which does not change into the hardware, and improves the overall performance of the electronic system.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, and in particular, to a parameter storage method, related device and computer readable medium. BACKGROUND

[0002] The existing electronic system is usually composed of software and hardware. During the running of the electronic system, there are a large number of parameter interaction processes between the software part and the hardware part of the electronic system. Taking an ultrasonic diagnostic system as an example, the ultrasonic diagnostic system includes 2D, DOP, 3D, 4D and other modes and combinations of basic modes. When the ultrasonic diagnostic system is in the mode switching, parameter adjustment and other scenes, the software part of the ultrasonic diagnostic system needs to download all the parameters in the mode currently changed to the storage area of the hardware part for storage.

[0003] However, in the parameter interaction process of the existing electronic system, the amount of parameters to be interacted is too large, and some parameters that do not change in value are repeatedly downloaded to the hardware, thereby causing long parameter download time and slow hardware processing speed, and affecting the overall performance of the electronic system. SUMMARY

[0004] Therefore, the embodiments of the present application provide a parameter storage method, related device and computer readable medium to improve the parameter distribution efficiency.

[0005] To achieve the above object, the embodiments of the present application provide the following technical solutions.

[0006] In a first aspect, the present application discloses a parameter storage method applied to a parameter download framework of an electronic system, wherein the parameter download framework of the electronic system is arranged in the software part of the electronic system, and the parameter storage method comprises the following steps: in response to an influence parameter change instruction, performing parameter value calculation on a specific parameter node to obtain the latest parameter value of the specific parameter node; wherein the influence parameter change instruction is an instruction affecting the parameter value change of an upper parameter node; the specific parameter node includes the upper parameter node and an associated parameter node of the upper parameter node; the associated parameter node is a parameter node affected by the parameter value change of the upper parameter node; writing the latest parameter value of the specific parameter node into a shadow storage area corresponding to the specific parameter node; wherein the shadow storage area is a cache area of the software part of the electronic system; the shadow storage area is used to record the parameter values of the parameter nodes currently stored in the hardware storage area corresponding to the shadow storage area; and if it is detected that the latest parameter value written in the shadow storage area is different from the parameter value of the hardware storage area recorded before being written, downloading the latest parameter value in the shadow storage area to the hardware storage area corresponding to the shadow storage area.

[0007] Optionally, in the parameter storage method, after the writing of the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node, the method further comprises: if the latest parameter value written in the shadow storage area is detected to be the same as the parameter value recorded in the hardware storage area before the writing, the latest parameter value in the shadow storage area is not downloaded into the hardware storage area corresponding to the shadow storage area.

[0008] Optionally, in the parameter storage method, if the latest parameter value written in the shadow storage area is detected to be different from the parameter value recorded in the hardware storage area before the writing, the latest parameter value in the shadow storage area is downloaded into the hardware storage area corresponding to the shadow storage area, which comprises: if the first dirty flag is detected to be set in the shadow storage area, the latest parameter value in the shadow storage area in which the first dirty flag is set is downloaded into the hardware storage area corresponding to the shadow storage area; wherein the first dirty flag is used to indicate that the latest parameter value currently written in the shadow storage area is different from the parameter value recorded in the hardware storage area before the writing.

[0009] Optionally, in the parameter storage method, in response to the parameter change influencing instruction, the parameter value calculation is performed on the specific parameter node to obtain the latest parameter value of the specific parameter node, which comprises: in response to the parameter change influencing instruction, the parameter value calculation is performed on an upper parameter node according to the parameter change influencing instruction to obtain the latest parameter value of the upper parameter node; it is detected whether the latest parameter value of the upper parameter node is the same as the parameter value of the upper parameter node before the calculation; if the latest parameter value of the upper parameter node is detected to be the same as the parameter value of the upper parameter node before the calculation, the parameter value calculation on the specific parameter node is ended; if the latest parameter value of the upper parameter node is detected to be different from the parameter value of the upper parameter node before the calculation, a second dirty flag is set in the upper parameter node to trigger the parameter value calculation on an output parameter node of the upper parameter node to obtain the latest parameter value of the output parameter node; wherein the output parameter node of the upper parameter node is an associated parameter node which calculates the parameter value of the output parameter node according to the parameter value of the upper parameter node; the output parameter node is taken as a new upper parameter node, and the step of detecting whether the latest parameter value of the upper parameter node is the same as the parameter value of the upper parameter node before the calculation is returned until there is no output parameter node of the upper parameter node.

[0010] Optionally, in the parameter storage method, the writing of the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node comprises: screening the parameter nodes in which the second dirty flag is set from the specific parameter node; and writing the latest parameter value of the screened parameter nodes into the shadow storage area corresponding to the screened parameter nodes.

[0011] Optionally, in the parameter storage method, the parameter download framework of the electronic system further comprises a download control module and a parameter mapping module; the parameter mapping module records a correspondence between the parameter nodes of the electronic system and the shadow storage areas; and the writing of the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node comprises: the download control module acquires the latest parameter value of the specific parameter node from the parameter linkage module; and the download control module writes the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node according to the correspondence between the parameter nodes of the electronic system and the shadow storage areas recorded in the parameter mapping module.

[0012] Optionally, in the parameter storage method, the parameter download framework of the electronic system further comprises a download control module and a parameter mapping module; the parameter mapping module records a correspondence between the parameter nodes of the electronic system and the shadow storage areas; and the writing of the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node comprises: the download control module acquires the latest parameter value of the specific parameter node from the parameter linkage module; and the download control module writes the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node according to the correspondence between the parameter nodes of the electronic system and the shadow storage areas recorded in the parameter mapping module.

[0013] Optionally, in the parameter storage method, the parameter mapping module further records a correspondence between the shadow storage areas and the hardware storage areas; and the downloading of the latest parameter value in the shadow storage area into the hardware storage area corresponding to the shadow storage area if the latest parameter value written in the shadow storage area is different from the parameter value recorded in the hardware storage area before the writing comprises: the download control module downloads the latest parameter value in the shadow storage area into the hardware storage area corresponding to the shadow storage area according to the correspondence between the shadow storage areas and the hardware storage areas recorded in the parameter mapping module if the latest parameter value written in the shadow storage area is different from the parameter value recorded in the hardware storage area before the writing.

[0014] In a second aspect, the present application discloses a parameter storage device applied to a parameter download framework of an electronic system, the parameter download framework of the electronic system being arranged in a software part of the electronic system, and the parameter storage device comprising: a parameter calculation unit configured to calculate parameter values of specific parameter nodes in response to an influence parameter change instruction, to obtain latest parameter values of the specific parameter nodes; wherein the influence parameter change instruction is an instruction for influencing parameter value changes of an upper parameter node; the specific parameter nodes comprise the upper parameter node and associated parameter nodes of the upper parameter node; the associated parameter nodes are parameter nodes affected by parameter value changes of the upper parameter node; a first writing unit configured to write the latest parameter values of the specific parameter nodes into shadow storage areas corresponding to the specific parameter nodes; wherein the shadow storage areas are cache areas of the software part of the electronic system; the shadow storage areas are configured to record parameter values of parameter nodes currently stored in hardware storage areas corresponding to the shadow storage areas; and a second writing unit configured to download the latest parameter values in the shadow storage areas into the hardware storage areas corresponding to the shadow storage areas, if it is detected that the latest parameter values written in the shadow storage areas are different from parameter values of the hardware storage areas recorded before the writing.

[0015] In a third aspect, the present application discloses a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method of any one of the first aspect.

[0016] In a fourth aspect, the present application discloses a parameter storage device, comprising: one or more processors;

[0017] a storage device having one or more programs stored thereon; and when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of the first aspect.

[0018] In a fifth aspect, the present application discloses an electronic system, comprising: an application layer, a parameter download framework and a hardware storage area; wherein the application layer and the parameter download framework are arranged in a software part of the electronic system; the application layer is configured to generate an influence parameter change instruction and output the influence parameter change instruction to the parameter download framework; the parameter download framework is configured to implement the method of any one of the first aspect; and the hardware storage area is configured to store parameter values of parameter nodes of the electronic system.

[0019] Based on the parameter storage method provided by the above embodiment of the application, the method is applied to a parameter download framework of an electronic system, the parameter download framework of the electronic system is arranged in a software part of the electronic system, the latest parameter value of a specific parameter node is obtained by calculating the parameter value of the specific parameter node in response to an influence parameter change instruction, and the influence parameter change instruction is an instruction for influencing the parameter value change of an upper parameter node. The specific parameter node includes the upper parameter node and an associated parameter node of the upper parameter node. Then, the latest parameter value of the specific parameter node is written into a shadow storage area corresponding to the specific parameter node. The parameter value in the shadow storage area is downloaded into a hardware storage area corresponding to the shadow storage area only when and if it is detected that the parameter written in the shadow storage area is different from the parameter value of the hardware storage area recorded before writing. Since the application calculates the latest parameter value of the specific parameter node, does not directly download the calculated latest parameter value into the hardware, but writes the latest parameter value into the shadow storage area in the software part for buffering, and then downloads the latest parameter value written in the shadow storage area into the hardware storage area only when and if it is detected that the latest parameter value written in the shadow storage area is different from the parameter value of the hardware storage area originally recorded, the operation of repeatedly downloading the parameter value without change into the hardware is avoided, the interaction between the software part and the hardware part in the electronic system is reduced, and the overall performance of the electronic system is improved. BRIEF DESCRIPTION OF DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on the provided drawings.

[0021] Figure 1 A structural schematic diagram of an electronic system is provided for the embodiments of the present application.

[0022] Figure 2 A flowchart of a parameter storage method is provided for the embodiments of the present application.

[0023] Figure 3 A schematic diagram of a parameter mapping relationship is provided for the embodiments of the present application.

[0024] Figure 4 A flowchart of a parameter value determination method of a specific parameter node is provided for the embodiments of the present application.

[0025] Figure 5 Another structural schematic diagram of an electronic system is provided for the embodiments of the present application.

[0026] Figure 6A schematic diagram of a parameter storage process is provided for the embodiment of the present application.

[0027] Figure 7 A structural schematic diagram of a parameter storage device is provided for the embodiment of the present application. DETAILED DESCRIPTION

[0028] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort belong to the scope of protection of the present application.

[0029] In the present application, the terms "comprising", "containing" or any other variants thereof are intended to cover the non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. Without more limitations, the element defined by the sentence "including a…" does not exclude the presence of other identical elements in the process, method, article or equipment including the element.

[0030] Referring to Figure 1 The present application provides an electronic system 100, which includes an application layer 101, a parameter download framework 102 and a hardware layer 103. The electronic system 100 is applicable to various fields and needs to perform parameter interaction between software and hardware. For example, the electronic system 100 can be an ultrasonic diagnostic system, a whole vehicle control system, etc. The application layer 101 and the parameter download framework 102 are software parts of the electronic system 100, and the hardware layer 103 is a hardware part of the electronic system 100.

[0031] The software part of the electronic system 100 includes a plurality of parameter nodes, which can be understood as nodes encapsulating attribute information of parameters. The attribute information of parameters includes information of input parameter nodes and output parameter nodes of parameters, parameter value information, etc. The input parameter node of a certain specific parameter node can be understood as a node for inputting the parameter value of the input parameter node into the specific parameter node, so that the specific parameter node calculates the parameter value of itself according to the parameter value of the input parameter node. The output parameter node of the specific parameter node is a parameter node to which the specific parameter node outputs the parameter value of itself. The output parameter node needs to calculate the parameter value of itself according to the parameter value of the specific parameter node.

[0032] Specifically, the parameter storage process in the electronic system 100 is as follows: the application layer 101 receives the user's influence parameter change operation, generates an influence parameter change instruction, and outputs the influence parameter change instruction to the parameter download framework 102. The parameter download framework 102 responds to the influence parameter change instruction, performs parameter value calculation on the specific parameter node, and obtains the latest parameter value of the specific parameter node.

[0033] The parameter download framework 102 writes the latest parameter value of the specific parameter node into the shadow storage area 1021 corresponding to the specific parameter node. The shadow storage area 1021 is a cache area of the software part of the electronic system, and is used to record the parameter value of the parameter node currently stored in the hardware storage area 1031 corresponding to the shadow storage area 1021. The number of shadow storage areas 1021 is not limited in the present application.

[0034] Then the parameter download framework 102 detects whether the latest parameter value written in the shadow storage area 1021 is the same as the parameter value of the hardware storage area 1031 recorded before writing. If the parameter download framework 102 detects that the latest parameter value written in the shadow storage area 1021 is different from the parameter value of the hardware storage area 1031 recorded before writing, the latest parameter value in the shadow storage area is downloaded to the hardware storage area 1031 corresponding to the shadow storage area 1021, and the latest parameter value is stored in the hardware layer 103. If the parameter download framework 102 detects that the latest parameter value written in the shadow storage area 1021 is the same as the parameter value of the hardware storage area 1031 recorded before writing, the latest parameter value in the shadow storage area 1021 is not downloaded to the hardware storage area 1031 corresponding to the shadow storage area 1021. The number of hardware storage areas 1031 is not limited in the present application.

[0035] The influence parameter change instruction is an instruction for influencing the parameter value change of the upper parameter node. The influence parameter change operation is an operation for influencing the parameter value change of the upper parameter node. The upper parameter node can be understood as a parameter node directly influenced by a user operation to change the parameter value, which is located in an upper area (for example, an application layer) of the software part. Taking the electronic system 100 as an example, the gear adjustment parameter node of the ultrasonic diagnostic system is an upper parameter node in the system, and for example, the volume parameter node in the mobile phone system also belongs to the upper parameter node in the system. The specific parameter node includes the upper parameter node and the associated parameter node of the upper parameter node. The associated parameter node is a parameter node influenced by the parameter value change of the upper parameter node, and the associated parameter node can also be understood as a parameter node indirectly influenced by a user operation to change the parameter value. The hardware storage area can be a memory, a register, or other hardware devices with a storage function. It should be noted that the specific parameter node, the upper parameter node, the associated parameter node, the input parameter node, and the output parameter node mentioned in the embodiments of the present application are different in definition, but all belong to the parameter node of the electronic system.

[0036] In the electronic system 100 proposed in the present application, after the parameter download framework 102 calculates the latest parameter value of the specific parameter node, the calculated latest parameter value is not directly downloaded to the hardware layer 103, but is first written into the shadow storage area 1021 of the software part for caching. Then, only when it is detected that the latest parameter value currently written in the shadow storage area 1021 is different from the originally recorded parameter value of the hardware storage area 1031, the latest parameter value written in the shadow storage area 1021 is downloaded to the hardware storage area, thereby avoiding the operation of repeatedly downloading the parameter value that does not change to the hardware layer 103, reducing the interaction between the software part and the hardware part in the electronic system 100. Since the amount of data downloaded to the hardware layer is reduced, the time occupied by the hardware processing is correspondingly reduced, the processing speed of the hardware is improved, and the overall performance of the electronic system is improved.

[0037] Referring to Figure 2 Based on the above-mentioned electronic system 100 proposed in the embodiments of the present application, the embodiments of the present application correspondingly disclose a parameter storage method. The parameter storage method is applied to a parameter download framework of an electronic system. The parameter download framework of the electronic system is arranged in a software part of the electronic system. The related description of the parameter download framework can be referred to the above-mentioned Figure 1 The parameter download framework 102 mentioned above will not be described again here.

[0038] Specifically, Figure 2 The method shown includes the following steps:

[0039] S201, in response to the parameter change influencing instruction, performing parameter value calculation on the specific parameter node to obtain the latest parameter value of the specific parameter node, wherein the parameter change influencing instruction is an instruction influencing the parameter value change of the upper parameter node. The specific parameter node includes the upper parameter node and an associated parameter node of the upper parameter node, and the associated parameter node is a parameter node influenced by the parameter value change of the upper parameter node.

[0040] The related descriptions of the parameter change influencing instruction, the upper parameter node and the associated parameter node can be referred to the foregoing descriptions of the related contents of the electronic system part shown in the foregoing Figure 1 The parameter change influencing instruction can be generated by triggering the parameter change influencing operation. The parameter change influencing operation can be, for example, a gear condition operation, in which a user adjusts the ultrasonic diagnosis system from a 2D mode to a 4D mode. It should be noted that there are various parameter change influencing operations, including but not limited to the contents proposed in the embodiments of the present application.

[0041] The specific parameter node mentioned in the embodiments of the present application is a general term of all parameter nodes influenced by the parameter change influencing instruction, and the specific number of the specific parameter node is determined according to the number of the parameter nodes actually influenced by the parameter change influencing instruction, which can be one or multiple.

[0042] The process of performing step S201 can be understood as: in response to the parameter change influencing instruction, then analyzing the parameter change influencing instruction, determining the specific parameter node according to the linkage relationship between the analyzed parameter change influencing instruction and the parameter node, and then calculating the parameter value of the specific parameter node according to the parameter change influencing instruction to obtain the latest parameter value of the specific parameter node.

[0043] The linkage relationship between the parameter nodes can be understood as the input-output relationship (or the association relationship) between the parameter nodes. Specifically, the parameter nodes in the electronic system influence each other. The parameter value of a specific parameter node is influenced by the parameter value of the input parameter node of the specific parameter node. The parameter value change of the specific parameter node influences the output parameter node of the specific parameter node. By establishing the linkage relationship between the parameter nodes in the electronic system in advance, the specific parameter node influenced by the parameter change influencing instruction can be determined from all the parameter nodes through the linkage relationship.

[0044] Specifically, the parameter change instruction indicates the change adjustment of the parameter value of the upper parameter node, and then from the linkage relationship between the parameter nodes, the output parameter node of the upper parameter node (i.e., the associated parameter node affected by the parameter value of the upper parameter node) can be determined. After determining the output parameter node of the upper parameter node, the output parameter node of the output parameter node (i.e., the associated parameter node affected by the parameter value of the output parameter node) is found based on the linkage relationship between the parameter nodes. By analogy, the associated parameter nodes of all upper parameter nodes are eventually found, and all specific parameter nodes are determined.

[0045] It should be noted that the storage method of the linkage relationship between parameter nodes in the electronic system is not limited in the embodiment of the present application. For example, the linkage relationship between parameter nodes can be stored in a table, a key value, a mapping relationship diagram between parameter nodes, etc.

[0046] For example, Figure 3 As shown, the association relationship between parameter nodes can be stored in the form of a mapping relationship graph. Figure 3 The mapping relationship diagram shown shows that parameter A (i.e. parameter node A) affects parameter C and parameter B. Parameter B affects parameter D and parameter E. When the parameter value of parameter A changes, the latest parameter value of the changed parameter A is input into parameter C and parameter B. The parameter values ​​of parameter B and parameter C will be affected by the latest parameter value of parameter A received and change. When the parameter value of parameter B changes, it will affect the parameter values ​​of parameter D and parameter E. For parameter C, parameter A is the input parameter node of parameter C, and parameter C is the output parameter node of parameter A. Similarly, for parameter B, parameter A is the input parameter node of parameter B, and parameter D and parameter E are the output parameter nodes of parameter B. When the parameter change instruction indicates to adjust the parameter value of the upper parameter node - parameter A, it can be achieved through Figure 3 The mapping relationship diagram shown shows that the associated parameter nodes of parameter A are parameter B, parameter C, parameter D, and parameter E. Among them, parameter B and parameter C are directly affected by parameter A, while parameter D and parameter E are indirectly affected by parameter A.

[0047] It should be noted that the number of input parameter nodes of a specific parameter node can be one or more, and similarly, the number of output parameter nodes of a specific parameter node can also be one or more, and this embodiment of the present application does not impose any restrictions on this.

[0048] Optionally, in an embodiment of the present application, the process of performing step S201 can also be: in response to the parameter change influencing instruction, then parsing the parameter change influencing instruction, determining a specific parameter node according to the parsed parameter change influencing instruction, the linkage relationship between the parameter nodes, and the second dirty flag used to indicate whether the parameter value of the parameter node is changed, and then calculating the parameter value of the specific parameter node to obtain the latest parameter value of the specific parameter node.

[0049] Specifically, only the upper parameter node and the parameter node in the associated parameter nodes of the upper parameter node whose parameter value is changed can be determined as the specific parameter node, and then the parameter value calculation is performed on the specific parameter node. As can be known from the foregoing introduction of the linkage relationship between the parameter nodes, only when the parameter value of the parameter node is changed, the parameter value of the output parameter node can be changed. Therefore, in order to save the workload of the parameter value calculation of the specific parameter node, in the embodiment of the present application, only the parameter node whose parameter value is changed in the upper parameter node and the associated parameter nodes of the upper parameter node determined by the linkage relationship between the parameter nodes is determined as the specific parameter node, that is, the parameter value calculation is performed on it. The parameter node whose parameter value is not changed does not need to be determined as the specific parameter node, that is, the parameter value calculation is not performed.

[0050] For example, referring to Figure 4 If the way of determining the specific parameter node according to the parsed parameter change influencing instruction, the linkage relationship between the parameter nodes, and the second dirty flag used to indicate whether the parameter value of the parameter node is changed is adopted, one embodiment of performing step S201 can be:

[0051] S401, in response to the parameter change influencing instruction, performing parameter value calculation on the upper parameter node according to the parameter change influencing instruction to obtain the latest parameter value of the upper parameter node.

[0052] Specifically, in response to the parameter change influencing instruction, the parameter change influencing instruction is parsed to determine which parameter node of the upper parameter node needs to be influenced by the parameter value change of the parameter change influencing instruction, and the specific adjustment way of the upper parameter node, and then the parameter value of the upper parameter node indicated by the parameter change influencing instruction can be recalculated according to the parameter change influencing instruction to obtain the latest parameter value of the upper parameter node.

[0053] For example, when the electronic system is an ultrasonic diagnosis system, and the parameter change influencing instruction is an instruction for converting the ultrasonic diagnosis system from a 2D mode to a 4D mode, the parameter value of the gear parameter node, which is the upper parameter node, can be recalculated by parsing the parameter change influencing instruction.

[0054] S402, detecting whether the latest parameter value of the upper parameter node is same as the parameter value before the calculation of the upper parameter node.

[0055] Specifically, after the calculation of step S402, the latest parameter value of the upper parameter node may change compared with the parameter value before the execution of step S401 (for example, the user adjusts the ultrasonic diagnostic system to 2D mode, and the ultrasonic diagnostic system is originally in 2D mode), or may not change. Therefore, it is necessary to detect whether the latest parameter value of the upper parameter node is same as the parameter value before the calculation of the upper parameter node. If it is detected that the latest parameter value of the upper parameter node is same as the parameter value before the calculation of the upper parameter node, step S403 is executed, that is, the calculation of the parameter value of the specific parameter node is ended. At this time, since the latest parameter value of the upper parameter node does not change, the parameter value of the associated parameter node of the upper parameter node will also not change, so it is not necessary to continue to calculate the latest parameter value of the associated parameter node of other upper parameter nodes.

[0056] If it is detected that the latest parameter value of the upper parameter node is not same as the parameter value before the calculation of the upper parameter node, step S404 is executed to trigger the calculation of the output parameter node of the upper parameter node. Specifically, since the latest parameter value of the upper parameter node is not same as the parameter value before the calculation of the upper parameter node, it is affected by the parameter change instruction, the latest parameter value of the upper parameter node changes, and then the latest parameter value of the output parameter node of the upper parameter node is affected, so it is necessary to recalculate the parameter value of the output parameter node of the upper parameter node. The output parameter node of the upper parameter node is an associated parameter node which calculates its own parameter value according to the parameter value of the upper parameter node.

[0057] S403, ending the calculation of the parameter value of the specific parameter node.

[0058] S404, setting the second dirty flag of the upper parameter node to trigger the calculation of the parameter value of the output parameter node of the upper parameter node to obtain the latest parameter value of the output parameter node, wherein the output parameter node of the upper parameter node is an associated parameter node which calculates its own parameter value according to the parameter value of the upper parameter node.

[0059] The second dirty flag is used to indicate that the latest parameter value of the parameter node is different from the parameter value before the calculation. After the upper parameter node is marked with the second dirty flag, the parameter download framework will automatically trigger the calculation of the parameter value of the parameter node affected by the parameter value of the upper parameter node (that is, the output parameter node of the upper parameter node), and then obtain the latest parameter value of the output parameter node of the upper parameter node.

[0060] Specifically, the manner of calculating the latest parameter value of the output parameter node is: calculating the latest parameter value of the output parameter node according to the latest parameter value of the upper parameter node.

[0061] It should be noted that the number of upper parameter nodes mentioned in the embodiments of the present application can be one or multiple, that is, the influence parameter change instruction can influence the parameter value change of multiple upper parameter nodes, or can only influence the parameter value change of one upper parameter node.

[0062] It should be further noted that the output parameter node of the upper parameter node can be determined through the linkage relationship between the parameter nodes, and details can be referred to the aforementioned related content of the linkage relationship of the parameter nodes, which will not be described herein.

[0063] S405, taking the output parameter node as a new upper parameter node, returning to step S402 until there is no output parameter node of the upper parameter node.

[0064] After the parameter value calculation of the output parameter node is completed, it is further needed to detect whether the output parameter node of the output parameter node needs to be recalculated, that is, whether the latest parameter value after the output parameter node is recalculated influences the change of other associated parameter nodes, therefore, the output parameter node needs to be taken as a new upper parameter node, and step S402 is executed until all associated parameter nodes of the upper parameter nodes are all traversed or step S403 is entered to end the parameter value calculation.

[0065] In order to more clearly describe Figure 4 The flowchart shown, the following uses Figure 3The mapping relationship diagram shown illustrates the parameter value calculation process of a specific parameter node: in response to the parameter change instruction, the parameter value of the upper parameter node, parameter A, is calculated according to the parameter change instruction, and the latest parameter value of parameter A is obtained. It is detected that the parameter value of parameter A before the parameter value calculation is 5, and the latest parameter value after the calculation is 10, so it is determined that the latest parameter value of parameter A has changed, and the second dirty flag of parameter A is set, thereby triggering the parameter value calculation of the output parameter nodes of parameter A, parameters C and B. After the parameter value calculation of parameters B and C, the latest parameter values obtained are also different from the parameter values before the calculation, so the second dirty flags of parameters B and C are set. The parameter value calculation of the output parameter nodes of parameter B, parameters D and E, is triggered. After the calculation of parameters D and E is completed, it is continued to detect whether the latest parameter values of parameters D and E are different from the parameter values before the calculation. It is detected that the latest parameter value of parameter D is the same, but the parameter value of parameter E is different, so only the second dirty flag of parameter E is set. Since parameter E no longer exists as an output parameter node, the parameter value calculation process ends.

[0066] By Figure 4 As can be seen from the embodiments shown, since the linkage relationship between the parameter nodes is predetermined in the embodiments of the present application, the parameter value calculation of the output parameter nodes of a specific parameter node (for example, an upper parameter node or an associated parameter node corresponding to the upper parameter node) is triggered only when the parameter value of the specific parameter node changes, and the parameter values of other parameter nodes are not affected. The way of calculating the parameter values reduces the number of interactions of the parameter nodes, and compared with the way of calculating the parameter values of all specific parameter nodes, the parameter value calculation workload of the embodiments of the present application is less. The calculation workload is less only when the second dirty flag is set, the calculation of the corresponding output node is triggered, and therefore the efficiency of calculating the parameter values is improved.

[0067] It should be noted that there are many ways to determine a specific parameter node, and it is not necessary to determine a specific parameter node according to the linkage relationship between the parameter nodes. For example, in some other embodiments, the parameter nodes can be classified in advance, for example, the parameter nodes are classified according to gear modes. If the parameter change instruction is used to adjust the parameter values of the parameter nodes in a gear mode, all the parameter nodes in the gear mode are regarded as specific parameter nodes. The specific way of determining a specific parameter node according to the parameter change instruction is not limited in the embodiments of the present application.

[0068] Optionally, as Figure 5As shown, in an embodiment of the present application, the parameter download framework 102 can at least include a parameter response module 1022 and a parameter linkage module 1023. The parameter response module 1022 and the parameter linkage module 1023 can cooperate to perform step S201. Specifically, one embodiment of performing step S201 includes the following steps.

[0069] The parameter response module 1022 responds to the parameter change instruction to receive the parameter change instruction through the upper layer parameter change interface to trigger the parameter linkage module 1023 to calculate the parameter value of the specific parameter node according to the parameter change instruction to obtain the latest parameter value of the specific parameter node.

[0070] Specifically, the parameter response module 1022 includes an upper layer parameter change interface. The upper layer parameter change interface can receive the parameter change instruction issued by the software upper layer (application layer). Then the interface outputs the parameter change instruction to the parameter linkage module 1023, and the parameter linkage module 1023 calculates the parameter value of the specific parameter node according to the parameter change instruction to obtain the latest parameter value of the specific parameter node.

[0071] Wherein, the execution process and principle of the parameter linkage module calculating the parameter value of the specific parameter node according to the parameter change instruction to obtain the latest parameter value of the specific parameter node can be referred to the aforementioned introduction of calculating the parameter value of the specific parameter node, which will not be repeated here.

[0072] S202, write the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node, wherein the shadow storage area is a cache area of the software part of the electronic system, and the shadow storage area is used to record the parameter value of the parameter node currently stored in the hardware storage area corresponding to the shadow storage area.

[0073] After step S201 calculates the latest parameter value of the specific parameter node, the latest parameter value of the specific parameter node is first written into the shadow storage area corresponding to the specific parameter node. The shadow storage area is a cache area used to record the parameter value of the parameter node currently stored in the hardware storage area corresponding to the shadow storage area. The shadow storage area belongs to the software part of the electronic system. Before step S202 is executed, the shadow storage area records the parameter value of the parameter node currently stored in the hardware storage area corresponding to the shadow storage area.

[0074] Wherein, the hardware storage area can be a hardware register, and the corresponding shadow storage area can be a shadow register. The hardware storage area can also be a hardware memory, and the corresponding shadow storage area can also be a shadow memory. The types of hardware storage area and shadow storage area are not limited in the embodiment of the present application.

[0075] It should be noted that the number of shadow storage areas and hardware storage areas is consistent, and the shadow storage areas and the hardware storage areas are in one-to-one correspondence. The shadow storage area can be regarded as a "shadow" of the hardware storage area in software, which records the parameter values currently stored in the hardware storage area. There is also a corresponding relationship between each parameter node and the hardware storage area. A hardware storage area can be used to store the parameter values of at least one parameter node. Similarly, there is also a corresponding relationship between the parameter node and the shadow storage area. The parameter values of the parameter node recorded in the shadow storage area are the parameter values of the parameter node stored in the corresponding shadow storage area. For example, hardware storage area A is used to store the parameter values of parameter A and parameter B. The corresponding shadow storage area A of hardware storage area A is used to record the parameter values of parameter A and parameter B.

[0076] In the embodiment of the present application, the corresponding relationship between the parameter node and the shadow storage area, and the corresponding relationship between the shadow storage area and the hardware storage area are determined in advance. After step S201 is completed, the latest parameter value of the specific parameter node is directly written (i.e., cached) into the shadow storage area corresponding to the specific parameter node according to the corresponding relationship between the parameter node and the shadow storage area.

[0077] Since the parameter value of the specific parameter node is recalculated, the latest parameter value of the specific parameter node may change compared to before the calculation, so the latest parameter value of the specific parameter node needs to be written into the shadow storage area for caching, in order to further determine whether the specific parameter node needs to be downloaded into the hardware storage area.

[0078] Optionally, in an embodiment of the present application, if the method shown in the above embodiment is used to calculate the latest parameter value of the specific parameter node, one embodiment of step S202 includes: Figure 4

[0079] The parameter node with the second dirty flag set is filtered out from the specific parameter node, and the latest parameter value of the filtered parameter node is written into the shadow storage area corresponding to the filtered parameter node.

[0080] According to the above Figure 4 ​The embodiments shown can know that the upper layer parameter node and the associated parameter node corresponding to the upper layer parameter node (collectively referred to as a specific parameter node) are set to the second dirty identification after the parameter value is recalculated, and if the new parameter value is different from the parameter value before calculation. The specific parameter node without the second dirty identification set is not changed, and thus does not need to be issued to the hardware layer to update the parameter value. Therefore, only the parameter nodes with the second dirty identification set are selected from the specific parameter nodes, and only the latest parameter value of the parameter nodes with the second dirty identification set is written to the shadow storage area corresponding to the selected parameter nodes, so as to subsequently judge whether the latest parameter value of the parameter nodes needs to be downloaded to the hardware layer for updating.

[0081] Since only the parameter value of the parameter node with the second dirty identification set is written to the shadow storage area in the embodiments of the present application, compared with the way of writing the parameter values of all specific parameter nodes to the shadow storage area, the amount of data processed is smaller, and the amount of work consumed when subsequently judging whether the latest parameter value needs to be downloaded to the hardware storage area (i.e. when step S203 is executed) is also smaller, and the parameter download efficiency is also greater.

[0082] Optionally, continuing to refer to Figure 5 In an embodiment of the present application, the parameter download framework 102 of the electronic system can further include a download control module 1024 and a parameter mapping module 1025, and the download control module 1024 and the parameter mapping module 1025 can cooperate to execute step S202. Specifically, an embodiment of executing step S202 includes:

[0083] The download control module 1024 obtains the latest parameter value of the specific parameter node from the parameter linkage module 1023. Then the download control module 1024 writes the latest parameter value of the specific parameter node to the shadow storage area corresponding to the specific parameter node according to the corresponding relationship between the parameter nodes of the electronic system and the shadow storage area recorded in the parameter mapping module 1025.

[0084] Specifically, the corresponding relationship between the parameter nodes of the electronic system and the shadow storage area is recorded in the parameter mapping module 1025 in advance. Then after the parameter linkage module 1023 completes the calculation of the latest parameter value of the specific parameter node, the download control module 1024 obtains the latest parameter value of the specific parameter node therefrom, and then for each specific parameter node, finds the shadow storage area corresponding to the specific parameter node from the corresponding relationship between the parameter nodes recorded in the parameter linkage module 1023 and the shadow storage area, and then writes the latest parameter value of the specific parameter node to the shadow storage area corresponding to the specific parameter node.

[0085] Optionally, in another specific embodiment of the present application, an implementation of step S202 is performed, including:

[0086] The download control module 1024 filters the parameter nodes with the second dirty flag set from the specific parameter nodes in the parameter linkage module 1023, and then writes the latest parameter values of the filtered parameter nodes into the shadow storage area corresponding to the filtered parameter nodes according to the correspondence between the parameter nodes of the electronic system and the shadow storage area recorded in the parameter mapping module 1025.

[0087] The execution process and principle of the download control module 1024 can refer to the related description of the aforementioned part of “filtering the parameter nodes with the second dirty flag set from the specific parameter nodes, and writing the latest parameter values of the filtered parameter nodes into the shadow storage area corresponding to the filtered parameter nodes”, which will not be repeated here.

[0088] It should be noted that, after the download control module 1024 filters the parameter nodes with the second dirty flag set from the specific parameter nodes in the parameter linkage module 1023, and writes the latest parameter values of the filtered parameter nodes into the shadow storage area corresponding to the filtered parameter nodes, the parameter linkage module 1023 can also delete the second dirty flag of the specific parameter nodes, so as to re-execute the parameter value calculation of the linkage between the specific parameter nodes. Figure 2 In the embodiment shown, the second dirty flag of the specific parameter nodes is identified again, and the parameter value calculation of the linkage between the specific parameter nodes is completed.

[0089] Optionally, in a specific embodiment of the present application, before the download control module 1024 obtains the latest parameter values of the specific parameter nodes from the parameter linkage module 1023, it can also include:

[0090] The parameter linkage module 1023 sends a notification message to the download control module 1024, where the notification message is used to notify the download control module 1024 that the parameter value calculation of the specific parameter nodes has been completed. Then the download notification module 1024 obtains the latest parameter values of the specific parameter nodes from the parameter linkage module 1023 in response to the notification message.

[0091] In the embodiment of the present application, the parameter linkage module 1023 notifies the download control module 1024 after completing the parameter value calculation, so that the download control module 1024 can know that the latest parameter values of the specific parameter nodes need to be written into the shadow storage area. In other embodiments, the download control module 1024 can also monitor in real time whether the parameter linkage module 1023 has completed the parameter value calculation of the specific parameter nodes, and then write the calculated latest parameter values into the shadow storage area in time.

[0092] S203, detecting whether the latest parameter value written in the shadow storage area is same as the parameter value recorded in the hardware storage area before being written.

[0093] From the foregoing introduction of the shadow storage area, it can be known that the shadow storage area is used to record the parameter value of the hardware storage area corresponding to the shadow storage area. Therefore, before the parameter download framework writes the latest parameter value into the shadow storage area, the parameter value recorded in the shadow storage area is completely consistent with the parameter value stored in the hardware storage area corresponding to the shadow storage area at present. After the parameter download framework writes the latest parameter value of a specific parameter node into the corresponding shadow storage area, the value in the shadow storage area may be changed. In some cases, the latest parameter value written in the shadow storage area may be consistent with the parameter value recorded in the hardware storage area before being written, which indicates that after the parameter value of the specific parameter node is recalculated, the latest parameter value thereof does not change compared with the parameter value before the calculation. Therefore, when it is detected that the latest parameter value written in the shadow storage area is same as the parameter value recorded in the hardware storage area before being written, it is indicated that the parameter value of the parameter node corresponding to the shadow storage area is not changed, and the latest parameter value in the shadow storage area does not need to be downloaded into the hardware storage area corresponding to the shadow storage area, that is, step S204 is executed, and the flow is ended.

[0094] However, in other cases, the latest parameter value written in the shadow storage area may be inconsistent (i.e., not same) with the parameter value recorded in the hardware storage area before being written. At this time, the latest parameter value needs to be updated into the hardware storage area. Therefore, step S205 needs to be executed.

[0095] Optionally, in an embodiment of the present application, one implementation of step S203 comprises:

[0096] If it is detected that the shadow storage area sets the first dirty flag, the latest parameter value in the shadow storage area in which the first dirty flag is set is downloaded into the hardware storage area corresponding to the shadow storage area. The first dirty flag is used to indicate that the latest parameter value currently written in the shadow storage area is different from the parameter value recorded in the hardware storage area before being written.

[0097] Specifically, the function of setting the first dirty flag of the shadow storage area is configured in advance. When the shadow storage area detects that the latest parameter value currently written is different from the parameter value recorded in the hardware storage area, the shadow storage area automatically sets the first dirty flag, which indicates that the data in the current shadow storage area has been changed, and it can also be understood that the latest parameter value written into the shadow storage area is inconsistent with the parameter value in the hardware storage area corresponding to the shadow storage area at present.

[0098] The parameter download framework automatically sets the first dirty flag when detecting that the latest parameter value written in the shadow storage is different from the parameter value recorded in the hardware storage before being written. Then the parameter download framework detects that the shadow storage sets the first dirty flag, which means that the latest parameter value written in the shadow storage is different from the parameter value recorded in the hardware storage before being written, and thus downloads the latest parameter value in the shadow storage with the set first dirty flag into the hardware storage corresponding to the shadow storage (i.e., step S205 is performed). If the shadow storage does not set the first dirty flag, it means that the latest parameter value written in the shadow storage is the same as the parameter value recorded in the hardware storage before being written, and thus the latest parameter does not need to be downloaded into the hardware storage (i.e., step S204 is performed).

[0099] Optionally, the parameter download framework can detect whether the first dirty flag is set in the shadow storage in real time, or can detect according to a period, and the specific detection manner is not limited in the present application.

[0100] Optionally, in an embodiment of the present application, Figure 5 The parameter mapping module 1025 shown in the figure also records the correspondence between the shadow storage and the hardware storage, and in Figure 5 In the electronic system shown in the figure, step S203 can be performed by the download control module 1024 and the parameter mapping module 1025. Specifically, one embodiment of performing step S203 includes the following steps.

[0101] The download control module 1024 downloads the latest parameter value in the shadow storage into the hardware storage corresponding to the shadow storage according to the correspondence between the shadow storage and the hardware storage recorded by the parameter mapping module 1025, if detecting that the latest parameter value written in the shadow storage is different from the parameter value recorded in the hardware storage before being written.

[0102] Specifically, the correspondence between the shadow storage and the hardware storage is recorded in the parameter mapping module 1025 in advance, and then the download control module 1024 can find the hardware storage corresponding to the shadow storage according to the correspondence between the shadow storage and the hardware storage when detecting that the latest parameter value written in the shadow storage is different from the parameter value recorded in the hardware storage before being written, and then downloads the latest parameter value in the shadow storage into the hardware storage corresponding to the shadow storage.

[0103] In other embodiments, the download control module 1024 downloads the latest parameter value in the shadow storage with the set first dirty flag into the hardware storage corresponding to the shadow storage according to the correspondence between the shadow storage and the hardware storage recorded by the parameter mapping module 1025 when detecting that the shadow storage sets the first dirty flag.

[0104] The execution process and principle of the download control module 1024 downloading the latest parameter value can be found in the above-mentioned related description, which will not be repeated here.

[0105] It should be noted that when the above Figure 4 When calculating parameter values ​​using the method shown, even if only the parameter value of a specific parameter node with the second dirty flag set is written to the shadow storage area, it does not mean that the latest parameter value written to the shadow storage area will necessarily be different from the parameter value of the hardware storage area recorded before the write. Since the linkage relationship between parameter nodes is complex, during the process of calculating parameter values ​​based on the linkage relationship, the latest parameter value calculated by the parameter node may change multiple times. The latest parameter value finally obtained may not change compared to the initial parameter value, but may change compared to the parameter value before the latest calculation. Therefore, step S203 is still required to perform further testing to determine whether it needs to be downloaded to the hardware.

[0106] It should also be noted that there are many specific implementation methods for detecting whether the latest parameter value written to the shadow storage area is the same as the parameter value of the hardware storage area recorded before the writing. In addition to being implemented by the first dirty flag, it can also be implemented by constructing a parameter record table for the shadow storage area. By real-time statistics of the parameter values ​​in the shadow storage area, it is detected whether the latest parameter value written to the shadow storage area is the same as the parameter value of the hardware storage area recorded before the writing. The specific implementation methods for executing step S203 include but are not limited to the contents proposed in this application.

[0107] S204: Do not download the latest parameter value in the shadow storage area to the hardware storage area corresponding to the shadow storage area.

[0108] Step S204 can also be understood as not performing any operation and ending the current parameter storage process. Figure 2 The process shown.

[0109] S205: Download the latest parameter value in the shadow storage area to the hardware storage area corresponding to the shadow storage area.

[0110] The latest parameter value downloaded to the hardware storage area corresponding to the shadow storage area in step S205 is different from the parameter value currently stored in the hardware register, that is, the parameter value must be sent from the software to the hardware. After executing step S205, the latest parameter value in the shadow storage area remains consistent with the latest parameter value currently in the hardware storage area, and the shadow storage area has successfully recorded the current parameter value of the hardware storage area.

[0111] Optionally, if the shadow storage area indicates that the latest parameter value of itself has changed through the first dirty flag, it is required to delete the first dirty flag of the shadow storage area after step S205 is executed, so as to avoid the repeated detection of the first dirty flag and the repeated writing of the latest parameter value into the shadow storage area.

[0112] It should be noted that, Figure 2 The method shown is described for a single shadow storage area and a single hardware storage area, and when there are multiple shadow storage areas and multiple hardware storage areas, the method is also applicable.

[0113] Optionally, step S205 can be executed by Figure 5 The download control module 1024 shown is executed.

[0114] In the embodiment of the application, before the latest parameter value of the specific parameter node is issued to the hardware storage area, it is detected in advance whether the latest parameter value of the shadow storage area is the same as the current parameter value of the hardware storage area, so as to avoid the repeated downloading of the latest parameter value into the hardware storage area in the case that the latest parameter value of the shadow storage area is the same as the parameter value of the hardware storage area.

[0115] It should be noted that in the embodiment of the application, steps S202 to S205 can not be executed for all specific parameter nodes whose parameter values are recalculated. For example, in some scenarios, the hardware storage area of the electronic system is designed to store only the parameter nodes of the software bottom layer, and the parameter nodes in the intermediate calculation process are not stored in the hardware storage area. Therefore, when step S202 is executed, only the parameter nodes belonging to the parameter nodes that need to be stored in the hardware storage area are executed for the write operation of step S202.

[0116] Referring to Figure 6 In order to make the description of the above embodiment more clear, an example of a complete parameter storage process is introduced as follows: the upper application (i.e. the application layer mentioned above) issues an influence parameter change instruction into the parameter download framework, the parameter download framework responds to the influence parameter change instruction (referred to as parameter response), and then calculates the parameter values of the specific parameter nodes according to the linkage relationship between the parameters (referred to as parameter linkage).

[0117] Specifically, the parameter change instruction affects the parameter value changes of the four upper parameter nodes of parameter A, parameter B, parameter C and parameter D. After obtaining the latest parameter values of parameter A, parameter B, parameter C and parameter D through parameter value calculation, it is detected that parameter A, parameter B, parameter C and parameter D, and the second dirty identification of these parameter nodes is automatically set, so as to drive the parameter value calculation of the associated parameter nodes of the upper parameter nodes. Specifically, the latest parameter value change of parameter A affects the parameter value of the output node of parameter A: parameter E. Parameter E calculates the latest parameter value of parameter E according to the latest parameter value of parameter A, and sets the second dirty identification of parameter E. The output nodes of parameter E, parameter I and parameter J, are affected by parameter E, and the latest parameter values of parameter I and parameter J are calculated according to the latest parameter value of parameter E. Then, after detecting the latest parameter value change, the second dirty identification is set in parameter I and parameter J. After parameter I and parameter J complete the setting of the second dirty identification, since the shadow register corresponding to parameter I and parameter J is shadow register A (i.e. one of the aforementioned shadow storage areas), the latest parameter values of parameter I and parameter J are written into shadow register A (referred to as updating the mapping shadow memory operation). Shadow register A detects that the latest parameter value written is inconsistent with the parameter value of register A (i.e. one of the aforementioned hardware storage areas) originally recorded, and then downloads the latest parameter value in shadow register A to register A (referred to as parameter issuing operation), thereby completing the storage of parameter I and parameter J. The process of the remaining parameters F, parameter G, parameter K, parameter L, parameter M, parameter N and parameter H from the shadow register to the register in the hardware internal address space is similar, and specific reference can be made to the schematic diagram of Figure 6 , which will not be described here.

[0118] The parameter storage method provided by the embodiment of the present application is applied to a parameter download framework of an electronic system, the parameter download framework of the electronic system is arranged in a software part of the electronic system, and the latest parameter value of a specific parameter node is obtained by performing parameter value calculation on the specific parameter node in response to an influence parameter change instruction. The influence parameter change instruction is an instruction for changing the parameter value of an upper parameter node. The specific parameter node includes the upper parameter node and an associated parameter node of the upper parameter node. Then, the latest parameter value of the specific parameter node is written into a shadow storage area corresponding to the specific parameter node. The parameter value in the shadow storage area is downloaded into a hardware storage area corresponding to the shadow storage area only when and if it is detected that the parameter written in the shadow storage area is different from the parameter value of the hardware storage area recorded before writing. Since the latest parameter value calculated for the specific parameter node is not directly downloaded into the hardware, but is written into the shadow storage area in the software part for buffering, and then the latest parameter value written in the shadow storage area is downloaded into the hardware storage area only when and if it is detected that the latest parameter value written in the shadow storage area is different from the parameter value of the hardware storage area originally recorded, the operation of repeatedly downloading the parameter value that does not change into the hardware is avoided, the interaction between the software part and the hardware part in the electronic system is reduced, and the overall performance of the electronic system is improved.

[0119] Based on the parameter storage method provided by the present application, the parameter storage process in the ultrasonic diagnostic system is described in detail as follows: when a user adjusts the ultrasonic diagnostic system in multiple modes such as 2D, DOP, 3D, 4D and basic mode combinations, the application layer of the ultrasonic diagnostic system generates corresponding influence parameter change instructions according to the received mode adjustment operations. The influence parameter change instructions are used to indicate the change of the parameter value of the upper parameter node affected by the mode adjustment operation.

[0120] The parameter response module in the ultrasonic diagnostic system responds to the influence parameter change instruction, receives the influence parameter change instruction through the upper influence parameter change interface, triggers the parameter linkage module to calculate the parameter value of the upper parameter node according to the influence parameter change instruction, and obtains the latest parameter value of the upper parameter node. Then the parameter linkage module detects whether the latest parameter value of the upper parameter node is the same as the parameter value before the calculation of the upper parameter node. If it is detected that the latest parameter value of the upper parameter node is the same as the parameter value before the calculation of the upper parameter node, the parameter value calculation is ended. If it is detected that the latest parameter value of the upper parameter node is different from the parameter value before the calculation of the upper parameter node, the second dirty flag of the upper parameter node is set. To trigger the parameter value calculation of the output parameter node of the upper parameter node, the latest parameter value of the output parameter node is obtained. The output parameter node of the upper parameter node is an associated parameter node that calculates its own parameter value according to the parameter value of the upper parameter node. In this way, the output parameter node is taken as a new upper parameter node, and the step of detecting whether the latest parameter value of the upper parameter node is the same as the parameter value before the calculation of the upper parameter node is returned until there is no output parameter node of the upper parameter node.

[0121] The download control module obtains the latest parameter value of the specific parameter node from the parameter linkage module, and writes the latest parameter value of the specific parameter node with the second dirty flag set into the shadow storage area corresponding to the specific parameter node according to the correspondence between the parameter nodes of the ultrasonic diagnostic system and the shadow storage area recorded in the parameter mapping module. The specific parameter node includes the upper parameter node and the associated parameter node of the upper parameter node, and the associated parameter node is a parameter node affected by the parameter value change of the upper parameter node. If the shadow storage area detects that the latest parameter value written is different from the parameter value of the hardware storage area recorded before writing, the shadow storage area is set to the first dirty flag. If the download control module detects that the shadow storage area with the first dirty flag set, the latest parameter value in the shadow storage area with the first dirty flag set is downloaded to the hardware storage area corresponding to the shadow storage area. At this time, the hardware storage area in the ultrasonic diagnostic system writes the latest parameter value affected by the mode switching operation and the parameter change. Subsequently, the software part of the ultrasonic diagnostic system accesses the latest parameter value recorded in the hardware storage area to complete the switching of the mode of the ultrasonic diagnostic system, and the user can use the ultrasonic diagnostic system after the mode is switched.

[0122] The ultrasonic diagnostic system provided in the embodiments of the present application does not directly download the calculated latest parameter value into the hardware, but first caches the latest parameter value in the shadow storage area of the software part, and then only downloads the latest parameter value written in the shadow storage area into the hardware storage area when it is detected that the latest parameter value currently written in the shadow storage area is different from the parameter value originally recorded in the hardware storage area, thereby avoiding the operation of repeatedly downloading the parameter value that has not changed to the hardware, reducing the interaction between the software part and the hardware part in the ultrasonic diagnostic system, improving the overall performance of the ultrasonic diagnostic system, and reducing the operation response delay problem of the user when using the ultrasonic diagnostic system.

[0123] It should be noted that the above is only a scenario example of the method provided in the embodiments of the present application applied to the ultrasonic diagnostic system. The method provided in the embodiments of the present application can be applied to many scenarios, including but not limited to the content provided in the embodiments of the present application.

[0124] Based on the parameter storage method provided in the embodiments of the present application, referring to Figure 7 The embodiments of the present application correspond to a parameter storage device applied to a parameter download framework of an electronic system. The parameter download framework of the electronic system is arranged in the software part of the electronic system. The parameter storage device includes a parameter calculation unit 701, a first writing unit 702, and a second writing unit 703.

[0125] The parameter calculation unit 701 is configured to perform parameter value calculation on a specific parameter node in response to an influence parameter change instruction, to obtain the latest parameter value of the specific parameter node. The influence parameter change instruction is an instruction that influences the change of the parameter value of an upper parameter node. The specific parameter node includes the upper parameter node and an associated parameter node of the upper parameter node. The associated parameter node is a parameter node that is affected by the change of the parameter value of the upper parameter node.

[0126] The first writing unit 702 is configured to write the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node. The shadow storage area is a cache area of the software part of the electronic system. The shadow storage area is configured to record the parameter value of the parameter node currently stored in the hardware storage area corresponding to the shadow storage area.

[0127] The second writing unit 703 is configured to download the latest parameter value in the shadow storage area into the hardware storage area corresponding to the shadow storage area if it is detected that the latest parameter value written in the shadow storage area is different from the parameter value recorded in the hardware storage area before being written.

[0128] Optionally, in an embodiment of the present application, the second writing unit 703 is further configured to, if the detected latest parameter value written in the shadow storage area is the same as the parameter value recorded in the hardware storage area before being written, not download the latest parameter value in the shadow storage area to the hardware storage area corresponding to the shadow storage area.

[0129] Optionally, in an embodiment of the present application, the second writing unit 703 comprises:

[0130] a first writing sub-unit, configured to, if the detected shadow storage area has the first dirty flag set, download the latest parameter value in the shadow storage area with the first dirty flag set to the hardware storage area corresponding to the shadow storage area. The first dirty flag is used to indicate that the latest parameter value currently written in the shadow storage area is different from the parameter value recorded in the hardware storage area before being written.

[0131] Optionally, in an embodiment of the present application, the parameter calculating unit 701 comprises:

[0132] a responding sub-unit, configured to, in response to the parameter change influencing instruction, calculate the latest parameter value of the upper parameter node according to the parameter change influencing instruction.

[0133] a detecting sub-unit, configured to detect whether the latest parameter value of the upper parameter node is the same as the parameter value of the upper parameter node before being calculated.

[0134] a terminating sub-unit, configured to, if the detected latest parameter value of the upper parameter node is the same as the parameter value of the upper parameter node before being calculated, terminate the parameter value calculation of the specific parameter node.

[0135] a triggering sub-unit, configured to, if the detected latest parameter value of the upper parameter node is different from the parameter value of the upper parameter node before being calculated, set the second dirty flag of the upper parameter node to trigger the parameter value calculation of the output parameter node of the upper parameter node to obtain the latest parameter value of the output parameter node. The output parameter node of the upper parameter node is an associated parameter node which calculates its own parameter value according to the parameter value of the upper parameter node.

[0136] a returning sub-unit, configured to return the output parameter node as a new upper parameter node to the detecting sub-unit.

[0137] Optionally, in an embodiment of the present application, the first writing unit 702 comprises:

[0138] a screening sub-unit, configured to screen the parameter node with the second dirty flag set from the specific parameter node.

[0139] The second writing sub-unit is configured to write the latest parameter value of the screened parameter node into the shadow storage area corresponding to the screened parameter node.

[0140] Optionally, in an embodiment of the present application, the parameter calculation unit 701 comprises a parameter response module and a parameter linkage module.

[0141] The parameter response module is configured to, in response to an influence parameter change instruction, receive the influence parameter change instruction through the upper-layer influence parameter change interface, trigger the parameter linkage module to calculate the parameter value of the specific parameter node according to the influence parameter change instruction, and obtain the latest parameter value of the specific parameter node.

[0142] The parameter linkage module is configured to calculate the parameter value of the specific parameter node according to the influence parameter change instruction, and obtain the latest parameter value of the specific parameter node.

[0143] Optionally, in an embodiment of the present application, the first writing unit 702 comprises:

[0144] The first recording sub-unit is configured to record the correspondence between the parameter nodes of the electronic system and the shadow storage areas.

[0145] The third writing sub-unit is configured to obtain the latest parameter value of the specific parameter node from the first recording sub-unit, and write the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node according to the recorded correspondence between the parameter nodes of the electronic system and the shadow storage areas.

[0146] The first recording sub-unit is included in the parameter mapping module mentioned in the foregoing embodiments of the present application. The second writing sub-unit is included in the download control module mentioned above.

[0147] Optionally, in an embodiment of the present application, the second recording sub-unit is further configured to record the correspondence between the shadow storage areas and the hardware storage areas. The second writing unit 703 comprises:

[0148] The fourth writing sub-unit is configured to, if it is detected that the latest parameter value written in the shadow storage area is different from the parameter value recorded in the hardware storage area before being written, download the latest parameter value in the shadow storage area into the hardware storage area corresponding to the shadow storage area according to the recorded correspondence between the shadow storage areas and the hardware storage areas.

[0149] The second recording sub-unit is included in the parameter mapping module mentioned in the foregoing embodiments of the present application. The fourth writing sub-unit is included in the download control module mentioned above.

[0150] It should be noted that the execution process and principle of each unit and sub-unit in the parameter storage device mentioned in the embodiments of the present application are the same as the parameter storage method proposed in the foregoing embodiments of the present application, and can be referred to, and will not be repeated here.

[0151] The embodiments of the present application disclose a computer readable medium, having a computer program stored thereon, wherein the program is executed by a processor to realize the parameter storage method according to any one of the embodiments of the present application.

[0152] The embodiments of the present application disclose a parameter storage device, comprising: one or more processors; and a storage device having one or more programs stored thereon. When the one or more programs are executed by the one or more processors, the one or more processors realize the parameter storage method according to any one of the embodiments of the present application.

[0153] The embodiments of the present application disclose an electronic system, comprising: an application layer, a parameter download framework and a hardware storage area. The application layer and the parameter download framework are arranged in the software part of the electronic system. The application layer is configured to generate an influence parameter change instruction and output the influence parameter change instruction to the parameter download framework. The parameter download framework is configured to execute any one of the parameter storage methods proposed in the embodiments of the present application. The hardware storage area is configured to store the parameter value of the parameter node of the electronic system.

[0154] Each of the embodiments in the present specification is described in a progressive manner, and the same or similar parts of each embodiment can be referred to. Each embodiment focuses on the difference from other embodiments. In particular, for the system or system embodiments, since it is basically similar to the method embodiments, it is described more simply, and the relevant parts can be referred to the part of the method embodiments. The system and system embodiments described above are only illustrative, and the units described as separate components can be or can not be physically separated, and the components displayed as units can be or can not be physical units, that is, they can be located in one place, or can be distributed on multiple network units. According to actual needs, part or all of the modules can be selected to achieve the purpose of the embodiments. Those skilled in the art can understand and implement without creative labor.

[0155] Those skilled in the art will further realize that the mechanisms of the various examples described herein are capable of being implemented using any number of combinations of the described features. Accordingly, these examples are not limited to the mechanisms described herein, but rather, the intent is to cover all modifications and alternatives equivalent thereto. The preceding description of the examples is illustrative, and not restrictive. Many other examples will be apparent to those of skill in the art upon reviewing the above description. The scope of the examples should, therefore, be determined not with reference to the above description, but instead should be given to the appended claims, along with their full scope of equivalents.

[0156] The above description of disclosed examples is intended to be illustrative, and not restrictive. Many other examples will be apparent to those of skill in the art upon reviewing the above description. The scope of the examples should, therefore, be determined not with reference to the above description, but instead should be given to the appended claims, along with their full scope of equivalents.

Claims

1. A parameter storage method characterized by comprising: A parameter download framework applied to an electronic system, the parameter download framework of the electronic system is arranged in a software part of the electronic system, the parameter storage method comprises: In response to an influence parameter change instruction, a parameter value of a specific parameter node is calculated to obtain a latest parameter value of the specific parameter node; wherein the influence parameter change instruction is an instruction for changing a parameter value of an upper parameter node; the specific parameter node comprises the upper parameter node and an associated parameter node of the upper parameter node; the associated parameter node is a parameter node affected by the parameter value change of the upper parameter node; The latest parameter value of the specific parameter node is written into a shadow storage area corresponding to the specific parameter node; wherein the shadow storage area is a cache area of the software part of the electronic system; the shadow storage area is used for recording a parameter value of a parameter node currently stored in a hardware storage area corresponding to the shadow storage area; If it is detected that the latest parameter value written in the shadow storage area is different from a parameter value of the hardware storage area recorded before being written, the latest parameter value in the shadow storage area is downloaded into the hardware storage area corresponding to the shadow storage area; If it is detected that the latest parameter value written in the shadow storage area is the same as the parameter value of the hardware storage area recorded before being written, the latest parameter value in the shadow storage area is not downloaded into the hardware storage area corresponding to the shadow storage area.

2. The method of claim 1, wherein, The step of downloading the latest parameter value in the shadow storage area into the hardware storage area corresponding to the shadow storage area if it is detected that the latest parameter value written in the shadow storage area is different from the parameter value of the hardware storage area recorded before being written, comprises: If it is detected that the shadow storage area is set with a first dirty flag, the latest parameter value in the shadow storage area set with the first dirty flag is downloaded into the hardware storage area corresponding to the shadow storage area; wherein the first dirty flag is used to indicate that the latest parameter value currently written in the shadow storage area is different from the parameter value of the hardware storage area recorded before being written.

3. The method of claim 1, wherein, The step of calculating the parameter value of the specific parameter node in response to the influence parameter change instruction, to obtain the latest parameter value of the specific parameter node, comprises: In response to the influence parameter change instruction, a parameter value of an upper parameter node is calculated according to the influence parameter change instruction to obtain a latest parameter value of the upper parameter node; It is detected whether the latest parameter value of the upper parameter node is the same as a parameter value before calculation of the upper parameter node; If it is detected that the latest parameter value of the upper parameter node is the same as the parameter value before calculation of the upper parameter node, the parameter value calculation of the specific parameter node is ended; If it is detected that the latest parameter value of the upper parameter node is different from the parameter value before calculation of the upper parameter node, a second dirty flag is set for the upper parameter node to trigger a parameter value calculation of an output parameter node of the upper parameter node to obtain a latest parameter value of the output parameter node; wherein the output parameter node of the upper parameter node is an associated parameter node for calculating a parameter value of itself according to the parameter value of the upper parameter node. The output parameter node is used as a new upper-layer parameter node, and the process returns to the step of detecting whether the latest parameter value of the upper-layer parameter node is the same as the parameter value before the upper-layer parameter node is calculated, until there is no output parameter node for the upper-layer parameter node.

4. The method of claim 3, wherein, Writing the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node includes: Filtering out parameter nodes with a second dirty flag set from the specific parameter nodes; The latest parameter value of the filtered parameter node is written into the shadow storage area corresponding to the filtered parameter node.

5. The method according to any one of claims 1 to 4, characterized in that, The parameter download framework of the electronic system includes a parameter response module and a parameter linkage module; wherein, in response to the parameter change instruction, the parameter value of the specific parameter node is calculated to obtain the latest parameter value of the specific parameter node, including: The parameter response module responds to the parameter change instruction and receives the parameter change instruction through the upper-layer parameter change interface to trigger the parameter linkage module to calculate the parameter value of the specific parameter node according to the parameter change instruction to obtain the latest parameter value of the specific parameter node.

6. The method of claim 5, wherein, The parameter download framework of the electronic system further includes: a download control module and a parameter mapping module; the parameter mapping module records the correspondence between the parameter nodes and the shadow storage area of ​​the electronic system; the step of writing the latest parameter value of the specific parameter node to the shadow storage area corresponding to the specific parameter node includes: The download control module obtains the latest parameter value of the specific parameter node from the parameter linkage module; The download control module writes the latest parameter value of the specific parameter node into the shadow storage area corresponding to the specific parameter node according to the correspondence between the parameter nodes of the electronic system and the shadow storage area recorded in the parameter mapping module.

7. The method of claim 6, wherein, The parameter mapping module further records the correspondence between the shadow storage area and the hardware storage area; wherein, if it is detected that the latest parameter value written to the shadow storage area is different from the parameter value of the hardware storage area recorded before writing, the latest parameter value in the shadow storage area is downloaded to the hardware storage area corresponding to the shadow storage area, including: If the download control module detects that the latest parameter value written into the shadow storage area is different from the parameter value of the hardware storage area recorded before writing, the latest parameter value in the shadow storage area is downloaded to the hardware storage area corresponding to the shadow storage area according to the correspondence between the shadow storage area and the hardware storage area recorded by the parameter mapping module.

8. A parameter storage device, characterized by, A parameter download framework applied to an electronic system, wherein the parameter download framework of the electronic system is provided in the software part of the electronic system, and the parameter storage device comprises: The parameter calculation unit is configured to calculate a parameter value of a specific parameter node in response to an influence parameter change instruction, to obtain a latest parameter value of the specific parameter node; the influence parameter change instruction is an instruction for changing a parameter value of an upper parameter node; the specific parameter node includes the upper parameter node and an associated parameter node of the upper parameter node; the associated parameter node is a parameter node affected by the change of the parameter value of the upper parameter node; The first writing unit is configured to write the latest parameter value of the specific parameter node into a shadow storage area corresponding to the specific parameter node; the shadow storage area is a cache area of a software part of the electronic system; and the shadow storage area is configured to record a parameter value of a parameter node currently stored in a hardware storage area corresponding to the shadow storage area; The second writing unit is configured to download the latest parameter value in the shadow storage area into the hardware storage area corresponding to the shadow storage area, if it is detected that the latest parameter value written in the shadow storage area is different from a parameter value recorded in the hardware storage area before the writing; The second writing unit is further configured to not download the latest parameter value in the shadow storage area into the hardware storage area corresponding to the shadow storage area, if it is detected that the latest parameter value written in the shadow storage area is the same as the parameter value recorded in the hardware storage area before the writing.

9. A computer readable medium characterized by A computer program is stored thereon, and the computer program is executed by a processor to implement the method in any one of claims 1 to 7.

10. A parameter storage device, characterized by, The computer program product comprises: one or more processors; a memory device having one or more programs stored thereon; when the one or more programs are executed by the one or more processors, the one or more processors implement the method in any one of claims 1 to 7.

11. An electronic system, characterized by The computer program product comprises: an application layer, a parameter download framework, and a hardware storage area; the application layer and the parameter download framework are arranged in a software part of the electronic system; the application layer is configured to generate an influence parameter change instruction and output the influence parameter change instruction to the parameter download framework; the parameter download framework is configured to implement the method in any one of claims 1 to 7; the hardware storage area is configured to store parameter values of parameter nodes of the electronic system.

Citation Information

Patent Citations

  • Cluster recovery method and device, equipment and storage medium

    CN116107957A

  • Synchronization of change-tracked data store with data store having limited or no change tracking

    US20080022057A1