Data incremental upgrade method, power supply system, network manager, and storage medium

Through the incremental data upgrade method, the upgrade logo and new language files are used to incrementally update the historical language resource files of the power system, solving the cumbersome and time-consuming problems in the existing technology, and achieving fast and efficient multi-language support and user experience improvement.

JP7649920B2Active Publication Date: 2025-03-21ZTE CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024509124
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-09-10
Filing Date
2022-08-25
Publication Date
2025-03-21
Estimated Expiration
2042-08-25

AI Technical Summary

Technical Problem

When existing power supply systems require multilingual translation, the upgrade process is cumbersome and time-consuming, and require full replacement of historical files, resulting in large processing volume and slow upgrade speed.

Method used

Using the incremental data upgrade method, the upgrade package containing the upgrade flag and new language files is obtained through the network manager, and the upgrade program is determined based on the upgrade flag, and only incremental updates are performed on the historical language resource files to avoid full replacement.

Benefits of technology

It realizes rapid and efficient upgrade of the power system, reduces processing volume, improves upgrade speed, and supports multilingual application scenarios, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007649920000001
    Figure 0007649920000001
  • Figure 0007649920000002
    Figure 0007649920000002
  • Figure 0007649920000003
    Figure 0007649920000003
Patent Text Reader

Abstract

A data incremental upgrade method applicable to a power supply system, the power supply system, and a computer storage medium are provided. The data incremental upgrade method includes the steps of: acquiring an upgrade package including an upgrade flag and a new language file from a network manager (S100); determining an upgrade program for adding the new language file based on a history language resource file in the power supply system based on the upgrade flag (S200); and performing an upgrade process using the upgrade program (S300).
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application is filed based on a Chinese patent application with application number 202111064693.7 and filing date September 10, 2021, and claims priority to the Chinese patent application, the entire contents of which are hereby incorporated by reference into this application.

[0002] The present application relates to the technical field of data processing, and in particular to a data incremental upgrade method, a power supply system, a network manager, and a computer storage medium. [Background technology]

[0003] At present, the power supply system is widely used in various countries and regions. In order to facilitate the use by users in various countries and regions, the power supply system supports multilingual services for users, and expressions with the same meaning are translated into different languages ​​according to the objective language and display medium, that is, internationalized. In some cases, if the user needs more language translations, a new upgrade version needs to be released to replace the history file of the power supply system, which requires a lot of processing and takes a long time to upgrade. Summary of the Invention [Problem to be solved by the invention]

[0004] The following is a summary of the subject matter described in detail herein, which is not intended to limit the scope of protection of the claims.

[0005] SUMMARY OF THE DISCLOSURE Embodiments of the present application provide a method for incremental data upgrade, a power supply system, and a computer storage medium. [Means for solving the problem]

[0006] In a first aspect, the present embodiment comprises: A data incremental upgrade method applied to a power supply system, comprising: obtaining an upgrade package from the network manager, the upgrade package including an upgrade flag and a new language file; determining an upgrade program for adding a new language file based on a history language resource file in the power supply system according to the upgrade flag; and performing an upgrade process using the upgrade program.

[0007] In a second aspect, the present embodiment comprises: 1. A data incremental upgrade method applied to a network manager, comprising: obtaining a new language file including new type information and a history language resource file including history type information; determining an upgrade flag based on the new type information and the history type information; and generating an upgrade package based on the upgrade flag and the new language file and sending it to the power supply system so that the power supply system adds the new language file based on the historical language resource file.

[0008] In a third aspect, the present embodiment comprises: There is provided a power supply system including a memory, a processor, and a computer program stored in the memory and executable by the processor, the processor implementing the data incremental upgrade method described in the first aspect above when the processor executes the computer program.

[0009] In a fourth aspect, the present embodiment comprises: A network manager is provided comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, the computer program being executed by the processor to implement the data incremental upgrade method according to the second aspect above.

[0010] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, realises the data incremental upgrade method according to the first aspect or the data incremental upgrade method according to the second aspect.

[0011] Other features and advantages of the present application will be set forth in the following specification, and in part will be obvious from the specification, or may be learned by the practice of the present application. The objectives and other advantages of the present application may be attained by the structure particularly pointed out in the description, claims, and drawings. The drawings are used to provide a further understanding of the technical solution of the present application, constitute a part of the specification, and are used to explain the technical solution of the present application together with the embodiments of the present application, and are not intended to limit the technical solution of the present application. [Brief description of the drawings]

[0012] [Figure 1] 2 is a flowchart of a method for incremental data upgrade according to an embodiment of the present application; [Diagram 2] FIG. 2 is a schematic diagram of a specific implementation process of step S300 in FIG. [Diagram 3] FIG. 2 is a schematic diagram of a specific implementation process of step S300 in FIG. [Figure 4] FIG. 2 is a schematic diagram of a specific implementation process further included after step S100 in FIG. [Diagram 5] FIG. 2 is a schematic diagram of a specific implementation process further included after step S300 in FIG. 1; [Figure 6] 4 is a flowchart of a method for incremental data upgrade according to another embodiment of the present application; [Figure 7] FIG. 7 is a schematic diagram of a specific implementation process of step S500 in FIG. 6; [Figure 8] FIG. 2 is a schematic diagram of files included in an upgrade package having a first upgrade flag according to an embodiment of the present application; [Figure 9]FIG. 7 is a schematic diagram of a specific implementation process of step S500 in FIG. 6; [Figure 10] FIG. 7 is a schematic diagram of a specific implementation process of step S600 in FIG. [Figure 11] FIG. 2 is a schematic diagram of files included in an upgrade package having a second upgrade flag according to an embodiment of the present application. [Figure 12] FIG. 2 is a schematic diagram of a specific flow of creating a new language file according to an embodiment of the present application; [Figure 13] FIG. 13 is a schematic diagram of a specific flow of creating a new language file according to another embodiment of the present application; [Figure 14] 1 is a structural schematic diagram of a power supply system according to an embodiment of the present application; [Figure 15] FIG. 2 is a structural schematic diagram of a network manager according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] In order to more clearly understand the objectives, technical solutions and advantages of the present application, the present application will be described in more detail below with reference to the drawings and examples. The specific examples described in this specification are only used to explain the present application and are not used to limit the present application.

[0014] It should be noted that although the functional module division is shown in the module schematic diagram and the logical order is shown in the flowchart, in some cases the module division may differ, or the steps shown or described may be performed in a different order than shown in the flowchart. The terms "first", "second", etc. in the specification and claims and the aforementioned drawings are not used to describe a particular order or priority, but are used to distinguish between similar objects.

[0015] The present application provides a data incremental upgrade method, which adds an upgrade program to an upgrade package, and upgrades the new language file of the upgrade package using the upgrade program of the upgrade package according to the upgrade flag of the upgrade package, thereby adding the new language file to a history language resource file in a power supply system. This allows the entire upgrade package to be replaced with an upgrade package customized by a network manager, and an appropriate upgrade process can be performed according to the upgrade flag, avoiding the need for the original startup program to replace all of the history files in the power supply system, reducing the amount of processing and accelerating the upgrade speed. In addition, the inclusion of the upgrade program in the upgrade package avoids the situation where the original startup program is different due to the different version of the power supply system, which leads to the inconsistency between the upgrade package and the original startup program, which leads to the failure of the upgrade, and is compatible with the existing version of the power supply system, which can be applied to many application scenarios, reducing the release of the upgrade version, reducing the amount of processing, accelerating the upgrade speed, and improving the ease of use.

[0016] As shown in FIG. 1, FIG. 1 shows a flowchart of a data incremental upgrade method according to an embodiment of the present application, which is applicable to a power supply system, and includes but is not limited to the following steps S100 to S300.

[0017] Step S100: Obtain an upgrade package including an upgrade flag and a new language file from a network manager.

[0018] Step S200: Determine an upgrade program for adding a new language file based on a history language resource file in the power supply system according to an upgrade flag.

[0019] Step S300: The upgrade process is performed using the upgrade program.

[0020] The power supply system may be an embedded power supply. The embedded power supply generally has an operating system and is communicatively connected to a device maintenance management system. That is, the embedded power supply is communicatively connected to a network manager. In the related art, the original startup program of the embedded power supply is for replacing all the historical language resource files in the system with the files in the software upgrade package, that is, for upgrading the entire amount of the embedded power supply, so updating the version of the embedded power supply requires a large amount of processing and a slow upgrade speed. Therefore, the files in the software upgrade package must include the complete language resource files of the embedded power supply, otherwise, in the upgrade of the embedded power supply using the original startup program, the incomplete language resource files will replace the historical language resource files, which will cause errors in the embedded power supply, and will cause the upgrade to fail or the stability to deteriorate. In addition, the original startup program differs depending on the version of the embedded power supply, and the software upgrade packages that can be processed are also different, so it is necessary to customize the software upgrade package according to the version of the embedded power supply, which requires a large amount of processing and is less user-friendly.

[0021] The power supply system can upgrade the system by obtaining a software upgrade package through the existing original startup program, unpacking the software upgrade package, and then rebooting the system. This allows the power supply system to obtain an upgrade package including an upgrade flag for determining the current update / upgrade range and a new language file that needs to be updated from the network manager through the original startup program and unpack it. The upgrade package can also include a customized upgrade program that has the same feature vector as the original upgrade program but only executes the upgrade logic of the customized upgrade program. After the upgrade package is unpacked by the original startup program, the upgrade program replaces the original startup program, recognizes the upgrade flag, and determines the update / upgrade range of the upgrade program based on the upgrade flag, thereby allowing the new language file to be added based on the historical language resource file in the power supply system. Thus, by incorporating the upgrade program instead of the original startup program, the upgrade program can determine the update / upgrade scope based on the upgrade flag in the upgrade package, and can accurately add new language files based on the historical language resource files; the upgrade process of the upgrade package can be performed using the original startup program of the current version of the power supply system, reducing the need for customizing the upgrade package due to version mismatch or language type mismatch. Therefore, there is no need to replace all the historical language resource files in the power supply system or update the version of the power supply system, and the new language file in the upgrade package can be made part of the language resource file, thereby reducing the amount of processing and accelerating the upgrade speed.In addition, by using the upgrade program in the upgrade package to process the new upgrade file in the upgrade package, it is possible to avoid the original startup program of a different version of the power supply system being unable to recognize the new upgrade file and being unable to upgrade, which can be applied to the upgrade of multiple versions of power supply systems, realizes that the power supply system supports multi-language application scenarios, enables the upgrade of multi-language files, allows the power supply system to provide users with multiple languages, and improves the user's usage experience.

[0022] As shown in FIG. 2, step S300 in the embodiment shown in FIG. 1 further includes, but is not limited to, the following steps S310 and S320.

[0023] Step S310: Use the upgrade program to add a new language file based on the historical language resource file.

[0024] Step S320: Update the version flag of the power supply system according to the first upgrade flag.

[0025] Here, the upgrade flag is a first upgrade flag for indicating that the new type information of the new language file is consistent with the history type information of the history language resource file.

[0026] The upgrade flag includes a first upgrade flag, and when the upgrade flag is the first upgrade flag, it is considered that the new type information of the new language file is consistent with the historical type information of the historical language resource file in the power supply system, that is, the language type of the power supply system is not changed, and only the historical language resource file is updated. Thus, when the upgrade flag is the first upgrade flag, the upgrade program can use the historical language resource file as the basis to add a new language file, thereby replacing the historical language resource file corresponding to the new type information with the new language file, thereby realizing the data incremental upgrade of the power supply system without replacing all the historical language resource files, reducing the processing amount, and accelerating the upgrade speed.

[0027] The version flag of the power supply system is used to represent the content of the current update / upgrade of the power supply system, and therefore the version flag may include the history type information in the power supply system. The version flag of the power supply system facilitates the user to recognize and understand the multilingual support of the current power supply system, facilitates the user's use, and also helps to perform the next data incremental upgrade. This can prevent the upgrade from being repeated or erroneously upgraded. Since the first upgrade flag represents that the new type information is consistent with the history type information, the version flag of the power supply system can be updated based on the first upgrade flag to inform the user of the update content of the current power supply system, and facilitates the user's use.

[0028] As shown in FIG. 3, step S300 in the embodiment shown in FIG. 1 further includes, but is not limited to, the following steps S330 to S350.

[0029] Step S330: Using the upgrade program, update the history configuration file in the power supply system with the new configuration file.

[0030] Step S340: Add a new language file based on the historical language resource file.

[0031] Step S350: Update the version flag of the power supply system according to the second upgrade flag.

[0032] Here, the upgrade flag is a second upgrade flag for indicating that the new type information of the new language file does not match the historical type information of the historical language resource file, and that the upgrade package further includes a new configuration file corresponding to the new language file.

[0033] The upgrade flag includes a second upgrade flag, and when the upgrade flag is the second upgrade flag, the new type information of the new language file does not match the historical type information of the historical language resource file in the power supply system, that is, the language type of the power supply system has been changed, for example, it is considered that there has been an increase or change in the language type. Each language type has a different configuration file, and the language file is loaded into the power supply system by the corresponding configuration file. When the new type information does not match the historical type information, that is, when there has been an increase or change in the language type, it is necessary to add a configuration file of the new type information, so the upgrade package includes a new configuration file corresponding to the new language file. When the upgrade flag is the second upgrade flag, the update and upgrade scope of the upgrade program is determined based on the second upgrade flag, that is, the upgrade program is used to update the historical configuration file in the power supply system with the new configuration file in the upgrade package. For example, when the language type is increased, it is necessary to add a new configuration file corresponding to the new language file, so the upgrade program is used to add the new configuration file based on the historical configuration file. In addition, when the language type is changed, it is necessary to update and replace the historical configuration file corresponding to the changed language type with the new configuration file. In addition, when the upgrade flag is the second upgrade flag, the upgrade program is used to add a new language file to the historical language resource file corresponding to the added or changed language type, and an incremental data upgrade is performed, eliminating the need to replace all of the historical language resource files, thereby reducing the amount of processing and accelerating the upgrade speed.

[0034] In addition, since the second upgrade flag indicates that the new type information does not match the historical type information, an upgrade program is used to update a new configuration file and a new language file to the power supply system, and an upgrade process is performed to increase or change the language type. In order to facilitate recognition of the current multilingual support of the power supply system, for example, the version flag of the power supply system is updated based on the second upgrade flag, which can include type update information corresponding to the added or changed language type, and the type update information of the second upgrade flag is added to the version flag, so that the update history of the power supply system can be directly recognized by the version flag, which facilitates the user's use and facilitates the user to accurately update the multilingual support of the power supply system, thereby reducing the amount of processing.

[0035] As shown in FIG. 4, after step S100 in the embodiment shown in FIG. 1, the method includes, but is not limited to, the following step S101.

[0036] Step S101: Back up the original startup program for configuring the history language resource file in the power supply system.

[0037] The power supply system includes an original startup program, which can configure a historical language resource file in the power supply system; that is, when the original startup program receives an upgrade package, it checks and unpacks the upgrade package, restarts the system, and configures a new language file in the upgrade package. The original startup program uses the new language file to overlay and configure all of the historical language resource files, which requires a large amount of processing. Therefore, the original startup program is used to obtain an upgrade package from a network manager and unpack the upgrade package. The upgrade package includes an upgrade program, and when the upgrade package is unpacked, the original startup program is replaced with the upgrade package. When the power supply system is restarted, the upgrade program in the upgrade package can be used to perform an upgrade process of the new language file in the upgrade package. The upgrade program backs up the original startup program before processing the new file. When the power supply system cannot be started due to an upgrade failure caused by an upgrade program error, the backup file of the original startup program can be restored to start the power supply system, thereby improving the stability and reliability of the data increment method.

[0038] As shown in FIG. 5, after step S300 in the embodiment shown in FIG. 1, the method includes, but is not limited to, the following step S301.

[0039] Step S301: Replace the upgrade program with the original boot program.

[0040] During the upgrade process using the upgrade program, the upgrade program is started instead of the original startup program, and the original startup program is backed up. In order to ensure the compatibility of the power supply system and avoid the power supply system being unable to start due to an error in the upgrade program during subsequent use, after the upgrade process using the upgrade program is completed, the upgrade program is replaced with the original startup program, i.e., the original startup program is restored, the power supply system is restarted according to the original startup program, and the upgrade program is terminated. Therefore, by backing up and restoring the original startup program, the stability and reliability of the upgrade of the power supply system can be improved.

[0041] As shown in FIG. 6, FIG. 6 shows a flowchart of a data incremental upgrade method according to an embodiment of the present application, which is applicable to a network manager and includes, but is not limited to, the following steps S400 to S600.

[0042] Step S400: Obtain a new language file including new type information and a history language resource file including history type information.

[0043] Step S500: Determine an upgrade flag based on the new type information and the history type information.

[0044] Step S600: Generate an upgrade package according to the upgrade flag and the new language file, and send it to the power supply system, so that the power supply system adds the new language file according to the history language resource file.

[0045] The new language file includes new type information, the history language resource file includes history type information, the new language file is a language resource file corresponding to the new type information, and the new type new information is information corresponding to the language type that needs to be updated. The history type information may include the new type information, or the history type information may not include the new type information. That is, based on the new type information and the history type information, it is possible to determine the upgrade scope of the power supply system, such as whether the history language resource file corresponding to the new type information needs to be updated, whether the language type needs to be increased, or whether the language type needs to be changed. Therefore, the upgrade flag can represent the upgrade scope of the current power supply system, and thereby the upgrade flag can be determined based on the new type information and the history type information. The new language file is considered to be the upgrade content of the current power supply system, that is, the new language file corresponds to the upgrade flag. By generating an upgrade package based on the upgrade flag and the new language file, the update content of the upgrade package can be determined by the upgrade flag, which can facilitate the later upgrade process and avoid erroneous upgrade.The upgrade package also includes an upgrade program, which can replace the original startup program, recognize the upgrade flag, and determine the update and upgrade range of the upgrade program according to the upgrade flag, thereby adding a new language file based on the historical language resource file in the power supply system, thereby performing the upgrade process of the upgrade package using the original startup program of the current version of the power supply system, thereby reducing the need for customizing the upgrade package due to version mismatch or language type mismatch, thereby eliminating the need to replace all the historical language resource files in the power supply system, and also eliminating the need to update the version of the power supply system, and the language file in the upgrade package can be only a part of the language resource file, thereby reducing the amount of processing and accelerating the upgrade speed. By sending the upgrade package including the upgrade program, the corresponding upgrade flag, and the new language file to the power supply system, the power supply system can unzip the upgrade package to obtain the upgrade program, the corresponding upgrade flag, and the new language file, and use the upgrade program to add the new language file based on the historical language resource file based on the upgrade flag. Therefore, by determining an upgrade program, a corresponding upgrade flag, and a new language file based on the new type information and the history type information, and generating an upgrade package, the capacity of the upgrade package can be reduced, which contributes to incremental upgrade of the power supply system, reduces the processing amount, and accelerates the upgrade speed.

[0046] As shown in FIG. 7, step S500 in the embodiment shown in FIG. 6 further includes, but is not limited to, the following steps S510 and S520.

[0047] Step S510: The new type information is compared with the history type information to make a judgment.

[0048] Step S520: If the new type information is consistent with the history type information, generate a first upgrade flag.

[0049] The new language file is the update and upgrade content of the current power supply system, and the new type information is flag information corresponding to the new language file, that is, the new type information can be the language type corresponding to the new language file, so by comparing the new type information with the history type information, the update status of the current power supply system, such as updating only the history language resource file, adding a language type, changing the language type, etc. is determined. Therefore, if the new type information matches the history type information, it is considered that the history type information contains new type information and the language type of the current power supply system has not been changed, and only the history language resource file corresponding to the new type information is updated, and a first upgrade flag is generated, so that the power supply system uses the first upgrade flag and the upgrade program to add the new language file based on the history language resource file corresponding to the new type information, thus eliminating the need to replace all the new language files with all the history language resource files of the power supply system, reducing the amount of processing and accelerating the upgrade speed.

[0050] As shown in FIG. 8, FIG. 8 shows a schematic diagram of files included in an upgrade package with a first upgrade flag. When the upgrade package includes the first upgrade flag, it is considered that the current power supply system needs to update the historical language resource file, and therefore the files included in the upgrade package include the first upgrade flag, a new language file, an upgrade program, and a feature file. Among them, the first upgrade flag is for determining the upgrade processing procedure of the upgrade program, the new language file is a file that needs to be updated in this upgrade, and the upgrade program adds the new language file based on the historical language resource file to realize incremental upgrade. In order for the power supply system to obtain the upgrade package from the network manager, it needs to be obtained by the original upgrade program, so the original upgrade program checks the obtained upgrade package to confirm whether the files in the upgrade package are complete. If the original upgrade program determines that the files in the upgrade package are complete, the upgrade package is unzipped and the upgrade process is carried out. The feature file is used to correspond to the check of the original upgrade program of the power supply system, allowing the original upgrade program to recognize the upgrade package and carry out the upgrade package unzipping process. Therefore, the upgrade package does not need to include a complete language resource file, but enables incremental upgrade of the power supply system through the first upgrade flag, the new language file, the upgrade program, and the feature file, thereby reducing the amount of processing and accelerating the upgrade speed.

[0051] As shown in FIG. 9, step S500 in the embodiment shown in FIG. 6 further includes, but is not limited to, the following steps S530 and S540.

[0052] Step S530: The new type information is compared with the history type information to make a judgment.

[0053] Step S540: If the new type information does not match the history type information, generate a second upgrade flag.

[0054] By comparing the new type information with the history type information, it can be determined whether the language type of the current power supply system has been changed. If the new type information does not match the history type information, it is considered that the current history type information does not contain the new type information, that is, the language type of the current power supply system needs to be changed, and a second upgrade flag is generated, and the power supply system updates the new language file and the new configuration file corresponding to the new language file to the power supply system according to the second upgrade flag and the upgrade program. The upgrade flag is determined by determining the new type information and the history type information, and the upgrade program performs an appropriate upgrade process according to the upgrade flag, so that there is no need to replace all the history language resource files, thereby reducing the file size of the new language file, reducing the processing amount, and accelerating the processing speed.

[0055] As shown in FIG. 10, step S600 in the embodiment shown in FIG. 6 further includes, but is not limited to, the following steps S610 and S620.

[0056] Step S610: Determine a new configuration file that matches the new type information according to the second upgrade flag.

[0057] Step S620: Generate an upgrade package based on the second upgrade flag, the new language file, and the new configuration file.

[0058] As shown in FIG. 11, FIG. 11 shows a schematic diagram of the files included in the upgrade package with the second upgrade flag, where different language types have different configuration files, and the new language file is loaded into the power supply system by the corresponding configuration file. When the new type information does not match the historical type information, that is, when the language type in the power supply system is changed, it is necessary to add a configuration file corresponding to the new type information, so when the upgrade flag is the second upgrade flag, the configuration file corresponding to the new type information is determined as the new configuration file, and the upgrade program configures the new language file according to the new configuration file. Therefore, when the upgrade flag is the second upgrade flag, the power supply system needs to configure the new language file with the new configuration file corresponding to the new type information according to the second upgrade flag, so the second upgrade flag, the new language file, the new configuration file and the upgrade program are put into the upgrade package, and the feature file corresponding to the check of the original upgrade program of the power supply system is also put into the upgrade package, so that the upgrade package can pass the check of the original upgrade program and be processed for decompression. This allows the power supply system to perform data incremental upgrade based on the files in the upgrade package, reducing the amount of processing and accelerating the upgrade speed.

[0059] As shown in FIG. 12, FIG. 12 specifically shows that the new language file is obtained through the following steps:

[0060] Step S710: New type information is obtained.

[0061] Step S720: Generate a new configuration file based on the new type information.

[0062] Step S730: Convert the language configuration file corresponding to the new type information into a new language file based on the new configuration file.

[0063] Before acquiring new type information, each language is organized and processed into a language organization file. For example, the languages ​​are organized using a table format file, with English as the main expression and the remaining languages ​​corresponding to the corresponding English words, and each language is organized into a language organization file, that is, the multiple languages ​​are organized with the language type as the first identifier of the classification, and the dictionary structure is constructed with the English words as the language index.

[0064] The new language file corresponds to the new type information, and the new type information may be determined by acquiring input information of the power supply system, or may be acquired from the type information preset by the network manager. The new type information may use a language code defined in the locale as a language identification code, for example, zh_CN.UTF-8 represents a Chinese-style language encoded in UTF-8. Here, the new type information is included in the preset type information, so that the power supply system can acquire the new type information according to the needs of the user, determine the new language file, and customize the corresponding upgrade package to perform the upgrade process according to the needs of the user.

[0065] The new language file is loaded into the power supply system by the corresponding configuration file, and the determined new type information is used to generate the corresponding new configuration file and conversion tool. A language organization file corresponding to the new type information is selected, and the language organization file corresponding to the new type information is converted into a new language file by the new configuration file and conversion tool. Here, the file format of the new language file may be a JSON file format, that is, a language organization file in the form of a table file converted into a JSON file format based on the new type information, and the new language type has a one-to-one correspondence with the new language file in the form of a JSON file converted based on the dictionary content of the language organization file. In addition, the new language file can be parsed into a JavaScript object, the new type information can be stored in cookie data, and the information in the cookie data can be updated. In this way, when a JavaScript function needs to be moved to multiple languages, the JSON object can be directly called, which is completely consistent with the use of a normal variable object, and the subsequent upgrade process can be facilitated. For multilingualization of HyperText Markup Language (HTML) files, a JavaScript framework, such as jQuery, can be used to apply internationalized objects to HTML files, or to server scripts such as Java Server Pages (JSP) and HyperText Preprocessor (PHP). This makes it possible to convert the corresponding language organization file into a new language file based on new type information, which contributes to the internationalization process, reduces the amount of processing in the power supply system, and speeds up the upgrade.

[0066] As shown in FIG. 13, FIG. 13 shows that the new language file can also be obtained by the following steps:

[0067] Step S810: Language type information and media type information are acquired.

[0068] Step S820: A new configuration file is generated based on the language type information and the media type information.

[0069] Step S830: Based on the new configuration file, convert the language organization file corresponding to the language type information and the media type information into a new language file corresponding to the media type information.

[0070] Here, the new type information includes language type information and media type information.

[0071] The new type information includes language type information and media type information. Common operation media in the power supply system include LCD displays and websites, among which LCD displays include various sizes such as 18 inches and 22 inches. LCD displays of different sizes can display different content sizes, so it is necessary to obtain the media type information to determine the corresponding new language file, improve the multilingual display content, and improve the user's usage experience.

[0072] A language organization file corresponding to each language is created, the language organization file is in the form of an Excel file, the language organization file is divided into different pages based on the acquired media type information, and an English word dictionary is created on each page, i.e., displayed in the form of key-values, to facilitate the use by the user. A corresponding new configuration file and conversion tool are determined based on the acquired language type information and media type information, and a selected language organization file corresponding to the language type information and the media type information is determined. The corresponding selected language organization file is converted into a new language file corresponding to the media type information by the new configuration file and conversion tool. Since the language organization file is divided into different pages according to the media type information, each page is converted into a corresponding new language file under the conversion of the new configuration file, thereby facilitating the subsequent upgrade process and reducing the amount of processing. The language configuration file may include files corresponding to all language types and media types supported by the power supply system, but only the new configuration file and conversion tool are used to convert the file corresponding to the new type information, i.e., the new language file is made a part of the file corresponding to all language types and media types, thereby enabling the creation of multilingual files to be performed on demand, reducing the need to customize versions and reducing the amount of processing. Here, the file format of the new language file may be a Portable Object (PO) file format. When the power supply system performs an upgrade process, the upgrade program processes the PO file to inherit the translation results, reduce the amount of translation processing, and speed up the upgrade. This allows the setlocale function to obtain the current language code as new type information and determine the current locale. For example, when the setlocale function is setlocale(LC_ALL, "zh_CN.UTF-8"), it can be determined that the current execution environment is a Chinese environment that uses UTF-8 code.The power supply system supports the liquid crystal graphical user interface (GUI) and the global wide area network (Web) to perform external display in different languages ​​at the same time, in which the language type information of the Web back-end service is persisted using cookie data and session control technology, and the language type can be changed when the language type is switched, and the front end and the back end are all identified using the same language identification code, that is, the new type information, the language type information, and the history type information correspond to each other. The bindtextdomain function can be used to select a multilingual domain, and the media can be used as the domain of the locale, for example, the bindtextdomain function can be used to set the current locale to Web, that is, in the language file conversion process, the Web-compatible PO file can be selected as the language resource file for lookup.

[0073] In addition, in the power supply system, taking into account the characteristics of binary files being small in size and having high query efficiency, the selected language organization file is converted into a machine object file (MO: Machine Object) using a new configuration file, thereby facilitating user queries and improving the user's usage experience.

[0074] In addition, when one power supply system manages multiple media, all managed media can be bound to a domain and the corresponding domain can be queried to query files of the corresponding media, thereby facilitating user query and use and improving the user usage experience.

[0075] As shown in Fig. 14, Fig. 14 illustrates a power supply system 1400 according to an embodiment of the present application. The power supply system 1400 includes a memory 1410, a processor 1420, and a computer program stored in the memory 1410 and executable by the processor 1420, and when the processor 1420 executes the computer program, the data incremental upgrade method described in the above embodiment is realized.

[0076] The memory 1410 may be used as a non-transitory computer-readable storage medium to store non-transitory software programs and non-transitory computer-executable programs, such as the incremental data upgrade method in the above embodiment of the present application. The processor 1420 executes the non-transitory software programs and instructions stored in the memory 1410 to realize the incremental data upgrade method in the above embodiment of the present application.

[0077] The memory 1410 may include a program storage area capable of storing an operating system, an application program required for at least one function, and a data storage area capable of storing data required for executing the data incremental upgrade method in the above embodiment. In addition, the memory 1410 may include a high-speed random access memory 1410, and may also include a non-transient memory 1410 such as at least one magnetic disk storage device, a flash memory device, or other non-transient solid-state memory device. Note that the memory 1410 may include a memory 1410 located remotely with respect to the processor 1420 that may be connected to the terminal via a network. Examples of the above network include, but are not limited to, the Internet, a corporate intranet, a local area network, a mobile communication network, and combinations thereof.

[0078] The non-transitory software programs and instructions necessary to realize the data incremental upgrade method in the above embodiments are stored in memory and, when executed by one or more processors, perform the data incremental upgrade method in the above embodiments, such as the above method steps S100-S300 of FIG. 1, method steps S310-S320 of FIG. 2, method steps S330-S350 of FIG. 3, method step S101 of FIG. 4, and method step S301 of FIG. 5.

[0079] As shown in Fig. 15, Fig. 15 illustrates a network manager 1500 according to an embodiment of the present application. The network manager 1500 includes a memory 1510, a processor 1520, and a computer program stored in the memory 1510 and executable by the processor 1520, and when the processor 1520 executes the computer program, the method for incrementally upgrading data in the above embodiment is realized.

[0080] The memory 1510 may be used as a non-transitory computer-readable storage medium to store non-transitory software programs and non-transitory computer-executable programs, such as the incremental data upgrade method in the above embodiment of the present application. The processor 1520 executes the non-transitory software programs and instructions stored in the memory 1510 to realize the incremental data upgrade method in the above embodiment of the present application.

[0081] The memory 1510 may include a program storage area capable of storing an operating system, an application program required for at least one function, and a data storage area capable of storing data required for executing the data incremental upgrade method in the above embodiment. Furthermore, the memory 1510 may include a high-speed random access memory 1510, and may also include a non-transient memory 1510 such as at least one magnetic disk storage device, a flash memory device, or other non-transient solid-state memory device. Note that the memory 1510 may include a memory 1510 located remotely with respect to the processor 1520 that may be connected to the terminal via a network. Examples of the above network include, but are not limited to, the Internet, a corporate intranet, a local area network, a mobile communication network, and combinations thereof.

[0082] The non-transitory software programs and instructions necessary to realize the incremental data upgrade method in the above embodiment are stored in memory and, when executed by one or more processors, perform the incremental data upgrade method in the above embodiment, such as the above method steps S400-S600 of FIG. 6, method steps S510-S520 of FIG. 7, method steps S530-S540 of FIG. 9, method steps S610-S620 of FIG. 10, method steps S710-S730 of FIG. 12, and method steps S810-S830 of FIG. 13. 。

[0083] The present application also provides a computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to execute at least one of the data incremental upgrade methods in the above embodiments, for example, method steps S100-S300 of FIG. 1, method steps S310-S320 of FIG. 2, method steps S330-S350 of FIG. 3, method step S101 of FIG. 4, method step S301 of FIG. 5, method steps S400-S600 of FIG. 6, method steps S510-S520 of FIG. 7, method steps S530-S540 of FIG. 9, method steps S610-S620 of FIG. 10, method steps S710-S730 of FIG. 12, and method steps S810-S830 of FIG. 13.

[0084] The embodiment of the present application includes the steps of: obtaining an upgrade package including an upgrade flag and a new language file from a network manager; determining an upgrade program for adding the new language file based on the history language resource file in the power supply system based on the upgrade flag; and performing an upgrade process using the upgrade program. According to the embodiment of the present application, since the original startup programs are different due to different versions in the power supply system, it is difficult to make the upgrade package match all the original startup programs, and the original startup program needs to upgrade all the history files in the power supply system, which requires a large amount of processing and a long upgrade speed. Therefore, the upgrade program is added to the upgrade package, and the upgrade program in the upgrade package is used to upgrade the new language file in the upgrade package based on the upgrade flag in the upgrade package, and the new language file is added to the history language resource file in the power supply system. This allows the entire upgrade package to be replaced with an upgrade package customized by the network manager, and accurate upgrade processing can be performed based on the upgrade flag. There is no need to replace all the history files in the power supply system, and data incremental upgrade is realized. At the same time, by incorporating the upgrade program into the upgrade package, it is possible to avoid the upgrade being unable to be upgraded because the upgrade package does not match the original startup program, and it can be compatible with the existing version of the power supply system and be applicable to many application scenarios, thereby reducing the number of upgrade version releases, reducing the processing volume, accelerating the upgrade speed, and improving ease of use.

[0085] The above device embodiments are merely schematic, and the units described as separate components may or may not be physically separated, i.e., they may be located in one place or distributed among multiple network units. Some or all of these modules may be selected to achieve the objectives of the embodiment according to actual needs.

[0086] All or part of the steps in the methods and systems disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processor, digital signal processor, microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (e.g., computer readable programs, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridge, magnetic tape, magnetic disk storage device or other magnetic storage device, or any other medium that can be used to store the desired information and that can be accessed by a computer. Additionally, communication media typically includes computer readable programs, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transmission mechanism, and may include any information delivery media as known to those skilled in the art.

[0087] Although the embodiments of the present application have been described in detail above with reference to the drawings, the present application is not limited to the above embodiments, and various modifications are possible within the scope of knowledge held by those skilled in the art without departing from the spirit of the present application.

Claims

1. A data incremental upgrade method applied to a power supply system, comprising: obtaining an upgrade package from the network manager, the upgrade package including an upgrade flag and a new language file; determining an upgrade program for adding a new language file based on a history language resource file in the power supply system according to the upgrade flag; performing an upgrade process using the upgrade program.

2. The upgrade flag is a first upgrade flag for indicating that new type information of the new language file is consistent with history type information of the history language resource file; The step of performing the upgrade process using the upgrade program includes: adding the new language file based on the historical language resource file using the upgrade program; 2. The method of claim 1, further comprising: updating a version flag of the power supply system based on the first upgrade flag.

3. The upgrade flag is a second upgrade flag for indicating that new type information of the new language file does not match the history type information of the history language resource file and that the upgrade package further includes a new configuration file corresponding to the new language file; The step of performing the upgrade process using the upgrade program includes: updating a historical configuration file in the power supply system with the new configuration file using the upgrade program; adding the new language file based on the historical language resource file; 2. The method of claim 1, further comprising: updating a version flag of the power supply system based on the second upgrade flag.

4. After obtaining the upgrade packet from the network manager, 2. The data incremental upgrade method according to claim 1, further comprising the step of backing up an original boot program for configuring a history language resource file in the power supply system.

5. After performing the upgrade process using the upgrade program, 5. The method of claim 4, further comprising the step of replacing the upgrade program with the original boot program.

6. 1. A data incremental upgrade method applied to a network manager, comprising: obtaining a new language file including new type information and a history language resource file including history type information; determining an upgrade flag based on the new type information and the history type information; generating an upgrade package based on the upgrade flag and the new language file and sending it to the power supply system so that the power supply system adds the new language file based on the historical language resource file.

7. The step of determining an upgrade flag based on the new type information and the history type information includes: A step of comparing the new type information with the history type information to make a judgment; 7. The method of claim 6, further comprising: generating a first upgrade flag if the new type information matches the historical type information.

8. The step of determining an upgrade flag based on the new type information and the history type information includes: A step of comparing the new type information with the history type information to make a judgment; 7. The method of claim 6, further comprising: generating a second upgrade flag if the new type information does not match the historical type information.

9. generating an upgrade package based on the upgrade flag and the new language file, determining a new configuration file that matches the new type information based on a second upgrade flag; and generating an upgrade package based on the second upgrade flag, the new language file, and the new configuration file.

10. The new language file is acquiring the new type information; generating a new configuration file based on the new type information; 7. The method for incrementally upgrading data according to claim 6, further comprising the steps of: converting a language organization file corresponding to said new type information into a new language file based on said new configuration file.

11. The new type information includes language type information and media type information, and the new language file is obtaining the language type information and the media type information; generating a new configuration file based on the language type information and the media type information; 7. The data incremental upgrade method according to claim 6, further comprising the steps of: converting a language organization file corresponding to the language type information and the media type information into a new language file corresponding to the media type information based on the new configuration file.

12. A power supply system including a memory, a processor, and a computer program stored in the memory and executable by the processor, the processor implementing the data incremental upgrade method according to any one of claims 1 to 5 when the processor executes the computer program.

13. A network manager comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, the processor implementing the data incremental upgrade method according to any one of claims 6 to 11 when it executes the computer program.

14. A computer-readable storage medium storing a computer program which, when executed by a processor, realizes the method for incrementally upgrading data according to any one of claims 1 to 5 or the method for incrementally upgrading data according to any one of claims 6 to 11.

Citation Information

Patent Citations

  • Method and system for learing machine translation system dictionary and rule, and storage medium stored with learning program therefor

    JP1998326276A

  • Method for processing version-up supporting work bench and its structure, and conversion dictionary to be used for same

    JP2004126846A

  • Electronic dictionary retrieval device and program

    JP2005063064A

  • System and method for updating programs on OTA-enabled mobile terminal

    JP2009544095A

  • Contextual auto-correct dictionary

    US20160357730A1