Equipment configuration method and related equipment

By enabling network sharing and automated management of configuration files between the distributed execution unit and the protected device, the problem of centralized management of distributed execution unit configuration is solved, improving configuration flexibility and user experience, and reducing error rate.

CN121887625APending Publication Date: 2026-04-17SYM TECH (GUANGDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511773471.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-28
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

In existing technologies, the configuration of distributed execution units needs to be centrally managed through a management center, which makes it inconvenient and prone to errors in personal scenarios.

Method used

By enabling network sharing between the distributed execution unit and the protected device, flexible data sharing can be achieved. The protected device connects to the IP address of the distributed execution unit, obtains and displays the shared configuration file, supports user-defined configuration, and displays and saves the configuration content on the configuration page. Indicator lights are used to determine whether the configuration is successful or not.

Benefits of technology

It achieves automated configuration of distributed execution units, reduces manual intervention, lowers the error rate, improves the system's scalability, flexibility, and maintainability, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121887625A_ABST
    Figure CN121887625A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an equipment configuration method and related equipment, and belongs to the technical field of intelligent equipment. The method comprises the following steps: starting a network sharing function of a distributed execution unit and protected equipment; connecting to the IP address of the distributed execution unit through a network card of the protected equipment application distributed execution unit; the method comprises the following steps: acquiring a shared configuration file directory of a distributed execution unit through protected equipment, and displaying a shared configuration file on a configuration page of the protected equipment; in response to the write-in operation, displaying the current configuration content on a configuration page of the protected equipment; and in response to the saving operation, saving the current configuration content to the shared configuration file, and applying the shared configuration file through the distributed execution unit. According to the embodiment of the invention, automatic equipment configuration of the distributed execution unit can be realized, server management is not needed, personal scene use is facilitated, manual intervention is reduced, the error rate is reduced, and the expansibility, flexibility and maintainability of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart device technology, and in particular to a device configuration method and related equipment. Background Technology

[0002] In relevant distributed system architectures, the configuration of distributed execution units typically requires centralized management through a management center. Whether the execution unit is online or offline, configuration must still be performed through the management center, which is inconvenient for individual use. Furthermore, the existing methods suffer from cumbersome manual operations and are prone to errors.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the Invention

[0004] The main objective of this application is to propose a device configuration method and related devices, which aims to achieve automated device configuration of distributed execution units and facilitate use in personal scenarios.

[0005] To achieve the above objectives, one aspect of this application provides a device configuration method, the method comprising: Enable network sharing between the distributed execution unit and the protected device, wherein the distributed execution unit and the protected device are connected through an interface; The protected device connects to the IP address of the distributed execution unit via the network interface card of the distributed execution unit. The shared configuration file directory of the distributed execution unit is obtained through the protected device, and the shared configuration file is displayed on the configuration page of the protected device. The shared configuration file directory includes the shared configuration file. In response to a write operation, the current configuration content is displayed on the configuration page of the protected device; In response to the save operation, the current configuration content is saved to the shared configuration file, and the shared configuration file is applied through the distributed execution unit.

[0006] In some embodiments, the method further includes: The indicator lights of the distributed execution unit are used to determine whether the shared configuration file has been configured successfully. If the indicator light flashes, the shared configuration file is considered to have been configured successfully; otherwise, the shared configuration file is considered to have been configured unsuccessfully.

[0007] In some embodiments, the method further includes: The protected device is connected to the TYPE-C interface or LAN interface of the distributed execution unit. If the connection is successful and the network sharing function between the distributed execution unit and the protected device is enabled, the network card of the distributed execution unit will be displayed on the network management page of the protected device.

[0008] In some embodiments, the method further includes: Obtain the network port connection status of the WAN interface of the distributed execution unit; If the network port connection status is connected, then wired network connection is performed through the WAN interface; If the current configuration includes a Wi-Fi configuration, then the distributed execution unit applies the Wi-Fi configuration to connect to the network wirelessly; otherwise, it is determined that the distributed execution unit has failed to connect to the network.

[0009] In some embodiments, the shared configuration file includes current configuration content, which includes policy configuration. Applying the shared configuration file through the distributed execution unit includes: Set the initial configuration of the distributed execution unit to full blocking; Retrieve the policy configuration from the shared configuration file; The distributed execution unit applies the strategy configuration based on the initial configuration.

[0010] In some embodiments, the method further includes: The shared configuration file, including a digital certificate signature, is transferred to the distributed execution unit via the USB storage medium. The validity of the digital certificate signature is verified by the distributed execution unit; If the digital certificate signature is valid, the shared configuration file is saved through the distributed execution unit; If the digital certificate signature is invalid, the shared configuration file will be rejected by the distributed execution unit.

[0011] To achieve the above objectives, another aspect of this application provides a device configuration apparatus, the apparatus comprising: A sharing module is used to enable network sharing between the distributed execution unit and the protected device, wherein the distributed execution unit and the protected device are connected through an interface. The address connection module is used to connect the network card of the distributed execution unit to the IP address of the distributed execution unit through the network card of the protected device; The file acquisition module is used to acquire the shared configuration file directory of the distributed execution unit through the protected device, and display the shared configuration file on the configuration page of the protected device. The shared configuration file directory includes the shared configuration file. The write module is used to display the current configuration content on the configuration page of the protected device in response to a write operation; A save module is used to save the current configuration content to the shared configuration file in response to a save operation, and apply the shared configuration file through the distributed execution unit.

[0012] To achieve the above objectives, another aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the method described above.

[0013] To achieve the above objectives, another aspect of the embodiments of this application proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods described above.

[0014] To achieve the above objectives, another aspect of the embodiments of this application proposes a computer program product, including a computer program that, when executed by a processor, implements the aforementioned method.

[0015] The embodiments of this application include at least the following beneficial effects: This application provides a device configuration method, apparatus, electronic device, storage medium, and program product. This solution enables network sharing between a distributed execution unit and the protected device, with the distributed execution unit and the protected device connected through an interface, achieving flexible data sharing; the protected device connects to the IP address of the distributed execution unit via its network interface card; the protected device obtains the shared configuration file directory of the distributed execution unit and displays the shared configuration file on the configuration page of the protected device, the shared configuration file directory including the shared configuration file; in response to a write operation, the current configuration content is displayed on the configuration page of the protected device, supporting user-defined configuration files, improving the flexibility and usability of the configuration file, enhancing the user experience, making the configuration process more intuitive and user-friendly, and reducing the occurrence of configuration errors; in response to a save operation, the current configuration content is saved to the shared configuration file, and the distributed execution unit applies the shared configuration file, realizing automated device configuration of the distributed execution unit. This not only eliminates the need for server management, facilitating personal use, but also reduces manual intervention, lowers the error rate, and improves the system's scalability, flexibility, and maintainability. Attached Figure Description

[0016] Figure 1 This is a flowchart of the device configuration method provided in the embodiments of this application; Figure 2 This is a flowchart of the USB ferry step in the device configuration method provided in this application embodiment; Figure 3 yes Figure 1 The flowchart of step S105 in the process; Figure 4 This is a flowchart of the network connection steps of the distributed execution unit in the device configuration method provided in this application embodiment; Figure 5 This is a flowchart illustrating a specific implementation of the device configuration method provided in this application when applied to a personal version of a distributed execution unit and a protected device. Figure 6 This is a schematic diagram of the personal version of the distributed execution unit and the protected device provided in the embodiments of this application; Figure 7 This is a schematic diagram of the protected device connected to the distributed execution unit according to an embodiment of this application; Figure 8 This is a schematic diagram of the shared configuration file of the distributed execution unit provided in the embodiments of this application; Figure 9 This is a schematic diagram of the device configuration apparatus provided in the embodiments of this application; Figure 10 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit it. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.

[0018] It is understood that the terms “first,” “second,” etc., used in this application may be used herein to describe various concepts, but unless otherwise stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words “if,” “when,” or “in response to a determination” as used herein may be interpreted as “when…” or “when…” or “in response to a determination.”

[0019] As used in this application, the terms "at least one", "multiple", "each", "any", etc., "at least one" includes one, two or more, "multiple" includes two or more, "each" refers to each of the corresponding multiples, and "any" refers to any one of the multiples.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0021] Before providing a detailed description of the embodiments of this application, some of the nouns and terms involved in the embodiments of this application will be explained first. The nouns and terms involved in the embodiments of this application are subject to the following interpretations.

[0022] 1) WAN interface (Wide Area Network) is an interface used to connect to a wide area network.

[0023] 2) LAN interface (Local Area Network) is an interface used to connect to a local area network.

[0024] In relevant distributed system architectures, the configuration of distributed execution units typically requires centralized management through a management center. Whether the execution unit is online or offline, configuration must still be performed through the management center, which is inconvenient for individual use. Furthermore, the existing methods suffer from cumbersome manual operations and are prone to errors.

[0025] In summary, the technical problems existing in the relevant technologies need to be improved.

[0026] In view of this, this application provides a device configuration method and related equipment. This solution enables network sharing between the distributed execution unit (DMU) and the protected device, allowing for flexible data sharing through interface connections. The protected device connects to the DMU's IP address via its network interface card. The protected device obtains the DMU's shared configuration file directory and displays it on its configuration page. The shared configuration file directory includes the shared configuration files. In response to a write operation, the current configuration content is displayed on the protected device's configuration page, supporting user-defined configuration files, improving their flexibility and usability, enhancing user experience, making the configuration process more intuitive and user-friendly, and reducing configuration errors. In response to a save operation, the current configuration content is saved to the shared configuration file. The DMU then applies the shared configuration file, achieving automated device configuration of the DMU. This eliminates the need for server management, facilitating personal use, reducing manual intervention, lowering the error rate, and improving the system's scalability, flexibility, and maintainability.

[0027] The device configuration method provided in this application relates to the field of smart device technology. The device configuration method provided in this application can be applied to a terminal, a server, or software running on a terminal or server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, or in-vehicle terminal, but is not limited to these. The server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network. The software can be an application implementing the device configuration method, but is not limited to the above forms.

[0028] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0029] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirection to confirmation pages. Only after obtaining the user's separate permission or consent is the necessary user-related data required for the proper functioning of these embodiments acquired.

[0030] Figure 1 This is an optional flowchart of the device configuration method provided in the embodiments of this application. Figure 1 The method may include, but is not limited to, steps S101 to S105.

[0031] Step S101: Enable network sharing between the distributed execution unit and the protected device.

[0032] Specifically, the distributed execution unit connects to the protected device through an interface.

[0033] In some embodiments, the TYPE-C interface or LAN interface of the distributed execution unit is connected to the protected device; if the connection is successful and the network sharing function between the distributed execution unit and the protected device is enabled, the network card of the distributed execution unit is displayed on the network management page of the protected device.

[0034] Optionally, before enabling network sharing between the distributed execution unit and the protected device after pressing the physical button on the distributed execution unit, the default policy is already a forced full block.

[0035] In this embodiment, the network sharing function between the distributed execution unit and the protected device is enabled, realizing flexible data sharing.

[0036] Step S102: Connect the network card of the distributed execution unit to the IP address of the distributed execution unit through the network card of the protected device.

[0037] In some embodiments, the network interface card (NIC) of the distributed execution unit is displayed on the network management page of the protected device, and then the network interface card of the distributed execution unit is used by the protected device to connect to the IP address of the distributed execution unit.

[0038] Specifically, obtain the newly added network card and modify its IP address to an IP address other than 192.168.1.1 in the 192.168.X.0 / 24 range.

[0039] Furthermore, to connect to the default IP address of the distributed execution unit, \\192.168.X.1\public, you can obtain the shared configuration file directory, which requires you to enter a username and password.

[0040] In this embodiment, the network card of the distributed execution unit of the protected device is connected to the IP address of the distributed execution unit, which prepares for obtaining the shared configuration file later.

[0041] Step S103: Obtain the shared configuration file directory of the distributed execution unit through the protected device, and display the shared configuration file on the configuration page of the protected device.

[0042] Specifically, the shared configuration file directory includes shared configuration files, which in turn include digital certificate signatures.

[0043] It is understandable that the shared configuration file can be empty, or it can include policy configuration and WIFI configuration.

[0044] Optionally, the shared configuration file directory of the distributed execution unit can be obtained through the protected device, and the shared configuration files in the shared configuration file directory can be displayed on the file management page of the protected device.

[0045] Furthermore, in response to the opening operation of the shared configuration file, the contents of the shared configuration file are displayed on the configuration management page of the protected device.

[0046] In some embodiments, a shared configuration file is transferred to a distributed execution unit via a USB storage medium; the distributed execution unit verifies the validity of the digital certificate signature; if the digital certificate signature is valid, the shared configuration file is saved by the distributed execution unit; if the digital certificate signature is invalid, the distributed execution unit refuses to import the shared configuration file.

[0047] In this embodiment, the shared configuration file directory of the distributed execution unit is obtained through the protected device, and the shared configuration file is displayed on the configuration page of the protected device. This allows users to intuitively view the shared configuration file through a visual page, preparing for subsequent writing to the shared configuration file.

[0048] In step S104, in response to the write operation, the current configuration content is displayed on the configuration page of the protected device.

[0049] Specifically, write operations include add operations and modify / replace operations, and write operations are triggered when a user writes content into a file.

[0050] In some embodiments, the current configuration information entered is displayed on the configuration page of the protected device.

[0051] It is understandable that the current configuration includes policy configuration, and may also include WIFI configuration.

[0052] In this embodiment, in response to a write operation, the current configuration content is displayed on the configuration page of the protected device. This supports user-defined configuration files, improves the flexibility and usability of the configuration files, enhances the user experience, makes the configuration process more intuitive and user-friendly, and reduces the occurrence of configuration errors.

[0053] In step S105, in response to the save operation, the current configuration content is saved to the shared configuration file, and the shared configuration file is applied through the distributed execution unit.

[0054] Specifically, the shared configuration file includes the current configuration content, which includes the strategy configuration. The save operation is triggered when the user clicks, double-clicks, or selects the save control.

[0055] In some embodiments, the initial configuration of the distributed execution unit is set to full blocking; the policy configuration in the shared configuration file is obtained; and the policy configuration is applied by the distributed execution unit based on the initial configuration.

[0056] Optionally, the network port connection status of the WAN interface of the distributed execution unit can be obtained; if the network port connection status is connected, wired network connection is performed through the WAN interface; if the current configuration includes WIFI configuration, wireless network connection is performed through the distributed execution unit applying the WIFI configuration; otherwise, it is determined that the distributed execution unit has failed to connect to the network.

[0057] Furthermore, the indicator lights of the distributed execution unit are used to determine whether the shared configuration file has been configured successfully; if the indicator light flashes, the shared configuration file is considered to have been configured successfully, otherwise the shared configuration file is considered to have failed to be configured.

[0058] It should be noted that when the target execution unit accesses the network, the MAC address characteristics of the simulated source node can be configured to bypass network access control, ensuring that the execution unit node can still access and communicate normally in a network access restricted environment.

[0059] In this embodiment, in response to the save operation, the current configuration content is saved to the shared configuration file. The shared configuration file is applied by the distributed execution unit, realizing automated device configuration of the distributed execution unit. This not only eliminates the need for server management, making it convenient for personal use, but also reduces manual intervention, lowers the error rate, and improves the system's scalability, flexibility, and maintainability.

[0060] Steps S101 to S105 as illustrated in this embodiment enable network sharing between the distributed execution unit and the protected device. The distributed execution unit and the protected device connect via an interface, enabling flexible data sharing. The protected device connects to the IP address of the distributed execution unit using its network interface card. The protected device obtains the shared configuration file directory of the distributed execution unit and displays the shared configuration file on its configuration page. The shared configuration file directory includes the shared configuration file. In response to a write operation, the current configuration content is displayed on the protected device's configuration page. User-defined configuration files are supported, improving the flexibility and usability of the configuration file, enhancing the user experience, making the configuration process more intuitive and user-friendly, and reducing configuration errors. In response to a save operation, the current configuration content is saved to the shared configuration file. The distributed execution unit applies the shared configuration file, achieving automated device configuration of the distributed execution unit. This eliminates the need for server management, facilitating personal use, reducing manual intervention, lowering the error rate, and improving the system's scalability, flexibility, and maintainability.

[0061] Please see Figure 2 In some embodiments, the device configuration method provided in this application further includes a USB ferry step, which may include, but is not limited to, steps S201 to S204: Step S201: Transfer the shared configuration file to the distributed execution unit via USB storage medium.

[0062] Specifically, the shared configuration file includes a digital certificate signature.

[0063] In step S201 of some embodiments, a USB medium is used for assisted configuration, and a shared configuration file is transferred to the distributed execution unit via the USB storage medium.

[0064] Step S202: Verify the validity of the digital certificate signature through a distributed execution unit.

[0065] In step S202 of some embodiments, the digital signature and certificate in the file are extracted, the validity of the signature certificate is verified using a trusted root certificate, the signature is decrypted using the public key in the certificate and a hash value is obtained, the hash value of the file is calculated and compared with the decrypted hash value, and if the two match, the file has not been tampered with and the signature is valid.

[0066] Step S203: If the digital certificate signature is valid, the shared configuration file is saved through the distributed execution unit.

[0067] In step S203 of some embodiments, if the digital certificate signature is valid, then the shared configuration file is determined to be valid.

[0068] In step S204, if the digital certificate signature is invalid, the import of the shared configuration file is rejected through the distributed execution unit.

[0069] In step S204 of some embodiments, if the digital certificate signature is invalid, there is a problem with the shared configuration file, and the distributed execution unit refuses to import the shared configuration file.

[0070] Please see Figure 3 In some embodiments, step S105 may include, but is not limited to, steps S301 to S303: Step S301: Set the initial configuration of the distributed execution unit to full blocking.

[0071] In step S301 of some embodiments, the initial configuration (i.e., default configuration) of the distributed execution unit is set to full blocking when the policy configuration begins.

[0072] Step S302: Obtain the policy configuration from the shared configuration file.

[0073] In step S302 of some embodiments, the policy configuration in the shared configuration file is read.

[0074] Optionally, policy configuration includes access control policies, network traffic management rules, device permission settings, etc. The policy configuration content in the shared configuration file defines the allowed communication modes, access permissions, and related security policies in the system.

[0075] Step S303: Apply the policy configuration based on the initial configuration through the distributed execution unit.

[0076] In step S303 of some embodiments, the policy configuration of the shared configuration file is obtained and read, the distributed execution unit parses the policy configuration, and applies the policy configuration to the operation of the system.

[0077] Furthermore, since the initial configuration is a fully blocked distributed execution unit, the corresponding restrictions are lifted after the application policy is configured, allowing legitimate traffic or services.

[0078] Please see Figure 4 In some embodiments, the device configuration method provided in this application further includes a distributed execution unit networking step, which may include, but is not limited to, steps S401 to S403: Step S401: Obtain the network port connection status of the WAN interface of the distributed execution unit.

[0079] In step S401 of some embodiments, the physical connection of the network port is checked or the signal status of the network port is checked to determine the network port connection status.

[0080] Step S402: If the network port connection status is connected, then wired network connection is established through the WAN interface.

[0081] In step S402 of some embodiments, when the WAN interface is connected, the device connects to the network via the WAN interface.

[0082] Step S403: If the current configuration includes WIFI configuration, then the distributed execution unit applies the WIFI configuration to connect to the network wirelessly; otherwise, it is determined that the distributed execution unit has failed to connect to the network.

[0083] In step S403 of some embodiments, if the network port connection status is not connected, it is determined whether the current configuration content includes WIFI configuration.

[0084] Understandably, if the current configuration includes a Wi-Fi configuration, the distributed execution unit will apply the Wi-Fi configuration to connect to the network wirelessly and obtain the connection result.

[0085] Furthermore, if the current configuration does not include a Wi-Fi configuration, the distributed execution unit will fail to connect to the network.

[0086] Figure 5 This is a flowchart illustrating a specific implementation of the device configuration method provided in this application when applied to a personal distributed execution unit and a protected device. Figure 5 The methods may include, but are not limited to, the following steps: Step 1: Power on the distributed execution unit.

[0087] It should be noted that if the protected device is connected to a LAN port, the TYPE-C port needs to be connected to the power adapter. If the protected device is connected to a TYPE-C port, it can be powered and connected to the network.

[0088] For example, a schematic diagram of the personal version of the distributed execution unit and the protected device is shown below. Figure 6 As shown. Among them, component 601 is the personal version of the distributed execution unit, and component 602 is the protected device.

[0089] Step 2: Connect the protected device to the distributed execution unit (TYPE-C or LAN) interface (at this time, the network connection of the protected device will show an additional network card).

[0090] If the external environment is not wireless, the WAN interface of the distributed execution unit also needs to be connected to the field network.

[0091] Step 3: Press the physical button on the distributed execution unit.

[0092] It should be noted that from this step onwards, the default policy is already a forced full block, and this will remain the case even if any other operations are performed subsequently. If you need to modify it, you must manually add a full allow policy.

[0093] At this point, both the WAN and WIFI interfaces on the distributed execution unit are turned off.

[0094] At this point, the distributed execution unit enables network sharing, sharing its configuration file directory.

[0095] At this point, all strategies are paused.

[0096] At this time, both the TYPE-C interface (to Ethernet port) and the LAN interface are in a connectable state.

[0097] Step 4: Enable network sharing on your personal computer and connect it to either the LAN or TYPE-C interface of the execution unit.

[0098] Step 5: Obtain the newly added network card and modify its IP address to an IP address other than 192.168.X.0 / 24.

[0099] Step 6: Connect to the default IP address of the distributed execution unit, \\192.168.X.1\public, to obtain the shared configuration file directory. You will need to enter your username and password.

[0100] It is understandable that the X in 192.168.X.0 / 24 and 192.168.X.1 is a placeholder and can be replaced with a number.

[0101] For example, a schematic diagram of the protected device connected to the distributed execution unit is shown below. Figure 7 As shown in the diagram, the shared configuration file of the distributed execution unit is illustrated below. Figure 8 As shown.

[0102] Step 7: Modify the shared configuration file config.txt.

[0103] Step 8: Save the configuration file config.txt.

[0104] Step 9: Press and hold the physical button on the distributed execution unit for 2 seconds. Release the button after hearing the prompt tone. The content has been saved.

[0105] Step 10: Observe the indicator light.

[0106] It should be noted that if the indicator light flashes, it means the configuration was successful and is taking effect. At this point, the external network port is activated (if using the WIFI interface, activate the WIFI interface; if using a wired connection, activate the WAN interface). At this time, both the LAN and TYPE-C interfaces of the internal network are started as needed; At this point, all strategies are activated.

[0107] If the indicator light does not flash, it means the configuration has failed. View the error.txt file in the shared directory; Modify the configuration file and save it. Repeat step 9.

[0108] Note: Once the configuration file is shared, the distributed execution unit will block all access by default, and will only allow access if a whitelist is configured.

[0109] Specifically, the configuration method is as follows: After the configuration is complete and saved, press and hold the button on the device for 2 seconds. Release the button after hearing a prompt sound.

[0110] A flashing indicator light means the configuration is successful and in effect; otherwise, check the error.txt file to correct the configuration file content (the protected device obtains the shared error.txt file content via network sharing to correct the configuration file content).

[0111] After configuring the policy, the box will block all access by default, and will only allow access to devices that have been configured in the whitelist.

[0112] The file size is limited to 32k or less; otherwise, the configuration file will not take effect and will be discarded.

[0113] Optionally, a MAC address pass-through (transparent transmission) mechanism can be used: when the target execution unit accesses the network, the MAC address characteristics of the simulated source node can be configured to bypass network access control, ensuring that the execution unit node can still access and communicate normally in a network access restriction environment.

[0114] In some embodiments, when using a USB medium for assisted configuration, the configuration file stored in the medium may contain a digital certificate signature. The target execution unit verifies the validity of the certificate before importing it to prevent the configuration file from being illegally tampered with or forged.

[0115] Please see Figure 9 This application also provides a device configuration apparatus that can implement the above-described method. The apparatus includes: The shared module 901 is used to enable the network sharing function between the distributed execution unit and the protected device. The distributed execution unit and the protected device are connected through an interface. Address connection module 902 is used to connect to the IP address of the distributed execution unit through the network card of the protected device's application distributed execution unit; The file acquisition module 903 is used to acquire the shared configuration file directory of the distributed execution unit through the protected device, and display the shared configuration file on the configuration page of the protected device. The shared configuration file directory includes the shared configuration file. The write module 904 is used to display the current configuration content on the configuration page of the protected device in response to a write operation; The save module 905 is used to save the current configuration content to the shared configuration file in response to the save operation, and apply the shared configuration file through the distributed execution unit.

[0116] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0117] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0118] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0119] Please see Figure 10 , Figure 10 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes: The processor 1001 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 1002 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 1002 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1002 and is called and executed by the processor 1001 using the methods described in the embodiments of this application. Input / output interface 1003 is used to implement information input and output; The communication interface 1004 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 1005 transmits information between various components of the device (e.g., processor 1001, memory 1002, input / output interface 1003, and communication interface 1004); The processor 1001, memory 1002, input / output interface 1003 and communication interface 1004 are connected to each other within the device via bus 1005.

[0120] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0121] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0122] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0123] It is understood that the content of the above method embodiments is applicable to the embodiments of this program product. The specific functions implemented by the embodiments of this program product are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0124] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0125] The device configuration method, apparatus, electronic device, storage medium, and program product provided in this application embodiment enable network sharing between the distributed execution unit and the protected device. The distributed execution unit and the protected device connect via an interface, enabling flexible data sharing. The protected device connects to the IP address of the distributed execution unit using its network interface card. The protected device obtains the shared configuration file directory of the distributed execution unit and displays the shared configuration file on its configuration page. The shared configuration file directory includes the shared configuration file. In response to a write operation, the current configuration content is displayed on the protected device's configuration page. User-defined configuration files are supported, improving the flexibility and usability of the configuration file, enhancing the user experience, making the configuration process more intuitive and user-friendly, and reducing configuration errors. In response to a save operation, the current configuration content is saved to the shared configuration file. The distributed execution unit applies the shared configuration file, achieving automated device configuration of the distributed execution unit. This eliminates the need for server management, facilitating personal use, reducing manual intervention, lowering the error rate, and improving the system's scalability, flexibility, and maintainability.

[0126] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0127] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0128] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0129] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or appropriate combinations thereof.

[0130] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0131] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0132] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0133] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0134] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0135] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0136] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A method for configuring a device, characterized in that, The method includes the following steps: Enable network sharing between the distributed execution unit and the protected device, wherein the distributed execution unit and the protected device are connected through an interface; The protected device connects to the IP address of the distributed execution unit via the network interface card of the distributed execution unit. The shared configuration file directory of the distributed execution unit is obtained through the protected device, and the shared configuration file is displayed on the configuration page of the protected device. The shared configuration file directory includes the shared configuration file. In response to a write operation, the current configuration content is displayed on the configuration page of the protected device; In response to the save operation, the current configuration content is saved to the shared configuration file, and the shared configuration file is applied through the distributed execution unit.

2. The method according to claim 1, characterized in that, The method further includes: The indicator lights of the distributed execution unit are used to determine whether the shared configuration file has been configured successfully. If the indicator light flashes, the shared configuration file is considered to have been configured successfully; otherwise, the shared configuration file is considered to have been configured unsuccessfully.

3. The method according to claim 1, characterized in that, The method further includes: The protected device is connected to the TYPE-C interface or LAN interface of the distributed execution unit. If the connection is successful and the network sharing function between the distributed execution unit and the protected device is enabled, the network card of the distributed execution unit will be displayed on the network management page of the protected device.

4. The method according to claim 1, characterized in that, The method further includes: Obtain the network port connection status of the WAN interface of the distributed execution unit; If the network port connection status is connected, then wired network connection is performed through the WAN interface; If the current configuration includes a Wi-Fi configuration, then the distributed execution unit applies the Wi-Fi configuration to connect to the network wirelessly; otherwise, it is determined that the distributed execution unit has failed to connect to the network.

5. The method according to claim 1, characterized in that, The shared configuration file includes current configuration content, which includes policy configuration. Applying the shared configuration file through the distributed execution unit includes: Set the initial configuration of the distributed execution unit to full blocking; Retrieve the policy configuration from the shared configuration file; The distributed execution unit applies the strategy configuration based on the initial configuration.

6. The method according to claim 1, characterized in that, The method further includes: The shared configuration file, including a digital certificate signature, is transferred to the distributed execution unit via the USB storage medium. The validity of the digital certificate signature is verified by the distributed execution unit; If the digital certificate signature is valid, the shared configuration file is saved through the distributed execution unit; If the digital certificate signature is invalid, the shared configuration file will be rejected by the distributed execution unit.

7. A device configuration apparatus, characterized in that, The device includes: A sharing module is used to enable network sharing between the distributed execution unit and the protected device, wherein the distributed execution unit and the protected device are connected through an interface. The address connection module is used to connect the network card of the distributed execution unit to the IP address of the distributed execution unit through the network card of the protected device; The file acquisition module is used to acquire the shared configuration file directory of the distributed execution unit through the protected device, and display the shared configuration file on the configuration page of the protected device. The shared configuration file directory includes the shared configuration file. The write module is used to display the current configuration content on the configuration page of the protected device in response to a write operation; A save module is used to save the current configuration content to the shared configuration file in response to a save operation, and apply the shared configuration file through the distributed execution unit.

8. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 6.