Data processing method, business system and electronic equipment
By using multiple data nodes in the edge intelligent gateway for decentralized storage and intranet penetration services, the problem of data request and display in the edge intelligent gateway business system taking too long is solved, and the intuitive display of data is realized, which is suitable for wireless applications. Scenarios for cloud resource conditions.
Patent Information
- Application Number
- CN202411046018.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The existing business system of edge intelligent gateways takes too long to request and display data, resulting in poor user experience, and the data display method is simple and difficult to display intuitively.
Use multiple edge gateway data nodes for decentralized storage of business data, obtain and display data through the edge gateway central node based on intranet penetration services, and use visual methods such as charts to display business data.
It solves the problem of too long data request time, improves user experience, and makes data intuitive through chart display, which is suitable for scenarios without cloud resource conditions.
Smart Images

Figure CN118590537B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data processing method, a business system and an electronic device. Background Art
[0002] The edge gateway is a device that connects terminal devices and cloud servers, and plays a vital role in the IoT system. It acts as an intermediate layer between terminal devices and cloud servers, and is responsible for collecting data from terminal devices, processing and storing it, and sending processed and packaged data to the cloud server. By connecting to IoT devices, the edge gateway can achieve real-time control and monitoring of devices, and analyze and make decisions on data. At the same time, the edge gateway can also coordinate communications between terminal devices, thereby achieving effective management and control of the entire IoT environment.
[0003] Currently, the reading and display of business data by the business system on the edge intelligent gateway is usually limited to the data content of the local device, which causes the business data to be stored in one device. Once the amount of device data reaches a certain scale, the request and display of business data will take a long time, resulting in a poor user experience. Summary of the invention
[0004] The purpose of this application is to provide a data processing method, a business system and an electronic device, which can solve the problem that the business system of the existing edge intelligent gateway takes too long to request and display business data.
[0005] In order to achieve the above purpose, the embodiment of the present application is implemented as follows:
[0006] In a first aspect, a data processing method is provided, which is applied to a business system, wherein the business system includes an edge gateway central node providing user access and at least two edge gateway data nodes for decentralized storage of business data, the method comprising:
[0007] The edge gateway data node stores the business data generated by the business system; wherein the edge gateway data node is configured with and runs at least one computing task, and the received business data includes data required for the corresponding computing task to run;
[0008] The edge gateway central node responds to the user access operation and obtains business data from the edge gateway data node specified by the user based on the intranet penetration service;
[0009] The edge gateway central node displays the acquired business data on the screen.
[0010] In a second aspect, a business system is provided, comprising: an edge gateway central node providing user access and at least two edge gateway data nodes for decentralized storage of business data, wherein:
[0011] The edge gateway data node stores the business data generated by the business system;
[0012] The edge gateway central node responds to the user access operation and obtains business data from the edge gateway data node specified by the user based on the intranet penetration service;
[0013] The edge gateway central node displays the acquired business data on the screen.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor; and a memory configured to store computer-executable instructions, wherein the computer-executable instructions, when executed, cause the processor to execute the method described in the first aspect.
[0015] According to a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store computer-executable instructions, and the computer-executable instructions implement the method described in the first aspect when executed by a processor.
[0016] In the solution of this embodiment, the business system is provided with an edge gateway central node and at least two edge gateway data nodes. The edge gateway central node distributes the computing tasks required to run the business system to each edge gateway data node, thereby dispersing and storing the business data to each edge gateway data node with computing tasks as the granularity. Compared with the traditional solution of centralized storage on one device, the solution of this embodiment solves the problem of long business data request and display time caused by the amount of device data reaching a certain scale, and the operation of the business system does not rely on cloud support. The solution is suitable for scenarios without cloud resource conditions. In addition, the edge gateway central node can respond to user access operations, obtain business data from the edge gateway data node specified by the user based on the intranet penetration service, and display the obtained business data on the screen to meet the user's information query needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A flowchart of a data processing method according to an embodiment of the present application.
[0019] Figure 2 A schematic diagram of the application architecture of the data processing method according to an embodiment of the present application.
[0020] Figure 3 This is a schematic diagram of the data processing method of an embodiment of the present application based on the Cannal service synchronization content.
[0021] Figure 4 A schematic diagram of allocating algorithm tasks to the data processing method of an embodiment of the present application.
[0022] Figure 5 A schematic diagram of the structure of the business system of an embodiment of the present application.
[0023] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] As mentioned above, the current business system on the edge intelligent gateway usually reads and displays business data only on the local device data content, which causes the business data to be stored on one device. Once the amount of device data reaches a certain scale, it takes a long time to request and display business data, resulting in a poor user experience. In addition, the data display and statistical dimensions are also relatively simple, usually in list style, which is not as intuitive and vivid as charts, and is not easy for users to intuitively experience.
[0025] In response to the above problems, this application proposes a data processing solution. On the one hand, distributed storage of business data is realized through at least two edge gateway data nodes to solve the problem of long data request time caused by centralized storage of business data. On the other hand, intranet penetration access to edge gateway data nodes is realized through edge gateway central nodes to obtain business data, and business data is visualized through large-screen data display in the form of charts and other methods.
[0026] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0027] One embodiment of the present application proposes a data processing method, which is applied to a business system. The business system includes an edge gateway central node that provides user access and at least two edge gateway data nodes for decentralized storage of business data. Each edge gateway data node is connected to the edge gateway central node to form a star structure. Figure 1 It is a flowchart of the data processing method, including:
[0028] S102, the edge gateway data node stores the business data generated by the business system, wherein the edge gateway data node is configured and runs at least one computing task, and the received business data includes data required for running the corresponding computing task.
[0029] In this embodiment, the business system realizes the decentralized storage of business data through the edge gateway data node. Among them, the computing tasks configured by each edge gateway data node are also regarded as computing tasks that need to be run by the business system. Therefore, the business system is equivalent to distributing the computing tasks that need to be run to different edge gateway data nodes for operation, and using the computing tasks as the granularity, the business data is distributed to the corresponding edge gateway data nodes for decentralized storage.
[0030] In a feasible implementation, the edge gateway data node counts the business data stored locally and synchronizes the statistical results to the edge gateway central node; correspondingly, the edge gateway central node can generate a corresponding front-end data report based on the statistical results of the edge gateway data node received, and in response to the user access operation, the front-end data report of the edge gateway data node specified by the user is displayed on the screen. That is, the user can understand the approximate statistical results of each edge gateway data node for business data through the edge gateway central node.
[0031] S104, the edge gateway central node responds to the user access operation and obtains business data from the edge gateway data node specified by the user based on the intranet penetration service.
[0032] The network penetration service (frp) is an open source intranet penetration tool that can use machines in the intranet or behind the firewall to provide http or https services to the external network environment to improve the security of device data. In this embodiment, the edge gateway data node is installed with a frp client, and the frpc.ini file is configured to connect to the edge gateway central node, so that the edge gateway central node obtains business data from each edge gateway data node through frp.
[0033] S106, the edge gateway central node displays the acquired business data on the screen.
[0034] In this embodiment, the edge gateway center node builds a user interface based on the Vue service, and presents the acquired business data in the form of a chart library on the user interface based on the ECharts service.
[0035] In addition, on the basis of the above, in order to ensure that some key business data can be displayed to users more quickly. The edge gateway data node of this embodiment can also analyze the locally stored business data to determine the key business data; then, the edge gateway data node synchronizes the local key business data to the edge gateway central node (the edge gateway central node is equipped with a dedicated database for each edge gateway data node to store the corresponding key business data); correspondingly, the subsequent edge gateway central node can respond to the user's access operation without accessing the edge gateway data node, and realize fast screen display of the key business data of the edge gateway data node specified by the user.
[0036] In one feasible implementation, this embodiment can achieve synchronization of key business data based on the Canal service.
[0037] That is, the edge gateway data node of this embodiment is provided with a MySQL database, and the local key business data is stored in the MySQL database. After the edge gateway data node generates incremental data in the local MySQL database, it sends an update notification to the edge gateway central node; correspondingly, after receiving the update notification, the edge gateway central node simulates the MySQL interaction protocol based on the Canal service and sends a dump request to the edge gateway data node from which the update notification is sent; the edge gateway data node that receives the dump request sends a binary log file carrying local key business data to the edge gateway central node based on the MySQL interaction protocol to achieve synchronization.
[0038] In practical applications, the business system of this embodiment does not rely on cloud support, and the solution is particularly suitable for scenarios without cloud resource conditions. For example: a gas station with monitoring needs to use artificial intelligence computing tasks to identify smoking behavior, but because it is located in a remote area, it cannot use a cloud server to complete the computing task. To this end, the business system of this embodiment can be configured with a local area network nearby, including an edge gateway central node and more than two edge gateway data nodes. Among them, each edge gateway data node is responsible for different computing tasks (identifying smoking, illegal intrusion, etc.), and receives the monitoring data (business data) of the camera channel required for its computing task. That is, the monitoring data of all camera channels is shared and stored by each edge gateway data node at the granularity of the computing task. The edge gateway central node is a device with a screen, and it can actively obtain the recognition results of the computing task from each edge gateway data node for display. In addition, if there is a need, the edge gateway central node can retrieve specific monitoring data from the specified edge gateway data node for display under user operation.
[0039] Specifically, in the above practical application, the edge gateway central node of this embodiment obtains the monitoring algorithm task list and camera channel list of each edge gateway data node; the edge gateway central node selects a target monitoring algorithm task that has not been run from the monitoring algorithm task list of each edge gateway data node, and determines at least one target camera channel required to run the target monitoring algorithm task; the edge gateway central node selects the target edge gateway data node whose resources can support the running of the target monitoring algorithm task, and judges whether the encoding and decoding path of the target edge gateway data node can support at least one target camera channel according to the encoding and decoding path and camera channel list of the target edge gateway data node; if the encoding and decoding path of the target edge gateway data node can support at least one target camera channel, the edge gateway central node configures at least one target camera channel to the camera channel list of the edge gateway data node, and assigns the target monitoring algorithm task to the target edge gateway data node for operation. If the encoding and decoding path of the target edge gateway data node cannot support at least one target camera channel, the edge gateway central node re-selects another target edge gateway data node whose memory can support the running of the target monitoring algorithm task from all edge gateway data nodes, so as to try to assign the target monitoring algorithm task to the re-selected target edge gateway data node.
[0040] To sum up, in the method of this embodiment, the business system is provided with an edge gateway central node and at least two edge gateway data nodes. The edge gateway central node distributes the computing tasks required to run the business system to each edge gateway data node, so that the business data is dispersedly stored in each edge gateway data node with the computing task as the granularity. Compared with the traditional solution of centralized storage on one device, the method of this embodiment solves the problem of long business data request and display time caused by the amount of device data reaching a certain scale, and the operation of the business system does not rely on cloud support. The solution is suitable for scenarios without cloud resource conditions. In addition, the edge gateway central node can respond to user access operations, obtain business data from the edge gateway data node specified by the user based on the intranet penetration service, and display the obtained business data on the screen to meet the user's information query needs.
[0041] The method of this embodiment is described in detail below in conjunction with application scenarios.
[0042] This application scenario is used to display business data of the business system to users, especially the alarm data of the business system. Figure 2 As shown, the business system of this application scenario includes n edge gateway data nodes and 1 edge gateway center node.
[0043] The business data of the business system is stored in a decentralized manner by all edge gateway data nodes. Each edge gateway data node is equipped with a MySQL database and an frp client. The MySQL database is used to store alarm data (especially critical alarm data). The frp client is used to support intranet transparent access to the edge gateway center node.
[0044] The edge gateway center node adopts the framework structure of frp intranet transparent transmission service + Canal data synchronization server + business data large screen display. In addition, the edge gateway center node is equipped with a database for storing key alarm data that corresponds to the edge gateway data node one by one.
[0045] Canal is Alibaba's open source database synchronization framework. It combines MySQL as the data synchronization center node. Users can configure the MySQL information of the access terminal device through Canal for synchronization. Edge devices do not need to synchronize all data to the central node, but only need to synchronize key data according to business needs, which can speed up statistical queries.
[0046] The frp server is an open source intranet penetration tool that can use machines in the intranet or behind a firewall to provide http or https services to the external network environment to improve the data security of the device. Related service configuration is performed through the frps.ini file. The edge device can connect to the server by installing the frp client and configuring the frpc.ini file. frp can also be deployed as an intranet service according to needs.
[0047] The business data large screen display system is mainly designed based on business needs. Vue+ ECharts is selected as the front-end page framework and springboot is used as the back-end framework. Vue is used to build the user interface. Combined with ECharts, a JavaScript-based chart library, it can create a rich interactive data visualization user interface. The business mainly includes the following points:
[0048] 1) Provide configuration to access different edge gateway devices, including key contents such as device name, address, port, intranet mapping port, database connection address, port, user name, password, device SN, device authentication, etc., and notify Canal service and frp service to synchronize configuration contents.
[0049] 2) Provides large-screen page data statistics front-end capabilities, allowing users to simultaneously view data statistics results of multiple edge gateway devices connected to the server in graphical forms such as curve charts, bar charts, and lists.
[0050] 3) Provides large-screen page data statistics backend capabilities. The backend automatically and regularly counts key data and outputs them to the database table based on data characteristics and business needs, speeding up front-end query speed.
[0051] The overall processing flow of alarm data includes:
[0052] A1: The edge gateway data node stores the alarm data generated by the business system into the database (MySQL), such as intelligent algorithm alarms and IoT device alarms, and generates database log events.
[0053] A2: The Canal server automatically interacts with the MySQL service on the edge gateway through the dump protocol, and stores data according to the associated database configured on the server. It also notifies the business module with subscription data changes to perform logical processing and update page data in a timely manner.
[0054] A3: The edge gateway data node background starts a scheduled task to automatically perform statistical analysis on a large amount of business data in advance, cache the statistical results in the business statistics table, and synchronize them to the edge gateway center node.
[0055] A4: When users query business large-screen data through the page interface of the edge gateway center node, they directly read data from the statistical cache table, avoiding delays caused by data query and calculation, and improving user experience.
[0056] A5: The statistical results are assigned to large-screen page controls such as charts, and users view them.
[0057] A6: When users need to click to view alarm pictures and videos, due to the limited hard disk storage space of the edge gateway central node, they need to directly access the alarm data of edge devices scattered on different nodes. Therefore, they can directly access the intranet data link on the specified device through the frp port mapping configured by the business and http, thereby improving the security of device data.
[0058] In addition, reference Figure 3 As shown, the collection and processing flow of business data by the large screen data statistics business system is as follows:
[0059] B1: Divide the business data into different databases and tables, and extract the core key data content as the source of data synchronization. The key business data of different edge gateway data nodes are stored in the corresponding database name in the central node.
[0060] B2: The edge gateway data node task automatically collects statistical data according to the set statistical logic, caches it in the statistical table, and synchronizes it to the edge gateway central node.
[0061] B3: The edge gateway central node reads the statistical data of different device nodes and then performs new data processing and refinement analysis as the data source for the front-end data report.
[0062] B4: When timely data update feedback is required, the business backend that subscribes to Canal's data update service will be notified, allowing the front-end page to refresh and display the new data in a timely manner.
[0063] The business system of this application scenario can be a monitoring system. The service objects of the business system can be gas stations, banks, shopping malls and other places that need to be monitored.
[0064] Here we take a gas station as an example. Existing gas stations need computing power to achieve functions such as smoking recognition, illegal intrusion recognition, and vehicle recognition. However, based on the business system of the application scenario, only the edge gateway central node and several edge gateway data nodes need to be deployed locally. Each camera at the gas station can be understood as a camera channel, and each camera channel generates monitoring data for the corresponding camera monitoring area. In this application scenario, the edge gateway central node can deploy monitoring algorithm tasks such as smoking recognition and illegal intrusion recognition, as well as the camera channels required for each monitoring algorithm task, on the edge gateway data node. The edge gateway data node is responsible for receiving the monitoring data of the corresponding camera channel and running the monitoring algorithm task. For example, if a monitoring algorithm task requires the monitoring data of camera channel 1 and camera channel 2, the edge gateway data node responsible for running the monitoring algorithm task also needs to receive the monitoring data of camera channel 1 and camera channel 2.
[0065] Specifically, when configuring a target monitoring algorithm task, the edge gateway central node needs to allocate the target monitoring algorithm task based on the memory overhead of the target monitoring algorithm task and the required camera channels, combined with the remaining memory resources and codec paths of the edge gateway data node. That is, the remaining memory resources of the edge gateway data node that obtains the target monitoring algorithm task must be able to support the memory overhead of the target monitoring algorithm task, and the codec paths must also be able to support the camera channels required by the target monitoring algorithm task.
[0066] In actual applications, each edge gateway data node can be configured with a monitoring algorithm task list and a camera channel list. Among them, the monitoring algorithm task list contains the monitoring algorithm tasks currently assigned to the edge gateway data node, and the edge gateway data node is responsible for running all monitoring algorithm tasks in its monitoring algorithm task list; the camera channel list contains the camera channels currently configured by the edge gateway data node, and the edge gateway data node is responsible for receiving the monitoring data of all camera channels in the camera channel list. For the edge gateway central node, it is further necessary to dynamically monitor the running status of the monitoring algorithm tasks of the edge gateway data node in real time, and to promptly reallocate the target monitoring algorithm tasks that cannot be run. Among them, the reallocation process is as follows Figure 4 As shown, including:
[0067] C1: The edge gateway central node obtains the monitoring algorithm task list and camera channel list of each edge gateway data node.
[0068] C2: The edge gateway central node selects a target monitoring algorithm task that has not yet been run from the monitoring algorithm task list of each edge gateway data node, and determines at least one target camera channel required to run the target monitoring algorithm task.
[0069] C3: The edge gateway central node selects the target edge gateway data node whose memory can support running the target monitoring algorithm task.
[0070] In a feasible implementation, the edge gateway central node can sort all monitoring algorithm tasks that have not yet been run according to the size of memory overhead, and sort all edge gateway data nodes according to the size of remaining memory.
[0071] If the target monitoring algorithm task is the monitoring algorithm task with the largest memory overhead that has not yet been run, then from all edge gateway data nodes whose remaining memory can support the running of the target monitoring algorithm task, the one with the largest remaining memory is selected as the target edge gateway data node.
[0072] If the target monitoring algorithm task is the monitoring algorithm task with the smallest memory overhead that has not yet been run, then from all edge gateway data nodes whose remaining memory can support running the target monitoring algorithm task, the one with the smallest remaining memory is selected as the target edge gateway data node.
[0073] C4: The edge gateway central node determines whether the codec number of the target edge gateway data node can support at least one target camera channel based on the codec number of the target edge gateway data node and the camera channel list.
[0074] For example, the target edge gateway data node's codec path supports four camera channels, and its current camera channel list has configured camera channel 1 and camera channel 3, then it can also support the configuration of two other camera channels.
[0075] Assuming that the target camera channels required by the target monitoring algorithm task include: camera channel 1, camera channel 2, camera channel 4 and camera channel 5 (the monitoring data of these camera channels are required to complete the target monitoring algorithm task), the target edge gateway data node needs to additionally configure camera channel 2, camera channel 4 and camera channel 5 in its camera channel list to support the target monitoring algorithm task, but its codec route can only be configured with two more camera channels, which means that the target camera channels required by the target monitoring algorithm task are not supported.
[0076] C6: If the encoding and decoding paths of the target edge gateway data node can support at least one target camera channel, the edge gateway central node configures at least one target camera channel to the camera channel list of the edge gateway data node, and assigns the target monitoring algorithm task to the target edge gateway data node for operation.
[0077] C7: If the encoding and decoding path of the target edge gateway data node cannot support at least one target camera channel, the edge gateway central node can re-select another target edge gateway data node whose memory can support the running of the target monitoring algorithm task from all edge gateway data nodes in accordance with step C3, and try to assign the target monitoring algorithm task to the re-selected target edge gateway data node.
[0078] In addition, corresponding to Figure 1 Another embodiment of the present application further provides a business system. Figure 5 Schematic diagram of the structure of the business system 500, including: the business system includes an edge gateway central node 510 providing user access and at least two edge gateway data nodes 520 for distributing and storing business data. Each edge gateway data node 520 is connected to the edge gateway central node 510 to form a star structure.
[0079] The edge gateway data node 520 stores the business data generated by the business system, wherein the edge gateway data node is configured and runs at least one computing task, and the received business data includes data required for the corresponding computing task to run;
[0080] The edge gateway central node 510 responds to the user access operation and obtains business data from the edge gateway data node 520 specified by the user based on the intranet penetration service.
[0081] The edge gateway central node 510 displays the acquired business data on the screen.
[0082] The business system of this embodiment is provided with an edge gateway central node and at least two edge gateway data nodes. The edge gateway central node distributes the computing tasks required to run the business system to each edge gateway data node, so that the business data is dispersedly stored in each edge gateway data node with computing tasks as the granularity. Compared with the traditional solution of centralized storage on one device, the business system of this embodiment solves the problem of long business data request and display time caused by the amount of device data reaching a certain scale, and does not rely on cloud support, and is suitable for application in scenarios without cloud resource conditions. In addition, the edge gateway central node can respond to user access operations, obtain business data from the edge gateway data node specified by the user based on the intranet penetration service, and display the obtained business data on the screen to meet the user's information query needs.
[0083] Optionally, the edge gateway data node performs statistics on locally stored business data and synchronizes the statistical results to the edge gateway central node; the edge gateway central node generates corresponding front-end data reports based on the statistical results received from the edge gateway data node; the edge gateway central node responds to user access operations and displays the front-end data reports of the edge gateway data nodes specified by the user on the screen.
[0084] Optionally, the edge gateway data node analyzes the locally stored business data to determine the key business data; the edge gateway data node synchronizes the local key business data to the edge gateway central node; the edge gateway central node responds to the user access operation and displays the key business data of the edge gateway data node specified by the user on the screen.
[0085] Optionally, the edge gateway data node is provided with a MySQL database, and the local key business data is stored in the MySQL database; the edge gateway data node synchronizes the key business data to the edge gateway central node, including: the edge gateway central node simulates the MySQL interaction protocol based on the Canal service, and sends a dump request to the edge gateway data node; the edge gateway data node that receives the dump request sends a binary log file carrying local key business data to the edge gateway central node based on the MySQL interaction protocol.
[0086] Optionally, after the edge gateway data node generates incremental data in the local MySQL database, the edge gateway central node sends an update notification to the edge gateway central node; the dump request is sent by the edge gateway central node in response to the update notification.
[0087] Optionally, the edge gateway central node is provided with an exclusive database for each edge gateway data node to store corresponding key business data.
[0088] Optionally, the edge gateway central node displays the acquired business data on the screen, including: the edge gateway central node builds a user interface based on the Vue service, and presents the acquired business data in the form of a chart library on the user interface based on the ECharts service.
[0089] Optionally, the business data includes monitoring data; the edge gateway central node is also used to: obtain the monitoring algorithm task list and camera channel list of each of the edge gateway data nodes; select a target monitoring algorithm task that has not yet been run from the monitoring algorithm task list of each of the edge gateway data nodes, and determine at least one target camera channel required to run the target monitoring algorithm task; select a target edge gateway data node whose memory can support the running of the target monitoring algorithm task, and determine whether the codec path of the target edge gateway data node can support the at least one target camera channel based on the codec path and camera channel list of the target edge gateway data node. target camera channel; if the encoding and decoding path of the target edge gateway data node can support at least one target camera channel, then configure at least one target camera channel to the camera channel list of the edge gateway data node, and assign the target monitoring algorithm task to the target edge gateway data node for operation; if the encoding and decoding path of the target edge gateway data node cannot support at least one target camera channel, then reselect another target edge gateway data node whose memory can support the operation of the target monitoring algorithm task from all the edge gateway data nodes, and try to assign the target monitoring algorithm task to the reselected target edge gateway data node.
[0090] It should be noted that the business system of this embodiment can be used as Figure 1 The execution subject of the method shown can thus realize Figure 1 The steps and functions in the method shown.
[0091] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 6 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0092] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0093] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0094] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming the above business system at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0095] The business data generated by the business system is stored through the edge gateway data node.
[0096] The edge gateway central node responds to the user access operation to obtain business data from the edge gateway data node specified by the user based on the intranet penetration service.
[0097] The acquired business data is displayed on the screen through the edge gateway central node.
[0098] Based on the electronic device of this embodiment, it can be known that the business system is provided with an edge gateway central node and at least two edge gateway data nodes that provide user access. The edge gateway central node distributes the computing tasks required to run the business system to each edge gateway data node, so that the business data is dispersedly stored in each edge gateway data node with computing tasks as the granularity. Compared with the traditional solution of centralized storage on one device, the solution of this embodiment solves the problem of long business data request and display time caused by the amount of device data reaching a certain scale, and the operation of the business system does not rely on cloud support. The solution is suitable for scenarios without cloud resource conditions. In addition, the edge gateway central node can respond to user access operations, obtain business data from the edge gateway data node specified by the user based on the intranet penetration service, and display the obtained business data on the screen to meet the user's information query needs.
[0099] The above application Figure 1 The method disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in one or more embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with one or more embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0100] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0101] The present application also provides a computer program product, which includes a computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the following operations:
[0102] The business data generated by the business system is stored through the edge gateway data node.
[0103] The edge gateway central node responds to the user access operation to obtain business data from the edge gateway data node specified by the user based on the intranet penetration service.
[0104] The acquired business data is displayed on the screen through the edge gateway central node.
[0105] In short, the above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of the present application shall be included in the protection scope of one or more embodiments of the present application.
[0106] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0107] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0108] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0109] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A data processing method, applied to a business system, characterized in that: The business system includes an edge gateway central node providing user access and at least two edge gateway data nodes for decentralized storage of business data, and the method includes: The edge gateway data node stores the business data generated by the business system; wherein the edge gateway data node is configured with and runs at least one computing task, and the received business data includes data required for the corresponding computing task to run; The edge gateway central node responds to the user access operation and obtains business data from the edge gateway data node specified by the user based on the intranet penetration service; The edge gateway central node displays the acquired business data on the screen; Among them, the business data includes monitoring data, and the computing tasks include monitoring algorithm tasks; the edge gateway central node obtains the monitoring algorithm task list and camera channel list of each edge gateway data node; the edge gateway central node selects a target monitoring algorithm task that has not yet been run from the monitoring algorithm task list of each edge gateway data node, and determines at least one target camera channel required to run the target monitoring algorithm task; the edge gateway central node selects a target edge gateway data node whose resources can support the running of the target monitoring algorithm task, and judges whether the encoding and decoding paths of the target edge gateway data node can support the at least one target camera channel based on the encoding and decoding paths and camera channel list of the target edge gateway data node; if the encoding and decoding paths of the target edge gateway data node can support the at least one target camera channel, the edge gateway central node configures at least one target camera channel to the camera channel list of the edge gateway data node, and assigns the target monitoring algorithm task to the target edge gateway data node for operation.
2. The method according to claim 1, characterized in that Also includes: The edge gateway data node counts the business data stored locally and synchronizes the statistical results to the edge gateway central node; The edge gateway central node generates a corresponding front-end data report based on the statistical results of the edge gateway data nodes received; The edge gateway central node responds to the user access operation and displays the front-end data report of the edge gateway data node specified by the user on the screen.
3. The method according to claim 1, characterized in that Also includes: The edge gateway data node analyzes the locally stored business data to determine key business data, where the key business data includes the calculation result of the corresponding computing task; The edge gateway data node synchronizes local key business data to the edge gateway central node; The edge gateway central node responds to the user access operation and displays the key business data of the edge gateway data node specified by the user on the screen.
4. The method according to claim 3, characterized in that The edge gateway data node is provided with a MySQL database, and stores the key business data of the local area into the MySQL database; The edge gateway data node synchronizes the key business data to the edge gateway central node, including: The edge gateway central node simulates the MySQL interaction protocol based on the Canal service and sends a dump request to the edge gateway data node; The edge gateway data node that receives the dump request sends a binary log file carrying local key business data to the edge gateway central node based on the MySQL interaction protocol.
5. The method according to claim 4, characterized in that After the edge gateway data node generates incremental data in the local MySQL database, the edge gateway data node sends an update notification to the edge gateway central node; the dump request is sent by the edge gateway central node in response to the update notification.
6. The method according to claim 1, Each of the edge gateway data nodes in the business system is connected to the edge gateway central node to form a star structure.
7. The method according to claim 1, characterized in that The edge gateway central node displays the acquired business data on the screen, including: The edge gateway center node builds a user interface based on the Vue service, and presents the acquired business data in the form of a chart library on the user interface based on the ECharts service.
8. The method according to claim 1, characterized in that Also includes: If the encoding and decoding path of the target edge gateway data node cannot support at least one target camera channel, the edge gateway central node re-selects another target edge gateway data node from all the edge gateway data nodes whose memory can support the running of the target monitoring algorithm task, and attempts to assign the target monitoring algorithm task to the re-selected target edge gateway data node.
9. A business system, characterized in that: include: An edge gateway central node providing user access and at least two edge gateway data nodes for decentralized storage of business data, wherein: The edge gateway data node stores the business data generated by the business system; wherein the edge gateway data node is configured with and runs at least one computing task, and the received business data includes data required for the corresponding computing task to run; The edge gateway central node responds to the user access operation and obtains business data from the edge gateway data node specified by the user based on the intranet penetration service; The edge gateway central node displays the acquired business data on the screen; Among them, the business data includes monitoring data, and the computing tasks include monitoring algorithm tasks; the edge gateway central node obtains the monitoring algorithm task list and camera channel list of each edge gateway data node; the edge gateway central node selects a target monitoring algorithm task that has not yet been run from the monitoring algorithm task list of each edge gateway data node, and determines at least one target camera channel required to run the target monitoring algorithm task; the edge gateway central node selects a target edge gateway data node whose resources can support the running of the target monitoring algorithm task, and judges whether the encoding and decoding paths of the target edge gateway data node can support the at least one target camera channel based on the encoding and decoding paths and camera channel list of the target edge gateway data node; if the encoding and decoding paths of the target edge gateway data node can support the at least one target camera channel, the edge gateway central node configures at least one target camera channel to the camera channel list of the edge gateway data node, and assigns the target monitoring algorithm task to the target edge gateway data node for operation.
10. An electronic device comprising: processor; and a memory arranged to store computer executable instructions which, when executed, cause the processor to perform a method as claimed in any one of claims 1 to 8.
11. A computer program product, comprising a computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to execute the method according to any one of claims 1 to 8.
