Data processing method, system and equipment of industrial Internet of Things gateway
By obtaining and sorting data priority information in the industrial Internet of Things gateway and processing burst information and secondary data packets, the problem that the gateway cannot process early warning information in a timely manner when full load is completed is solved, and the prompt processing of burst information is realized. Stable operation of industrial operations.
Patent Information
- Application Number
- CN202411039047.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-29
AI Technical Summary
The industrial Internet of Things gateway cannot process early warning information in a timely manner when operating at full load, affecting the industrial operation process.
By obtaining the priority information of the data, grouping and sorting data packets, marking the data packets with low priority as secondary data packets, deleting the secondary data packets to process burst information, reordering the remaining data packets, and ensuring that burst information is processed in a timely manner , and reprocess secondary packets when the network conditions are met.
When the gateway is running at full capacity, it can process burst information in a timely manner to ensure the continuity of industrial operation processes and avoid data loss.
Smart Images

Figure CN119052179A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of industrial Internet of Things data processing, and in particular to a data processing method, system and device for an industrial Internet of Things gateway. Background Art
[0002] With the in-depth development of industrial automation, industrial Internet of Things technology has gradually become a key technology to promote the intelligent, networked and digital upgrade of the industrial field. As a bridge connecting industrial equipment and cloud platforms, the data processing capability of the industrial Internet of Things gateway directly determines the performance and efficiency of the entire industrial Internet of Things system.
[0003] A gateway is a computer system or device that performs the important task of conversion. It is used between two systems with different communication protocols, data formats or languages, or even completely different architectures. The gateway is a translator. In the Industrial Internet of Things, the core task of the Industrial Internet of Things gateway is to be responsible for data collection, transmission, storage and processing. In terms of data collection, the Industrial Internet of Things gateway needs to connect various industrial devices, such as PLCs, sensors, instruments, etc., and collect the data generated by these devices in real time.
[0004] However, in the current industrial field, the gateway adopts an indiscriminate treatment when processing data. When equipment fails and issues warning information, when the gateway is running at full capacity, the warning information cannot be processed by the gateway in time, affecting the progress of industrial operations. Summary of the invention
[0005] The main purpose of this application is to provide a data processing method, system and device for an industrial Internet of Things gateway, aiming to solve the technical problem in the prior art that the gateway adopts indiscriminate treatment when processing data, and when an equipment failure or other sudden situation occurs and an early warning message is issued, when the gateway is running at full capacity, the early warning message cannot be processed by the gateway in time, affecting the progress of industrial operations.
[0006] To achieve the above objectives, in a first aspect, the present application provides a data processing method for an industrial Internet of Things gateway, comprising the following steps:
[0007] Obtain the original data set and obtain the data priority information in the database;
[0008] According to the data priority information, the original data set is grouped to obtain a plurality of data packets, and the plurality of data packets are sorted from high to low according to the priority to obtain a first sorting result, so that the gateway processes the data according to the first sorting result;
[0009] Based on the first sorting result, marking the data packets with a priority lower than a preset level as secondary data packets;
[0010] When the gateway receives the burst information data packet, the secondary data packet is deleted, and the remaining data packets and the burst information data packet are reordered according to the priorities of the remaining data packets and the priorities of the burst information data packets to obtain a second ordering result, so that the gateway processes the data according to the second ordering result;
[0011] When the burst information data packet is processed, an action of deleting the secondary data packet is sent to the server so that the gateway can reacquire and process the secondary data packet.
[0012] Optionally, the step of grouping the original data set according to the data priority information to obtain a plurality of data packets includes:
[0013] Get data priority information in the database;
[0014] The data in the original data set are marked according to the data priority information, the data with the same mark are put into the same priority data packet, and the same priority data packets are marked.
[0015] Optionally, the step of placing data with the same tag into data packets with the same priority level includes:
[0016] Get the attribute information of the data in the database;
[0017] Confirming the corresponding capacity information in the original data set according to the data attribute information, and calculating the total capacity information of the data with the same tag;
[0018] If the total capacity information of the data with the same tag is greater than the preset threshold of the data packet;
[0019] The data with the same tag are sequentially placed into the data packet until the preset threshold is reached, and the remaining data with the same tag are placed into another data packet with the same priority, and the above operation is repeated until all the data with the same tag are allocated.
[0020] Optionally, when the gateway receives a burst information data packet, the steps include:
[0021] According to the data priority information of the database, the burst information data in the burst information data packet is sorted in descending order of priority.
[0022] Optionally, the step of marking a data packet with a priority lower than a preset level as a secondary data packet includes:
[0023] Get network condition information;
[0024] The preset ratio is determined according to the network condition information so that data packets with higher priority can be processed in time.
[0025] Optionally, when the gateway receives a burst information data packet, the step of deleting the secondary data packet includes:
[0026] The secondary data packet information is temporarily stored in a local cache.
[0027] Optionally, the step of reordering the remaining data packets and the burst information data packets according to the priorities of the remaining data packets and the priorities of the burst information data packets comprises:
[0028] Get data priority information in the database;
[0029] The burst information data in the burst information data packet is matched according to the data priority information to determine the priority of the burst information data packet.
[0030] Optionally, after the burst information data packet is processed, the step of sending an action of deleting the secondary data packet to the server so that the gateway can reacquire and process the secondary data packet includes:
[0031] Get network condition information;
[0032] If the network condition information does not meet the preset condition, the deleted secondary data packet information is sent to the server with a delay until the network condition meets the preset condition.
[0033] In a second aspect, the present application provides a data processing system for an industrial Internet of Things gateway, comprising:
[0034] A data acquisition module is configured to acquire an original data set and obtain data priority information in a database;
[0035] A data processing module is configured to group the original data set according to the data priority information to obtain a plurality of data packets, and sort the plurality of data packets from high to low according to the priority to obtain a first sorting result, so that the gateway processes the data according to the first sorting result;
[0036] a data packet classification module, configured to mark data packets with a priority lower than a preset level as secondary data packets based on the first sorting result;
[0037] a burst information processing module configured to delete the secondary data packet when the gateway receives the burst information data packet, and reorder the remaining data packets and the burst information data packet according to the priorities of the remaining data packets and the priority of the burst information data packet to obtain a second ordering result, so that the gateway processes the data according to the second ordering result;
[0038] The secondary data packet processing module is configured to send an action of deleting the secondary data packet to the server after the burst information data packet is processed so that the gateway can re-acquire and process the secondary data packet.
[0039] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above method.
[0040] Beneficial effects that this application can achieve:
[0041] The data processing method, system and device of an industrial Internet of Things gateway proposed in the embodiment of the present application include: obtaining an original data set and obtaining data priority information in a database; grouping the original data set according to the data priority information to obtain multiple data packets, and sorting the multiple data packets from high to low according to the priority to obtain a first sorting result, so that the gateway processes the data according to the first sorting result; based on the first sorting result, marking the data packets with a priority lower than the preset level as secondary data packets; when the gateway receives a burst information data packet, deleting the secondary data packet, and re-sorting the remaining data packets and the burst information data packet according to the priority of the remaining data packets and the priority of the burst information data packet to obtain a second sorting result, so that the gateway processes the data according to the second sorting result; after the burst information data packet is processed, sending the action of deleting the secondary data packet to the server so that the gateway re-acquires and processes the secondary data packet. At least the technical problem that the gateway in the prior art adopts indiscriminate treatment when processing data, when the equipment fails and sends out warning information in emergencies, when the gateway is running at full load, the warning information cannot be processed by the gateway in time, affecting the industrial operation process. Even when the gateway is running at full capacity, burst information data can be processed in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flowchart of a data processing method according to an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the framework of the sensor network platform system involved in this application;
[0044] Figure 3 This is a schematic diagram of the framework of the Internet of Things system involved in this application;
[0045] Figure 4 This is a schematic diagram of the framework of the service platform involved in this application.
[0046] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0049] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0050] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0051] Example 1
[0052] Reference Figure 1 The first embodiment of the present application provides a data processing method for an industrial Internet of Things gateway, comprising the following steps:
[0053] S1. Obtain the original data set and obtain the data priority information in the database.
[0054] Optionally, the original data set obtained in the gateway may be data sent by an upper-level device or a lower-level device. The upper-level device refers to a device such as a remote control center, a computer, and a mobile terminal that can send control instructions and other information to the gateway, while the lower-level device refers to a device that receives relevant instructions or feeds back relevant information through the gateway.
[0055] S2. According to the data priority information, the original data set is grouped to obtain multiple data packets, and the multiple data packets are sorted from high to low according to priority to obtain a first sorting result, so that the gateway processes the data according to the first sorting result.
[0056] Optionally, the data priority definition of the database can refer to the importance, urgency or business logic of the data. The data with the same priority level is divided into the same data packet. When there is too much data with the same priority level, multiple data packets with the same priority level can be set to make the size of the data packet moderate to avoid transmission or processing problems caused by data packets that are too large or too small.
[0057] S3. Based on the first sorting result, mark the data packets whose priorities are lower than a preset level as secondary data packets.
[0058] Optionally, after sorting, a preset proportion of the data packets are data packets with lower priorities.
[0059] S4. When the gateway receives a burst information data packet, it deletes the secondary data packet and reorders the remaining data packets and the burst information data packet according to the priorities of the remaining data packets and the priorities of the burst information data packets to obtain a second sorting result, so that the gateway processes the data according to the second sorting result.
[0060] Optionally, burst information data packets include data on abnormal equipment operation, abnormal equipment pressure, abnormal ambient temperature, abnormal product yield rate, and expedited order data. Deleting secondary data packets is to reserve sufficient channels for the burst information data packets to be received, and when the computing power is sufficient, the deleted data is re-uploaded and processed, and the remaining data packets and burst information data packets are re-sorted according to priority, and data with better priority are processed first, so that the burst information data packets can be processed in time, and the timeliness of the burst information data packets is ensured. By re-sorting the remaining data packets and burst information data packets, a second sorting result is obtained from high to low priority, so as to give priority to data with higher priority. When the gateway receives non-burst information data, it processes the received data according to the preset processing strategy, such as processing the non-burst information data in the order of receipt.
[0061] S5. After the burst information data packet is processed, an action of deleting the secondary data packet is sent to the server so that the gateway can reacquire and process the secondary data packet.
[0062] Optionally, after the burst information data packet is processed, the operation of deleting the secondary data packet is fed back to the upper device or the lower device, reminding the upper device or the lower device to resend the data identical to the deleted secondary data packet to the gateway, and the secondary data packet is processed by the gateway to avoid data missing.
[0063] Example 2
[0064] Reference Figure 1 Based on Example 1, this embodiment provides a data processing method for an industrial Internet of Things gateway, comprising the following steps:
[0065] S1. Obtain the original data set and obtain the data priority information in the database.
[0066] S2. According to the data priority information, the original data set is grouped to obtain multiple data packets, and the multiple data packets are sorted from high to low according to priority to obtain a first sorting result, so that the gateway processes the data according to the first sorting result.
[0067] Optionally, the step of grouping the original data set according to the data priority information to obtain a plurality of data packets includes:
[0068] Get data priority information in the database;
[0069] The data in the original data set are marked according to the data priority information, the data with the same mark are put into the same priority data packet, and the data packet is marked.
[0070] For ease of understanding, if the priority information in the database is displayed in the form of "T1, T2, T3, T4...", and its priority gradually decreases, then a dependent T mark is given when marking the data. Data with the same mark is placed in the same data packet, for example, all data marked as T1 is placed in the data packet of A1, all data marked as T2 is placed in the data packet of A2, and so on. The data packet has a priority corresponding to the data.
[0071] Optionally, the step of placing data with the same tag into data packets with the same priority level includes:
[0072] Get the attribute information of the data in the database;
[0073] Confirm the corresponding capacity information in the original data set according to the data attribute information, and calculate the total capacity information of the data with the same label;
[0074] If the total capacity information of the data with the same tag is greater than the preset threshold of the data packet;
[0075] The data with the same tag are sequentially placed into the data packet until the preset threshold is reached, and the remaining data with the same tag are placed into another data packet with the same priority, and the above operation is repeated until all the data with the same tag are allocated.
[0076] Optionally, the capacity information of a single data in the original data set is confirmed based on the attribute information of the data. For ease of understanding, a quantitative method is used as an example. Assuming that the preset threshold of the data packet is "100", if the number of data at the T1 priority is "30" and the capacity of a single data is "1", then the total capacity of the data with the same priority is "30", which is less than the preset threshold of the data packet "100", then all the data with the priority of T1 can be placed in one A1 data packet. If the number of data at the T2 priority is "50" and the capacity of a single data is "3", then the total capacity of the data with the same priority is "150", which is greater than the preset threshold of the data packet "100", then two A1 data packets can be created. At this time, the first "33" data packets can be placed in one A1 data packet and the other "17" data packets can be placed in another A1 data packet according to the time sequence of the gateway receiving the data. It can also be further optimized by dividing the "50" data packets into two parts, and then placing the two parts into one A1 data packet respectively.
[0077] S3. Based on the first sorting result, mark the data packets whose priorities are lower than a preset level as secondary data packets.
[0078] Optionally, the preset ratio may be 3%-10%, such as 3%, 4%, 5%, 6%, 7%, 8%, 9% or 10%. Taking a quantitative approach as an example, assuming that there are 100 data packets after the data packets are sorted according to the priority, and the preset ratio is 7%, then the 7 sorted data packets will be used as secondary data packets.
[0079] Optionally, based on the first sorting result, the step of marking a data packet with a priority lower than a preset level as a secondary data packet includes:
[0080] Get network condition information;
[0081] According to the network condition information, the preset ratio is determined so that data packets with higher priority can be processed in time.
[0082] Optionally, the network condition information refers to the network traffic condition. If the network is congested, the preset ratio is increased, for example, from 3% to 9%, so that sufficient network channels are left when processing burst information data packets, so that higher priority data can be processed in time.
[0083] S4. When the gateway receives a burst information data packet, it deletes the secondary data packet, and reorders the remaining data packets and the burst information data packet according to the priorities of the remaining data packets and the burst information data packet to obtain a second sorting result, so that the gateway processes the data according to the second sorting result.
[0084] Optionally, when the gateway receives a burst information data packet, the steps include:
[0085] According to the data priority information of the database, the burst information data in the burst information data packet is sorted in descending order of priority.
[0086] Optionally, the emergency information data may refer to equipment failure, lack of raw materials, oversaturation of material accumulation, overheating of tool temperature, abnormal noise in the environment, abnormal odor in the environment, etc.
[0087] Optionally, when the upper or lower device obtains the burst information data, it can obtain the priority of the corresponding burst information data according to the data priority in the database, and send the burst information data with higher priority to the gateway. For the burst information data with lower priority, it can be marked first, and if the burst information continues to appear within a preset time, the burst information data with lower priority will be sent to the gateway for processing.
[0088] Optionally, the step of reordering the remaining data packets and the burst information data packets according to the priorities of the remaining data packets and the burst information data packets includes:
[0089] Get data priority information in the database;
[0090] The burst information data in the burst information data packet is matched according to the data priority information to determine the priority of the burst information data packet.
[0091] When there are multiple data in the burst information data packet, by prioritizing the data in the burst information data packet, when processing the burst information data packet, higher priority data can be processed more accurately, thereby improving the timeliness of processing the highest priority data.
[0092] S5. After the burst information data packet is processed, an action of deleting the secondary data packet is sent to the server so that the gateway can reacquire and process the secondary data packet.
[0093] Optionally, when the gateway receives a burst information data packet, the step of deleting the secondary data packet includes:
[0094] Temporarily store secondary packet information in a local cache.
[0095] By temporarily storing the secondary data packet information in the local cache, when the burst information data is processed, the locally cached secondary data packet information can be promptly sent to the gateway for processing again. After the gateway obtains the locally cached secondary data information, the secondary data packet information cached by the main body can be deleted.
[0096] Optionally, after the burst information data packet is processed, the step of sending the deleted secondary data packet information to the server so that the gateway can reacquire and process the secondary data packet includes:
[0097] Get network condition information;
[0098] If the network condition information does not meet the preset condition, the deleted secondary data packet information is sent to the server with a delay until the network condition meets the preset condition.
[0099] Optionally, the network condition information is a network congestion situation. The network condition information not satisfying a preset condition means that the network is congested. If the secondary data packet is processed at this time, it may affect the processing of data packets with higher priority.
[0100] Example 3
[0101] Based on Example 1, this embodiment provides a data processing system for an industrial Internet of Things gateway, including:
[0102] A data acquisition module is configured to acquire an original data set and obtain data priority information in a database;
[0103] A data processing module is configured to group the original data set according to the data priority information to obtain a plurality of data packets, and sort the plurality of data packets from high to low according to the priority to obtain a first sorting result, so that the gateway processes the data according to the first sorting result;
[0104] a data packet classification module, configured to mark data packets with a priority lower than a preset level as secondary data packets based on the first sorting result;
[0105] a burst information processing module configured to delete the secondary data packet when the gateway receives the burst information data packet, and reorder the remaining data packets and the burst information data packet according to the priorities of the remaining data packets and the priority of the burst information data packet to obtain a second ordering result, so that the gateway processes the data according to the second ordering result;
[0106] The secondary data packet processing module is configured to send an action of deleting the secondary data packet to the server after the burst information data packet is processed so that the gateway can re-acquire and process the secondary data packet.
[0107] The relevant explanations and examples of each module in the system of this embodiment can refer to the methods of the aforementioned embodiments, and will not be repeated here.
[0108] Example 4
[0109] An industrial Internet of Things system, comprising: a sensor network platform, a management platform and a production object platform connected to the sensor network platform, wherein the sensor network platform comprises a communication management module, a main database communicating with the communication management module, at least one sub-database communicating with the main database, and a sensor network sub-platform matched one-to-one with the sub-database;
[0110] The sensor network platform is configured as follows:
[0111] Obtain the original data set and obtain the data priority information in the database;
[0112] According to the data priority information, the original data set is grouped to obtain a plurality of data packets, and the plurality of data packets are sorted from high to low according to the priority to obtain a first sorting result, so that the gateway processes the data according to the first sorting result;
[0113] Based on the first sorting result, marking the data packets with a priority lower than a preset level as secondary data packets;
[0114] When the gateway receives the burst information data packet, the secondary data packet is deleted, and the remaining data packets and the burst information data packet are reordered according to the priorities of the remaining data packets and the priorities of the burst information data packets to obtain a second ordering result, so that the gateway processes the data according to the second ordering result;
[0115] When the burst information data packet is processed, an action of deleting the secondary data packet is sent to the server so that the gateway can reacquire and process the secondary data packet.
[0116] The management platform is configured as:
[0117] Receive and send the burst information data processed by the gateway to the sensor network platform.
[0118] Specifically, Figure 2 As shown, an industrial Internet of Things system includes: a sensor network platform and a management platform and a production object platform connected to the sensor network platform, the sensor network platform includes a communication management module, a main database communicating with the communication management module, at least one sub-database communicating with the main database, and a sensor network sub-platform matched one-to-one with the sub-database;
[0119] Example 5
[0120] like Figure 3 As shown, this embodiment is based on Embodiment 4, a data processing system for an industrial Internet of Things gateway, including a user platform, a service platform, a management platform, a sensor network platform and a production object platform that establish communication in sequence;
[0121] The user platform is configured to provide front-end service functions to users; users obtain the required perceived service information through the user platform, process the perceived service information, and convert it into user perceived information; users analyze the user perceived information and make corresponding decisions based on their own wishes, and convert the user perceived information into user control information through the corresponding information system and send it to the service platform, thereby expressing the user's corresponding service demand intention.
[0122] The physical entities of the user platform include various user terminals, such as mobile phones, computers, dedicated terminals, etc., which realize user-side services through integration with user information system software.
[0123] The service platform is configured as an API server or other server used to establish communication between the management platform and the user platform to implement corresponding functions; the physical entity of the service platform includes various servers.
[0124] The management platform is configured to perform at least one of equipment operation status monitoring management, data monitoring management, equipment parameter management, and life cycle management; the management platform is an operational coordination platform for the Internet of Things, which may include various management sub-platforms, and different management sub-platforms perform different management services; the physical entities of the management platform include various servers.
[0125] The sensor network platform is configured to perform at least one of network management, command management, device status management, data protocol management, data analysis, data classification, data transmission monitoring, and data transmission security management. The sensor network platform provides data communication, analysis, identification, classification, and other functions, avoiding the direct aggregation of data from various object platforms on the management platform, resulting in redundant data on the management platform and low data processing efficiency; the physical entities of the object platform include various gateways, edge computing devices, etc.
[0126] The production object platform is configured to carry out specific production work such as production control, detection, and measurement; the physical entities of the production objects include various production equipment, sensors, etc.
[0127] Optionally, the service platform includes a service master database communicating with the management platform, and at least one service sub-platform communicating with the service platform master database and the user platform, and the service sub-platform includes a service sub-database;
[0128] Optionally, each service sub-platform corresponds to an API function or API server;
[0129] Specifically, Figure 4 As shown, the service platform includes a service master database communicating with the management platform, n service sub-platforms communicating with the service platform master database and the user platform, and each service sub-platform includes a service sub-database.
[0130] Example 6
[0131] This embodiment provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement any of the above methods.
[0132] Optionally, the electronic device may include: a processor, such as a central processing unit (CPU), a communication bus, a user interface, a network interface, and a memory. Among them, the communication bus is used to realize the connection and communication between these components. The user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory may optionally be a storage device independent of the aforementioned processor, and the memory may be a high-speed random access memory (Random Access Memory, RAM) memory, or it may be a stable non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage; the processor may be a general-purpose processor, including a central processing unit, a network processor, etc., and may also be a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0133] The memory as a storage medium may include an operating system, a network communication module, a user interface module, and an application program for implementing the data processing method of the industrial Internet of Things gateway.
[0134] The network interface is mainly used for data communication with the network server; the user interface is mainly used for data interaction with the user; the processor and memory in this application can be set in an electronic device, and the electronic device calls the application program stored in the memory for implementing the data processing method of the industrial Internet of Things gateway through the processor to implement the above method.
[0135] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A data processing method for an industrial Internet of Things gateway, It is characterized in that The following steps are involved: Obtain the original data set and obtain the data priority information in the database; According to the data priority information, the original data set is grouped to obtain a plurality of data packets, and the plurality of data packets are sorted from high to low according to the priority to obtain a first sorting result, so that the gateway processes the data according to the first sorting result; Based on the first sorting result, marking the data packets with a priority lower than a preset level as secondary data packets; When the gateway receives the burst information data packet, the secondary data packet is deleted, and the remaining data packets and the burst information data packet are reordered according to the priorities of the remaining data packets and the priorities of the burst information data packets to obtain a second ordering result, so that the gateway processes the data according to the second ordering result; When the burst information data packet is processed, an action of deleting the secondary data packet is sent to the server so that the gateway can reacquire and process the secondary data packet.
2. The data processing method of the industrial Internet of Things gateway according to claim 1, It is characterized in that The step of grouping the original data set according to the data priority information to obtain a plurality of data packets comprises: Get data priority information in the database; The data in the original data set are marked according to the data priority information, the data with the same mark are put into the same priority data packet, and the same priority data packets are marked.
3. The data processing method of the industrial Internet of Things gateway according to claim 2, It is characterized in that The steps to put data with the same tag into the same priority packet include: Get the attribute information of the data in the database; Confirming the corresponding capacity information in the original data set according to the data attribute information, and calculating the total capacity information of the data with the same tag; If the total capacity information of the data with the same tag is greater than the preset threshold of the data packet; The data with the same tag are sequentially placed into the data packet until the preset threshold is reached, and the remaining data with the same tag are placed into another data packet with the same priority, and the above operation is repeated until all the data with the same tag are allocated.
4. The data processing method of the industrial Internet of Things gateway according to claim 1, It is characterized in that The steps when the gateway receives a burst information packet include: According to the data priority information of the database, the burst information data in the burst information data packet is sorted in descending order of priority.
5. The data processing method of the industrial Internet of Things gateway according to claim 1, It is characterized in that The steps of marking a data packet with a priority lower than a preset level as a secondary data packet include: Get network condition information; The preset ratio is determined according to the network condition information so that data packets with higher priority can be processed in time.
6. The data processing method of the industrial Internet of Things gateway according to claim 1, It is characterized in that When the gateway receives the burst information data packet, the step of deleting the secondary data packet includes: The secondary data packet information is temporarily stored in a local cache.
7. The data processing method of the industrial Internet of Things gateway according to claim 1, It is characterized in that According to the priorities of the remaining data packets and the priorities of the burst information data packets, the step of reordering the remaining data packets and the burst information data packets comprises: Get data priority information in the database; The burst information data in the burst information data packet is matched according to the data priority information to determine the priority of the burst information data packet.
8. The data processing method of the industrial Internet of Things gateway according to claim 1, It is characterized in that After the burst information data packet is processed, the step of sending the action of deleting the secondary data packet to the server so that the gateway can reacquire and process the secondary data packet includes: Get network condition information; If the network condition information does not meet the preset condition, the deleted secondary data packet information is sent to the server with a delay until the network condition meets the preset condition.
9. A data processing system for an industrial Internet of Things gateway, It is characterized in that include: A data acquisition module is configured to acquire an original data set and obtain data priority information in a database; A data processing module is configured to group the original data set according to the data priority information to obtain a plurality of data packets, and sort the plurality of data packets from high to low according to the priority to obtain a first sorting result, so that the gateway processes the data according to the first sorting result; a data packet classification module, configured to mark data packets with a priority lower than a preset level as secondary data packets based on the first sorting result; a burst information processing module configured to delete the secondary data packet when the gateway receives the burst information data packet, and reorder the remaining data packets and the burst information data packet according to the priorities of the remaining data packets and the priority of the burst information data packet to obtain a second ordering result, so that the gateway processes the data according to the second ordering result; The secondary data packet processing module is configured to send an action of deleting the secondary data packet to the server after the burst information data packet is processed so that the gateway can re-acquire and process the secondary data packet.
10. A computer device, It is characterized in that The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1 to 8.
