Equipment configuration method, device, system, equipment and medium
By building a cloud management platform between the device and the OpenVPN server, and automatically generating configuration files using the device serial number, the problem of inconsistent OpenVPN client configuration files is solved, enabling zero-configuration management and remote maintenance of the device.
Patent Information
- Application Number
- CN202510976178.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-15
- Publication Date
- 2025-11-11
AI Technical Summary
In existing technologies, OpenVPN client configuration files are inconsistent across devices, which requires an additional step of generating configuration files during the device manufacturing stage, increasing manufacturing time and making unified management inconvenient.
A cloud management platform is built between the device and the OpenVPN server. The configuration file is automatically generated using the device's serial number, and the configuration file and fixed IP address are stored on the cloud management platform to achieve zero-configuration management of the device.
It reduces one step in the equipment manufacturing process, reduces working hours, and enables remote maintenance of equipment through a cloud management platform, simplifying the equipment configuration process.
Smart Images

Figure CN120935003A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to a device configuration method, apparatus, system, device, and medium. Background Technology
[0002] OpenVPN is an application-layer VPN implementation based on the OpenSSL library. It creates a virtual network interface between the client and the target server, encapsulates user data in VPN protocol packets, and then transmits them to the target server over the Internet, thereby achieving secure data transmission and access control.
[0003] When equipment deployed on-site encounters problems, it is usually necessary for R&D personnel or operations and maintenance personnel to remotely access the equipment, which has already imported the OpenVPN client configuration file, using VPN to troubleshoot.
[0004] However, since the OpenVPN client configuration file is different for each device, it cannot be included in a unified firmware package. If it were imported during the device production stage, an additional step of generating the configuration file and installing it into the device would be required, which is cumbersome and increases manufacturing time.
[0005] Therefore, a device configuration method is needed to achieve zero-configuration management of devices. Summary of the Invention
[0006] To address the aforementioned issues, this disclosure provides a device configuration method, apparatus, system, device, and medium that establishes a cloud management platform between the device and the OpenVPN server, enabling remote zero-configuration management of the device.
[0007] Firstly, a device configuration method is provided, including: When a device to be configured, whether to be deployed or already deployed on-site, detects that no configuration file is available for remote maintenance, it sends a configuration file request carrying the device's serial number to the cloud management platform. When the cloud management platform determines that there is no configuration file corresponding to the device SN number on the local machine, it sends a request to the OpenVPN server to generate a configuration file carrying the device SN number. The OpenVPN server uses the device SN number carried in the configuration file generation request to generate a configuration file for the device to be configured, assigns a fixed IP address to the device to be configured that uses the configuration file, and sends the configuration file and the fixed IP address to the cloud management platform. The cloud management platform stores the configuration file and the fixed IP address; The cloud management platform sends a confirmation message containing the configuration file to the device to be configured; The device to be configured receives the confirmation information and stores the configuration file.
[0008] Furthermore, after the device to be configured receives the confirmation information and stores the configuration file, the following steps are also included: The device to be configured starts an OpenVPN client based on the configuration file and sends an OpenVPN connection request, including the device's serial number, to the OpenVPN server based on the server address in the configuration file. The OpenVPN server determines a fixed IP address allocation based on the SN number of the device to be configured in the OpenVPN connection request and sends it to the device to be configured. The device to be configured establishes a connection with OpenVPN using the assigned fixed IP address.
[0009] Furthermore, the cloud management platform determines that a configuration file corresponding to the device SN number does not exist locally, including: The cloud management platform searches for all device serial numbers (SNs) contained in the pre-stored configuration file mapping relationship to determine whether the device SN of the device to be configured exists therein; wherein the configuration file mapping relationship is a mapping relationship between the device SN, the configuration file, and the fixed IP address, and is stored therein; If not, then it is determined that the configuration file corresponding to the device SN number does not exist locally.
[0010] Furthermore, it also includes: If the cloud management platform searches for all device serial numbers included in the pre-stored configuration file mapping relationship and determines that the device serial number of the device to be configured exists therein, then it further determines the configuration file corresponding to the device serial number of the device to be configured. The cloud management platform obtains the configuration file corresponding to the device SN number based on the configuration file mapping relationship, and sends a confirmation message carrying the configuration file to the device to be configured.
[0011] Furthermore, After storing the configuration file and the fixed IP address on the cloud management platform, the method further includes: The cloud management platform establishes and stores the mapping relationship between the device serial number, configuration file, and fixed IP address.
[0012] Secondly, a device configuration method is provided for use in a cloud management platform, including: Receive a configuration file request carrying the device serial number of the device to be configured from a device to be deployed or already deployed on site; If it is determined that there is no configuration file corresponding to the device SN number on the local machine, a request to generate a configuration file carrying the device SN number is sent to the OpenVPN server. Receive the configuration file and fixed IP address returned by the OpenVPN server; Store the configuration file and the fixed IP address; Send a confirmation message containing the configuration file to the device to be configured.
[0013] Further, determining that a configuration file corresponding to the device SN number does not exist locally includes: Locate all device serial numbers (SNs) included in the pre-stored configuration file mapping relationships, and determine whether the device SN of the device to be configured exists among them; wherein the configuration file mapping relationship is a mapping relationship between device SN, configuration file, and fixed IP address, and store it. If not, then it is determined that the configuration file corresponding to the device SN number does not exist locally.
[0014] Furthermore, it also includes: If all device serial numbers contained in the pre-stored configuration file mapping relationship are searched, it is determined that the device serial number of the device to be configured exists therein, and the configuration file corresponding to the device serial number of the device to be configured is further determined; Based on the configuration file mapping relationship, the configuration file corresponding to the device SN is obtained, and a confirmation message carrying the configuration file is sent to the device to be configured.
[0015] Furthermore, after storing the configuration file and the fixed IP address, the method further includes: Establish and store the mapping relationship between the device serial number, configuration file, and fixed IP address.
[0016] Thirdly, a device configuration system is provided, comprising: a device to be deployed or already deployed on-site, a cloud management platform, and an OpenVPN server; wherein: The device to be configured, whether to be deployed or already deployed on-site, is used to send a configuration file request carrying the device SN number of the device to be configured to the cloud management platform when it is found that there is no configuration file required for remote maintenance, and to receive the confirmation information and store the configuration file. The cloud management platform is used to send a request to the OpenVPN server to generate a configuration file carrying the device SN when it is determined that a configuration file corresponding to the device SN does not exist locally, and to store the configuration file; and to send confirmation information containing the configuration file to the device to be configured. An OpenVPN server is used to generate a configuration file for the device to be configured using the device serial number carried in the configuration file generation request, assign a fixed IP address to the device to be configured using the configuration file, and send the configuration file and the fixed IP address to the cloud management platform.
[0017] Fourthly, a device configuration apparatus is provided for use in a cloud management platform, comprising: a first receiving module, a determining module, a first transmitting module, a second receiving module, a storage module, and a second transmitting module, wherein: The first receiving module is used to receive a configuration file request carrying the device SN number of the device to be configured, sent by the device to be deployed or already deployed on site; The determination module is used to determine whether a configuration file corresponding to the device SN number exists locally; The first sending module is used to send a request to the OpenVPN server to generate a configuration file carrying the device SN when it is determined that there is no configuration file corresponding to the device SN on the local machine. The second receiving module is used to receive the configuration file and fixed IP address returned by the OpenVPN server; A storage module is used to store the configuration file and the fixed IP address; The second sending module is used to send confirmation information containing the configuration file to the device to be configured.
[0018] Further, the determining module is specifically used to search for all device serial numbers included in the pre-stored configuration file mapping relationship, and determine whether the device serial number of the device to be configured exists therein; wherein, the configuration file mapping relationship is a mapping relationship between the device serial number, the configuration file and the fixed IP address and is stored; if not, it is determined that the configuration file corresponding to the device serial number does not exist locally.
[0019] Furthermore, the determining module is also used to search for all device SN numbers contained in the pre-stored configuration file mapping relationship, determine that the device SN number of the device to be configured exists therein, and further determine the configuration file corresponding to the device SN number of the device to be configured; and obtain the configuration file corresponding to the device SN number based on the configuration file mapping relationship.
[0020] Fifthly, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor implements the above method when executing programs stored in memory.
[0021] Sixthly, a computer storage medium is provided, wherein a computer program is stored therein, and the computer program, when executed by a processor, implements the above-described method.
[0022] Compared with the prior art, this disclosure has the following advantages: 1. In the solution disclosed herein, a cloud management platform is built between the device to be configured and the OpenVPN server. No configuration file needs to be added when the device leaves the factory. Instead, when the device is installed and connected to the network for the first time, the OpenVPN server automatically generates the OpenVPN client configuration file based on the device's serial number. Through the interaction between the OpenVPN server and the cloud management server, the configuration file and the fixed IP address are stored on the cloud management server. This allows the device to obtain the configuration file from the cloud management platform at any time, solving the problem of zero-configuration management of the device, reducing one step in the device manufacturing process, and reducing labor time. 2. When remote access to the device is required, the device's fixed IP address can be directly queried through the device's serial number on the cloud management platform. Then, by running an OpenVPN client on a personal computer, the device can be accessed directly, thereby enabling remote maintenance of the device.
[0023] Other features and advantages of this disclosure will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the disclosure. The objects and other advantages of this disclosure may be realized and obtained by means of the structures pointed out in the description, claims and drawings. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 A flowchart of a device configuration method according to an embodiment of the present disclosure is shown; Figure 2 A schematic diagram illustrating the interaction between device configuration systems according to an embodiment of this disclosure is shown; Figure 3 A flowchart illustrating a device configuration method applied to a cloud management platform according to an embodiment of the present disclosure is shown; Figure 4 A schematic diagram of a device configuration system according to an embodiment of the present disclosure is shown; Figure 5 A schematic diagram of a device configuration apparatus according to an embodiment of the present disclosure is shown; Figure 6 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0027] When embedded devices deployed in the field encounter problems, R&D or maintenance personnel may need to log in to troubleshoot. However, in most cases, embedded devices are deployed in an intranet environment, and the common solution in this situation is remote device access. This solution is particularly suitable for scenarios where embedded devices deployed in an intranet are remotely accessed using OpenVPN. The following explanation uses an embedded device as an example.
[0028] like Figure 1 The diagram shown is a flowchart of a device configuration method according to an embodiment of this disclosure, including the following steps: Step 101: When the device to be deployed or already deployed on-site detects that there is no configuration file required for remote maintenance, it sends a configuration file request carrying the device SN number of the device to be configured to the cloud management platform. The aforementioned SN number is an identifying parameter of the device.
[0029] Step 102: When the cloud management platform determines that there is no configuration file corresponding to the device SN number on the local machine, it sends a request to the OpenVPN server to generate a configuration file carrying the device SN number. Specifically, the cloud management platform determines that a configuration file corresponding to the device SN number does not exist locally, including: The cloud management platform searches for all device serial numbers (SNs) contained in the pre-stored configuration file mapping relationship to determine whether the device SN of the device to be configured exists therein; wherein the configuration file mapping relationship is a mapping relationship between the device SN, the configuration file, and the fixed IP address, and is stored therein; If not, then it is determined that the configuration file corresponding to the device SN number does not exist locally.
[0030] If so, it is determined that the device SN of the device to be configured exists therein, and the configuration file corresponding to the device SN of the device to be configured is further determined; the configuration file corresponding to the device SN is obtained based on the configuration file mapping relationship, and a confirmation message carrying the configuration file is sent to the device to be configured.
[0031] Step 103: The OpenVPN server uses the device SN number carried in the configuration file generation request to generate a configuration file for the device to be configured, assigns a fixed IP address to the device to be configured that uses the configuration file, and sends the configuration file and the fixed IP address to the cloud management platform. Step 104: The cloud management platform stores the configuration file and the fixed IP address; Step 105: The cloud management platform sends a confirmation message containing the configuration file to the device to be configured; Step 106: The device to be configured receives the confirmation information and stores the configuration file.
[0032] In the solution disclosed herein, upon request from the server to be configured, the OpenVPN server automatically generates a configuration file for the OpenVPN client based on the device's serial number. Through the interaction between the OpenVPN server and the cloud management server, the configuration file is stored on the cloud management server, enabling the device to be configured to obtain the configuration file from the cloud management platform at any time, both now and in the future, thus achieving zero-configuration management of the device.
[0033] The preferred embodiments of this disclosure are described below: Figure 2 This diagram illustrates an interaction between device configuration systems according to an embodiment of the present disclosure. The interaction process demonstrates a device configuration method according to an embodiment of the present disclosure, including the following steps: Step 201: When the device starts up, it checks whether the OpenVPN client configuration file exists in the specified directory. If it does, proceed to step 209; otherwise, proceed to step 202. Specifically, each time an embedded device, whether to be deployed or already deployed in the field, starts up, its internal daemon checks whether the OpenVPN client configuration file exists in a specified directory.
[0034] Step 202: The device sends a configuration file request carrying the device's serial number to the cloud management platform; Step 203: The cloud management platform searches for the mapping relationship of local storage. If it is not found, proceed to step 204; if it is found, proceed to step 208. Specifically, the cloud management platform receives a configuration file request from the embedded device, parses the SN number in the configuration file request, and then looks up the mapping relationship between the locally stored device SN number, configuration file, and fixed IP address.
[0035] Step 204: The cloud management platform sends a request to the OpenVPN server to generate a configuration file carrying the device serial number; then proceed to step 205. Step 205: The OpenVPN server uses the device SN number carried in the configuration file generation request to generate a configuration file for the embedded device, assigns a fixed IP address to the device using the configuration file, and binds the configuration file and the fixed IP address, or binds the device SN number, configuration file and fixed IP address; then proceed to step 206; Step 206: The OpenVPN server returns the configuration file and the fixed IP address to the cloud management platform; then proceed to step 207. Step 207: The cloud management platform stores the configuration file, establishes and stores the mapping relationship between the device serial number, the configuration file and the fixed IP address; then proceed to step 208. Step 208: The cloud management platform sends confirmation information to the device, carrying the configuration file corresponding to the device SN number in the configuration file request; then proceeds to step 209; Step 209: The embedded device stores and uses the configuration file to start the OpenVPN client, thus completing the remote maintenance of the device startup.
[0036] Furthermore, following 209, the method further includes: The device to be configured starts an OpenVPN client based on the configuration file and sends an OpenVPN connection request, including the device's serial number, to the OpenVPN server based on the server address in the configuration file. The OpenVPN server determines a fixed IP address allocation based on the SN number of the device to be configured in the OpenVPN connection request and sends it to the device to be configured. The device to be configured establishes a connection with OpenVPN using the assigned fixed IP address.
[0037] Based on the above method, this disclosure also provides a device configuration method applied to a cloud management platform, such as... Figure 3 As shown, it includes the following steps: Step 301: Receive a configuration file request carrying the device serial number from the device to be deployed or already deployed on site; Step 302: If it is determined that there is no configuration file corresponding to the device SN number on the local machine, send a request to the OpenVPN server to generate a configuration file carrying the device SN number; Determining that a configuration file corresponding to the device serial number does not exist locally includes: Locate all device serial numbers (SNs) included in the pre-stored configuration file mapping relationships, and determine whether the device SN of the device to be configured exists among them; wherein the configuration file mapping relationship is a mapping relationship between device SN, configuration file, and fixed IP address, and store it. If not, then it is determined that the configuration file corresponding to the device SN number does not exist locally; If so, it is determined that a configuration file corresponding to the device SN number exists locally, and the configuration file corresponding to the device SN number of the device to be configured is further determined; the configuration file corresponding to the device SN number is obtained based on the configuration file mapping relationship, and a confirmation message carrying the configuration file is sent to the device to be configured.
[0038] Step 303: Receive the configuration file and static IP address returned by the OpenVPN server; Step 304: Store the configuration file and the fixed IP address; Step 305: Send a confirmation message containing the configuration file to the device to be configured.
[0039] In addition, preferably, the cloud management platform also receives the configuration file and corresponding fixed IP address returned by the OpenVPN server; establishes and stores the mapping relationship between the device serial number, configuration file and fixed IP address.
[0040] With the solution disclosed herein, after the embedded device is connected to the network, it can directly interact with the cloud management platform to obtain the configuration file and establish an OpenVPN connection. The whole process is automated and requires no manual intervention. Then, by running a client on a personal computer, one can remotely access the device that has established an OpenVPN connection.
[0041] Based on the above method, this disclosure also provides a device configuration system corresponding to the above method, such as... Figure 4 As shown, it includes: a device 41 to be deployed or already deployed on-site, a cloud management platform 42, and an OpenVPN server 43, wherein: The device 41 to be configured, which is to be deployed or has been deployed on site, is used to send a configuration file request carrying the device SN number of the device to be configured to the cloud management platform when it is found that there is no configuration file required for remote maintenance, and to receive the confirmation information and store the configuration file. The cloud management platform 42 is used to send a request to the OpenVPN server to generate a configuration file carrying the device SN number when it is determined that the configuration file corresponding to the device SN number does not exist locally, and to store the configuration file; and to send confirmation information containing the configuration file to the device to be configured. OpenVPN server 43 is used to generate a configuration file for the device to be configured using the device SN number carried in the configuration file generation request, assign a fixed IP address to the device to be configured using the configuration file, and send the configuration file and the fixed IP address to the cloud management platform.
[0042] Based on the above method, this disclosure also provides a device configuration apparatus corresponding to the above method, such as... Figure 5 As shown, the application in the cloud management platform includes: a first receiving module 51, a determining module 52, a first sending module 53, a second receiving module 54, a storage module 55, and a second sending module 56, wherein: The first receiving module 51 is used to receive a configuration file request carrying the device SN number of the device to be configured sent by the device to be deployed or already deployed on site; Module 52 is used to determine whether a configuration file corresponding to the device SN number exists locally; The first sending module 53 is used to send a request to the OpenVPN server to generate a configuration file carrying the device SN when it is determined that there is no configuration file corresponding to the device SN on the local machine. The second receiving module 54 is used to receive the configuration file and fixed IP address returned by the OpenVPN server; Storage module 55 is used to store the configuration file and the fixed IP address; The second sending module 56 is used to send confirmation information containing the configuration file to the device to be configured.
[0043] Further, module 52 is specifically used to search for all device SN numbers included in the pre-stored configuration file mapping relationship, and determine whether the device SN number of the device to be configured exists therein; wherein, the configuration file mapping relationship is a mapping relationship between the device SN number, the configuration file and the fixed IP address and is stored; if not, it is determined that the configuration file corresponding to the device SN number does not exist locally.
[0044] Furthermore, the determining module 52 is also used to search for all device SN numbers contained in the pre-stored configuration file mapping relationship, determine that the device SN number of the device to be configured exists therein, and further determine the configuration file corresponding to the device SN number of the device to be configured; and obtain the configuration file corresponding to the device SN number based on the configuration file mapping relationship.
[0045] Based on the same inventive concept as the above-disclosed content, this disclosure also provides an electronic device, such as... Figure 6 As shown. An electronic device according to an embodiment of this disclosure includes at least one processor and at least one memory electrically connected to the processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described above.
[0046] It should be noted that the electrical connection between the above-mentioned units does not necessarily mean the connection between lines. The indirect connection method can be applied to the embodiments of this disclosure as long as it achieves the purpose of this disclosure.
[0047] Based on the same inventive concept, this disclosure also provides a computer storage medium storing a computer program, which, when executed by a processor, implements the steps of the above method.
[0048] Although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A method for configuring a device, characterized in that, include: When a device to be configured, whether to be deployed or already deployed on-site, detects that no configuration file is available for remote maintenance, it sends a configuration file request carrying the device's serial number to the cloud management platform. When the cloud management platform determines that there is no configuration file corresponding to the device SN number on the local machine, it sends a request to the OpenVPN server to generate a configuration file carrying the device SN number. The OpenVPN server uses the device SN number carried in the configuration file generation request to generate a configuration file for the device to be configured, assigns a fixed IP address to the device to be configured that uses the configuration file, and sends the configuration file and the fixed IP address to the cloud management platform. The cloud management platform stores the configuration file and the fixed IP address; The cloud management platform sends a confirmation message containing the configuration file to the device to be configured; The device to be configured receives the confirmation information and stores the configuration file.
2. The method according to claim 1, characterized in that, After the device to be configured receives the confirmation information and stores the configuration file, the following steps are also included: The device to be configured starts an OpenVPN client based on the configuration file and sends an OpenVPN connection request, including the device's serial number, to the OpenVPN server based on the server address in the configuration file. The OpenVPN server determines a fixed IP address allocation based on the SN number of the device to be configured in the OpenVPN connection request and sends it to the device to be configured. The device to be configured establishes a connection with OpenVPN using the assigned fixed IP address.
3. The method according to claim 1, characterized in that, The cloud management platform determines that the configuration file corresponding to the device SN number does not exist locally, including: The cloud management platform searches for all device serial numbers (SNs) contained in the pre-stored configuration file mapping relationship to determine whether the device SN of the device to be configured exists therein; wherein the configuration file mapping relationship is a mapping relationship between the device SN, the configuration file, and the fixed IP address, and is stored therein; If not, then it is determined that the configuration file corresponding to the device SN number does not exist locally.
4. The method according to claim 3, characterized in that, Also includes: If the cloud management platform searches for all device serial numbers included in the pre-stored configuration file mapping relationship and determines that the device serial number of the device to be configured exists therein, then it further determines the configuration file corresponding to the device serial number of the device to be configured. The cloud management platform obtains the configuration file corresponding to the device SN number based on the configuration file mapping relationship, and sends a confirmation message carrying the configuration file to the device to be configured.
5. The method according to claim 1, characterized in that, After storing the configuration file and the fixed IP address on the cloud management platform, the method further includes: The cloud management platform establishes and stores the mapping relationship between the device serial number, configuration file, and fixed IP address.
6. A method for configuring a device, characterized in that, Applications in cloud management platforms include: Receive a configuration file request carrying the device serial number of the device to be configured from a device to be deployed or already deployed on site; If it is determined that there is no configuration file corresponding to the device SN number on the local machine, a request to generate a configuration file carrying the device SN number is sent to the OpenVPN server. Receive the configuration file and fixed IP address returned by the OpenVPN server; Store the configuration file and the fixed IP address; Send a confirmation message containing the configuration file to the device to be configured.
7. The method according to claim 6, characterized in that, Determining that a configuration file corresponding to the device serial number does not exist locally includes: Locate all device serial numbers (SNs) included in the pre-stored configuration file mapping relationships, and determine whether the device SN of the device to be configured exists among them; wherein the configuration file mapping relationship is a mapping relationship between device SN, configuration file, and fixed IP address, and store it. If not, then it is determined that the configuration file corresponding to the device SN number does not exist locally.
8. The method according to claim 7, characterized in that, Also includes: If all device serial numbers contained in the pre-stored configuration file mapping relationship are searched, it is determined that the device serial number of the device to be configured exists therein, and the configuration file corresponding to the device serial number of the device to be configured is further determined; Based on the configuration file mapping relationship, the configuration file corresponding to the device SN is obtained, and a confirmation message carrying the configuration file is sent to the device to be configured.
9. The method according to claim 6, characterized in that, After storing the configuration file and the fixed IP address, the method further includes: Establish and store the mapping relationship between the device serial number, configuration file, and fixed IP address.
10. A device configuration system, characterized in that, include: Devices to be deployed or already deployed on-site, cloud management platforms, and OpenVPN servers awaiting configuration; among which: The device to be configured, whether to be deployed or already deployed on-site, is used to send a configuration file request carrying the device SN number of the device to be configured to the cloud management platform when it is found that there is no configuration file required for remote maintenance, and to receive the confirmation information and store the configuration file. The cloud management platform is used to send a request to the OpenVPN server to generate a configuration file carrying the device SN when it is determined that a configuration file corresponding to the device SN does not exist locally, and to store the configuration file; and to send confirmation information containing the configuration file to the device to be configured. An OpenVPN server is used to generate a configuration file for the device to be configured using the device serial number carried in the configuration file generation request, assign a fixed IP address to the device to be configured using the configuration file, and send the configuration file and the fixed IP address to the cloud management platform.
11. A device configuration apparatus, characterized in that, In a cloud management platform, the application includes: a first receiving module, a determining module, a first sending module, a second receiving module, a storage module, and a second sending module, wherein: The first receiving module is used to receive a configuration file request carrying the device SN number of the device to be configured, sent by the device to be deployed or already deployed on site; The determination module is used to determine whether a configuration file corresponding to the device SN number exists locally; The first sending module is used to send a request to the OpenVPN server to generate a configuration file carrying the device SN when it is determined that there is no configuration file corresponding to the device SN on the local machine. The second receiving module is used to receive the configuration file and fixed IP address returned by the OpenVPN server; A storage module is used to store the configuration file and the fixed IP address; The second sending module is used to send confirmation information containing the configuration file to the device to be configured.
12. The apparatus according to claim 11, characterized in that, The determination module is specifically used to search for all device serial numbers (SNs) included in the pre-stored configuration file mapping relationship, and determine whether the device SN of the device to be configured exists therein; wherein, the configuration file mapping relationship is a mapping relationship between the device SN, the configuration file, and the fixed IP address and is stored; if not, it is determined that the configuration file corresponding to the device SN does not exist locally.
13. The apparatus according to claim 11, characterized in that, The determining module is further configured to: search for all device serial numbers contained in the pre-stored configuration file mapping relationship, determine that the device serial number of the device to be configured exists therein, and further determine the configuration file corresponding to the device serial number of the device to be configured; and obtain the configuration file corresponding to the device serial number based on the configuration file mapping relationship.
14. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method of any one of claims 6-9.
15. A computer storage medium, characterized in that, The computer storage medium stores a computer program, which, when executed by a processor, implements the method of any one of claims 6-9.