A device configuration method, device, system, and storage medium
By using network gateways to synchronize configuration data across different security levels in the power industry, the problems of repetitive manual work and errors have been solved, achieving efficient and accurate equipment configuration.
Patent Information
- Application Number
- CN202310353807.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2043-03-31
AI Technical Summary
In the power industry, configuring equipment in networks with different security levels involves a large amount of repetitive manual work, which is time-consuming, labor-intensive, and prone to human error.
By deploying network gateways as intermediaries between different networks, configuration data can be synchronized using these gateways, enabling automated device configuration and avoiding repetitive manual operations.
It enables efficient and accurate device configuration across different networks, avoiding human error and improving configuration efficiency.
Smart Images

Figure CN116389243B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a device configuration method, device, system and storage medium. Background Technology
[0002] In the power industry, multiple networks with different security levels are typically deployed for data security, such as power zone 2 and power zone 3.
[0003] In both Power Zone 2 and Power Zone 3, there are working nodes for data fusion. To ensure the normal operation of these working nodes, they need to be configured manually. Many of these working nodes have similar configurations, which leads to a lot of repetitive manual work, which is time-consuming, labor-intensive, and prone to human error. Summary of the Invention
[0004] This application provides a device configuration method, device, system, and storage medium for more efficient device configuration in different networks.
[0005] This application provides a device configuration method applicable to a first device in a device configuration system. The device configuration system further includes a second device and a network gateway. The first device and the second device are located in different networks. The network gateway is located between the two networks and is used for physical isolation between the two networks. The method includes:
[0006] In response to the configuration synchronization command, obtain the configuration data to be synchronized;
[0007] A configuration synchronization request for the configuration data is initiated to the network gateway. The configuration synchronization request includes the configuration data and address information pointing to the second device, so as to trigger the network gateway to forward the configuration data to the second device, so that the second device can perform device configuration according to the configuration data.
[0008] This application embodiment also provides a device configuration method applicable to a second device in a device configuration system. The device configuration system further includes a first device and a network gateway. The first device and the second device are located in different networks. The network gateway is located between the two networks and is used for physical isolation between the two networks. The method includes:
[0009] The device receives configuration data sent by the gateway, the configuration data being provided by the first device and forwarded by the gateway to the second device;
[0010] Configure the device based on the configuration data.
[0011] This application embodiment also provides a device configuration system, including a first device, a second device, and a network gateway, wherein the first device and the second device are located in different networks, and the network gateway is located between the two networks and is used to physically isolate the two networks;
[0012] The first device is configured to, in response to a configuration synchronization command, acquire configuration data to be synchronized; and initiate a configuration synchronization request for the configuration data to the network gateway, wherein the configuration synchronization request includes the configuration data and address information pointing to the second device;
[0013] The network gateway is used to forward the configuration data to be synchronized to the second device according to the address information;
[0014] The second device is used to configure the device according to the configuration data.
[0015] This application also provides a computing device, including a memory, a processor, and a communication component;
[0016] The memory is used to store one or more computer instructions;
[0017] The processor is coupled to the memory and the communication component and is used to execute one or more computer instructions for performing the aforementioned device configuration method.
[0018] This application also provides a computer-readable storage medium for storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the aforementioned device configuration method.
[0019] In this embodiment, a device configuration system is provided, including a first device, a second device, and a network gateway. The first device and the second device are located in different networks, and the network gateway is located between the two networks and is used to physically isolate the two networks. Based on this system architecture, the first device can respond to a configuration synchronization command, obtain configuration data to be synchronized, and initiate a configuration synchronization request for the configuration data to the network gateway. The configuration synchronization request may include the configuration data and address information pointing to the second device. The network gateway can forward the configuration data to the second device so that the second device can perform device configuration based on the configuration data. In this way, for each device in the networks on both sides of the network gateway, manual repetitive configuration is no longer required. Instead, configuration synchronization can be achieved between the two networks through forwarding by the network gateway using the aforementioned configuration synchronization scheme, which can more efficiently complete device configuration in the networks on both sides of the network gateway. Attached Figure Description
[0020] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0021] Figure 1 A schematic diagram of the structure of a device configuration system provided in an exemplary embodiment of this application;
[0022] Figure 2 A schematic diagram of a human-computer interaction interface provided for an exemplary embodiment of this application;
[0023] Figure 3 A schematic diagram of another device configuration system provided as an exemplary embodiment of this application;
[0024] Figure 4 A schematic diagram of the internal structure of a network gateway provided as an exemplary embodiment of this application;
[0025] Figure 5 A schematic diagram of verification reference information is provided for an exemplary embodiment of this application;
[0026] Figure 6 A schematic diagram illustrating an application scenario provided for an exemplary embodiment of this application;
[0027] Figure 7 A flowchart illustrating a device configuration method provided for another exemplary embodiment of this application;
[0028] Figure 8 A flowchart illustrating another device configuration method provided for another exemplary embodiment of this application;
[0029] Figure 9 This is a schematic diagram of the structure of a computing device provided as another exemplary embodiment of this application. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0031] Currently, device configuration in different networks requires manual intervention, leading to repetitive and time-consuming tasks, and increasing the risk of human error. To address this, some embodiments of this application provide a device configuration system including a first device, a second device, and a network gateway. The first and second devices are located in different networks, and the network gateway is located between the two networks and provides physical isolation. Based on this system architecture, the first device can respond to a configuration synchronization command, obtain configuration data to be synchronized, and initiate a configuration synchronization request for the configuration data to the network gateway. The configuration synchronization request may include the configuration data and address information pointing to the second device. The network gateway can then forward the configuration data to the second device for configuration. This eliminates the need for repetitive manual configuration for devices in the networks on either side of the network gateway. Instead, configuration synchronization can be achieved between the two networks through forwarding via the network gateway, resulting in more efficient device configuration in the networks on either side of the network gateway.
[0032] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.
[0033] Figure 1 This is a schematic diagram of the structure of a device configuration system provided for an exemplary embodiment of this application. For example... Figure 1 As shown, the system includes a first device, a second device, and a network gateway. The first device and the second device are located in different networks, and the network gateway is located between the two networks and is used to physically isolate the two networks.
[0034] The device configuration system provided in this embodiment can be applied to various scenarios where device configuration is required in different networks, such as information security scenarios in industries such as power, energy, or steel. This embodiment does not limit the application scenarios.
[0035] In this embodiment, the first device and the second device are located in different networks. Here, a network can be understood as a computer communication network, which can be defined as: a computer system that connects multiple computers and their external devices with independent functions through communication lines, and achieves resource sharing and information transmission under the management and coordination of a network operating system, network management software, and network communication protocols. The difference between the networks where the first device and the second device are located in this embodiment can be reflected in network type, for example, the two networks are a local area network (LAN) and the Internet, respectively; it can also be reflected in security level, for example, the two networks have different security levels; it can also be reflected in security domain, for example, the two networks have different security domains, and this embodiment is not limited to these.
[0036] In addition, it should be understood that the first device and the second device can be independent physical devices, or logical nodes deployed based on cloud-native technology. This embodiment does not limit the product form of the first device and the second device.
[0037] For devices in a network, proper service can only be provided after necessary device configuration is completed. This configuration is typically performed manually, which is time-consuming, labor-intensive, and prone to human error. Therefore, this embodiment proposes a technical concept to improve device configuration efficiency across different networks through data synchronization.
[0038] This embodiment proposes deploying network gateways between different networks and using the network gateways as intermediaries to synchronize configuration data between different networks, thereby achieving automated device configuration and avoiding repetitive manual work.
[0039] A network gateway, also known as an isolation gateway, is an information security device that uses a solid-state switch read / write medium with multiple control functions to connect two independent host systems. In this embodiment, the network gateway can be used to isolate the network where the first device is located and the network where the second device is located. This eliminates the physical connection, logical connection, and information transmission protocol between the two networks, and prevents protocol-based information exchange. Instead, it allows for protocol-free data transfer in the form of data files. This effectively avoids the risks of network intrusion, attacks, or damage during device configuration.
[0040] Preferably, the network gateway in this embodiment can be a one-way network gateway. A one-way network gateway allows unidirectional data transmission between two networks but does not allow bidirectional data transmission. One-way network gateways are particularly suitable for scenarios where device configuration occurs between networks with different security levels. This prevents configuration data originating in a lower-security network from being transmitted to a higher-security network, thereby preventing reverse control issues on devices in the higher-security network. For example, in the power industry, the first device in this embodiment can be located in power zone two, and the second device can be located in power zone three. The network gateway allows data transmission from power zone two to power zone three but does not allow data transmission from power zone three to power zone two. This allows the physical isolation attribute of the one-way network gateway to block various potential attacks on power zone two.
[0041] Of course, a bidirectional gateway can also be used in this embodiment. In this embodiment, an appropriate type of gateway can be selected according to the needs of the scenario, and this embodiment does not limit the type of gateway.
[0042] Based on the architecture of the device configuration system provided in this embodiment, refer to Figure 1For the first device, it can respond to the configuration synchronization command and obtain the configuration data to be synchronized. The first device can be any device that requires configuration synchronization, while the second device can be any device located in a different network than the first device and that needs to synchronize its configuration with the first device.
[0043] In one alternative implementation: a human-computer interaction interface can be displayed; in response to user input operations performed in the human-computer interaction interface, a configuration synchronization command can be generated. Figure 2 A schematic diagram of a human-computer interaction interface provided for an exemplary embodiment of this application, with reference to... Figure 2 The human-computer interaction interface can display operation controls to support user input operations, such as point-and-click controls corresponding to configuration dimensions, point-and-click controls corresponding to configuration data under a single configuration dimension, and trigger controls for generating configuration synchronization commands (e.g., ...). Figure 2 Examples of elements displayed in the human-computer interaction interface include, but are not limited to, the submit button. Furthermore, user input operations within the human-computer interaction interface can include, but are not limited to, selecting configuration dimensions, selecting configuration data within a single configuration dimension, and clicking trigger controls used to generate configuration synchronization commands.
[0044] Based on this, the configuration synchronization command may include user-specified configuration dimensions and / or identifiers of configuration data selected under a specified configuration dimension. Configuration dimensions may include, but are not limited to, point table dimensions, driver dimensions, rule dimensions, or configuration dimensions. Since the methods for dividing configuration dimensions may differ in different application scenarios, the configuration dimensions described here are merely illustrative and this embodiment is not limited to them. A single configuration dimension may contain multiple pieces of configuration data. In this implementation, users can also select configuration data under a single configuration dimension. Again, since the methods for identifying configuration data under a single configuration dimension may differ in different application scenarios, specific identifiers for configuration data will not be given here.
[0045] Figure 3 A schematic diagram of another device configuration system provided as an exemplary embodiment of this application is shown below. Figure 3 The first device may include a human-machine interface module, which runs the processing logic in the optional implementation mentioned above to generate configuration synchronization instructions. It is understood that by providing a human-machine interface, users can flexibly select the configuration dimensions to be synchronized and the configuration data under a single configuration dimension, allowing users to control device configuration schemes in different networks as needed and flexibly.
[0046] Of course, the above-described implementation method for generating configuration synchronization instructions is optional. In this embodiment, other implementation methods can also be used to generate configuration synchronization instructions, such as using a timer trigger to automatically trigger the generation of configuration synchronization instructions, etc. This embodiment is not limited to this. The identifiers of configuration dimensions or configuration data under a single configuration dimension included in the configuration synchronization instructions can also be specified in other ways, or left unspecified and selected by default, etc. This embodiment is not limited to this either.
[0047] Continue to refer to Figure 3 The first device may also include a configuration synchronization module. The aforementioned human-machine interaction module can transmit the generated configuration synchronization command to the configuration synchronization module, thereby triggering the configuration synchronization module to respond to the configuration synchronization command and obtain the configuration data to be synchronized. Based on this, the configuration synchronization module in the first device can obtain the configuration data to be synchronized according to the user-specified configuration dimension and / or the identifier of the selected configuration data under the specified configuration dimension contained in the configuration synchronization command.
[0048] In one exemplary implementation, configuration data related to the first device can be stored in the form of a configuration table. The configuration table can be stored in a database, and this embodiment does not limit the database implementation; various feasible databases can be used to store the configuration table in this embodiment. Different configuration tables can be used to store configuration data under different configuration dimensions, and the data structures of different configuration tables may not be completely identical. Based on this, in this exemplary implementation: in response to a configuration synchronization command, based on the correspondence between configuration dimensions and extraction logic, extraction logic adapted to the specified configuration dimension can be found; according to the extraction logic, configuration data to be synchronized under the specified configuration dimension is extracted from the configuration table corresponding to the first device and used as configuration data.
[0049] It is understandable that in this exemplary implementation, different extraction logic can be pre-defined for different configuration dimensions to adapt to the data structure of the configuration table corresponding to the configuration dimension. In practical applications, a model library can be provided, which can contain multiple extraction models. The model library can be configured with dimensions as indexes to provide suitable extraction models for different configuration dimensions. The extraction models contain extraction logic, so that the extraction logic that matches the specified configuration dimension can be found in the model library.
[0050] In addition, in this embodiment, the configuration data to be synchronized for the first device can be input by the user through the aforementioned human-computer interaction interface. The first device can store the configuration data input by the user in its corresponding configuration table. Of course, the configuration data to be synchronized in this instance can also be synchronized from other devices by the first device. For example, the third device can synchronize its configuration data to the first device in this embodiment according to the device configuration scheme provided in this embodiment, and the first device can store the configuration data synchronized from the third device in the configuration table corresponding to the first device as the configuration data to be synchronized in this device configuration operation. This embodiment does not limit the source of the configuration data to be synchronized in the first device.
[0051] As mentioned earlier, different configuration tables can be used to store configuration data under different configuration dimensions. Thus, in this exemplary implementation, the configuration data specified in the configuration synchronization instruction can be extracted from the corresponding configuration table according to the extraction logic, and used as the configuration data. It should be understood that the configuration synchronization instruction may contain multiple specified configuration dimensions. In this case, the configuration data can be searched in the configuration table corresponding to each specified configuration dimension according to the extraction logic for that dimension, thereby extracting the configuration data to be synchronized for each of the multiple specified configuration dimensions contained in the configuration synchronization instruction. Optionally, during the configuration data extraction process, extraction can be performed according to the identifier of the configuration data specified in the configuration synchronization instruction; of course, a full extraction can also be performed from the configuration table, and then filtered according to the identifier of the configuration data specified in the configuration synchronization instruction after extraction. This is not limited here. In this way, through the above configuration data extraction process, the configuration data to be synchronized can be obtained.
[0052] Subsequently, the first device can initiate a configuration synchronization request for the configuration data to the network gateway. This request includes the configuration data and address information pointing to the second device. In practical applications, this operation can be performed by the configuration synchronization module within the first device. In this embodiment, the way the address information in the configuration synchronization request points to the second device is not limited; it is sufficient that the network gateway can understand the address information and accurately forward the configuration data to the second device based on that address information.
[0053] In one optional implementation, the first device can respond to an address configuration operation performed by the user in the human-machine interface, obtain the proxy address defined by the gateway for the second device and use it as address information pointing to the second device; then, it configures this proxy address into the configuration synchronization request. That is, the configuration synchronization request carries the proxy address corresponding to the second device. Based on this, the gateway can pre-configure a mapping relationship between the proxy address and the actual address, and can map the proxy address carried in the configuration synchronization request to the actual address of the second device based on this mapping relationship. Therefore, in this optional implementation, the gateway can understand the address information and accurately forward the configuration data to the second device based on this address information.
[0054] In another optional implementation, the first device can use its own address information as the address information pointing to the second device, and configure its own address information in the configuration synchronization request. The network gateway can pre-configure the pairing relationship between the address information of the first device and the address information of the second device. Based on this pairing relationship, the network gateway can, by default, forward the configuration data contained in the configuration synchronization request of the first device to the second device with which it has a pairing relationship. In practical applications, the first device can have pairing relationships with multiple other devices, and these other devices can all serve as the second device in this embodiment. Therefore, in this optional implementation, the network gateway can understand the address information and accurately forward the configuration data to the second device based on this address information.
[0055] The two implementation schemes described above are merely exemplary. In this embodiment, other implementation methods can also be used to implement the function of the address information in the configuration synchronization request pointing to the second device, and are not limited to these.
[0056] In addition to the address information pointing to the second device, the first device can also configure the configuration data to be synchronized into the configuration synchronization request. In one optional implementation: the extracted configuration data and the corresponding configuration dimensions can be encapsulated to generate an encapsulated message; the encapsulated message is then configured into the configuration synchronization request; wherein, the configuration dimensions in the encapsulated message are used to guide the second device to call the adapted update logic to update the corresponding configuration data to the configuration table of the second device.
[0057] Furthermore, in this embodiment, for the network gateway, if concurrent configuration synchronization requests are received, the configuration data contained in the multiple received configuration synchronization requests are forwarded in parallel. This parallel configuration synchronization mechanism can effectively improve device configuration efficiency, especially when a second device needs to synchronize configuration data from multiple first devices.
[0058] Continue to refer to Figure 1For a network gateway, upon receiving a configuration synchronization request from a first device, it can forward the configuration data to be synchronized to a second device. A typical forwarding method is data ferrying, where the gateway temporarily stores the configuration data sent by the first device in a data buffer, then disconnects the data transmission channel with the first device and establishes a data transmission channel with the second device, thereby transmitting the configuration data from the data buffer to the second device. Of course, this embodiment is not limited to this; other forwarding methods that may emerge in the future and support the physical isolation of data between two networks by the gateway are also applicable to this embodiment. That is, in this embodiment, during the forwarding of configuration data, the gateway must avoid physical connections between the first and second devices to ensure the information security of their respective networks.
[0059] Figure 4 This is a schematic diagram of the internal structure of a network gateway provided for an exemplary embodiment of this application. (Reference) Figure 4 In this embodiment, the network gateway may contain a first proxy server corresponding to the network where the first device is located, and a second proxy server corresponding to the network where the second device is located. The first device communicates with the first proxy server within the network gateway, while the second device communicates with the second proxy server within the network gateway. The network gateway may also contain an isolation card, which is a solid-state switch with multiple control functions. Thus, physical isolation between the two networks can be achieved through the cooperation of the first proxy server, the second proxy server, and the isolation card within the network gateway. Of course, the network gateway may also contain other components, such as a data buffer area to support data forwarding, which will not be described in detail here.
[0060] It is worth noting that the first and second proxy servers inside the network gateway usually need to be configured before they can work correctly. This embodiment does not solve the device configuration problem between the first and second proxy servers inside the network gateway, but rather the device configuration problem in different networks outside the network gateway.
[0061] Continue to refer to Figure 1 For the second device, after receiving the configuration data sent by the network gateway, it can configure the device according to the configuration data. Since the configuration data in the second device is synchronized from the first device, the accuracy of the configuration of the second device can be guaranteed, and the problem of human error as in manual configuration will not occur.
[0062] Following the previous concept of using a configuration table to store configuration data, for the second device, the received configuration data can be updated in its corresponding configuration table to make the configuration data effective. Effective configuration data means that the second device can read the configuration data from its corresponding configuration table and operate according to the configuration data. In other words, once the configuration data is stored in the configuration table, the device configuration of the second device is complete.
[0063] To update configuration data in the configuration table of the second device, one exemplary implementation involves: the second device receiving an encapsulated file sent by the gateway, the encapsulated file being generated by the first device and containing configuration data and corresponding configuration dimensions; decapsulating the configuration data and corresponding configuration dimensions from the encapsulated file; and, for any decapsulated target configuration data, invoking update logic adapted to the configuration dimension corresponding to the target configuration data based on the adaptation relationship between the configuration dimension and the update logic, thereby updating the target configuration data in the configuration table of the second device. Different update logics can be adapted to the data structure of the configuration table under their corresponding configuration dimensions.
[0064] In this way, after the configuration data synchronized from the first device is stored in the corresponding configuration table of the second device, the relevant configuration data will take effect.
[0065] Of course, besides the technical concept of storing configuration data in a configuration table to make the configuration data effective as proposed in this embodiment, other implementation methods can also be used to make the configuration data effective. The second device can, after receiving the configuration data, store the configuration data according to the storage location and method of the configuration data in the traditional manual configuration scheme to make the configuration data effective; further examples will not be provided here.
[0066] In summary, this embodiment provides a device configuration system including a first device, a second device, and a network gateway. The first device and the second device are located in different networks, and the network gateway is located between the two networks and is used to physically isolate the two networks. Based on this system architecture, the first device can respond to a configuration synchronization command, obtain configuration data to be synchronized, and initiate a configuration synchronization request for the configuration data to the network gateway. The configuration synchronization request may include the configuration data and address information pointing to the second device. The network gateway can forward the configuration data to the second device so that the second device can perform device configuration based on the configuration data. In this way, for each device in the networks on both sides of the network gateway, manual repetitive configuration is no longer required. Instead, configuration synchronization can be achieved between the two networks through forwarding by the network gateway using the aforementioned configuration synchronization scheme, which can more efficiently complete device configuration in the networks on both sides of the network gateway.
[0067] In the above or following embodiments, the first device and the second device can also synchronize device data with the support of a network gateway. (See reference...) Figure 3 The first device may also include a device data synchronization module, and the device data synchronization module is independent of the configuration synchronization module mentioned in the foregoing embodiments.
[0068] Based on this, in this embodiment, the first device can utilize a configuration synchronization module to respond to configuration synchronization commands and execute the functional logic related to device configuration in the aforementioned embodiments; it can also utilize a device data synchronization module to send device data to be synchronized to the second device to the network gateway. For the network gateway, it can utilize a first forwarding channel to forward configuration data to the second device and a second forwarding channel to synchronize device data to the second device. Correspondingly, the second device may also include independent configuration synchronization and device data synchronization modules. The configuration synchronization module in the second device can receive configuration data forwarded from the network gateway and apply the configuration data; while the device data synchronization module in the second device can receive device data forwarded from the network gateway and process the device data.
[0069] Thus, in this embodiment, the synchronization process of configuration data and the synchronization process of device data remain independent of each other throughout the entire link and do not interfere with each other. This can effectively ensure the synchronization efficiency of configuration data, avoid resource contention with the synchronization process of device data, and thus effectively improve the efficiency of device configuration in different networks.
[0070] Of course, in this embodiment, during the forwarding phase of the gateway, the gateway can use the same forwarding channel to forward configuration data and device data. During the forwarding process, configuration data is forwarded first, which can also ensure the configuration efficiency of the second device. This embodiment does not limit this.
[0071] Furthermore, the second device can also be pre-configured with verification reference information for device data. Typically, device data is continuously generated and transmitted as a time-series data stream. This time-series data stream contains data points, each containing timestamp information, data identifier information, and a data value. Based on this, upon receiving device data from the network gateway, the second device can retain only the data points that conform to the verification reference information and discard the data points that do not conform.
[0072] Figure 5 This diagram illustrates a verification reference information according to an exemplary embodiment of this application. (Reference) Figure 5For example, the verification reference information can be a mapping relationship between stations and locations. A station can contain multiple locations, and each data value collected at each location can serve as a data point in a time-series data stream. Each data point can carry both station and location information. Based on this, the second device can receive device data sent by the network gateway, which is a time-series data stream. According to the preset mapping relationship between stations and locations, it determines whether the station and location information carried in each data point of the time-series data stream conforms to the mapping relationship; data points that do not conform to the mapping relationship are discarded. The second device can maintain an information table and record the aforementioned mapping relationship in the table. It should be understood that the update frequency of this mapping relationship is very low; it can be preset during the initialization phase and updated as needed during use.
[0073] The aforementioned timing data stream verification mechanism in the second device can detect data points with data corruption, thereby preventing the use of erroneous data points in subsequent data usage. Furthermore, by reasonably pre-setting the aforementioned verification reference information, it can filter out necessary configuration data from the received configuration data while discarding unnecessary data. For example, Figure 5 In the example, stations and locations can be specified in the verification reference information, allowing the second device to filter out configuration data from non-specified stations and locations, retaining only the required configuration data. This provides a more flexible and reliable basis for device data management in the second device.
[0074] Figure 6 This is a schematic diagram illustrating an application scenario provided for an exemplary embodiment of this application. (Reference) Figure 6 Power Zone 2 and Power Zone 3 each contain multiple data fusion devices, which are isolated from each other by a network gateway. The data fusion devices are used to fuse collected device data to provide users with data query results. In one exemplary application scenario, data fusion device A in Power Zone 2 and data fusion device B in Power Zone 3 perform identical tasks, both requiring data collection and fusion. In this case, staff can configure data fusion device A in Power Zone 2 and efficiently configure data fusion device B based on the device configuration scheme provided in this embodiment.
[0075] Specifically, staff can configure the configuration dimensions to be synchronized and the identifiers of the configuration data to be synchronized under the selected configuration dimensions in the human-machine interface corresponding to data fusion device A. They can also configure the address information pointing to data fusion device B. After completing these operations, a configuration synchronization command can be triggered. The configuration synchronization module in data fusion device A can respond to the configuration synchronization command, extract the configuration data to be synchronized from the configuration table corresponding to data fusion device A, and generate a configuration synchronization request based on the configuration data and the address information pointing to data fusion device B and send it to the network gateway.
[0076] The gateway can respond to a configuration synchronization request by forwarding configuration data to data fusion device B. Data fusion device B can then write the received configuration data into its corresponding configuration table, thereby completing the device configuration.
[0077] As can be seen, throughout the entire process described above, there is no longer a need for manual reconfiguration of the data fusion device B. Instead, the configuration of the data fusion device B can be achieved automatically through data synchronization, which is both efficient and accurate.
[0078] In addition, both data fusion device A and data fusion device B can be equipped with configuration synchronization modules and device data synchronization modules. The network gateway can also be equipped with separate forwarding channels for configuration data and device data. In this way, the synchronization links for device data and configuration data are completely independent of each other, without any interference or mutual influence. This can effectively ensure the efficiency of data fusion and device configuration.
[0079] Figure 7 This is a schematic flowchart illustrating a device configuration method provided as another exemplary embodiment of this application. (See reference...) Figure 7 This method is applicable to a first device in a device configuration system, which also includes a second device and a network gateway. The first device and the second device are located in different networks, and the network gateway is located between the two networks and is used to physically isolate the two networks. The method includes:
[0080] Step 700: In response to the configuration synchronization command, obtain the configuration data to be synchronized;
[0081] Step 701: Initiate a configuration synchronization request for the configuration data to the network gateway. The configuration synchronization request includes the configuration data and address information pointing to the second device, so as to trigger the network gateway to forward the configuration data to the second device, so that the second device can perform device configuration according to the configuration data.
[0082] In an alternative embodiment, the method further includes, prior to responding to a configuration synchronization command:
[0083] Show the human-computer interaction interface;
[0084] In response to an input operation performed by the user in the human-computer interaction interface, a configuration synchronization instruction is generated, the configuration synchronization instruction containing the configuration dimension specified by the user and / or the identifier of the configuration data selected under the specified configuration dimension.
[0085] In one optional embodiment, in response to a configuration synchronization command, obtaining configuration data to be synchronized includes:
[0086] In response to the configuration synchronization command, based on the correspondence between configuration dimensions and extraction logic, the extraction logic that matches the specified configuration dimension is found.
[0087] According to the extraction logic, the configuration data to be synchronized under the specified configuration dimension is extracted from the configuration table corresponding to the first device.
[0088] In an optional embodiment, the method further includes:
[0089] In response to the address configuration operation performed by the user in the human-computer interaction interface, the proxy address input by the user and defined by the gateway for the second device is obtained as the address information pointing to the second device;
[0090] The proxy address is configured in the configuration synchronization request so that the gateway can map the proxy address to the actual address of the second device based on the mapping relationship between the proxy address and the actual address.
[0091] In an optional embodiment, the method further includes:
[0092] The extracted configuration data and the corresponding configuration dimensions are encapsulated to generate an encapsulated message;
[0093] Configure the encapsulated message into the configuration synchronization request;
[0094] The configuration dimension in the encapsulated message is used to guide the second device to call the adapted update logic to update the corresponding configuration data to the configuration table of the second device.
[0095] In an optional embodiment, the first device includes a configuration synchronization module and a device data synchronization module that are independent of each other, and the method specifically includes:
[0096] The configuration synchronization module responds to the configuration synchronization command.
[0097] The device data synchronization module sends the device data that needs to be synchronized to the second device to the network gateway, so that the network gateway can forward the configuration data to the second device using the first forwarding channel; and synchronize the device data to the second device using the second forwarding channel.
[0098] Figure 8 A schematic flowchart illustrating another device configuration method provided for another exemplary embodiment of this application. (See reference...) Figure 8 This device configuration method is applicable to a second device in a device configuration system, which also includes a first device and a network gateway. The first device and the second device are located in different networks, and the network gateway is located between the two networks and is used for physical isolation between the two networks. The method includes:
[0099] Step 800: Receive configuration data sent by the gateway, wherein the configuration data is provided by the first device and forwarded by the gateway to the second device;
[0100] Step 801: Configure the device according to the configuration data.
[0101] In an optional embodiment, configuring the device according to the configuration data includes:
[0102] The configuration data is updated in the configuration table corresponding to the second device to make the configuration data effective.
[0103] In one optional embodiment, receiving configuration data sent by the gateway includes:
[0104] The device receives an encapsulation file sent by the gateway, the encapsulation file being generated by the first device and containing the configuration data and the configuration dimensions corresponding to the configuration data;
[0105] The configuration data and the corresponding configuration dimensions are extracted from the encapsulated file.
[0106] Updating the configuration data to the configuration table corresponding to the second device includes:
[0107] For any target configuration data that has been decapsulated, based on the adaptation relationship between the configuration dimension and the update logic, the update logic that is adapted to the configuration dimension corresponding to the target configuration data is called to update the target configuration data to the configuration table corresponding to the second device.
[0108] In an optional embodiment, the method further includes:
[0109] Receive device data sent by the network gateway, wherein the device data is a time-series data stream;
[0110] Based on the preset mapping relationship between stations and locations, determine whether the station information and location information carried in each data point in the time-series data stream conform to the mapping relationship;
[0111] Data points that do not conform to the mapping relationship are discarded.
[0112] It should be noted that the technical details of the above embodiments of the device configuration method can be referred to the relevant descriptions of the first device and the second device in the foregoing system embodiments. To save space, they will not be repeated here, but this should not cause any loss to the scope of protection of this application.
[0113] Furthermore, in some processes described in the above embodiments and accompanying drawings, multiple operations appear in a specific order. However, it should be clearly understood that these operations may not be executed in the order they appear herein, or they may be executed in parallel. The operation numbers, such as 700 or 701, are merely used to distinguish different operations and do not represent any execution order. Additionally, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should be noted that the descriptions such as "first" and "second" in this document are used to distinguish different devices, networks, etc., and do not represent a sequential order, nor do they limit "first" and "second" to different types.
[0114] Figure 9 This is a schematic diagram of the structure of a computing device provided as another exemplary embodiment of this application. For example... Figure 9 As shown, the computing device includes: a memory 90, a processor 91, and a communication component 92.
[0115] The processor 91, coupled to the memory 90 and the communication component 92, is used to execute a computer program in the memory 90 for performing the device configuration method executed by the first device or the second device in the foregoing method embodiments.
[0116] Furthermore, such as Figure 9 As shown, the computing device also includes other components such as a power supply component 93. Figure 9 The diagram only shows some components and does not mean that the computing device includes only these components. Figure 9 The components shown.
[0117] It is worth noting that the technical details of the above-mentioned embodiments of the computing device can be referred to the relevant descriptions in the foregoing system embodiments. To save space, they will not be repeated here, but this should not cause any loss to the scope of protection of this application.
[0118] Accordingly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed, can perform the steps executed in the above method embodiments.
[0119] The above Figure 9 The memory in a computer is used to store computer programs and can be configured to store various other data to support operation on a computing platform. Examples of this data include instructions for any application or method operating on the computing platform, contact data, phone book data, messages, pictures, videos, etc. The memory can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disks, or optical disks.
[0120] The above Figure 9 The communication component is configured to facilitate wired or wireless communication between the device containing the communication component and other devices. The device containing the communication component can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G / LTE, 5G, or combinations thereof. In one exemplary embodiment, the communication component receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA) technology, Ultra-Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0121] The above Figure 9 The power supply component provides power to the various components of the device in which it resides. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device in which it resides.
[0122] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0123] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0124] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0125] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0126] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0127] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0128] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A device configuration method, applicable to a first device in a device configuration system, the device configuration system further comprising a second device and a network gateway, the first device and the second device being located in different networks, the network gateway being located between the two networks and used for physical isolation of the two networks, the method comprising: In response to the configuration synchronization command, based on the correspondence between configuration dimensions and extraction logic, find the extraction logic that matches the configuration dimension specified by the user; According to the extraction logic, the configuration data to be synchronized under the specified configuration dimension is extracted from the configuration table corresponding to the first device; A configuration synchronization request for the configuration data is initiated to the network gateway. The configuration synchronization request includes the configuration data and address information pointing to the second device, so as to trigger the network gateway to forward the configuration data to the second device, so that the second device can perform device configuration according to the configuration data.
2. The method of claim 1, further comprising, before responding to the configuration synchronization command: Show the human-computer interaction interface; In response to an input operation performed by the user in the human-computer interaction interface, a configuration synchronization instruction is generated, the configuration synchronization instruction containing the configuration dimension specified by the user and / or the identifier of the configuration data selected under the specified configuration dimension.
3. The method according to claim 2, further comprising: In response to the address configuration operation performed by the user in the human-computer interaction interface, the proxy address input by the user and defined by the gateway for the second device is obtained as the address information pointing to the second device; The proxy address is configured in the configuration synchronization request so that the gateway can map the proxy address to the actual address of the second device based on the mapping relationship between the proxy address and the actual address.
4. The method according to claim 1, further comprising: The extracted configuration data and the corresponding configuration dimensions are encapsulated to generate an encapsulated message; Configure the encapsulated message into the configuration synchronization request; The configuration dimension in the encapsulated message is used to guide the second device to call the adapted update logic to update the corresponding configuration data to the configuration table of the second device.
5. The method according to claim 1, wherein the first device comprises a configuration synchronization module and a device data synchronization module that are independent of each other, and the method specifically includes: The configuration synchronization module responds to the configuration synchronization command. The device data synchronization module sends the device data that needs to be synchronized to the second device to the network gateway, so that the network gateway can use the first forwarding channel to forward the configuration data to the second device; The device data is synchronized to the second device using the second forwarding channel.
6. A device configuration method, applicable to a second device in a device configuration system, the device configuration system further comprising a first device and a network gateway, the first device and the second device being located in different networks, the network gateway being located between the two networks and used for physical isolation of the two networks, the method comprising: The device receives an encapsulation file sent by the gateway, the encapsulation file being generated by the first device and containing configuration data and the configuration dimensions corresponding to the configuration data; The configuration data and the corresponding configuration dimensions are decapsulated from the encapsulated file. The configuration data is provided by the first device and forwarded to the second device by the gateway. For any target configuration data that has been decapsulated, based on the adaptation relationship between the configuration dimension and the update logic, the update logic that is adapted to the configuration dimension corresponding to the target configuration data is called to update the target configuration data to the configuration table corresponding to the second device.
7. The method according to claim 6, further comprising: Receive device data sent by the network gateway, wherein the device data is a time-series data stream; Based on the preset mapping relationship between stations and locations, determine whether the station information and location information carried in each data point in the time-series data stream conform to the mapping relationship; Data points that do not conform to the mapping relationship are discarded.
8. A device configuration system, comprising a first device, a second device, and a network gateway, wherein the first device and the second device are located in different networks, and the network gateway is located between the two networks and is used to physically isolate the two networks; The first device is configured to perform the device configuration method according to any one of claims 1-5; The gateway is used to forward the configuration data to be synchronized to the second device; The second device is used to perform the device configuration method according to any one of claims 6-7.
9. The system according to claim 8, wherein the gateway is specifically used for: If concurrent configuration synchronization requests are received, the configuration data contained in the multiple received configuration synchronization requests will be forwarded in parallel.
10. A computing device, comprising a memory, a processor, and communication components; The memory is used to store one or more computer instructions; The processor is coupled to the memory and the communication component and is used to execute one or more computer instructions for performing the device configuration method according to any one of claims 1-5 or 6-7.
11. A computer-readable storage medium storing computer instructions that, when executed by one or more processors, cause the one or more processors to perform the device configuration method according to any one of claims 1-5 or 6-7.
Citation Information
Patent Citations
ETL data synchronization method and device, electronic equipment and storage medium
CN112291312A
Data synchronization method and device, electronic equipment and storage medium
CN114647699A