A frame data receiving method based on frame data serial transmission
By combining the random forest and whale algorithms, the shortcomings of the serial transmission frame data byte length monitoring device in cloud monitoring and local equipment library monitoring are solved, and accurate monitoring and omission judgment of the frame data byte length are achieved, thereby improving the security and efficiency of the data transmission system.
Patent Information
- Application Number
- CN202211507310.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-29
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2042-11-29
AI Technical Summary
In the existing technology, the serial transmission frame data byte length monitoring device has data stability and security issues under cloud monitoring mode, while the local device library monitoring mode has limited storage capacity when there are a large number of users, and it is difficult to effectively manage the data relationship between multiple devices.
A method combining the random forest algorithm and the whale algorithm is adopted. By monitoring the frame data byte length, the algorithm parameters are set using the 5G signal management operation front end to provide abnormal frame data byte length prompts, and data tracking and judgment are performed through the serial transmission frame data byte length monitoring model and omission control module.
It realizes accurate monitoring of the frame data byte length and omission judgment, improves work efficiency, saves manpower and material resources, and builds a safe and effective data transmission system.
Smart Images

Figure CN115733584B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of frame data reception, and in particular to a frame data reception method based on frame data serial transmission. Background Art
[0002] With the development of serial transmission frame data byte length monitoring technology, due to its many characteristics such as data accuracy, high security factor, and ease of use, serial transmission frame data byte length monitoring technology has been widely used in various industries, such as unmanned retail machines, attendance machines, and access control platforms.
[0003] Currently, the serial transmission frame data byte length monitoring devices installed on various devices mainly monitor the serial transmission frame data byte length in two ways.
[0004] 1. Cloud monitoring: The serial transmission frame data byte length monitoring device installed on the device sends the monitored characteristic code to the 5G signal. The 5G signal stores big data. The 5G signal compares the characteristic code with the big data to obtain the monitoring results and feeds them back to the device, achieving the purpose of monitoring the byte length of the serial transmission frame data. However, the monitoring process must be connected to the network, that is, the action of sending the characteristic code to the 5G signal must be completed, and the data stability and security of the characteristic code during the transmission process must be guaranteed. In addition, the monitoring efficiency of cloud monitoring is affected by the transmission network and the 5G signal server. Once the 5G signal is destroyed, it will bring about a series of adverse reactions.
[0005] 2. Library Monitoring: The serial transmission frame data byte length monitoring device installed on the device monitors the characteristic code and performs data comparison directly on the local device, which stores a certain capacity database. This method can avoid the problems of cloud monitoring. However, the storage capacity of the local device is limited, that is, the storage library of the library monitoring is extremely valuable, making it unsuitable for large user volumes.
[0006] In the prior art, there are many situations where multiple independent serial transmission frame data byte length monitoring devices need to be connected. In most cases, cloud monitoring is used for processing. However, the cloud monitoring method has the problems mentioned above: In addition, how to quickly and efficiently process the data relationship between the serial transmission frame data byte length monitoring devices and how to effectively manage the data of the serial transmission frame data byte length monitoring devices are also major problems that need to be urgently solved in the industry. Summary of the Invention
[0007] In order to overcome the shortcomings and deficiencies of the prior art, the present invention provides a frame data receiving method based on serial transmission of frame data.
[0008] The technical solution adopted by the present invention is a frame data receiving method based on frame data serial transmission provided by the present invention, comprising the following steps:
[0009] Step S1, collecting different information of the data transmission system for training, and automatically marking the byte lengths of all serial transmission frame data in the different information of the data transmission system using a random forest algorithm to obtain the average serial transmission reception data flow rate for training;
[0010] Step S2, using the average data flow of the serial transmission reception to perform data collection based on the serial transmission frame data byte length reception process using a random forest algorithm;
[0011] Step S3, setting algorithm parameters and abnormal serial transmission frame data byte length and abnormal frame data reception prompts through the management operation front end based on 5G signals;
[0012] Step S4, obtaining serial transmission frame data monitoring flow and unit time reception data, and sending each frame of serial transmission frame data monitoring flow collected by the serial transmission frame data monitoring to the serial transmission frame data byte length monitoring model to obtain the serial transmission frame data byte length monitoring result;
[0013] Step S5, sending the monitoring result of the serial transmission frame data byte length to the whale algorithm to track the monitored serial transmission frame data byte length;
[0014] Step S6 , monitoring and judging whether the sought serial transmission frame data byte length is within the said serial transmission frame data byte length abnormal frame data reception abnormal prompt and judging whether the said serial transmission frame data byte length has omissions.
[0015] Preferably, after the random forest algorithm is used to perform data collection on the receiving process based on the byte length of the serial transmission frame data, the parameters of the random forest algorithm are dynamically updated.
[0016] Preferably, determining whether the serial transmission frame data byte length is within the range of abnormal serial transmission frame data byte length and providing a frame data reception abnormal prompt comprises the following steps:
[0017] Step D1, obtaining the time and frequency of the abnormal frame data reception prompt of a certain serial transmission frame data byte length abnormality in the current serial transmission frame data monitoring flow frame and the coordinates of the abnormal frame data reception prompt location;
[0018] Step D2: If the serial transmission frame data byte length abnormal frame data reception abnormal prompt time and frequency are both within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, it is determined that the serial transmission frame data byte length is missing;
[0019] Step D3, if only one side point of the serial transmission frame data byte length abnormal frame data reception abnormal prompt is located within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, proceed to step D4;
[0020] Step D4, determining whether the serial transmission frame data byte length location is located within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, if the serial transmission frame data byte length location is located within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, then determining that the serial transmission frame data byte length is missing, otherwise proceed to the next step;
[0021] Step D5, continuing to obtain the byte lengths of other monitored serial transmission frame data in the current serial transmission frame data monitoring traffic frame and performing an operation of determining whether there are omissions in the byte lengths of the serial transmission frame data.
[0022] The present application also includes a method for determining whether a serial transmission frame data byte length is within a serial transmission frame data byte length abnormal frame data reception abnormal prompt or not, comprising the following steps:
[0023] Step T1, calculating the distance between the flag bit of the serial transmission frame data byte length in the previous frame serial transmission frame data monitoring flow and the flag bit of the serial transmission frame data byte length in the current frame serial transmission frame data monitoring flow, and if the distance exceeds a set value, determining that the serial transmission frame data byte length is abnormal;
[0024] Step T2: if it is determined that the byte length of the serial transmission frame data is in an abnormal state, the omission duration in the byte length information of the serial transmission frame data is cleared and other byte lengths of the serial transmission frame data and the monitoring flow of the serial transmission frame data are processed;
[0025] Step T3: If the byte length of the serial transmission frame data is not moving, the current time is obtained and the byte length accumulation time of the serial transmission frame data is calculated. The byte length accumulation time of the serial transmission frame data is compared with the set omission time setting value. If the byte length accumulation time of the serial transmission frame data exceeds the omission time setting value, it is determined that the byte length of the serial transmission frame data is omitted. If the byte length accumulation time of the serial transmission frame data does not exceed the omission time, the current serial transmission frame data byte length processing is terminated, and other monitoring serial transmission frame data monitoring traffic is continued.
[0026] Preferably, if the monitoring traffic of the serial transmission frame data of the previous frame in the tracking information tracks a certain serial transmission frame data byte length, but the serial transmission frame data byte length is not tracked in the current frame, the platform sets a maximum number of lost frames. Before the maximum number of lost frames is reached, the platform does not determine that the serial transmission frame data byte length is lost. Then, the unscented Kalman filter in the whale algorithm is used to predict the serial transmission frame data byte length area of the current frame based on the position of the serial transmission frame data byte length area in the previous frame, and the predicted result is used as the serial transmission frame data byte length area of the current frame.
[0027] If the next frame of serial transmission frame data monitoring traffic monitors that the position of the serial transmission frame data byte length area matches the current frame of serial transmission frame data byte length area, it is determined that the serial transmission frame data byte length disappears due to an error in the monitoring algorithm;
[0028] If the maximum number of missing frames is reached, it is directly regarded as the serial transmission frame data byte length has disappeared, and the platform deletes the serial transmission frame data byte length tracking information;
[0029] If the serial transmission frame data byte length reappears in a time period that does not reach the maximum number of missing frames, it is determined that the serial transmission frame data byte length is omitted for a short time.
[0030] Preferably, the time for collecting the serial transmission frame data to monitor traffic is set according to monitoring requirements, and the number of frames collected per second is determined according to the received set value.
[0031] The method of the present application is implemented by a serial transmission frame data byte length model monitoring module, an algorithm serial transmission frame data monitoring flow calculation module and an omission control module, wherein:
[0032] The serial transmission frame data byte length model monitoring module is used to monitor the serial transmission frame data byte length of the serial transmission frame data monitoring flow and the unit time reception amount data collected by the algorithm serial transmission frame data monitoring flow calculation module and obtain abnormal frame data reception abnormality prompt and abnormal frame data reception abnormality prompt information of the serial transmission frame data byte length;
[0033] The algorithm serial transmission frame data monitoring flow calculation module is used to collect serial transmission frame data monitoring flow and unit time reception data, set the supervision area position, and match the serial transmission frame data byte length abnormal frame data reception abnormal prompt and abnormal frame data reception abnormal prompt information obtained by the serial transmission frame data byte length model monitoring module with a specific monitoring code and then transmit it to the omission control module;
[0034] The omission control module outputs the tracker information after receiving the abnormal frame data reception prompt and abnormal frame data reception prompt information of the serial transmission frame data byte length that matches the specific monitoring code, searches for each tracker information, and determines whether the serial transmission frame data byte length is within the supervision area according to the position of the supervision area, and updates the tracker information again, and determines whether the serial transmission frame data byte length should be alarmed according to the updated tracker information.
[0035] Preferably, the tracker information includes: serial transmission frame data byte length monitoring code, serial transmission frame data byte length abnormal frame data reception abnormal prompt, whether the serial transmission frame data byte length enters the serial transmission frame data byte length abnormal frame data reception abnormal prompt, the serial transmission frame data byte length enters the serial transmission frame data byte length abnormal frame data reception abnormal prompt time, and whether the serial transmission frame data byte length has been issued an alarm.
[0036] Preferably, the serial transmission receives the average data flow and increases the frame data transmission speed by using an extended bandwidth.
[0037] The present invention applies the serial transmission frame data byte length monitoring technology of the random forest algorithm to serial transmission frame data byte length monitoring. This method can accurately monitor the serial transmission frame data byte length from the serial transmission frame data monitoring flow, track the serial transmission frame data byte length, and then accurately and efficiently monitor the serial transmission frame data byte length through a series of logical judgments on the omission of the serial transmission frame data byte length and generate an alarm, thereby realizing intelligent supervision of the omission of the serial transmission frame data byte length. This greatly improves the efficiency of the staff and also saves a lot of manpower and material resources.
[0038] Serial transmission frame data byte length model monitoring module: This invention uses the average serial transmission reception data flow rate to perform data aggregation based on the serial transmission frame data byte length reception process using a random forest algorithm to ensure the accuracy of serial transmission frame data byte length monitoring. This invention also dynamically updates the parameters of the random forest algorithm to ensure optimal performance within a limited budget.
[0039] Algorithm serial transmission frame data monitoring flow calculation module: The present invention searches for the monitored serial transmission frame data byte length based on the search algorithm and maintains its individual structure to judge the serial transmission frame data byte length status and set the search failure setting value to avoid false alarms caused by omissions;
[0040] Omission control module: The present invention first determines whether the traced serial transmission frame data byte length is within the supervision area, and proposes multiple methods for judging abnormal data of the serial transmission frame data byte length. By judging the abnormal data of the serial transmission frame data byte length, the problem of false reporting of abnormal data serial transmission frame data byte length in traditional methods is avoided.
[0041] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0042] The present invention can conveniently set the omission monitoring algorithm from the 5G signal page, and the alarm message can also be displayed in real time on the 5G signal page for staff to view, which together with the core monitoring algorithm constitutes an intelligent monitoring platform for omissions in the byte length of serial transmission frame data; the method proposed in the present invention can effectively control the frame data in the data transmission system, thereby protecting the integrity of the frame data transmission and assisting in building a safe and effective data transmission system. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0044] Figure 1 This is the first flow chart of the method of the present invention;
[0045] Figure 2 This is the first flow chart of the method of the present invention;
[0046] Figure 3 This is the third flow chart of the method of the present invention;
[0047] Figure 4 This is a functional structure diagram of the platform of the present invention. DETAILED DESCRIPTION
[0048] It should be noted that, unless there is a conflict, the embodiments in this application and the features described in the embodiments can be combined with each other. The application is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0049] Example 1
[0050] like Figure 1 As shown, a frame data receiving method based on frame data serial transmission includes the following steps:
[0051] Step S1, collecting different information of the data transmission system for training, and automatically marking the byte lengths of all serial transmission frame data in the different information of the data transmission system using a random forest algorithm to obtain the average serial transmission reception data flow rate for training;
[0052] Step S2, using the average data flow of the serial transmission reception to perform data collection based on the serial transmission frame data byte length reception process using a random forest algorithm;
[0053] Step S3, setting algorithm parameters and abnormal serial transmission frame data byte length and abnormal frame data reception prompts through the management operation front end based on 5G signals;
[0054] Step S4, obtaining serial transmission frame data monitoring flow and unit time reception data, and sending each frame of serial transmission frame data monitoring flow collected by the serial transmission frame data monitoring to the serial transmission frame data byte length monitoring model to obtain the serial transmission frame data byte length monitoring result;
[0055] Step S5, sending the monitoring result of the serial transmission frame data byte length to the whale algorithm to track the monitored serial transmission frame data byte length;
[0056] Step S6 , monitoring and judging whether the sought serial transmission frame data byte length is within the said serial transmission frame data byte length abnormal frame data reception abnormal prompt and judging whether the said serial transmission frame data byte length has omissions.
[0057] The serial transmission frame data byte length monitoring model is expressed as:
[0058]
[0059] Among them, Y r Indicates the serial transmission frame data byte length monitoring function, U r Indicates the characteristics of different data in the serial transmission frame data. Represents the classification coefficient matrix of serial transmission frame data, H t Indicates the total amount of different data in the serial transmission frame data per unit time;
[0060]
[0061] Among them, B s Indicates the mean value of serial transmission frame data in unit time, W i It represents the standard setting value of serial transmission frame data in unit time, F represents the transmission coefficient, L represents the transmission frequency, and η represents the transmission error.
[0062] After using the random forest algorithm to collect data based on the serial transmission frame data byte length receiving process, the parameters of the random forest algorithm are dynamically updated.
[0063] Example 2
[0064] like Figure 2As shown, judging whether the serial transmission frame data byte length is within the range of abnormal serial transmission frame data byte length and providing abnormal frame data reception prompt includes the following steps:
[0065] Step D1, obtaining the time and frequency of the abnormal frame data reception prompt of a certain serial transmission frame data byte length abnormality in the current serial transmission frame data monitoring flow frame and the coordinates of the abnormal frame data reception prompt location;
[0066] Step D2: If the serial transmission frame data byte length abnormal frame data reception abnormal prompt time and frequency are both within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, it is determined that the serial transmission frame data byte length is missing;
[0067] Step D3, if only one side point of the serial transmission frame data byte length abnormal frame data reception abnormal prompt is located within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, proceed to step D4;
[0068] Step D4, determining whether the serial transmission frame data byte length location is located within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, if the serial transmission frame data byte length location is located within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, then determining that the serial transmission frame data byte length is missing, otherwise proceed to the next step;
[0069] Step D5, continuing to obtain the byte lengths of other monitored serial transmission frame data in the current serial transmission frame data monitoring traffic frame and performing an operation of determining whether there are omissions in the byte lengths of the serial transmission frame data.
[0070] like Figure 3 As shown, the present application also includes a method for determining whether the serial transmission frame data byte length is within the serial transmission frame data byte length abnormal frame data reception abnormal prompt or not, comprising the following steps:
[0071] Step T1, calculating the distance between the flag bit of the serial transmission frame data byte length in the previous frame serial transmission frame data monitoring flow and the flag bit of the serial transmission frame data byte length in the current frame serial transmission frame data monitoring flow, and if the distance exceeds a set value, determining that the serial transmission frame data byte length is abnormal;
[0072] Step T2: if it is determined that the byte length of the serial transmission frame data is in an abnormal state, the omission duration in the byte length information of the serial transmission frame data is cleared and other byte lengths of the serial transmission frame data and the monitoring flow of the serial transmission frame data are processed;
[0073] Step T3: If the byte length of the serial transmission frame data is not moving, the current time is obtained and the byte length accumulation time of the serial transmission frame data is calculated. The byte length accumulation time of the serial transmission frame data is compared with the set omission time setting value. If the byte length accumulation time of the serial transmission frame data exceeds the omission time setting value, it is determined that the byte length of the serial transmission frame data is omitted. If the byte length accumulation time of the serial transmission frame data does not exceed the omission time, the current serial transmission frame data byte length processing is terminated, and other monitoring serial transmission frame data monitoring traffic is continued.
[0074] The set value adopts a dynamic form of P / V to determine the abnormal data of the byte length of the serial transmission frame data, wherein the letter P represents the response speed of the abnormal prompt of the abnormal frame data reception, and the letter V represents the fluctuation function of the set value.
[0075] If the monitoring traffic of the previous frame of serial transmission frame data in the tracking information traces a certain serial transmission frame data byte length, but the serial transmission frame data byte length is not traced in the current frame, the platform sets a maximum number of lost frames. Before the maximum number of lost frames is reached, the platform does not determine that the serial transmission frame data byte length is lost. Then, the unscented Kalman filter in the whale algorithm is used to predict the serial transmission frame data byte length area of the current frame based on the position of the serial transmission frame data byte length area in the previous frame, and the predicted result is used as the serial transmission frame data byte length area of the current frame;
[0076] If the next frame of serial transmission frame data monitoring traffic monitors that the position of the serial transmission frame data byte length area matches the current frame of serial transmission frame data byte length area, it is determined that the serial transmission frame data byte length disappears due to an error in the monitoring algorithm;
[0077] If the maximum number of missing frames is reached, it is directly regarded as the serial transmission frame data byte length has disappeared, and the platform deletes the serial transmission frame data byte length tracking information;
[0078] If the serial transmission frame data byte length reappears in a time period that does not reach the maximum number of missing frames, it is determined that the serial transmission frame data byte length is omitted for a short time.
[0079] The time for collecting the serial transmission frame data to monitor the flow is set according to the monitoring requirements, and the number of frames collected per second is determined according to the received set value.
[0080] Example 3
[0081] like Figure 4 As shown, a frame data receiving method based on serial transmission of frame data of the present application includes:
[0082] The serial transmission frame data byte length model monitoring module first collects data for training based on actual scenarios. After obtaining the data, it uses the random forest algorithm to automatically mark the byte lengths of all serial transmission frame data in different information of the data transmission system to obtain the average serial transmission reception data flow used for training.
[0083] In order to better ensure the training effect, the present invention can greatly increase the amount of training data by using data enhancement methods such as translation, flipping, and scaling on the average data flow of the training serial transmission reception.
[0084] Then, the random forest algorithm is used to collect data based on the serial transmission frame data byte length receiving process by training the serial transmission receiving average data flow to ensure the accuracy of the model.
[0085] After obtaining the trained model, the traditional method generally directly deploys and utilizes the trained original model in combination with the business program. This method not only has slow inference speed but also consumes a lot of hardware resources.
[0086] In order to ensure the real-time monitoring of the byte length of serial transmission frame data in the business, the original model in the present invention uses the particle swarm algorithm to perform operations such as speed update, position update, weight quantization, etc. to optimize the model reasoning throughput, and perform forward reasoning to accelerate the reasoning.
[0087] Algorithm serial transmission frame data monitoring flow calculation module, first, the intelligent monitoring platform of the present invention sets the algorithm parameters through the management operation front end based on the 5G signal, and the 5G signal page displays the screen for setting serial transmission frame data monitoring in real time. The user can use the mouse to draw the abnormal serial transmission frame data byte length and frame data reception abnormality prompt in the screen. When the user finishes drawing, the algorithm settings will be sent to the algorithm server through the network.
[0088] After receiving the settings, the algorithm will pull the real-time data of the serial transmission frame data monitoring according to the specified unit time receiving flow address, and send each frame of serial transmission frame data monitoring traffic obtained into the trained serial transmission frame data byte length monitoring model to obtain the serial transmission frame data byte length monitoring result of the serial transmission frame data byte length.
[0089] Then the monitoring result of the serial transmission frame data byte length is sent to the whale algorithm to track the monitored serial transmission frame data byte length.
[0090] The advantage of tracking is that the byte lengths of the same serial transmission frame data in the time series are matched and assigned the same monitoring code, thus avoiding the problem of continuous alarms caused by continuous monitoring of the same frame data.
[0091] The omission control module searches for information based on the tracker of the algorithm serial transmission frame data monitoring flow calculation module, traverses all tracked serial transmission frame data byte lengths, and initializes its information if it is a newly tracked serial transmission frame data byte length;
[0092] If the platform has previously traced the serial transmission frame data byte length, and the current frame has traced the serial transmission frame data byte length, it is first determined whether it is within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, and the serial transmission frame data byte length abnormal frame data reception abnormal prompt time and frequency and the abnormal frame data reception abnormal prompt location coordinates are used to determine whether the serial transmission frame data byte length is within the serial transmission frame data byte length abnormal frame data reception abnormal prompt.
[0093] The specific method is as follows: first, obtain the time and frequency of abnormal frame data receiving abnormal prompt and the coordinates of the abnormal frame data receiving abnormal prompt location;
[0094] If both the time and frequency are within the range of the abnormal serial transmission frame data byte length frame data reception abnormality prompt, it is determined that the serial transmission frame data byte length is missing;
[0095] If only one side point is located in the serial transmission frame data byte length abnormal frame data reception abnormal prompt, then determine whether the serial transmission frame data byte length location is located in the serial transmission frame data byte length abnormal frame data reception abnormal prompt. If it is, then determine that the serial transmission frame data byte length is missing; the rest are deemed not to exist or have omissions.
[0096] If the serial transmission frame data byte length is not within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, the current serial transmission frame data byte length processing is completed, and other monitoring serial transmission frame data monitoring traffic is continued. When all serial transmission frame data byte lengths are traversed, the current frame processing is completed and the next frame is obtained.
[0097] If the byte length of the serial transmission frame data is within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, the present invention adopts a method for judging whether the byte length of the serial transmission frame data is abnormal data to avoid the problem that the byte length of the serial transmission frame data is mistakenly considered to be missed and an alarm is issued when the byte length of the serial transmission frame data is always within the serial transmission frame data byte length abnormal frame data reception abnormal prompt during slow driving due to traffic jams or other reasons.
[0098] The specific method is:
[0099] (1) Calculate the distance between the flag bit of the serial transmission frame data byte length in the previous frame of serial transmission frame data monitoring traffic and the flag bit of the serial transmission frame data byte length in the current frame. If this distance exceeds a certain set value, it is determined that the serial transmission frame data byte length is abnormal;
[0100] (2) Since the byte length of the serial transmission frame data is different from the monitoring distance of the serial transmission frame data, the Uox size monitored by the byte length of the serial transmission frame data at different distances from the monitoring distance in the serial transmission frame data monitoring traffic will be very different; for example, the actual road distance corresponding to the 10 distances at a distance and the 10 distances at a close distance is different.
[0101] Therefore, if the method in step (1) uses a single set value as the judgment condition, it will result in different standards for judging abnormal data for different long-distance and short-distance serial transmission frame data byte lengths.
[0102] The present invention proposes to use the dynamic setting value = P / V format to determine whether the byte length of the serial transmission frame data is abnormal data;
[0103] Where D is the time distance of receiving abnormal prompt of abnormal frame data, and V represents the fluctuation function of the set value;
[0104] During the judgment process, U is a fixed value and can be adjusted by the algorithm personnel.
[0105] The effect of establishing a dynamic setting value is that when the abnormal prompt of receiving abnormal frame data is larger, the corresponding distance setting value is larger, and when the abnormal prompt of receiving abnormal frame data is smaller, the corresponding distance setting value is smaller, thereby making it more accurate to make abnormal judgments when monitoring the byte lengths of serial transmission frame data at different distances from the serial transmission frame data.
[0106] If the byte length of the serial transmission frame data is abnormal, the missing time in the byte length information of the serial transmission frame data is cleared, and other monitoring serial transmission frame data monitoring traffic is continued;
[0107] If the byte length of the serial transmission frame data is not abnormal, the current time is obtained and the stop accumulation time of the byte length of the serial transmission frame data is calculated, and the stop accumulation time of the byte length of the serial transmission frame data is compared with the omission time setting value. If it exceeds the omission time setting value, it is determined that the byte length of the serial transmission frame data is omitted, and the serial transmission frame data byte length information is sent to the 5G signal end through the network. After the 5G signal end receives the alarm message, the alarm message will be displayed on the page; if it does not exceed the omission time, the current serial transmission frame data byte length processing is completed, and other monitoring serial transmission frame data monitoring traffic will continue to be processed.
[0108] If a frame of data is tracked in the previous frame in the tracking information but not in the current frame, the following three situations may occur:
[0109] 1. The monitoring algorithm fails to detect the serial transmission frame data byte length;
[0110] 2. The byte length of the serial transmission frame data exceeds the screen range;
[0111] 3. There are omissions. Other objects omit the byte length of the serial transmission frame data, resulting in the monitoring algorithm being unable to monitor the byte length of the serial transmission frame data.
[0112] The specific method of the present invention to address the above situation is as follows: Based on the three possible situations above, a maximum number of lost frames is set. Before the maximum number of lost frames is reached, the serial transmission frame data byte length loss is not determined. The unscented Kalman filter in the whale algorithm is used to predict the serial transmission frame data byte length area of the current frame based on the position of the serial transmission frame data byte length area of the previous frame. The predicted result is used as the serial transmission frame data byte length area of the current frame, but the tracking status remains "not found".
[0113] For the first case, if the monitoring algorithm fails to detect the serial transmission frame data byte length due to an error, then when the serial transmission frame data byte length area is detected in the next frame, the serial transmission frame data byte length area obtained by the tracking algorithm will match the serial transmission frame data byte length area of the current frame, avoiding the repeated alarm problem caused by the instability of the monitoring algorithm;
[0114] For the second case, when the maximum number of missing frames is reached, the algorithm regards the byte length of the current serial transmission frame data as missing and deletes the byte length tracking information of the serial transmission frame data;
[0115] For the third case, if it is a short-term omission, after the serial transmission frame data byte length reappears, the tracking algorithm can still match the previous serial transmission frame data byte length area with the serial transmission frame data byte length area after the omission, and monitor it as the same serial transmission frame data byte length, avoiding the problem of repeated alarms.
[0116] The maximum number of missing frames is recommended to be set to collect serial transmission frame data to monitor traffic. The time length is set according to the monitoring requirements. The number of frames collected per second is determined by the received setting value.
[0117] The specific serial transmission frame data byte length model monitoring module, the algorithm serial transmission frame data monitoring flow calculation module and the omission control module communicate with each other through the following contents:
[0118] The serial transmission frame data byte length model monitoring module generates a model file after training and acceleration;
[0119] The algorithm serial transmission frame data monitoring flow calculation module first obtains 5G signal settings through network communication; the 5G signal settings specifically include: serial transmission frame data monitoring rtsU flow address, supervision area location;
[0120] After the setting is completed, the algorithm serial transmission frame data monitoring flow calculation module loads the model file of the serial transmission frame data byte length model monitoring module to monitor the serial transmission frame data monitoring flow and the unit time reception amount data, and obtains the abnormal frame data reception abnormality prompt and abnormal frame data reception abnormality prompt information of the serial transmission frame data byte length;
[0121] Then, the abnormal frame data reception abnormal prompt is sent to the whale algorithm, and a specific monitoring code is matched for each abnormal frame data reception abnormal prompt, and then the tracking device information is transmitted to the omission control module, wherein the tracking device information includes the serial transmission frame data byte length monitoring code, the serial transmission frame data byte length abnormal frame data reception abnormal prompt, whether the serial transmission frame data byte length enters the serial transmission frame data byte length abnormal frame data reception abnormal prompt, the serial transmission frame data byte length enters the serial transmission frame data byte length abnormal frame data reception abnormal prompt time, and whether the serial transmission frame data byte length has been issued an alarm;
[0122] The omission control module traverses each tracker information, determines whether the serial transmission frame data byte length is within the supervision area according to the supervision area position, updates the tracker information, and determines whether the serial transmission frame data byte length should issue an alarm according to the tracker information.
[0123] In the description of the present invention, it should be noted that, unless otherwise expressly specified or limited, the terms "disposed," "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; they may refer to mechanical connections or electrical connections; they may refer to direct connections or indirect connections through an intermediate medium; and they may refer to internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.
[0124] While embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various equivalent changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.
Claims
1. A frame data receiving method based on frame data serial transmission, characterized in that: The following steps are involved: Step S1, collecting different information of the data transmission system for training, automatically marking the byte lengths of all serial transmission frame data in the different information of the data transmission system using a random forest algorithm, and obtaining an average serial transmission reception data flow rate for training, wherein the average serial transmission reception data flow rate increases the frame data transmission speed by using an extended bandwidth; Step S2, using the average data flow of the serial transmission reception to perform data integration based on the serial transmission frame data byte length reception process using a random forest algorithm; Step S3, setting algorithm parameters and abnormal serial transmission frame data byte length and abnormal frame data reception prompts through the management operation front end based on 5G signals; Step S4, obtaining serial transmission frame data monitoring flow and unit time reception data, and sending each frame of serial transmission frame data monitoring flow collected by the serial transmission frame data monitoring to the trained serial transmission frame data byte length monitoring model to obtain the serial transmission frame data byte length monitoring result; Step S5, sending the monitoring result of the serial transmission frame data byte length to the whale algorithm to track the monitored serial transmission frame data byte length; Step S6, monitoring and judging whether the tracked serial transmission frame data byte length is within the serial transmission frame data byte length abnormal frame data reception abnormality prompt and judging whether the serial transmission frame data byte length has omissions.
2. The frame data receiving method based on frame data serial transmission according to claim 1, characterized in that: After using the random forest algorithm to collect data based on the serial transmission frame data byte length receiving process, the parameters of the random forest algorithm are dynamically updated.
3. The frame data receiving method based on frame data serial transmission according to claim 1, characterized in that: Determining whether the serial transmission frame data byte length is within the range of abnormal serial transmission frame data byte length and abnormal frame data reception prompt includes the following steps: Step D1, obtaining the time and frequency of the abnormal frame data reception prompt of a certain serial transmission frame data byte length abnormality in the current serial transmission frame data monitoring flow frame and the coordinates of the abnormal frame data reception prompt location; Step D2: If the serial transmission frame data byte length abnormal frame data reception abnormal prompt time and frequency are both within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, it is determined that the serial transmission frame data byte length is missing; Step D3, if only one side point of the serial transmission frame data byte length abnormal frame data reception abnormal prompt is located within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, proceed to step D4; Step D4, determining whether the coordinates of the serial transmission frame data byte length abnormal frame data reception abnormal prompt location are located within the serial transmission frame data byte length abnormal frame data reception abnormal prompt; if the coordinates of the serial transmission frame data byte length abnormal frame data reception abnormal prompt location are located within the serial transmission frame data byte length abnormal frame data reception abnormal prompt, then determining that the serial transmission frame data byte length is missing, otherwise proceed to the next step; Step D5, continuing to obtain the byte lengths of other monitored serial transmission frame data in the current serial transmission frame data monitoring traffic frame and performing an operation of determining whether there are omissions in the byte lengths of the serial transmission frame data.
4. The frame data receiving method based on frame data serial transmission according to claim 3, characterized in that: The invention also includes a method for determining whether the byte length of the serial transmission frame data is abnormal within the abnormal serial transmission frame data byte length frame data reception abnormal prompt, comprising the following steps: Step T1, calculating the distance between the flag bit of the serial transmission frame data byte length in the previous frame serial transmission frame data monitoring flow and the flag bit of the serial transmission frame data byte length in the current frame serial transmission frame data monitoring flow, and if the distance exceeds a set value, determining that the serial transmission frame data byte length is abnormal; Step T2: if it is determined that the byte length of the serial transmission frame data is in an abnormal state, the omission duration in the byte length information of the serial transmission frame data is cleared and other byte lengths of the serial transmission frame data and the monitoring flow of the serial transmission frame data are processed; Step T3: If the byte length of the serial transmission frame data is not moving, the current time is obtained and the byte length accumulation time of the serial transmission frame data is calculated. The byte length accumulation time of the serial transmission frame data is compared with the set omission time setting value. If the byte length accumulation time of the serial transmission frame data exceeds the omission time setting value, it is determined that the byte length of the serial transmission frame data is omitted. If the byte length accumulation time of the serial transmission frame data does not exceed the omission time, the current serial transmission frame data byte length processing is terminated, and other monitoring serial transmission frame data monitoring traffic is continued.
5. The frame data receiving method based on frame data serial transmission according to claim 4, characterized in that: If the previous frame of serial transmission frame data monitoring traffic in the tracking information tracks a certain serial transmission frame data byte length, but the serial transmission frame data byte length is not tracked in the current frame, the platform sets a maximum number of missing frames. Before the maximum number of missing frames is reached, the platform does not determine that the serial transmission frame data byte length is lost. The unscented Kalman filter in the whale algorithm is then used to predict the serial transmission frame data byte length area of the current frame based on the position of the serial transmission frame data byte length area in the previous frame. The predicted result is used as the serial transmission frame data byte length area of the current frame. If the serial transmission frame data monitoring traffic in the next frame monitors that the position of the serial transmission frame data byte length area matches the serial transmission frame data byte length area of the current frame, it is determined that the serial transmission frame data byte length has disappeared due to an error in the monitoring algorithm. If the maximum number of missing frames is reached, the serial transmission frame data byte length is directly deemed to have disappeared, and the platform deletes the serial transmission frame data byte length tracking information. If the serial transmission frame data byte length reappears in the time period before the maximum number of missing frames is reached, it is determined that the serial transmission frame data byte length was temporarily omitted.
6. The frame data receiving method based on frame data serial transmission according to claim 5, characterized in that: The time for collecting the serial transmission frame data to monitor the flow is set according to the monitoring requirements, and the number of frames collected per second is determined according to the received set value.
7. The frame data receiving method based on frame data serial transmission according to claim 1, characterized in that: The method is implemented through a serial transmission frame data byte length model monitoring module, an algorithm serial transmission frame data monitoring flow calculation module and an omission control module. The serial transmission frame data byte length model monitoring module is used to monitor the serial transmission frame data byte length of the serial transmission frame data monitoring flow and the unit time reception amount data collected by the algorithm serial transmission frame data monitoring flow calculation module and obtain abnormal frame data reception abnormality prompt and abnormal frame data reception abnormality prompt information of the serial transmission frame data byte length; The algorithm serial transmission frame data monitoring flow calculation module is used to collect serial transmission frame data monitoring flow and unit time reception data, set the supervision area position, and match the serial transmission frame data byte length abnormal frame data reception abnormal prompt and abnormal frame data reception abnormal prompt information obtained by the serial transmission frame data byte length model monitoring module with a specific monitoring code and then transmit it to the omission control module; The omission control module is used to output the tracker information after receiving the serial transmission frame data byte length abnormal frame data reception abnormal prompt and abnormal frame data reception abnormal prompt information that matches the specific monitoring code, search for each of the tracker information, and determine whether the serial transmission frame data byte length is within the supervision area according to the position of the supervision area, and update the tracker information again, and determine whether the serial transmission frame data byte length should be alarmed according to the updated tracker information.
8. The frame data receiving method based on frame data serial transmission according to claim 7, characterized in that: The tracker information includes: serial transmission frame data byte length monitoring code, serial transmission frame data byte length abnormal frame data reception abnormal prompt, whether the serial transmission frame data byte length enters the serial transmission frame data byte length abnormal frame data reception abnormal prompt, the serial transmission frame data byte length enters the serial transmission frame data byte length abnormal frame data reception abnormal prompt time, and whether the serial transmission frame data byte length has been issued an alarm.
Citation Information
Patent Citations
A method of prediction model based on random forest algorithm
AU2020100709A4
Asynchronous high-speed serial port real-time continuous data acquisition system
CN114509966A