Edge gateway control system and method
The edge gateway control system decouples business application software from hardware through a virtual mirror layer, enhancing reliability and adaptability in complex environments by using power and self-checking modules, thus addressing high costs and poor robustness in existing systems.
Patent Information
- Application Number
- CN202411360977.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing edge computing gateways in water conservancy face high development and production costs due to strong hardware-software coupling, and poor adaptability in complex environments, leading to poor robustness during data collection.
A control system for edge gateways comprising a hardware interface layer, virtual image layer, and business application layer, with a virtual mirror layer decoupling the business application from direct hardware control, using power modules, switching modules, and self-checking mechanisms to ensure reliable data collection.
Improves the reliability and adaptability of edge gateways by reducing hardware-software coupling, enabling efficient data collection and fault tolerance in complex environments, while minimizing power consumption and maintenance costs.
Smart Images

Figure CN119254721A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water conservancy engineering, and in particular to a control system and method of an edge gateway. Background Art
[0002] Edge computing gateways play a key role in the construction of smart water conservancy. They are mainly responsible for collecting hydrological data from key waters in real time, and processing and analyzing these data instantly through artificial intelligence algorithms to achieve localized intelligent control. Given the importance of water conservancy data, edge computing gateways must have high reliability. However, when traditional edge computing gateways collect water conservancy data, the hardware performance requirements of edge computing gateways vary greatly. It is often necessary to customize exclusive gateways for each project, which results in strong coupling between hardware interfaces and software designs, increasing development and production costs. At the same time, they have poor adaptability when facing complex environments.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a control system and method for an edge gateway, aiming to solve the technical problem of poor robustness of edge gateway equipment when collecting water conservancy data in the prior art.
[0005] To achieve the above object, the present invention provides a control system of an edge gateway, the control system of the edge gateway comprising: a hardware interface layer, a virtual image layer and a business application layer, the hardware interface layer, the virtual image layer and the business application layer are electrically connected, and the business application layer calls the hardware interface layer through the virtual image layer to achieve communication interaction;
[0006] The business application layer is used to generate water conservancy data collection task information and send the water conservancy data collection task information to the virtual mirror layer;
[0007] The virtual image layer is used to generate a call instruction according to the received task information;
[0008] The hardware interface layer is used to start the target hardware interface based on the calling instruction to collect water conservancy data based on the water conservancy data collection task information.
[0009] Optionally, the hardware interface layer includes: at least one power module, a switching module and at least one hardware interface, each power module is connected to the switching module respectively, and the switching module is electrically connected to each hardware interface;
[0010] The power supply module is used to continuously provide a power output with a stable voltage or a stable current to the hardware interface;
[0011] The switching module is used to adjust the connectivity between each power module and each hardware interface;
[0012] The hardware interface is used to collect water conservancy data after the power module is turned on.
[0013] Optionally, the hardware interface layer further includes: a self-checking module, the self-checking module being connected to each hardware interface;
[0014] The self-check module is used to generate a self-check task and periodically send the self-check task to each hardware interface so that each hardware interface performs interface self-check based on the self-check task;
[0015] The self-check module is also used to report the self-check status to the business application layer.
[0016] Optionally, the self-check module is further used to switch the currently used hardware interface when the hardware interface self-check fails;
[0017] The self-check module is also used to control the connection state of the switching module to connect the switched hardware interface to the power supply provided by the switched power supply module.
[0018] Optionally, the power module includes at least: an MP4462 chip, an NB680GD chip and an MP8759 chip;
[0019] The MP4462 chip is used to convert the high-voltage power supply into a 5.0V voltage power output, and the rated high-voltage conversion voltage of the MP4462 chip is 36V;
[0020] The NB680GD chip is used to convert the high-voltage power supply into a 3.3V voltage power output. The rated high-voltage conversion voltage of the NB680GD chip is 28V, and the maximum output current is 8A;
[0021] The MP8759 chip is used to convert the high voltage power supply into a power output of 4.0V voltage, and the maximum output current of the MP8759 chip is 8A.
[0022] Optionally, the power supply module further includes: at least one power supply output circuit, a sampling circuit and an analog switching circuit;
[0023] The power output circuit is used to output voltage or current;
[0024] The sampling circuit is used to detect the output voltage or output current of each power output circuit;
[0025] The analog switching circuit is used to adjust the output state of each power output circuit according to the detection result of the sampling circuit to provide a stable voltage output or current output.
[0026] Optionally, the virtual mirror layer is further used to start the target hardware interface through the virtual mirror interface based on the call instruction when the hardware interface in the hardware interface layer works normally, so as to collect water conservancy data based on the water conservancy data collection task information;
[0027] The virtual mirror layer is further used to map the virtual mirror interface to a switched hardware interface when a hardware interface in the hardware interface layer is abnormal.
[0028] Optionally, the virtual image layer includes a virtual hardware virtual interface, a state virtual interface, a southbound acquisition virtual interface, a northbound communication virtual interface and a low power consumption virtual interface;
[0029] The virtual mirror layer is also used to map the southbound acquisition virtual interface, the northbound communication virtual interface and the low-power consumption virtual interface to the switched hardware interface when the hardware interface in the hardware interface layer is abnormal.
[0030] Optionally, the low-power virtual interface is used to detect the operating status of each hardware interface;
[0031] The low-power virtual interface is also used to shut down the power-on state of the hardware interface that has no water conservancy data collection tasks.
[0032] In addition, in order to achieve the above-mentioned object, the present invention also proposes a control method of an edge gateway, the control method of the edge gateway is applied to the control system of the edge gateway as described above, and the control method of the edge gateway includes:
[0033] The business application layer generates water conservancy data collection task information, and sends the water conservancy data collection task information to the virtual image layer;
[0034] The virtual image layer generates a call instruction according to the received task information;
[0035] The hardware interface layer starts the target hardware interface based on the calling instruction to collect water conservancy data based on the water conservancy data collection task information.
[0036] The present invention discloses a control system of an edge gateway, the control system of the edge gateway comprises: a hardware interface layer, a virtual image layer and a business application layer, the hardware interface layer, the virtual image layer and the business application layer are electrically connected, the business application layer calls the hardware interface layer through the virtual image layer to realize communication interaction; the business application layer is used to generate water conservancy data collection task information, and send the water conservancy data collection task information to the virtual image layer; the virtual image layer is used to generate a call instruction according to the received task information; the hardware interface layer is used to start the target hardware based on the call instruction An interface is provided to collect water conservancy data based on the water conservancy data collection task information. Compared with the prior art, a virtual mirror layer corresponding to the hardware interface layer is set between the hardware interface layer corresponding to the edge gateway device and the business software. Therefore, when water conservancy data collection is required, the business application software will not directly control the hardware interface, but will interact with the virtual mirror of the hardware interface to achieve decoupling between the business application software and the hardware interface of the edge gateway device, thereby improving the reliability of the edge gateway device in the face of complex environments during operation and avoiding the technical problem of poor robustness of the edge gateway device when collecting water conservancy data in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1 A schematic diagram of the control system architecture of the edge gateway of the present invention;
[0040] Figure 2 It is a schematic diagram of the architecture of the MP4462 chip of the control system of the edge gateway of the present invention;
[0041] Figure 3 This is a schematic diagram of the architecture of the NB680GD chip of the control system of the edge gateway of the present invention;
[0042] Figure 4 It is a schematic diagram of the architecture of the MP8759 chip of the control system of the edge gateway of the present invention;
[0043] Figure 5 A schematic diagram of a process of performing a hardware interface self-check by a control system self-check module of an edge gateway of the present invention;
[0044] Figure 6 A schematic diagram of an RS232 circuit of a control system of an edge gateway of the present invention;
[0045] Figure 7 A schematic diagram of an RS485 circuit of a control system of an edge gateway of the present invention;
[0046] Figure 8 It is a schematic diagram of the architecture of the PHY chip RTL8211F-CG of the control system of the edge gateway of the present invention;
[0047] Fig. 9 A schematic diagram of an AD sampling circuit of a control system of an edge gateway of the present invention;
[0048] Fig.10 A schematic diagram of a control system and a simulated switching switch of an edge gateway of the present invention;
[0049] Fig.11a A schematic diagram of the architecture of a first example of a low-power circuit of a control system of an edge gateway of the present invention;
[0050] Fig.11b A schematic diagram of the architecture of a second example of a low-power circuit of a control system of an edge gateway of the present invention;
[0051] Fig.11c A schematic diagram of the architecture of a third embodiment of the low-power circuit of the control system of the edge gateway of the present invention;
[0052] Fig.12 A schematic diagram of a low power consumption control flow of a control system of an edge gateway of the present invention;
[0053] Fig.13 FIG. 1 is a flow chart of a first embodiment of a control method for an edge gateway of the present invention.
[0054] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0056] Based on this, an embodiment of the present invention provides a control system of an edge gateway, the control system of the edge gateway includes: a hardware interface layer, a virtual image layer and a business application layer, the hardware interface layer, the virtual image layer and the business application layer are electrically connected, and the business application layer calls the hardware interface layer through the virtual image layer to realize communication interaction;
[0057] The business application layer is used to generate water conservancy data collection task information and send the water conservancy data collection task information to the virtual mirror layer;
[0058] The virtual image layer is used to generate a call instruction according to the received task information;
[0059] The hardware interface layer is used to start the target hardware interface based on the calling instruction to collect water conservancy data based on the water conservancy data collection task information.
[0060] It should be noted that the reference Figure 1 , Figure 1 The figure is an architecture diagram of the control system of the edge gateway in this embodiment, wherein the hardware interface layer is composed of multiple hardware interfaces and power supplies. Since different hardware interfaces are adapted to different power supplies, in order to ensure that each hardware interface can operate normally, the power supply can provide a variety of voltage values or current values. However, in order to save the cost of multiple power supply access, this embodiment can use multiple power conversion circuits to convert the power supply uniformly input by the edge gateway device into power outputs with multiple voltage values or current values.
[0061] exist Figure 1 In the architecture diagram of the control system of the edge gateway shown, the business application software and the hardware interface are in an asynchronous state, and the states between them are interacted through the state API of the interface virtual mirror. The data collection application requirements can be dispatched through the message queue, and the business application software will not be blocked due to hardware delays. After issuing the data collection application requirements, it can immediately receive a reply from the virtual mapping image. At this time, the virtual mapping image can allocate and drive the target hardware interface for you, so as to collect water conservancy data according to the water conservancy data collection task information.
[0062] After collecting the water conservancy data, the interface virtual image can record the status of all applications using the image in the status API and submit it to the business application software through the northbound API. The business application software collects the data and reports it to the cloud platform to facilitate the maintenance of the gateway's operating status.
[0063] Further, the hardware interface layer includes: at least one power module, a switching module and at least one hardware interface, each power module is connected to the switching module respectively, and the switching module is electrically connected to each hardware interface;
[0064] The power supply module is used to continuously provide a power output with a stable voltage or a stable current to the hardware interface;
[0065] The switching module is used to adjust the connectivity between each power module and each hardware interface;
[0066] The hardware interface is used to collect water conservancy data after the power module is turned on.
[0067] It can be understood that the power module can convert the input unstable power supply into a stable power supply that can be used by the edge gateway CPU or other chips. This embodiment takes the power input chip as an example. The static power consumption of the power input chip is a continuous energy loss, and the edge gateway CPU requires multiple power conversion chips with different voltage values.
[0068] Furthermore, the power module at least includes: an MP4462 chip, an NB680GD chip and an MP8759 chip;
[0069] The MP4462 chip is used to convert the high-voltage power supply into a 5.0V voltage power output, and the rated high-voltage conversion voltage of the MP4462 chip is 36V;
[0070] The NB680GD chip is used to convert the high-voltage power supply into a 3.3V voltage power output. The rated high-voltage conversion voltage of the NB680GD chip is 28V, and the maximum output current is 8A;
[0071] The MP8759 chip is used to convert the high voltage power supply into a power output of 4.0V voltage, and the maximum output current of the MP8759 chip is 8A.
[0072] Specifically, refer to Figure 2 The MP4462 chip can convert the power input VCIN to 5V for powering peripheral interface chips. The MP4462 chip supports conversion from up to 36V, and the static power consumption is as low as 120uA; Reference Figure 3 , NB680GD chip can convert power input to 3.3v for powering peripheral chips. NB680GD chip supports conversion from 28v, output current can reach 8A, and static power consumption is as low as 100uA; reference Figure 4 The MP8759 chip can convert the power input to 4.0v for powering the CPU core board. The output can reach 12A, meeting the power supply requirements of the core board, and the static power consumption is as low as 100uA.
[0073] Furthermore, the hardware interface layer further comprises: a self-checking module, the self-checking module being connected to each hardware interface;
[0074] The self-check module is used to generate a self-check task and periodically send the self-check task to each hardware interface so that each hardware interface performs interface self-check based on the self-check task;
[0075] The self-check module is also used to report the self-check status to the business application layer.
[0076] In the specific implementation, refer to Figure 5 , Figure 5 This is a flow chart of the self-test module performing hardware interface self-test in this embodiment, wherein, by periodically sending self-test tasks to the interface application, the self-test status of the hardware interface will be reported to the cloud platform through the northbound API and business application software. When the hardware interface self-test fails, a switching circuit will be used to replace the interface in use with the self-test interface, thereby realizing self-repair of the business application and notifying the platform of the fault.
[0077] The self-check module is further used to switch the currently used hardware interface when the hardware interface self-check fails;
[0078] The self-check module is also used to control the connection state of the switching module to connect the switched hardware interface to the power supply provided by the switched power supply module.
[0079] In the specific implementation, refer to Figure 6 and Figure 7 The self-test module can perform self-test through RS485 or RS232 circuits, and perform device interface self-test through the backup interface. The backup interface uses the analog switch chip RS2105 for switching. RS2105 has a turn-on time and turn-off time in nanoseconds, which is sufficient to meet the communication requirements of the interface when used on RS485 and RS232.
[0080] For ease of explanation, Figure 6 The specific process of self-test and switching is explained by taking the RS232 circuit in as an example. Under normal operation, the 8th and 13th interfaces of RS232 are connected to the 2nd and 9th interfaces of RS2105 respectively. When the self-test fails, the 10th and 11th interfaces of RS232 can be connected to the 2nd and 9th interfaces of RS2105 respectively to realize the connection status switching of the communication interface.
[0081] In addition, the self-check in this embodiment can also be cross-check and automatic correction for the Ethernet interface, see Figure 8 The Ethernet interface uses the PHY chip RTL8211F-CG with built-in cross detection and automatic correction functions, and implements timing error correction and recovery functions through the driver layer to ensure the normal operation of the Ethernet interface.
[0082] Furthermore, the power supply module further comprises: at least one power supply output circuit, a sampling circuit and an analog switching circuit;
[0083] The power output circuit is used to output voltage or current;
[0084] The sampling circuit is used to detect the output voltage or output current of each power output circuit;
[0085] The analog switching circuit is used to adjust the output state of each power output circuit according to the detection result of the sampling circuit to provide a stable voltage output or current output.
[0086] refer to Fig. 9 and Fig.10 The power port uses AD sampling circuit and analog switching switch to complete multi-channel power output detection to ensure the reliability of circuit output. In addition, in order to ensure the normal operation of the hardware interface, a half-load temperature and humidity sensor can also be set to detect the temperature and humidity inside the gateway device in real time to ensure the normal operation of the device.
[0087] Furthermore, the virtual mirror layer is also used to start the target hardware interface through the virtual mirror interface based on the call instruction when the hardware interface in the hardware interface layer works normally, so as to collect water conservancy data based on the water conservancy data collection task information;
[0088] The virtual mirror layer is further used to map the virtual mirror interface to a switched hardware interface when a hardware interface in the hardware interface layer is abnormal.
[0089] It can be understood that when the hardware interface within the hardware interface layer is abnormal, in order to ensure that the water conservancy data collection task can be completed, the virtual mirror interface is mapped to the switched hardware interface, and then the communication connection and interaction between the hardware interface layer and the business application software are re-established.
[0090] Specifically, the virtual mirror layer includes a virtual hardware virtual interface, a state virtual interface, a southbound acquisition virtual interface, a northbound communication virtual interface, and a low power consumption virtual interface;
[0091] The virtual mirror layer is also used to map the southbound acquisition virtual interface, the northbound communication virtual interface and the low-power consumption virtual interface to the switched hardware interface when the hardware interface in the hardware interface layer is abnormal.
[0092] The hardware interface can be switched automatically, but because the business application is not directly connected to the hardware, the virtual image cannot be coupled with the hardware interface after the hardware interface is switched. Therefore, after switching the currently running hardware interface, the northbound communication API, southbound acquisition API, and low-power API of the virtual image can be modified to the latest interface. This can maintain the logic of the business application and make the communication logic simpler. The simpler the logic, the higher the fault tolerance and the stronger the stability.
[0093] Furthermore, the low-power virtual interface is used to detect the operating status of each hardware interface;
[0094] The low-power virtual interface is also used to shut down the power-on state of the hardware interface that has no water conservancy data collection tasks.
[0095] In the specific implementation, each hardware interface has a power control port, which can power off the unused modules to reduce the power consumption of the edge gateway device during operation. Fig.11a , 11b and 11c, Fig.11a , 11b And 11c is an example of a low power consumption circuit in this embodiment.
[0096] refer to Fig.12 The low-power virtual interface is a separate application that waits for task assignment by the business application layer. The interface application that receives the task message will turn on the power of the corresponding hardware interface. The interface without the task message will turn off the power by default and wait for the task. In this way, the power consumption in the running state can be minimized through software. At the same time, for the hardware interface without tasks to enter the standby or shutdown state, the memory usage of the processor can be reduced, further improving the operating efficiency and reducing energy consumption.
[0097] In this embodiment, a virtual image layer corresponding to the hardware interface layer is set between the hardware interface layer corresponding to the edge gateway device and the business software. Therefore, when water conservancy data needs to be collected, the business application software will not directly control the hardware interface, but will interact with the virtual image of the hardware interface to achieve decoupling between the business application software and the hardware interface of the edge gateway device, thereby improving the reliability of the edge gateway device in complex environments during operation and avoiding the technical problem of poor robustness of the edge gateway device when collecting water conservancy data in the prior art.
[0098] Based on this, an embodiment of the present invention provides a control method for an edge gateway, referring to Fig.13 , Fig.13 The figure is a flow chart of a first embodiment of a control method for an edge gateway according to the present invention.
[0099] In this embodiment, the control method of the edge gateway includes steps S10 to S40:
[0100] Step S10: The business application layer generates water conservancy data collection task information and sends the task information to the virtual image layer
[0101] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a controller of an edge gateway device, etc. The following takes the controller of an edge gateway device as an example to illustrate this embodiment and the following embodiments.
[0102] Step S20: The virtual image layer generates a call instruction according to the received task information
[0103] Step S30: The hardware interface layer starts the target hardware interface based on the calling instruction to collect water conservancy data based on the water conservancy data collection task information.
[0104] The hardware interface layer consists of multiple hardware interfaces and power supplies. Since different hardware interfaces are adapted to different power supplies, in order to ensure that each hardware interface can operate normally, the power supply can provide multiple voltage values or current values. However, in order to save the cost of multiple power supply access, this embodiment can use multiple power conversion circuits to convert the power supply uniformly input by the edge gateway device into power outputs with multiple voltage values or current values.
[0105] exist Figure 1 In the architecture diagram of the control system of the edge gateway shown, the business application software and the hardware interface are in an asynchronous state, and the states between them are interacted through the state API of the interface virtual mirror. The data collection application requirements can be dispatched through the message queue, and the business application software will not be blocked due to hardware delays. After issuing the data collection application requirements, it can immediately receive a reply from the virtual mapping image. At this time, the virtual mapping image can allocate and drive the target hardware interface for you, so as to collect water conservancy data according to the water conservancy data collection task information.
[0106] After collecting the water conservancy data, the interface virtual image can record the status of all applications using the image in the status API and submit it to the business application software through the northbound API. The business application software collects the data and reports it to the cloud platform to facilitate the maintenance of the gateway's operating status.
[0107] In this embodiment, a virtual image layer corresponding to the hardware interface layer is set between the hardware interface layer corresponding to the edge gateway device and the business software. Therefore, when water conservancy data needs to be collected, the business application software will not directly control the hardware interface, but will interact with the virtual image of the hardware interface to achieve decoupling between the business application software and the hardware interface of the edge gateway device, thereby improving the reliability of the edge gateway device in complex environments during operation and avoiding the technical problem of poor robustness of the edge gateway device when collecting water conservancy data in the prior art.
[0108] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0109] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the control method of the edge gateway in the above-mentioned embodiment.
[0110] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0111] The computer-readable storage medium may be included in the control device of the edge gateway; or may exist independently without being installed in the control device of the edge gateway.
[0112] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0113] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0114] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0115] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the control method of the above-mentioned edge gateway, and can solve the technical problems of the control of the edge gateway. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the control method of the edge gateway provided by the above-mentioned embodiment, and will not be repeated here.
[0116] The present application also provides a computer program product, including a computer program, which implements the steps of the control method of the edge gateway as described above when the computer program is executed by a processor.
[0117] The computer program product provided by this application can solve the technical problem of edge gateway control. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the edge gateway control method provided by the above embodiment, which will not be repeated here.
[0118] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A control system for an edge gateway, characterized in that: The control system of the edge gateway includes: a hardware interface layer, a virtual image layer and a business application layer, wherein the hardware interface layer, the virtual image layer and the business application layer are electrically connected, and the business application layer calls the hardware interface layer through the virtual image layer to realize communication interaction; The business application layer is used to generate water conservancy data collection task information and send the water conservancy data collection task information to the virtual mirror layer; The virtual image layer is used to generate a call instruction according to the received task information; The hardware interface layer is used to start the target hardware interface based on the calling instruction to collect water conservancy data based on the water conservancy data collection task information.
2. The control system of the edge gateway as claimed in claim 1, characterized in that: The hardware interface layer includes: at least one power module, a switching module and at least one hardware interface, each power module is connected to the switching module respectively, and the switching module is electrically connected to each hardware interface; The power supply module is used to continuously provide a power output with a stable voltage or a stable current to the hardware interface; The switching module is used to adjust the connectivity between each power module and each hardware interface; The hardware interface is used to collect water conservancy data after the power module is turned on.
3. The control system of the edge gateway as described in claim 2, characterized in that: The hardware interface layer also includes: a self-checking module, which is connected to each hardware interface; The self-check module is used to generate a self-check task and periodically send the self-check task to each hardware interface so that each hardware interface performs interface self-check based on the self-check task; The self-check module is also used to report the self-check status to the business application layer.
4. The control system of the edge gateway as claimed in claim 3, characterized in that: The self-check module is further used to switch the currently used hardware interface when the hardware interface self-check fails; The self-check module is also used to control the connection state of the switching module to connect the switched hardware interface to the power supply provided by the switched power supply module.
5. The control system of the edge gateway as claimed in claim 2, characterized in that: The power module at least includes: an MP4462 chip, an NB680GD chip and an MP8759 chip; The MP4462 chip is used to convert the high-voltage power supply into a 5.0V voltage power output, and the rated high-voltage conversion voltage of the MP4462 chip is 36V; The NB680GD chip is used to convert the high-voltage power supply into a 3.3V voltage power output. The rated high-voltage conversion voltage of the NB680GD chip is 28V, and the maximum output current is 8A; The MP8759 chip is used to convert the high voltage power supply into a power output of 4.0V voltage, and the maximum output current of the MP8759 chip is 8A.
6. The control system of the edge gateway as claimed in claim 2, characterized in that: The power supply module further includes: at least one power supply output circuit, a sampling circuit and an analog switching circuit; The power output circuit is used to output voltage or current; The sampling circuit is used to detect the output voltage or output current of each power output circuit; The analog switching circuit is used to adjust the output state of each power output circuit according to the detection result of the sampling circuit to provide a stable voltage output or current output.
7. The control system of the edge gateway as claimed in claim 1, characterized in that: The virtual mirror layer is also used to start the target hardware interface through the virtual mirror interface based on the call instruction when the hardware interface in the hardware interface layer works normally, so as to collect water conservancy data based on the water conservancy data collection task information; The virtual mirror layer is further used to map the virtual mirror interface to a switched hardware interface when a hardware interface in the hardware interface layer is abnormal.
8. The control system of the edge gateway as claimed in claim 7, characterized in that: The virtual mirror layer includes a virtual hardware virtual interface, a state virtual interface, a southbound acquisition virtual interface, a northbound communication virtual interface and a low power consumption virtual interface; The virtual mirror layer is also used to map the southbound acquisition virtual interface, the northbound communication virtual interface and the low-power consumption virtual interface to the switched hardware interface when the hardware interface in the hardware interface layer is abnormal.
9. The control system of the edge gateway as claimed in claim 8, characterized in that: The low-power virtual interface is used to detect the operating status of each hardware interface; The low-power virtual interface is also used to shut down the power-on state of the hardware interface that has no water conservancy data collection tasks.
10. A control method for an edge gateway, characterized in that: The control method of the edge gateway is applied to the control system of the edge gateway according to any one of claims 1 to 9, and the control method of the edge gateway includes: The business application layer generates water conservancy data collection task information, and sends the water conservancy data collection task information to the virtual image layer; The virtual image layer generates a call instruction according to the received task information; The hardware interface layer starts the target hardware interface based on the calling instruction to collect water conservancy data based on the water conservancy data collection task information.
Citation Information
Patent Citations
Edge computing gateway IO interface system and IO interface calling method
CN114490473A
Data processing method and device, equipment and storage medium
CN115237540A
Android device software and hardware separation control calling system and method
CN115981886A
Service control system and architecture method based on distributed architecture virtual bus technology
CN117971749A
