Web service-based edge computing devices, data interaction systems, methods, and media
By using edge computing devices based on web services to directly call web services to communicate with the front end and data center, the problem of increased workload on the main station during data interaction between edge computing devices and the main station is solved. This achieves real-time and secure data transmission, reduces the data transmission pressure on the main station, and improves the computing power and management efficiency of the main station.
Patent Information
- Application Number
- CN202310173607.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2043-02-23
AI Technical Summary
In existing technologies, the data interaction process between edge computing devices and the master station increases the workload of the master station, data transmission is not real-time, and the data interaction process cannot be effectively optimized to reduce the load on the master station.
By using edge computing devices based on web services, the web service can be directly invoked to communicate with the front end and the data center, bypassing the main site backend, directly obtaining page data, and using a secure isolation terminal for data encryption and decryption to achieve secure and real-time data transmission.
It effectively reduced the workload of the main station, especially the data transmission pressure in the backend, improved the real-time performance and security of data acquisition, simplified the data transmission process, and improved the computing power and management efficiency of the main station.
Smart Images

Figure CN116137623B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of data interaction technology, and in particular to an edge computing device, data interaction system, method and medium based on Web services. Background Technology
[0002] In related technologies, edge computing devices are often used to communicate and interact with the main station, thereby reducing the workload of the main station. However, the supporting services between edge devices and the main station are not perfect. To ensure data integrity, the information transmitted by edge computing devices is greatly expanded and as detailed as possible, creating new workloads for the main station when managing and querying transmitted information. Therefore, how to optimize the data interaction process, reduce the workload of the main station, and improve the real-time performance of data transmission has become an urgent problem to be solved. Summary of the Invention
[0003] In view of the above problems, the present invention provides an edge computing device, data interaction system, method and medium based on Web services that at least solves some of the above technical problems. The present invention can directly call Web services through the front end, thereby realizing the direct allocation of the required page data according to the Web services, which greatly reduces the workload of the main site and improves the real-time performance of data calls during the operation of the main site.
[0004] This invention provides an edge computing device based on Web services, comprising: a Web server, which is configured to communicate with a front-end of a main site and a data center, respectively, to obtain control commands output by the front-end and output the control commands to the data center; the Web server is also configured to obtain page data output by the data center and output the page data to the front-end; and a data center, which is configured to obtain control commands output by the Web server, call the page data according to the control commands, and output the page data to the Web server.
[0005] In some embodiments, the edge computing device further includes:
[0006] A forwarding server is configured to communicate with both the backend of the main station and the data center, accessing the data center at preset time intervals to retrieve simplified site status data and outputting the simplified site status data to the backend. The forwarding server is also configured to obtain a data confirmation report output by the backend; wherein the data confirmation report is used to confirm that the backend has received the simplified site status data. In some embodiments, the edge computing device further includes:
[0007] The first security isolation terminal is used to obtain the encrypted instructions output by the main station, decrypt the encrypted instructions to obtain the control instructions, and output the control instructions to the Web server.
[0008] The first security isolation terminal is also used to obtain the page data output by the Web server, encrypt the page data to obtain encrypted page data, and output the encrypted page data to the main site;
[0009] The first security isolation terminal is also used to obtain the simplified site status data output by the forwarding server, encrypt the simplified site status data to obtain encrypted status data, and output the encrypted status data to the main station;
[0010] The first security isolation terminal is also used to obtain the encrypted confirmation instruction output by the main station, decrypt the encrypted confirmation instruction to obtain the data confirmation report, and output the data confirmation report to the forwarding server.
[0011] In some embodiments, the control instructions include management page invocation instructions, the page data includes management page data, and the web server includes:
[0012] The intelligent management module is used to parse the control command, and when the control command is the management page call command, output the management page call command to the data center to call the management page data output by the data center, and output the management page data to the front end.
[0013] In some embodiments, the control instructions include details query instructions, the page data includes details page data, and the web server includes:
[0014] The details query module is used to parse the control command and, when the control command is the details query command, output the details query command to the data center terminal to call the details page data output by the data center terminal and output the details page data to the front end.
[0015] In some embodiments, the control instructions include page query instructions, the page data includes homepage data, and the web server includes:
[0016] The permission management module is used to parse the control command and, when the control command is the page query command, output the page query command to the data center to call the homepage data output by the data center and output the homepage data to the front end.
[0017] This invention provides a web service-based data interaction system, comprising:
[0018] The edge computing device described in any of the above items;
[0019] as well as;
[0020] The main site includes a front-end, which is used to obtain and display page data output by the web server; the front-end is also used to output control commands to the web server.
[0021] In some embodiments, the main station further includes:
[0022] The backend is used to obtain simplified site status data and refresh the frontend data based on the simplified site status data; the backend is also used to output a data confirmation report.
[0023] The second security isolation terminal is used to receive encrypted status data, decrypt the encrypted status data to obtain the simplified status data of the site, and also to output the simplified status data of the site to the backend.
[0024] The second security isolation terminal is also used to acquire and encrypt the data confirmation report, generate an encrypted confirmation instruction, and output the encrypted confirmation instruction to the edge computing device.
[0025] The second secure isolation terminal is also used to acquire control commands, encrypt the control commands to obtain encrypted commands, and output the encrypted commands to the edge computing device;
[0026] The second secure isolation terminal is also used to acquire encrypted page data, decrypt the encrypted page data to obtain page data, and output the page data to the front end.
[0027] This invention provides a web service-based data interaction method applied to edge computing devices, comprising:
[0028] Based on the control commands obtained from the front-end by the web server, the control commands are output to the data center.
[0029] The control center terminal calls page data according to the control command and outputs the page data to the Web server terminal;
[0030] Control the web server to output the page data to the front end.
[0031] The present invention provides a computer-readable storage medium storing computer instructions, which a computer can execute to implement the above-described data interaction method based on Web services.
[0032] The edge computing device based on Web services provided by this invention includes a Web server and a data center. The Web server can communicate with the data center based on control commands output from the main station's front end. This allows the data center to extract the page data corresponding to the control commands and output the page data to the Web server, enabling the Web server to output the page data to the front end. Through this device, this invention allows the main station's front end to directly communicate with the Web server to obtain the page data corresponding to the control commands, bypassing the backend. This effectively reduces the workload of the main station, especially reducing the data transmission pressure on the main station's backend, significantly freeing up the main station's computing power. Furthermore, since the main station's front end can communicate and interact with the edge computing device at any time, the process of the main station communicating with the backend through the front end and then calling page data from the data center through the backend is eliminated, improving the real-time performance of the main station's data acquisition.
[0033] Additional aspects and advantages of embodiments of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of the invention. Attached Figure Description
[0034] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0035] Figure 1 This is a schematic diagram of the structure of a Web service-based edge computing device provided in an embodiment of the present invention.
[0036] Figure 2 This is a schematic diagram illustrating data transmission between the master station and the edge computing device, as provided in an embodiment of the present invention.
[0037] Figure 3 This is a schematic diagram of the specific structure of the edge computing device provided in an embodiment of the present invention.
[0038] Figure 4 This is another specific schematic diagram illustrating data transmission between the master station and the edge computing device provided in an embodiment of the present invention.
[0039] Figure 5 This is another specific schematic diagram illustrating data transmission between the master station and the edge computing device provided in an embodiment of the present invention.
[0040] Figure 6 This is another specific schematic diagram illustrating data transmission between the master station and the edge computing device provided in an embodiment of the present invention.
[0041] Figure 7 This is a schematic diagram of the structure of a web service-based data interaction system provided in an embodiment of the present invention.
[0042] Figure 8 This is a schematic diagram of the specific structure of the data interaction system provided in an embodiment of the present invention.
[0043] Figure 9 The system architecture diagram of the data interaction system provided in the embodiments of the present invention.
[0044] Figure 10 This is a flowchart illustrating a data interaction method based on Web services provided in an embodiment of the present invention.
[0045] Key component symbols: Edge computing device 10, Web server 11, Data center terminal 12, Intelligent management module 111, Detailed query module 112, Permission management module 113, Forwarding server 13, First security isolation terminal 14, Main station 20, Front end 21, Back end 22, Second security isolation terminal 23. Detailed Implementation
[0046] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0047] Firstly, referring to Figure 1 This invention provides an edge computing device 10 based on Web services, comprising: a Web server 11, which is configured to communicate with a front-end of a main station and a data center 12 respectively, to obtain control commands output by the front-end and output the control commands to the data center 12; the Web server 11 is also configured to obtain page data output by the data center 12 and output the page data to the front-end; and a data center 12, which is configured to obtain control commands output by the Web server 11, call the page data according to the control commands, and output the page data to the Web server 11.
[0048] This invention provides a Web service-based edge computing device 10. Through this edge computing device 10, the main site can bypass data access to the main site's backend when calling page data output by the edge computing device 10, instead directly accessing the Web service 11 of the edge computing device 10 to obtain the page data of the site corresponding to the edge computing device 10. Specifically, the invention can obtain control commands output by the main site's frontend through the Web service 11, and communicate with the data center 12 based on these commands. This allows the data center 12 to extract the page data corresponding to the control commands and output it to the Web service 11, enabling the Web service 11 to output the page data to the frontend. With this device, the invention can call the required page data through the Web service 11, bypassing the backend and allowing the main site's frontend to communicate directly with the Web service 11 to obtain the page data corresponding to the control commands. This effectively reduces the workload of the main site, especially reducing the data transmission pressure on the main site's backend, significantly freeing up the main site's computing power. In addition, since the front end of the main station can communicate and interact with the edge computing device 10 at any time, the process of the main station communicating and interacting with the back end through the front end and calling page data from the data center 12 through the back end is omitted, which improves the real-time data acquisition of the main station.
[0049] See Figure 2 and Figure 3 In some specific embodiments, the edge computing device 10 further includes:
[0050] Forwarding server 13 is used to communicate with the backend of the main site and the data center terminal 12 respectively, to access the data center terminal 12 at preset time intervals, to call up the site simplified status data, and to output the site simplified status data to the backend; forwarding server 13 is also used to obtain the data confirmation report output by the backend; wherein, the data confirmation report is used to enable forwarding server 13 to confirm that the backend has received the site simplified status data.
[0051] Through the forwarding server 13, the edge computing device 10 provided by this invention can periodically communicate with the data center 12 to obtain the simplified site status data corresponding to the current page data stored in the data center 12. This simplified site status data contains only a small amount of data to reduce the communication pressure during the interaction between the edge computing device 10 and the main station. The simplified site status data is then output to the backend. The backend stores the current site status data. Based on the comparison between the current site status data and the simplified site status data, the backend analyzes whether the currently stored site status data correctly corresponds to the actual working status of the site. If the current site status data and the simplified site status data are consistent, a data confirmation report is output to the forwarding server 13. Through the forwarding server 13, the edge computing device 10 provided by this invention enables the main station to monitor the working status of the site in real time and outputs a data confirmation report to the forwarding server 13 to synchronize the edge computing device 10 with the main station's site status monitoring results. Specifically, refer to... Figure 2 The forwarding server 13 can request a small amount of data from the data center 11, encrypt the received data through a first security isolation terminal, and send it to the main station. The main station's second security isolation terminal can then decrypt and transmit the data to the backend. The backend can compare the acquired data with the current site's status data. If the comparison results match, the backend refreshes the frontend display based on the acquired data, outputting a data confirmation report containing a data receipt confirmation frame to the second security isolation terminal. This causes the second security isolation terminal to encrypt the data receipt confirmation frame and send it to the first security isolation terminal. The first security isolation terminal decrypts the acquired data to obtain a data confirmation report containing a data receipt confirmation frame, and outputs the data confirmation report to the forwarding server 13. Based on the data confirmation report, the forwarding server 13 re-accesses the data center terminal at preset time intervals and executes the above steps to achieve real-time monitoring of the status data of the site corresponding to the edge computing device 10.
[0052] In some embodiments, the site summary status data only includes a portion of simplified information pre-defined by the front end, such as device information. Through this site summary status data, the present invention can briefly display the working status of the corresponding site of the edge computing device 10 on the front end of the main station, thereby reducing the data receiving pressure on the front end of the main station. When the front end of the main station needs to specify the detailed status of the site, it can output control commands to the Web terminal to achieve targeted access to detailed status data.
[0053] In some specific embodiments, when the simplified site status data obtained by the backend is inconsistent with the current site status data, a status exception command can be output to the frontend of the main station, so that the frontend of the main station can communicate with the edge computing device 10 to obtain page data containing detailed status data, and refresh the data according to the page data containing detailed status data.
[0054] Reference Figure 3 In some embodiments, the edge computing device 10 further includes:
[0055] The first security isolation terminal 14 is used to obtain the encrypted instructions output by the main station, decrypt the encrypted instructions to obtain control instructions, and output the control instructions to the Web server terminal 11.
[0056] The first security isolation terminal 14 is also used to obtain page data output by the Web server 11, encrypt the page data, obtain encrypted page data, and output the encrypted page data to the main site;
[0057] The first security isolation terminal 14 is also used to obtain the simplified site status data output by the forwarding server 13, encrypt the simplified site status data to obtain encrypted status data, and output the encrypted status data to the main station.
[0058] The first security isolation terminal 14 is also used to obtain the encrypted confirmation command output by the main station, decrypt the encrypted confirmation command, obtain the data confirmation report, and output the data confirmation report to the forwarding server 13.
[0059] The first secure isolation terminal 14 provided by this invention can effectively isolate the direct communication process between the edge computing device 10 and the master station, thereby improving the security of the data transmission process of the edge computing device 10. The edge computing device 10 of this invention can decrypt the encrypted instructions output by the master station through the first secure isolation terminal 14 to obtain control instructions, and output the control instructions to the web server 11; it can also obtain page data output by the web server 11 through the first secure isolation terminal 14, encrypt the page data to obtain encrypted page data, and output the encrypted page data to the master station; it can also obtain simplified site status data output by the forwarding server 13, encrypt the simplified site status data to obtain encrypted status data, and output the encrypted status data to the master station; it can also decrypt the encrypted confirmation instructions obtained from the master station, decrypt the encrypted confirmation instructions to obtain a data confirmation report, and output the data confirmation report to the forwarding server 13.
[0060] Reference Figure 3 and Figure 4 In some embodiments, the control instructions include management page invocation instructions, the page data includes management page data, and the web server 11 includes:
[0061] The intelligent management module 111 is used to parse control commands and, when the control command is a management page call command, outputs the management page call command to the data center terminal 12 to call the management page data output by the data center terminal 12 and outputs the management page data to the front end.
[0062] The Web server 11 of the edge computing device 10 provided by this invention includes an intelligent management module 111. The Web server 11 can receive management page call instructions output by the front-end of the main station through the intelligent management module 111. Based on these instructions, it can call management page data from the data center 12 and output the management page data back to the front-end, thereby avoiding the back-end computing resource consumption caused by the front-end calling management page data from the back-end, reducing back-end computing pressure, and improving back-end computing power. Furthermore, since the front-end of the main station can directly interact with the edge computing device 10, the data transmission process is simplified, and the real-time performance of data transmission is improved. Simultaneously, through the intelligent management module 111, the edge computing device 10 can be directly managed by the front-end of the main station, avoiding indirect management of the edge device by the front-end through the back-end, thus improving the management efficiency of the edge computing device 10 by the main station.
[0063] In some specific embodiments, refer to Figure 4 The management page call instructions include the specific data types required by the main site frontend, such as system disk, device information, APP management, container management, etc. Taking the APP installation instruction as an example, the main site can output a URL instruction to the second secure isolation terminal through the frontend, so that the second secure isolation terminal outputs an encrypted URL instruction to the first secure isolation terminal. Then, the first secure isolation terminal decrypts and transmits the data to output the decrypted APP installation instruction to the Web server 10. The Web server 11 can obtain the APP installation instruction through the intelligent management module 111, so that the Web server 11 executes the APP installation instruction and refreshes the display page of the Web server 11 according to the execution result of the installation instruction, so as to output the management page data to the first secure isolation terminal, and the first secure isolation terminal encrypts the management page data and outputs it to the second secure isolation terminal. The second secure isolation terminal can decrypt and transmit the encrypted output management page data, so as to output the management page data to the frontend, so that the management page data can be displayed in a user-friendly manner on the frontend, thereby realizing the calling of specific data of the edge computing device corresponding to the site and the management of applications such as APP on the frontend.
[0064] Reference Figure 3 and Figure 5 In some embodiments, the control instructions include details query instructions, the page data includes details page data, and the web server 11 includes:
[0065] The details query module 112 is used to parse control commands and, when the control command is a details query command, outputs the details query command to the data center terminal 12 to call the details page data output by the data center terminal 12 and outputs the details page data to the front end.
[0066] The Web server 11 of the edge computing device 10 provided by this invention includes a details query module 112. The Web server 11 of this invention can parse control commands through the details query module 112 to obtain details query commands; wherein, the front end of the main site can query detailed information of the site corresponding to the edge computing device 10 through the details query commands; the details query module 112 of this invention can output details query commands to the data center 12 to call the details page data output by the data center 12, and output the details page data to the front end so that the front end can obtain detailed information of the site corresponding to the edge computing device 10 in real time through the edge computing device 10.
[0067] Reference Figure 5 In some specific embodiments, the detail query instruction can be a browse details instruction, and the detailed page data can be business data. The front end of the main site can output the browse details instruction as a URL instruction to the first secure isolation terminal, so that the first secure isolation terminal encrypts the URL instruction and outputs it to the second secure isolation terminal. The second secure isolation terminal can decrypt the encrypted URL instruction to output the browse details instruction to the Web server 11, and obtain the browse details instruction through the detail query module 112 of the Web server 11, so that the Web server 11 can access the data center, thereby controlling the data center terminal 12 to output business data to the Web server 11, and causing the Web server 11 to output the detailed page data corresponding to the business data to the first secure isolation terminal. The first secure isolation terminal can encrypt the detailed page data and output it to the second secure isolation terminal, so that the second secure isolation terminal decrypts the encrypted detailed page data and outputs the detailed page data to the front end, so that the front end can obtain the detailed page data and display the detailed page data to the user in a user-friendly manner, thereby realizing the main site's call to the detailed business data.
[0068] Reference Figure 3 and Figure 6 In some embodiments, the control instructions include page query instructions, the page data includes homepage data, and the web server 11 includes:
[0069] The permission management module is used to parse control commands and, when the control command is a page query command, output the page query command to the data center 12 to call the homepage data output by the data center 12 and output the homepage data to the front end.
[0070] The edge computing device 10 provided by this invention can parse control commands through a permission management module to obtain page query commands, and control the data center terminal 12 to obtain homepage data according to the page query commands. The homepage data is then output to the permission management module, enabling the permission management module to output the homepage data to the front end. The page query command can be an operation and maintenance command, which includes the operation and maintenance tasks that the user needs the edge computing device 10 to perform. The homepage data can be operation and maintenance homepage data. By outputting the operation and maintenance commands to the permission management module, the edge computing device 10 can control the permission management module to communicate with the data center terminal 12, enabling the data center terminal 12 to perform operation and maintenance tasks, output operation and maintenance homepage data to the permission management module, and then enable the permission management module to output the operation and maintenance homepage data to the front end of the main site. Through this edge computing device 10, this invention can effectively reduce the technical requirements of operation and maintenance personnel, while also reducing the difficulty of the operation and maintenance process, thereby improving the operation and maintenance efficiency of the sites associated with the edge computing device 10.
[0071] Reference Figure 6 In some specific embodiments, the front end of the main site can be a browser on a PC. The page query command can be the device access IP and port number. The browser can output the page query command to the Web server 11 based on the device access IP and port number, and obtain the page query command through the permission management module 113 of the Web server 11, so that the Web server 11 can call the homepage data from the data center 12 according to the page query command. After the data center 12 outputs the homepage data to the Web server 11 according to the command output by the Web server 11, the Web server 11 then outputs the homepage data to the browser, so that the browser refreshes the homepage according to the homepage data, and then displays the refreshed homepage to the operation and maintenance personnel, so that the operation and maintenance personnel can directly obtain the homepage data of the corresponding site of the edge computing device 10 in the browser.
[0072] Secondly, referring to Figure 7 This invention provides a data interaction system based on Web services, comprising:
[0073] The edge computing device 10 of any one of the first aspects;
[0074] as well as;
[0075] The main site 20 includes a front-end 21, which is used to obtain and display page data output by the Web server 11; the main site 20 is also used to output control commands to the Web server 11.
[0076] The web service-based data interaction system provided by this invention includes an edge computing device 10 as described in any of the first aspects, and a main station 20. The main station 20 includes a front-end 21, which outputs control commands to the web service 11 of the edge computing device 10. The data interaction system can then acquire page data. The data protection system provided by this invention allows direct data communication between the main station 20 and the edge computing device 10 via the front-end 21, and the acquisition of required page data. This simplifies the data transmission process where the main station 20 accesses the back-end 22 via the front-end 21 to acquire page data from the edge computing device 10, reducing the workload of the back-end 22 while improving the real-time performance of data transmission.
[0077] Reference Figure 8 In some embodiments, the main station 20 further includes:
[0078] Backend 22 is used to obtain basic site status data and refresh the frontend 21 based on the basic site status data; backend 22 is also used to output a data confirmation report.
[0079] The second security isolation terminal 23 is used to receive encrypted status data, decrypt the encrypted status data to obtain simplified site status data, and output the simplified site status data to the backend 22.
[0080] The second security isolation terminal 23 is also used to acquire and encrypt the data confirmation report, generate an encrypted confirmation command, and output the encrypted confirmation command to the edge computing device 10.
[0081] The second security isolation terminal 23 is also used to acquire control commands, encrypt the control commands to obtain encrypted commands, and output the encrypted commands to the edge computing device 10;
[0082] The second secure isolation terminal 23 is also used to obtain encrypted page data, decrypt the encrypted page data to obtain page data, and output the page data to the front end 21.
[0083] The main station 20 of the data interaction system provided by this invention also includes a backend 22 and a second security isolation terminal 23. The backend 22 can obtain simplified site status data and refresh the site status pre-stored in the backend 22 based on the simplified site status data to achieve data refresh. When the simplified site status data matches the site status pre-stored in the backend 22, a data confirmation report is output. In some specific embodiments, when the simplified site status data obtained by the backend 22 is inconsistent with the current site status data, a status exception command can be output to the frontend 21 of the main station 20, enabling the frontend 21 of the main station 20 to communicate with the edge computing device 10 to obtain page data containing detailed status data and update the current site status data based on the page data containing detailed status data. The second security isolation terminal 23 is used to prevent direct data communication between the main station 20 and the edge computing device 10, thereby improving data security during the data interaction process. The second secure isolation terminal 23 can receive encrypted status data, decrypt the encrypted status data to obtain simplified site status data, and output the simplified site status data to the backend 22; it can also acquire and encrypt data confirmation reports, generate encrypted confirmation instructions, and output the encrypted confirmation instructions to the edge computing device 10. It can also acquire control instructions, encrypt the control instructions to obtain encrypted instructions, and output the encrypted instructions to the edge computing device 10; it can also acquire encrypted page data, decrypt the encrypted page data to obtain page data, and output the page data to the frontend 21. The data interaction system provided by this invention, through the backend 22 and the second secure isolation terminal 23, can effectively ensure the security of the data transmission process and the accuracy of the data transmission content.
[0084] The data interaction system technical architecture provided by this invention is as follows: Figure 9 The data interaction system can invoke required tasks through the business UI layer (i.e., the front end) and control the Web server to obtain the page data corresponding to the required tasks. Simultaneously, the data interaction system can also acquire business data through data collection and analysis applications and store the business data in the data center. The data interaction system provided by this invention can further process the acquired business data to generate page data corresponding to the required tasks and upload the page data to the Web server, enabling the Web server to upload the page data to the business UI layer. In some specific embodiments, communication isolation between the main station and the edge computing device is achieved through the first and second security isolation terminals of the edge computing device, thereby ensuring the communication security of the data interaction system provided by this invention.
[0085] Thirdly, referring to Figure 10 This invention provides a data interaction method based on Web services, applied to edge computing devices, comprising:
[0086] S1: Obtain the control commands output from the front end based on the Web server, and output the control commands to the data center.
[0087] S2, the control data center calls page data according to control instructions and outputs page data to the Web server;
[0088] S3 controls the output of page data from the web server to the front end.
[0089] By executing S1 to S3, the data interaction method provided by this invention enables the Web server to communicate with the data center based on the control commands output by the main site's front end. This allows the data center to extract the page data corresponding to the control commands and output the page data to the Web server, thereby enabling the Web server to output the page data to the front end. Through this method, this invention allows the Web server to call the required page data and bypasses the backend, enabling the main site's front end to communicate directly with the Web server to obtain the page data corresponding to the control commands. This effectively reduces the workload of the main site, especially reducing the data transmission pressure on the main site's backend, significantly freeing up the main site's computing power. Furthermore, since the main site's front end can communicate and interact with edge computing devices at any time, the process of the main site communicating with the backend through the front end and then calling page data from the data center through the backend is omitted, improving the real-time performance of the main site's data acquisition.
[0090] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions, which a computer can execute to implement the Web service-based data interaction method of the third aspect of the present invention.
[0091] The present invention can implement the Web service-based data interaction method as described in the third aspect by means of computer instructions stored in a computer-readable storage medium. The beneficial effects of performing this method have been discussed in detail above and will not be repeated here.
[0092] It is understood that a computer program includes computer program code. Computer program code can be in the form of source code, object code, executable files, or some intermediate form. Computer-readable storage media can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, external hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc.
[0093] A processor can be a single-chip microcomputer that integrates a processor, memory, communication modules, etc. A processor can also refer to the processor contained within a controller. A processor can be a Central Processing Unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0094] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0095] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0096] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processing module, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0097] It should be understood that various parts of the embodiments of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0098] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.
[0099] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0100] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.
[0101] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the embodiments of the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. An edge computing device based on Web services, characterized in that, include: The web server is configured to communicate with both the front-end and the data center of the main site to obtain control commands output by the front-end and output the control commands to the data center; the web server is also configured to obtain page data output by the data center and output the page data to the front-end. On the data center side, the data center side is used to obtain the control instructions output by the Web server, call the page data according to the control instructions, and output the page data to the Web server; A forwarding server is configured to communicate with both the backend of the main site and the data center, accessing the data center at preset time intervals to retrieve simplified site status data and outputting the simplified site status data to the backend. The forwarding server is also configured to obtain a data confirmation report output by the backend, wherein the data confirmation report is used to confirm that the backend has received the simplified site status data. The first security isolation terminal is used to obtain the encrypted instructions output by the main station, decrypt the encrypted instructions to obtain the control instructions, and output the control instructions to the Web server. The first security isolation terminal is also used to obtain the page data output by the Web server, encrypt the page data to obtain encrypted page data, and output the encrypted page data to the main site; The first security isolation terminal is also used to obtain the simplified site status data output by the forwarding server, encrypt the simplified site status data to obtain encrypted status data, and output the encrypted status data to the main station; The first security isolation terminal is also used to obtain the encrypted confirmation instruction output by the main station, decrypt the encrypted confirmation instruction to obtain the data confirmation report, and output the data confirmation report to the forwarding server.
2. The edge computing device according to claim 1, characterized in that, The control instructions include management page invocation instructions, the page data includes management page data, and the web server includes: The intelligent management module is used to parse the control command, and when the control command is the management page call command, output the management page call command to the data center to call the management page data output by the data center, and output the management page data to the front end.
3. The edge computing device according to claim 1, characterized in that, The control instructions include details query instructions, the page data includes details page data, and the web server includes: The details query module is used to parse the control command and, when the control command is the details query command, output the details query command to the data center terminal to call the details page data output by the data center terminal and output the details page data to the front end.
4. The edge computing device according to claim 1, characterized in that, The control instructions include page query instructions, the page data includes homepage data, and the web server includes: The permission management module is used to parse the control command and, when the control command is the page query command, output the page query command to the data center to call the homepage data output by the data center and output the homepage data to the front end.
5. A data interaction system based on Web services, characterized in that, include: The edge computing device according to any one of claims 1 to 4; as well as; The main site includes a front-end, which is used to obtain and display page data output by the web server; the front-end is also used to output control commands to the web server.
6. The data interaction system according to claim 5, characterized in that, The main site also includes: The backend is used to obtain simplified site status data and refresh the frontend data based on the simplified site status data; the backend is also used to output a data confirmation report. The second security isolation terminal is used to receive encrypted status data, decrypt the encrypted status data to obtain the simplified status data of the site, and output the simplified status data of the site to the backend. The second security isolation terminal is also used to acquire and encrypt the data confirmation report, generate an encrypted confirmation instruction, and output the encrypted confirmation instruction to the edge computing device; The second secure isolation terminal is also used to acquire control commands, encrypt the control commands to obtain encrypted commands, and output the encrypted commands to the edge computing device; The second secure isolation terminal is also used to acquire encrypted page data, decrypt the encrypted page data to obtain page data, and output the page data to the front end.
7. A data interaction method based on Web services, applied to the edge computing device as described in any one of claims 1-4, characterized in that, include: Based on the control commands obtained from the front-end by the web server, the control commands are output to the data center. The control center terminal calls page data according to the control command and outputs the page data to the Web server terminal; Control the web server to output the page data to the front end.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, which a computer can execute to implement the web service-based data interaction method of claim 7.
Citation Information
Patent Citations
Edge side monitoring system based on Internet of Things
CN212012703U
Systems, and methods for secure remote multi-user LAN access
WO2023172764A2