Unified software management method and system for security service program

By unifying software management methods and data compression algorithms, we solve the problems of low efficiency and version inconsistency in multi-client upgrades in securities trading, and achieve improved user experience and service stability.

CN118656097APending Publication Date: 2024-09-17SHANGHAI QIANLONG HIGH-TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410844906.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the existing technology, the upgrade process of multiple market clients and trading clients in securities trading has problems of inefficiency and version inconsistency, resulting in a decline in user experience.

Method used

A unified software management method for securities service programs is adopted. After the market client is started, the upgrade client is called, and a request for upgrade data information is sent to the upgrade server for difference comparison and file management. The LZW and LZ77 algorithms are used for data compression and decompression. , and perform automatic or customized upgrade processing according to the upgrade type selected by the user.

Benefits of technology

It achieves unified management of multiple client versions, monitors version status in real time, automatically detects new versions and pushes update notifications, providing a stable, safe and convenient service experience, and reducing interference from users' normal use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656097A
    Figure CN118656097A
Patent Text Reader

Abstract

The invention discloses a unified software management method and system for a security service program, and the method comprises the following steps: S1, after a market client of the security service program is started, a background calls an upgrade client; s2, initializing the upgrade client, and sending upgrade request data information of the market client to the upgrade server; s3, after the upgrade server receives the request upgrade data information of the market client, difference comparison is carried out on the needed upgrade file and the local file, when the local file meets the upgrade condition, the upgrade server completes upgrade data packet management and downloading, the upgrade client is upgraded, and the upgrade client is updated. Meanwhile, the connection between the upgrading client and the upgrading server is disconnected; s4, the user selects an upgrading mode according to the upgrading type for upgrading, the version state of each client can be monitored in real time, release of a new version is automatically detected, and an updating notification is pushed to the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of securities data upgrade and management, and more specifically to a unified software management method and system for securities service programs. Background Art

[0002] In the securities service market, as the business develops, companies often provide multiple types or styles of market clients according to the needs of different customers. These market clients can provide real-time or delayed market prices, trading volumes, stock information, etc., to help customers make more informed investment decisions. However, with the update of exchange business or the evolution of the securities service company's own business, the versions of these clients also need to be updated accordingly to adapt to new market needs and technical specifications. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a unified software management method and system for securities service programs, so as to solve the technical problems existing in the upgrade process of multiple market clients and trading clients in securities trading in the prior art.

[0004] To achieve the above object, the present invention provides the following technical solutions:

[0005] A unified software management method for securities service programs, comprising the following steps:

[0006] S1. After the market client of the securities service program is started, the background calls the upgraded client;

[0007] S2. The upgrade client is initialized and sends the request upgrade data information of the market client to the upgrade server;

[0008] S3. After receiving the upgrade data information requested by the market client, the upgrade server compares the required upgrade file with the local file. When there is a difference between the file to be upgraded and the local file, the upgrade file is sent to the upgrade client.

[0009] When the local file meets the upgrade conditions, the upgrade server completes the upgrade data package management and download, and upgrades the upgrade client, while disconnecting the upgrade client from the upgrade server;

[0010] S4. The user selects an upgrade method according to the upgrade type and performs the upgrade.

[0011] Furthermore, in step S4, the user selects an upgrade method according to the upgrade type, specifically: the user chooses forced upgrade or custom selected upgrade; when the user chooses forced upgrade, the client is automatically restarted immediately and the upgrade process is completed; when the user custom selects the upgrade time, the client is automatically restarted when it reaches the upgrade time custom selected by the user, and the upgrade process is completed.

[0012] Furthermore, the data packet management includes the following processes:

[0013] The upgrade server loads the upgrade data once when it starts, and groups them into the memory according to the broker number to form the upgrade data record; it scans the upgrade files for changes at a certain interval, and reloads the changed files into the memory;

[0014] Compress the upgrade file data loaded into the memory.

[0015] Further, the upgrade server receives the request for upgrading data information from the market client, specifically:

[0016] The upgrade server requests all upgrade data according to the broker number and / or requests upgrade data of a specified version according to the broker number.

[0017] Furthermore, in step S3, when there is a difference between the file to be upgraded and the local file, the upgrade file is sent to the upgrade client, specifically: the upgrade file uses the LZW algorithm to compress data. During the compression process, the dictionary is initialized to a set of all single characters, and a unique index is assigned to each character. Then, the first character of the input data stream is read as the starting character of the current string through the LZW algorithm, and the next character is read step by step, and the current string is combined with the new character into a longer string; it is determined whether the current string exists in the dictionary. If so, characters are continued to be read backward, and the current string is combined with the new character into a longer string; if not, the index of the previous known string is output, and the current string is added to the dictionary as a new entry.

[0018] Furthermore, the upgrade server completes the management and downloading of the upgrade data packet, specifically by: compressing the upgrade data packet using the LZ77 compression algorithm;

[0019] The LZ77 compression algorithm includes a dynamic window and a pre-read buffer; the dynamic window is used to store the relevant information of the first n bytes of the input stream, and the pre-read buffer is used to store the first n bytes of the input stream for matching and searching;

[0020] During the compression process, the LZ77 compression algorithm searches for the data that best matches the pre-read buffer in the sliding window; if the length of the matching data is greater than the minimum matching length, an array representing the matching length and distance is output; if the data that best matches the pre-read buffer is not found in the sliding window, the pre-read buffer is moved forward by one character after the first character of the area to be encoded is output, and the dynamic window is moved forward by one character at the same time, and this process is repeated until the input stream ends;

[0021] The decompression process recovers the original data based on the length and distance arrays output during the encoding process and the corresponding matching data in the sliding window. Specifically, the starting position of the decompression and the size of the dynamic window are determined based on the length and distance arrays output during the encoding process, and the data that best matches the pre-read buffer is searched in the dynamic window. If matching data is found, the matching data is copied to the output stream. If no matching data is found, the first character in the pre-read buffer is copied to the output stream.

[0022] The present invention also provides a unified software management system for a securities service program, wherein the securities service program includes a market client and an upgrade server;

[0023] The market client is provided with an upgrade client;

[0024] The upgrade client is called and started by the market client. After the upgrade client is started, it automatically connects to the configured upgrade server to complete the download of the upgrade data package, and then performs the upgrade process according to the data specification of the data package.

[0025] Furthermore, the upgrade server includes: an authentication module, a printing module, a status module, a request processing module, a communication module, a configuration module, and an IPTABLE module;

[0026] The authentication module sends the registration authentication upgrade server information to the authentication server;

[0027] Configuration module: configure the registration authentication information and data path information of the upgrade server.

[0028] The status module: after the upgrade server registration and authentication is successful, reports its own status information to the monitor;

[0029] Print module: print the status information of the upgrade server itself;

[0030] The communication module receives the request protocol data sent by the upgrade client and sends the data when the upgrade server is in an available state;

[0031] The request processing module processes the upgrade information sent by the upgrade client and completes data assembly;

[0032] Upgrade data management module: manages the data packets of upgrade information sent by the upgrade client, forms upgrade information records, and facilitates subordinate requests;

[0033] The IPTABLE module is used to convert the IP address and city code of the market client.

[0034] According to the specific embodiments provided by the present invention, the present invention can solve the problems of low efficiency, inconsistent versions, and reduced user experience in the current system when processing multi-client upgrades, thereby providing users with a more stable, secure, and convenient service experience. Moreover, the solution of the present invention is to establish a unified and centralized upgrade management platform for unified management of version upgrades of multiple market clients and trading clients; it can monitor the version status of each client in real time, automatically detect the release of new versions, and push update notifications to users; adopt differentiated update strategies based on the user's specific usage and device environment; adopt an instant update strategy for common functions and critical security updates; and provide users with self-selected update time for non-critical updates to reduce interference with normal user use. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0036] The following is a further description of the unified software management method and system for the securities service program of the present invention in conjunction with the accompanying drawings;

[0037] Figure 1 It is a unified software management method of the securities service program provided by the present invention and an overall block diagram design of the system;

[0038] Figure 2 It is an interactive sequence diagram in the unified software management method of the securities service program provided by the present invention;

[0039] Figure 3 It is a unified software management method for securities service programs provided by the present invention and an upgrade server architecture diagram in the system;

[0040] Figure 4 It is a unified software management method for securities service programs provided by the present invention and a schematic diagram of all versions of directories in the system;

[0041] Figure 5 It is a schematic diagram of a unified software management method for securities service programs and a directory of specified version ranges in the system provided by the present invention;

[0042] Figure 6 It is a schematic diagram of a unified software management method for securities service programs and an upgrade data package in the system provided by the present invention;

[0043] Figure 7 The invention discloses a unified software management method for securities service programs and a schematic diagram of data loading in the system. DETAILED DESCRIPTION

[0044] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0045] In order to better understand the purpose, structure and function of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings.

[0046] like Figure 1 As shown, the present invention provides a unified software management method for securities service programs, comprising the following steps:

[0047] S1. After the market client of the securities service program is started, the background calls the upgraded client;

[0048] S2. The upgrade client is initialized and sends the request upgrade data information of the market client to the upgrade server;

[0049] S3. After receiving the upgrade data information requested by the market client, the upgrade server compares the required upgrade file with the local file. When there is a difference between the file to be upgraded and the local file, the upgrade file is sent to the upgrade client.

[0050] When the local file meets the upgrade conditions, the upgrade server completes the upgrade data package management and download, and upgrades the upgrade client, while disconnecting the upgrade client from the upgrade server;

[0051] S4. The user selects an upgrade method according to the upgrade type and performs the upgrade.

[0052] In step S4, the user selects an upgrade method according to the upgrade type, specifically: the user chooses forced upgrade or custom upgrade; when the user chooses forced upgrade, the client is automatically restarted immediately and the upgrade process is completed; when the user custom selects the upgrade time, the client is automatically restarted when it reaches the upgrade time selected by the user, and the upgrade process is completed.

[0053] The data packet management includes the following processes:

[0054] The upgrade server loads the upgrade data once when it starts, and groups them into the memory according to the broker number to form the upgrade data record; it scans the upgrade files for changes at a certain interval, and reloads the changed files into the memory;

[0055] Compress the upgrade file data loaded into the memory.

[0056] The upgrade server receives the request for upgrading data information from the market client, specifically:

[0057] The upgrade server requests all upgrade data according to the broker number and / or requests upgrade data of a specified version according to the broker number.

[0058] In step S3, when there is a difference between the file to be upgraded and the local file, the upgrade file is sent to the upgrade client, specifically: the upgrade file uses the LZW algorithm to compress data. During the compression process, the dictionary is initialized to a set of all single characters, and a unique index is assigned to each character. Then, the first character of the input data stream is read as the starting character of the current string through the LZW algorithm, and the next character is read step by step, and the current string is combined with the new character into a longer string; it is determined whether the current string exists in the dictionary. If so, characters are continued to be read backward, and the current string is combined with the new character into a longer string; if not, the index of the previous known string is output, and the current string is added to the dictionary as a new entry.

[0059] The upgrade server completes the management and downloading of the upgrade data packet, specifically: compressing the upgrade data packet using the LZ77 compression algorithm;

[0060] The LZ77 compression algorithm includes a dynamic window and a pre-read buffer; the dynamic window is used to store the relevant information of the first n bytes of the input stream, and the pre-read buffer is used to store the first n bytes of the input stream for matching and searching;

[0061] During the compression process, the LZ77 compression algorithm searches for the data that best matches the pre-read buffer in the sliding window; if the length of the matching data is greater than the minimum matching length, an array representing the matching length and distance is output; if the data that best matches the pre-read buffer is not found in the sliding window, the pre-read buffer is moved forward by one character after the first character of the area to be encoded is output, and the dynamic window is moved forward by one character at the same time, and this process is repeated until the input stream ends;

[0062] The decompression process recovers the original data based on the length and distance arrays output during the encoding process and the corresponding matching data in the sliding window. Specifically, the starting position of the decompression and the size of the dynamic window are determined based on the length and distance arrays output during the encoding process, and the data that best matches the pre-read buffer is searched in the dynamic window. If matching data is found, the matching data is copied to the output stream. If no matching data is found, the first character in the pre-read buffer is copied to the output stream.

[0063] like Figure 2 As shown, the present invention further provides a unified software management system for a securities service program, characterized in that the securities service program includes a market client and an upgrade server;

[0064] The market client is provided with an upgrade client;

[0065] The upgrade client is called and started by the market client. After the upgrade client is started, it automatically connects to the configured upgrade server to complete the download of the upgrade data package, and then performs the upgrade process according to the data specification of the data package.

[0066] like Figure 3 As shown, the upgrade server includes: an authentication module, a printing module, a status module, a request processing module, a communication module, a configuration module, and an IPTABLE module;

[0067] The authentication module sends the registration authentication upgrade server information to the authentication server;

[0068] Configuration module: configure the registration authentication information and data path information of the upgrade server.

[0069] The status module: after the upgrade server registration and authentication is successful, reports its own status information to the monitor;

[0070] Print module: print the status information of the upgrade server itself;

[0071] The communication module receives the request protocol data sent by the upgrade client and sends the data when the upgrade server is in an available state;

[0072] The request processing module processes the upgrade information sent by the upgrade client and completes data assembly;

[0073] Upgrade data management module: manages the data packets of upgrade information sent by the upgrade client, forms upgrade information records, and facilitates subordinate requests;

[0074] The IPTABLE module is used to convert the IP address and city code of the market client.

[0075] It should be noted that the upgrade server includes a configuration module, an upgrade data management module, an IPTABLE module, a communication module, a request processing module, a status module, an authentication template, and a printing module.

[0076] Configuration module: configure registration authentication information, data path information, etc.

[0077] Upgrade data management module: responsible for the management of upgrade data packets, forming upgrade information records to facilitate subordinate requests.

[0078] IPTABLE module: responsible for IP and city code conversion.

[0079] Status module: reports to the monitor whether its status is available.

[0080] Communication module; completes request protocol reception and data sending.

[0081] Request processing module: processes the requested protocol data and completes data assembly.

[0082] Authentication module: Register the upgrade server with the authentication server, and the client can obtain the server address information.

[0083] Print module; print control upgrade server status.

[0084] The present invention further provides the following embodiments to illustrate:

[0085] 1. Upgrade the server data directory

[0086] 1. Data main directory

[0087] The data directory is used to store client upgrade data packets; to support different client types, different securities companies need to establish data storage specifications.

[0088] Saving specification: current directory + brokerage number.

[0089] . / update / 8544, this directory indicates that the broker number is 8544

[0090] . / update / 8558, this directory indicates that the broker number is 8558

[0091] . / update / 8642, this directory indicates that the broker number is 8642

[0092] 2. Brokerage Firm Number Directory

[0093] Use the configuration file (update.ini) to record the upgrade files in the current directory.

[0094] 1. Configuration file description:

[0095] Describes the properties of each upgrade file:

[0096] char FileName

[32] ; / / File name (used to distinguish other update files as a unique identifier)

[0097] unsigned char ClientType; / / Applicable client type (0 all versions 1 Golden Edition 2 Ultimate Edition)

[0098] unsigned char DeparementCode; / / Applicable department number (0 means all, others mean individual departments)

[0099] char SrvPath

[80] ; / / The full path of the file on the server

[0100] char ClientPath

[80] ; / / The path where the file is stored on the client, where $ represents the client installation directory

[0101] bool ForceUpdate; / / Whether to force an update (true to force an update, false to prompt the user to make a choice)

[0102] bool ExecuteEnabled; / / Whether to execute after downloading (true to execute after downloading, false to not execute after downloading)

[0103] unsigned int UpdateDate; / / File update date (YYYYMMDD format)

[0104] unsigned int UpdateTime; / / File update time (HHMMSS format)

[0105] unsigned char GroupId; / / The group number where the file is located (0 means it is not in any group)

[0106] char Descript

[126] ; / / File upgrade description

[0107] unsigned short PRI; / / priority

[0108] bool AllowSynchroUpdate; / / Allow synchronous updates (default is true)

[0109] char GroupName

[15] ; / / Group name

[0110] Configuration item examples:

[0111] [Update_0]

[0112] filename=K3B1F_bin.qlz

[0113] srvpath=D:\update\8544\ALLVERSION\K3B1F_bin.qlz

[0114] clientpath=$\bin.qlz

[0115] descript=

[0116] clienttype=3

[0117] deparementcode=0

[0118] forceupdate=True

[0119] executeenable=False

[0120] groupid=0

[0121] allowsynchroupdate=False

[0122] citycode=255

[0123] 3. Usually includes 2 types of directories: all versions directory (ALLVERSION) and specified version range directory (V8.00B140-V8.00B145)

[0124] like Figure 4 As shown, all version directories (ALLVERSION);

[0125] like Figure 5 As shown, specify the version range directory (. / V8.00B140-V8.00B145)

[0126] 4. Data publishing tools

[0127] like Figure 6 As shown, in order to facilitate the release of standardized upgrade files, a tool has been developed to edit and produce upgrade data packages;

[0128] 2. Upgrade server function design

[0129] The upgrade server is responsible for the management of upgrade data packets, communication processing, request processing, etc.

[0130] 1. Data Packet Management

[0131] (1) Data loading

[0132] like Figure 7 As shown, the upgrade data is loaded once at startup, and grouped into the memory according to the broker number to form an upgrade data record; and the upgrade file is scanned at intervals (1 minute) to see if there are any changes (file update time changes, file addition or reduction), and the changed file is reloaded into the memory;

[0133] (2) Request to upgrade data

[0134] Supports requesting all upgraded data by broker number.

[0135] Supports requesting upgrade data of a specified version by broker number.

[0136] (3) Data compression

[0137] Compress the upgrade file data loaded into the memory using the LZ77 compression algorithm.

[0138] The LZ77 compression algorithm is a lossless data compression algorithm that uses a dynamic dictionary, also commonly known as a "sliding window", to achieve compression by finding the longest matching string in the input stream. The core idea of ​​the LZ77 algorithm is to find the data that best matches the pre-read buffer in a dynamic window (sliding window). If the length of the matching data is greater than the minimum matching length, a pair of arrays containing length and distance are output, indicating the length of the matching data and how many bytes backward in the input stream can this matching data be found. This process is repeated until the end of the input stream, thereby achieving data compression.

[0139] Sliding window and pre-reading buffer: The LZ77 algorithm contains a dynamic window (sliding window) and a pre-reading buffer. The dynamic window is used to store information about the first n bytes of the input stream, while the pre-reading buffer is used to store the first n bytes of the input stream for matching search.

[0140] Compression process: During the compression process, the algorithm searches the sliding window for the data that best matches the pre-read buffer. If a match is found, an array representing the length and distance of the match is output; if no match is found, the first character of the area to be encoded is output and the window is moved. This process is repeated until the input stream ends.

[0141] Decompression process: The decompression process is the inverse operation of the compression process. According to the length and distance arrays output during the encoding process, the corresponding matching data can be found in the sliding window to restore the original data.

[0142] 3. Communication Processing

[0143] Responsible for monitoring network data on the specified port and upgrading the client to request data through the TCP / IP protocol.

[0144] Specifies communication data specifications.

[0145] Request data packet: frame header data + request service data.

[0146] Return data packet: frame header data + business record data + business record data

[0147] Network data compression:

[0148] The LZW algorithm is used for data compression. According to the communication protocol between the client and the server, the client implements multiple data length compression algorithms locally, mainly using algorithms within 8192 lengths.

[0149] The LZW algorithm is a popular and efficient lossless data compression algorithm that uses recurring strings to achieve reliable data compression while ensuring that the compressed data can be accurately restored to the original data. Its basic principle is simple. During the compression process, it maintains a dictionary to store the strings that have been encountered. Initially, the dictionary consists of all possible single characters. Next, the LZW algorithm scans the input data stream, gradually builds the string and checks whether the string exists in the dictionary. If the string already exists in the dictionary, it continues to explore and build a longer string. If the string does not exist in the dictionary, it outputs the index of the previous known string and adds the current string to the dictionary. In this way, by outputting the index in the dictionary, the LZW algorithm compresses the original data into a shorter sequence of representative symbols.

[0150] The general steps are as follows:

[0151] 1. Initialize the dictionary: Initialize the dictionary to the set of all single characters and assign a unique index to each character.

[0152] 2. Read the first character of the input data stream as the starting character of the current string.

[0153] 3. Read the next character step by step and combine the current string with the new character into a longer string.

[0154] 4. Check if the current string exists in the dictionary:

[0155] If it exists, continue reading characters backwards, combining the current string with the new characters into a longer string.

[0156] If not present, the index of the previous known string is output and the current string is added to the dictionary as a new entry.

[0157] 5. Repeat step 4 until the entire input data stream is traversed.

[0158] 6. Output the index of the remaining strings that have not been output.

[0159] 4. Request Processing

[0160] Responsible for processing the request data sent by the upgrade client, defining different request protocols according to the difference in request content,

[0161] Protocol 1: Request upgrade instructions.

[0162] Protocol 2: Request all versions of data of a brokerage firm.

[0163] Protocol 3: Requesting upgrade information

[0164] Protocol 4: Request for Specified Files

[0165] 5. Upgrade the client

[0166] The upgrade rules are as follows:

[0167] Multiple upgrade modes: normal upgrade (users can choose to upgrade immediately or next time), forced upgrade, and rollback after upgrade failure;

[0168] Connect to different upgrade servers according to configuration;

[0169] According to different brokerage IDs, obtain the files that need to be upgraded.

[0170] Client Directory

[0171] The directory structure of the client file is as follows:

[0172] \Upgrade client main directory

[0173] \qlmain.exe upgrade client main program

[0174] \QlUpdate.ini upgrade client configuration file

[0175] \...Other files in the root directory

[0176] 6. Business Processing Flow

[0177] 1. After startup, the program permissions are increased and relevant configurations are read;

[0178] 2. Determine whether there is an upgraded file downloaded locally. If so, update the file first, then start the server connection thread and connect to the server.

[0179] 3. After success, send a configuration request to obtain the corresponding configuration information.

[0180] 4. After completing point 3, continue to request version list information.

[0181] 5. After completing point 4, send a file list request to the server if necessary, send the request and receive the data returned by the server.

[0182] 6. Use the file list information to compare the locally downloaded files.

[0183] 7. Use the file list information to compare the local files that need to be updated.

[0184] 8. Download the upgrade instructions.

[0185] 9. Ask the user whether to download the upgrade file.

[0186] 10. Download the files corresponding to the file list in step 6.

[0187] 11.Save the downloaded file.

[0188] In the above 11 steps, if the return value of any step is less than 0, the upgrade process will be interrupted. If normal, the file will be saved locally.

[0189] Return Value

[0190] QL_ERR_NET_SRV_INIT Server initialization, try again later

[0191] QL_ERR_DO_NOT_DOWNLOAD No upgrade required

[0192] QL_ERR_CANCEL_DOWNLOAD Cancel the upgrade

[0193] QL_ERR_OPENTIME_DOWNLOAD Server initialization, try again later

[0194] If the rest is less than 0, the upgrade fails.

[0195] If it is greater than 0, the download of the upgrade file is complete.

[0196] In step 1, the program mode may be different depending on the parameters of the program startup, as follows:

[0197] Startup parameters

[0198] -F Force upgrade

[0199] -H Hide all upgrade dialog boxes and prompts

[0200] -D Download only

[0201] -U only replace files

[0202] -R restart upgrade

[0203] -RO Rollback

[0204] -SKIP Skip the upgrade and start the main program

[0205] -S check for upgrades

[0206] -CHECK Check upgrade

[0207] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A unified software management method for securities service programs, characterized in that: The following steps are involved: S1. After the market client of the securities service program is started, the background calls the upgraded client; S2. The upgrade client is initialized and sends the request upgrade data information of the market client to the upgrade server; S3. After receiving the upgrade data information requested by the market client, the upgrade server compares the required upgrade file with the local file. When there is a difference between the file to be upgraded and the local file, the upgrade file is sent to the upgrade client. When the local file meets the upgrade conditions, the upgrade server completes the upgrade data package management and download, and upgrades the upgrade client, while disconnecting the upgrade client from the upgrade server; S4. The user selects an upgrade method according to the upgrade type and performs the upgrade.

2. The unified software management method for securities service programs according to claim 1, characterized in that: The user selects an upgrade method according to the upgrade type, specifically: the user chooses forced upgrade or custom upgrade; when the user chooses forced upgrade, the client is automatically restarted immediately and the upgrade process is completed; when the user custom selects the upgrade time, the client is automatically restarted when it reaches the upgrade time selected by the user, and the upgrade process is completed.

3. The unified software management method for securities service programs according to claim 1, characterized in that: The data packet management includes the following processes: The upgrade server loads the upgrade data once when it starts, and groups them into the memory according to the broker number to form the upgrade data record; it scans the upgrade files for changes at a certain interval, and reloads the changed files into the memory; The upgrade client sends a request for upgrade data to the upgrade server; Compress the update data.

4. The unified software management method for securities service programs according to claim 1, characterized in that: The upgrade server receives the request for upgrading data information from the market client, specifically: The upgrade server requests all upgrade data according to the broker number and / or requests upgrade data of a specified version according to the broker number.

5. The unified software management method for securities service programs according to claim 3, characterized in that: The upgrade data is compressed as follows: the upgrade file is compressed using the LZW algorithm. During the compression process, the dictionary is initialized to a set of all single characters, and a unique index is assigned to each character. Then, the first character of the input data stream is read as the starting character of the current string through the LZW algorithm, and the next character is read step by step, and the current string is combined with the new character into a longer string; it is determined whether the current string exists in the dictionary, and if so, characters are continued to be read backward, and the current string is combined with the new character into a longer string; if not, the index of the previous known string is output, and the current string is added to the dictionary as a new entry.

6. The unified software management method for securities service programs according to claim 1, characterized in that: The upgrade server completes the management and downloading of the upgrade data packet, specifically: compressing the upgrade data packet using the LZ77 compression algorithm; The LZ77 compression algorithm includes a dynamic window and a pre-read buffer; the dynamic window is used to store the relevant information of the first n bytes of the input stream, and the pre-read buffer is used to store the first n bytes of the input stream for matching and searching; During the compression process, the LZ77 compression algorithm searches for the data that best matches the pre-read buffer in the sliding window; if the length of the matching data is greater than the minimum matching length, an array representing the matching length and distance is output; if the data that best matches the pre-read buffer is not found in the sliding window, the pre-read buffer is moved forward by one character after the first character of the area to be encoded is output, and the dynamic window is moved forward by one character at the same time, and this process is repeated until the input stream ends; The decompression process recovers the original data based on the length and distance arrays output during the encoding process and the corresponding matching data in the sliding window. Specifically, the starting position of the decompression and the size of the dynamic window are determined based on the length and distance arrays output during the encoding process, and the data that best matches the pre-read buffer is searched in the dynamic window. If matching data is found, the matching data is copied to the output stream. If no matching data is found, the first character in the pre-read buffer is copied to the output stream.

7. A unified software management system for securities service programs, used to implement the method according to any one of claims 1 to 6, characterized in that: The securities service program includes a market client and an upgrade server; The market client is provided with an upgrade client; The upgrade client is called and started by the market client. After the upgrade client is started, it automatically connects to the configured upgrade server, completes the download of the upgrade data package, and then performs upgrade processing according to the data specification of the data package.

8. The unified software management system for securities service programs according to claim 7, characterized in that: The upgrade server includes: an authentication module, a printing module, a status module, a request processing module, a communication module, a configuration module, and an IPTABLE module; The authentication module sends the registration authentication upgrade server information to the authentication server; Configuration module, configure the registration authentication information and data path information of the upgrade server; The status module reports its own status information to the monitor after the upgrade server registration and authentication is successful; The printing module prints the status information of the upgrade server itself; The communication module receives the request protocol data sent by the upgrade client and sends the data when the upgrade server is in an available state; The request processing module processes the upgrade information sent by the upgrade client and completes data assembly; The upgrade data management module manages the data packets of the upgrade information sent by the upgrade client to form upgrade information records to facilitate subordinate requests; The IPTABLE module is used to convert the IP address and city code of the market client.

Citation Information

Cited By

  • Fuel gas equipment firmware upgrading method and device, equipment and storage medium

    CN119292633A