A method for group control and distribution of software for multiple Internet cafes or computer rooms

Through the group control distribution system composed of client, cloud and server, it solves the problems of software distribution and maintenance in multiple Internet cafes or computer rooms, achieves efficient file management and safe transmission, and reduces operation and maintenance costs.

CN116668431BActive Publication Date: 2024-10-29CLOUD ATTACK NETWORK TECH HEBEI CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310740651.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-21
Publication Date
2024-10-29
Estimated Expiration
2043-06-21

AI Technical Summary

Technical Problem

There are many problems in software distribution and maintenance in multiple Internet cafes or computer rooms, including the inability to directly group control, files being intercepted, replaced and stolen, etc., resulting in high operation and maintenance costs and low efficiency.

Method used

Adopt a group control distribution system composed of client, cloud and server, automatically generate Internet cafe or computer room list in the cloud for group management, use MD5 value to compress files and encrypt configuration files to ensure the security and consistency of file transmission, service The terminal regularly updates the file and executes the file in the terminal.

Benefits of technology

It realizes group control management of multiple Internet cafes or computer rooms, improves operation and maintenance efficiency, reduces operation and maintenance costs, and prevents files from being tampered with and hijacked through encryption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116668431B_ABST
    Figure CN116668431B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of Internet technology, and in particular to a method for group control and distribution of software for multiple Internet cafes or computer rooms, comprising the following steps: under each client account, the cloud automatically generates an Internet cafe or computer room list according to the reported information of the server; the client selects the file to be distributed and uploads it to the cloud, compresses the file into a ZIP file using the md5 value of the file as a password, and generates a configuration file; at each preset time interval, the server requests the cloud once, receives the configuration file distributed by the cloud, downloads the required ZIP file according to the configuration rule of the configuration file, and decompresses the required ZIP file with the password specified in the configuration file, and places the decompressed file in the distribution directory of the server; the terminal obtains the file in the distribution directory according to the set server IP and port. The present invention can realize the group control and distribution of software for multiple Internet cafes or computer rooms, improve the operation and maintenance efficiency, and prevent files from being hijacked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and more particularly to a method for group-controlling and distributing software for multiple Internet cafes or computer rooms. Background Art

[0002] Since the Internet cafe or computer room restores the clean system every time it is started, the operation and maintenance personnel must ensure the stability of the system and reduce costs. However, some software from small manufacturers may be unstable or only used for a period of time. In this case, the operation and maintenance personnel will not install such software directly into the terminal system, so they use the distribution method. When the system is started, these software are started through the startup items set by the system. When these software are not applicable, they can stop distributing them. However, distributing or stopping a certain software will incur a lot of labor costs if each Internet cafe or computer room has to set it up separately.

[0003] Currently, there are many problems in software distribution and maintenance for multiple Internet cafes or computer rooms, especially those in remote locations. For example, direct group control is not possible, and distributed files are intercepted, replaced, or stolen. Summary of the invention

[0004] In view of this, the present invention provides a method for group-controlled distribution of software to multiple Internet cafes or computer rooms, which can realize group-controlled distribution of software to multiple Internet cafes or computer rooms, improve operation and maintenance efficiency, and prevent files from being hijacked.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] A method for group control distribution software for multiple Internet cafes or computer rooms, which is applicable to a group control distribution system composed of a client, a cloud, a server and a terminal;

[0007] The method comprises the following steps:

[0008] Under each client account, the cloud automatically generates a list of Internet cafes or computer rooms based on the information reported by the server, and manages them in groups;

[0009] The client selects the file to be sent and uploads it to the cloud. The cloud automatically obtains the MD5 value of the file and uses the MD5 value of the file as the password to compress the file into a ZIP file.

[0010] The cloud generates a configuration file under the client account based on the file that needs to be sent, and regenerates the configuration file whenever the file that needs to be sent changes;

[0011] At every preset time interval, the server requests the cloud once, receives the configuration file sent by the cloud, downloads the required ZIP file according to the configuration rules of the configuration file, decompresses the required ZIP file with the password specified in the configuration file, and places the decompressed file in the server's delivery directory;

[0012] The terminal obtains the files in the distribution directory according to the set server IP and port.

[0013] Furthermore, each client is an independent and non-duplicate account; the cloud is the master control server; the server is the server in the Internet cafe or computer room; and the terminal is the computer in the Internet cafe or computer room.

[0014] Furthermore, the cloud is grouped according to the server ID of the Internet cafe or computer room, and supports the server of an Internet cafe or computer room to exist in different groups at the same time.

[0015] Furthermore, before the cloud compresses the sent file into a ZIP file, it also includes: comparing the md5 value of the newly uploaded file with the md5 value of the previously uploaded file record in the database. If there is a duplicate, it is prompted that the file already exists and the uploaded file is discarded; if there is no duplicate, the newly uploaded file is retained;

[0016] After the cloud compresses the sent file into a ZIP file, it generates a download link for the ZIP file and deletes the uploaded file.

[0017] Furthermore, the configuration file is encrypted using DES3, and its key is preset on the cloud and server.

[0018] Furthermore, a server is independently generated under each client account. A global variable is built into the EXE execution file of the server. The global variable is the lowercase md5 value of the client account. When the EXE execution file of the server is started, the global variable is loaded. After the server reads the lowercase md5 value of the client account, it assembles the download link of the configuration file under the client account.

[0019] Furthermore, the server under each client account pre-configures the local file storage path, the name of the Internet cafe or computer room, and the number of terminals, wherein the local file storage path is used as the distribution directory.

[0020] Furthermore, the server downloads the required ZIP files according to the configuration rules of the configuration file, including:

[0021] The server checks whether the files in the delivery directory are to be deleted or added according to the configuration rules of the configuration file. The specific checking process is as follows: the server checks the md5 values ​​of the files in the delivery directory one by one. If the md5 value of a file is not in the configuration file, it means that the client has deleted the file in the cloud. At this time, the server will synchronously delete the file in the delivery directory; if the md5 value of the file in the configuration file does not match the md5 values ​​of all files in the delivery directory, it means that the file is a new file added by the client in the cloud. At this time, the server downloads the ZIP file according to the download address of the new file in the configuration file.

[0022] Furthermore, after the server downloads the ZIP file of the newly added file, it uses the md5 value of the newly added file marked in the configuration file as the password to decompress the ZIP file, places the decompressed file in the delivery directory, and deletes the ZIP package.

[0023] Furthermore, after the server is running or there is a file update, the server will report information to the cloud. If the server file is not updated, a report will be made every fifteen minutes from the last report. If the cloud does not obtain the report information of a server for more than half an hour, the server is considered to be offline.

[0024] It can be seen from the above technical solutions that, compared with the prior art, the present invention has the following beneficial effects:

[0025] The present invention can manage Internet cafes or computer rooms in groups, select batch files for distribution, and realize group control management of Internet cafes or computer rooms, thereby improving the work efficiency of operation and maintenance personnel and reducing operation and maintenance costs. At the same time, both the distributed files and configuration files are compressed and encrypted to prevent the files from being tampered with and hijacked and leaked. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] 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.

[0027] Figure 1 A flow chart of a method for group control and distribution of software to multiple Internet cafes or computer rooms provided by the present invention;

[0028] Figure 2 A schematic diagram of a list of Internet cafes or computer rooms generated in the cloud;

[0029] Figure 3 A schematic diagram of the interface for group management in the cloud;

[0030] Figure 4 This is a flowchart of cloud operation;

[0031] Figure 5 This is a flow chart of server operation. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] like Figure 1 As shown, the embodiment of the present invention discloses a method for group control distribution software for multiple Internet cafes or computer rooms, which is applicable to a group control distribution system composed of a client, a cloud, a server and a terminal; wherein each client is an independent non-repetitive account; the cloud is a master control server; the server is a server in an Internet cafe or computer room; and the terminal is a computer in an Internet cafe or computer room;

[0034] The method comprises the following steps:

[0035] Under each client account, the cloud automatically generates a list of Internet cafes or computer rooms based on the information reported by the server, and manages them in groups;

[0036] The client selects the file to be sent and uploads it to the cloud. The cloud automatically obtains the MD5 value of the file and uses the MD5 value of the file as the password to compress the file into a ZIP file.

[0037] The cloud generates a configuration file under the client account based on the file that needs to be sent, and regenerates the configuration file whenever the file that needs to be sent changes;

[0038] At every preset time interval, the server requests the cloud once, receives the configuration file sent by the cloud, downloads the required ZIP file according to the configuration rules of the configuration file, decompresses the required ZIP file with the password specified in the configuration file, and places the decompressed file in the server's delivery directory;

[0039] The terminal obtains the files in the distribution directory according to the set server IP and port.

[0040] In a specific embodiment, the cloud automatically generates the following information based on the information reported by the server: Figure 2 The Internet cafe or computer room list is shown, and then grouped according to the Internet cafe or computer room server ID, and supports the server of an Internet cafe or computer room to exist in different groups at the same time. The grouping interface is as follows Figure 3The purpose of grouping is to facilitate operation and maintenance personnel to select and distribute files by group, as shown in Table 1:

[0041] Table 1

[0042] Group Name Internet cafe or computer room ID Issue file ID A set 1、2、3 A.C Group 2 3、6、9 B, C, E Three groups 1、4、5、8 A, B, D Four groups 3、5、7、9 C.E

[0043] The files to be distributed are uploaded to the cloud under the client account, such as Figure 4 As shown in the figure, the operation process on the cloud is:

[0044] The cloud automatically obtains the MD5 value of the issued file, and compares the MD5 value of the newly uploaded file with the MD5 value of the previously uploaded file record in the database. If there is a duplicate, it will prompt that the file already exists and discard the uploaded file; if there is no duplicate, the newly uploaded file will be retained;

[0045] If you are editing and replacing the previous file, you need to compare other files except the file to be replaced to see if there are duplicate MD5 values ​​after uploading. If there are duplicates, it will prompt that the corresponding file already exists and you need to discard the uploaded file.

[0046] After the upload is completed, the cloud records the md5 value of each newly uploaded file in the database. If it is a replacement file, the original file is overwritten. After that, the md5 value of the newly uploaded file is used as the password to compress the file into a ZIP file and name the ZIP file {random GUID}.zip.

[0047] After compression is completed, since the distributed file is a ZIP package file, you need to delete the uploaded file and generate a download link for the ZIP file.

[0048] The download link of the ZIP file is automatically generated on the cloud, and the format is https: / / domain name / ZIP file download directory / zip file name.

[0049] For all uploaded files, you can perform operations such as sending and deleting. Whenever a file changes, the cloud regenerates the configuration file under the client account. The configuration file is a JSON file named: {md5 lowercase of the customer account}.json. The server software of the Internet cafe or computer room needs to download this JSON file from the cloud as a configuration file to work. The JSON file is the configuration file used by the server. The JSON file is essentially a text file. The cloud directly retrieves the database and generates a JSON file in the following format. The download link is https: / / domain name / {md5 lowercase of the customer account}.json.

[0050] The JSON file content is encrypted using DES3, and the secret key is preset on the cloud and server. This secret key is known only to the developer and is used by the server to decrypt the downloaded cloud JSON file.

[0051] After the cloud generates the ZIP file and JSON file, the server obtains the ZIP file and JSON file from the cloud. Figure 5 As shown, the specific operation process is:

[0052] The server software is set to auto-start software and provides an automatic time verification function to ensure that the server time is correct. The server sets the local file storage path and provides services in this path (hereinafter referred to as the distribution directory) as the file obtained by the terminal. After installing the server, configure and input the name of the Internet cafe or computer room, as well as the number of terminals.

[0053] It should be noted that each client account using the method of the present invention generates a server independently, and a server is generated independently under each client account. A global variable is built into the EXE execution file of the server, and the global variable is the lowercase md5 value of the client account (that is, the value of the built-in global variable = the lowercase md5 value of the client account). When the EXE execution file of the server is started, the global variable is loaded, and after the server reads the lowercase md5 value of the client account, it assembles the download link of the configuration file under the client account.

[0054] Since the client may modify, delete, or add files to be sent at any time in the cloud, the server software requests the cloud every 30 seconds to download the JSON file. The address is https: / / domain name / {md5 lowercase of the customer account}.json. After downloading, the JSON file content is decrypted and the content in JSON format is read and parsed.

[0055] The server checks whether the files in the delivery directory are to be deleted or added according to the configuration rules of the configuration file. The specific checking process is as follows: the server checks the md5 values ​​of the files in the delivery directory one by one. If the md5 value of a file is not in the configuration file, it means that the client has deleted the file in the cloud. At this time, the server will synchronously delete the file in the delivery directory; if the md5 value of the file in the configuration file does not match the md5 values ​​of all files in the delivery directory, it means that the file is a new file added by the client in the cloud. At this time, the server downloads the ZIP file according to the download address of the new file in the configuration file.

[0056] After the server downloads the ZIP file of the newly added file, it uses the md5 value of the newly added file marked in the configuration file as the password to decompress the ZIP file, places the decompressed file in the delivery directory, and deletes the ZIP package.

[0057] After the server is running or there is a file update, the information is reported to the cloud. If the file on the server is not updated, a report is made every fifteen minutes from the last report. If the cloud does not obtain the report information of a server for more than half an hour, the server is considered to be offline.

[0058] Specifically, after the server is running, it will report information to the cloud. The report here is the way for the cloud to obtain the running status of the server. Through the report, the cloud obtains whether the server is running normally. The format is:

[0059] https: / / domain name / r={encrypted string}

[0060] It should be noted that the encryption method is DES3 and the key is preset.

[0061] After decryption of the encrypted string:

[0062] The reported information is: un={customer account MD5}$&$ma={MAC address}$&$ip={private network IP address}$&$gwm={gateway MAC address}$&$type={type}$&$md5={md5 value}$&$error={error code}$&$gd={guid}$&$barname={Internet cafe name}$&$count={number of machines in the Internet cafe}.

[0063] The type field value is:

[0064] start: The client starts. The md5 field and error field are ignored.

[0065] success: The main program is updated successfully, and the error field is ignored;

[0066] error: client update main program error;

[0067] The md5 field is the MD5 value of the current main program; the error field is the error code.

[0068] If the server deletes or adds files, it will also report information to the cloud. The cloud uses this method to obtain whether the server updates the file normally. The format is:

[0069] https: / / domain name / e={encrypted string}

[0070] It should be noted that the encryption method is DES3 and the key is preset.

[0071] After decryption of the encrypted string:

[0072] The reported information is: un={customer account MD5}$&$ma={MAC address}$&$ip={private network IP address}$&$gwm={gateway MAC address}$&$load={id}:{status}|{id}:{status}|{id}:{status}|{id}:{status}...$&$gd={guid}$&$barname={Internet cafe name}$&$count={number of machines in the Internet cafe}.

[0073] The {status} in the parameter is the status of the file to be sent, 1-normal, 0-abnormal (the file cannot be downloaded).

[0074] If there is no update action on the sent file, a cyclic report will be performed every 15 minutes from the last report. If the cloud does not obtain the report information for more than half an hour from the last report, it is determined that the server is offline.

[0075] After the server unzips the ZIP file, the terminal obtains the server file and executes it. The specific process is as follows:

[0076] Install the terminal software in the terminal system of the Internet cafe or computer room in advance and set it to start automatically. Its function is to access the IP and port of the server, obtain the software issued by the server, and run it.

[0077] The configuration file included with the terminal software can be manually modified to specify the server IP and port. For example, the configuration file is yx_config.ini, and the format is as follows:

[0078] [config]

[0079] ServerIP=172.30.30.2|172.30.30.3|172.30.30.4

[0080] Port=21887|21888|21889

[0081] Among them, ServerIP represents the three servers that back up each other; Port corresponds to the ports of the above three servers.

[0082] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0083] 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 method for group control and distribution of software for multiple Internet cafes or computer rooms, characterized in that: It is suitable for a group control distribution system consisting of a client, cloud, server and terminal; each client is an independent and non-repetitive account; the cloud is the master control server; the server is the server in an Internet cafe or computer room; the terminal is the computer in an Internet cafe or computer room; A server is generated independently under each client account. A global variable is built into the EXE executable file of the server. The global variable is the lowercase md5 value of the client account. When the EXE executable file of the server is started, the global variable is loaded. After the server reads the lowercase md5 value of the client account, it assembles the download link of the configuration file under the client account. The server under each client account is pre-configured with the local file storage path, the name of the Internet cafe or computer room, and the number of terminals, where the local file storage path is used as the distribution directory; The method comprises the following steps: Under each client account, the cloud automatically generates a list of Internet cafes or computer rooms based on the information reported by the server, and manages them in groups; The client selects the file to be sent and uploads it to the cloud. The cloud automatically obtains the MD5 value of the file and uses the MD5 value of the file as the password to compress the file into a ZIP file. The cloud generates a configuration file under the client account based on the file that needs to be sent, and regenerates the configuration file whenever the file that needs to be sent changes; At every preset time interval, the server requests the cloud once, receives the configuration file sent by the cloud, downloads the required ZIP file according to the configuration rules of the configuration file, decompresses the required ZIP file with the password specified in the configuration file, and places the decompressed file in the server's delivery directory; The terminal obtains the files in the distribution directory according to the set server IP and port.

2. The method for group control and distribution of software for multiple Internet cafes or computer rooms according to claim 1, characterized in that: The cloud is grouped according to the server ID of the Internet cafe or computer room, and supports the server of an Internet cafe or computer room to exist in different groups at the same time.

3. The method for group control and distribution of software for multiple Internet cafes or computer rooms according to claim 1, characterized in that: Before the cloud compresses the sent file into a ZIP file, it also includes: comparing the md5 value of the newly uploaded file with the md5 value of the previously uploaded file record in the database. If there is a duplicate, it will prompt that the file already exists and discard the uploaded file; if there is no duplicate, the newly uploaded file will be retained; After the cloud compresses the sent file into a ZIP file, it generates a download link for the ZIP file and deletes the uploaded file.

4. The method for group control and distribution of software for multiple Internet cafes or computer rooms according to claim 1, characterized in that: The configuration file is encrypted using DES3, and its key is preset on the cloud and server.

5. The method for group control and distribution of software for multiple Internet cafes or computer rooms according to claim 1, characterized in that: The server downloads the required ZIP file according to the configuration rules of the configuration file, including: The server checks whether the files in the delivery directory are to be deleted or added according to the configuration rules of the configuration file. The specific checking process is as follows: the server checks the md5 values ​​of the files in the delivery directory one by one. If the md5 value of a file is not in the configuration file, it means that the client has deleted the file in the cloud. At this time, the server will synchronously delete the file in the delivery directory; if the md5 value of the file in the configuration file does not match the md5 values ​​of all files in the delivery directory, it means that the file is a new file added by the client in the cloud. At this time, the server downloads the ZIP file according to the download address of the new file in the configuration file.

6. The method for group control and distribution of software for multiple Internet cafes or computer rooms according to claim 5, characterized in that: After the server downloads the ZIP file of the newly added file, it uses the md5 value of the newly added file marked in the configuration file as the password to decompress the ZIP file, places the decompressed file in the delivery directory, and deletes the ZIP file.

7. The method for group control and distribution of software for multiple Internet cafes or computer rooms according to claim 1, characterized in that: After the server is running or there is a file update, the information is reported to the cloud. If the file on the server is not updated, a report is made every fifteen minutes from the last report. If the cloud does not obtain the report information of a server for more than half an hour, the server is considered to be offline.

Citation Information

Patent Citations

  • Enterprise resource planning data collection method, terminal device, and medium

    CN108418787A

  • Method for managing home cloud file and mobile terminal

    CN108512824A