Data transmission control method and device

By generating exception handling work orders in wireless communication networks and tracking and monitoring, the problem of data transmission abnormalities is solved, the data transmission speed and accuracy are improved, the reliability of the communication network is ensured, and the system is optimized through statistical analysis.

CN117082549BActive Publication Date: 2025-03-11JIANGSU TRINATEC ELECTRIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311256747.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2025-03-11
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

There may be abnormal data transmission and data missed data transmission during data transmission in wireless communication networks, affecting the data transmission speed and accuracy of the communication network.

Method used

When receiving the target data, it is determined whether there is an exception. If it exists, an exception processing ticket will be generated and tracked and monitored according to the exception processing status identifier. Generate exception response information to prompt the sender to resend data until the exception processing is completed.

Benefits of technology

By monitoring and handling data transmission abnormalities in real time, the data transmission speed and accuracy of wireless communications can be improved, the reliability of the communication network is ensured, and equipment or systems are optimized through abnormal statistical analysis to reduce the probability of data transmission abnormalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117082549B_ABST
    Figure CN117082549B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data transmission control method and device. When the method and device determine that the received target data has an abnormality, an abnormality handling work order is generated. According to the abnormality handling status identifier in the abnormality handling work order, it can monitor in real time whether each data transmission abnormality has been handled, so as to ensure that each data transmission abnormality can be recorded and handled in time, and avoid the data sending end from waiting for a response result for a long time due to data transmission abnormality, thereby improving the data transmission speed and accuracy of wireless communication and ensuring the data transmission reliability between wireless communication devices. In addition, the method and device can also perform statistical analysis on the data transmission status of the current device according to multiple abnormality handling work orders within a period of time, and then optimize the device or the system according to the analysis results, so as to reduce the probability of data transmission abnormality of the device or system and improve the data transmission speed and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a data transmission control method and device. Background Art

[0002] Wireless communication technology uses the property of electromagnetic waves that can propagate in free space (such as air, vacuum, etc.) to transmit information. Compared with wired communication, wireless communication is convenient to use and can realize remote maintenance. It is widely used in industrial control systems, such as wireless security systems, industrial site remote monitoring and control systems, etc.

[0003] In actual applications, due to the large amount of transmitted data, data transmission anomalies may occur during the data transmission process of the wireless communication network, such as random data transmission, data leakage, etc., which affects the data transmission speed and transmission accuracy between devices in the communication network. Summary of the invention

[0004] The purpose of the embodiments of the present disclosure is to provide a data transmission control method and device to improve data transmission speed and transmission accuracy and ensure the quality of the communication network.

[0005] In a first aspect, an embodiment of the present disclosure provides a data transmission control method, including:

[0006] When receiving target data from a sending end, determining whether the target data is abnormal;

[0007] If the target data is abnormal, an exception handling work order is generated; the exception handling work order includes: an exception handling status identifier;

[0008] The exception handling work order is tracked and monitored according to the exception handling status identifier.

[0009] In an optional embodiment, if the target data is abnormal, generating an abnormality handling work order includes:

[0010] When the target data is abnormal, determine the duration of the abnormality;

[0011] If the abnormal duration is greater than the first preset duration, the abnormal handling work order is generated.

[0012] In an optional embodiment, tracking and monitoring the exception handling work order according to the exception handling status identifier includes:

[0013] Determine the accumulated processing time corresponding to the exception processing work order according to the exception processing status identifier;

[0014] If the accumulated processing time is longer than the second preset time, a prompt message is generated.

[0015] In an optional embodiment, tracking and monitoring the exception handling work order according to the exception handling status identifier includes:

[0016] If the exception processing status identifier is the first identifier, generating and sending exception response information, so that the sending end resends new target data corresponding to the target data according to the exception response information;

[0017] If the new target data does not have an exception, modifying the exception handling status identifier from the first identifier to a second identifier;

[0018] The first mark indicates that the abnormal situation corresponding to the exception handling work order has not been handled; the second mark indicates that the abnormal situation corresponding to the exception handling work order has been handled.

[0019] In an optional embodiment, the method further includes:

[0020] After receiving the target data, storing the target data in a preset backup area;

[0021] The tracking and monitoring of the exception handling work order according to the exception handling status identifier includes: when the exception handling status identifier is the second identifier, deleting the target data from the preset backup area.

[0022] In an optional embodiment, the determining whether the target data is abnormal includes: determining whether the target data meets a preset abnormal condition;

[0023] The preset abnormal condition includes at least one of the following:

[0024] The function code in the target data is not within the preset range;

[0025] The function code does not match the responsive function corresponding to the current receiving end;

[0026] The starting address and the number of registers in the target data do not match the register information corresponding to the current receiving end;

[0027] The result of verifying the target data according to the verification code in the target data is that the verification fails;

[0028] The exception handling worksheet includes: exception object information generated according to the preset exception condition that matches the target data.

[0029] In an optional embodiment, the method further includes:

[0030] An abnormality statistical analysis is performed on the current device according to a plurality of the abnormality handling work orders within a preset time period.

[0031] In a second aspect, an embodiment of the present disclosure provides a data transmission control device, including:

[0032] The abnormality judgment module is used to judge whether the target data is abnormal when receiving the target data from the sending end;

[0033] A work order generation module is used to generate an exception handling work order if the target data is abnormal; the exception handling work order includes: an exception handling status identifier;

[0034] The work order tracking module is used to track and monitor the exception handling work order.

[0035] In an optional embodiment, the work order generation module is used to generate an exception handling work order if the target data is abnormal, which may specifically include:

[0036] The work order generation module is used to determine the abnormality duration when the target data is abnormal, and generate the abnormality handling work order if the abnormality duration is greater than the first preset duration.

[0037] In an optional implementation manner, the work order tracking module is used to track and monitor the exception handling work order, which may specifically include:

[0038] The work order tracking module is used to determine the cumulative processing time corresponding to the exception processing work order according to the exception processing status identifier, and generate a prompt message if the cumulative processing time is greater than a second preset time.

[0039] In an optional implementation manner, the work order tracking module is used to track and monitor the exception handling work order, which may specifically include:

[0040] The work order tracking module is used to, if the exception handling status identifier is a first identifier, generate and send exception response information so that the sending end resends new target data corresponding to the target data according to the exception response information; if there is no exception in the new target data, modify the exception handling status identifier from the first identifier to the second identifier.

[0041] The first mark indicates that the abnormal situation corresponding to the exception handling work order has not been handled; the second mark indicates that the abnormal situation corresponding to the exception handling work order has been handled.

[0042] In an optional implementation, the data transmission control device may further include a storage module, configured to store the target data in a preset backup area after receiving the target data.

[0043] Correspondingly, the work order tracking module may also be configured to delete the target data from the preset backup area when the exception processing status identifier is the second identifier.

[0044] In an optional implementation manner, the abnormality judgment module is used to judge whether the target data is abnormal when receiving the target data from the sending end, which may specifically include:

[0045] The abnormality judgment module is used to judge whether the target data meets the preset abnormality condition.

[0046] In an optional implementation, the data transmission control device may further include an analysis module for performing an abnormality statistical analysis on the current device based on a plurality of the abnormality handling work orders within a preset time period.

[0047] In a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in the first aspect above.

[0048] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including:

[0049] a memory having a computer program stored thereon;

[0050] A processor is used to execute the computer program in the memory to implement the method as described in the first aspect above.

[0051] In the disclosed embodiment, when it is determined that the received target data has an abnormality, an abnormality handling work order is generated. According to the abnormality handling status mark in the abnormality handling work order, it is possible to monitor in real time whether each data transmission abnormality has been handled, to ensure that each data transmission abnormality can be recorded and handled in time, to avoid the data sending end waiting for a response result for a long time due to data transmission abnormality, thereby improving the data transmission speed and accuracy of wireless communication and ensuring the data transmission reliability between wireless communication devices. In addition, it is also possible to perform statistical analysis on the data transmission status of the current device based on multiple abnormality handling work orders within a period of time, and then optimize the device or the system in which it is located based on the analysis results, so as to reduce the probability of data transmission abnormality of the device or system and improve the data transmission speed and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A flow chart of a data transmission control method provided by an embodiment of the present disclosure is shown;

[0053] Figure 2 A schematic diagram showing a data format during a data transmission process of an embodiment of the present disclosure;

[0054] Figure 3 A schematic diagram showing the structure of a data transmission control device provided by an embodiment of the present disclosure is shown;

[0055] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0056] The present application is further described in detail below through the accompanying drawings and embodiments. Through these descriptions, the characteristics and advantages of the present application will become clearer and more specific.

[0057] The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise noted.

[0058] In addition, the technical features involved in different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.

[0059] The data transmission control method and device provided by the embodiments of the present disclosure will be described in detail below through specific embodiments in conjunction with the accompanying drawings.

[0060] Figure 1 is a flow chart of a data transmission control method provided by an embodiment of the present disclosure, see Figure 1 , the method may include the following steps:

[0061] Step 101, when receiving target data from a sending end, determining whether the target data has an abnormality;

[0062] Step 102: if the target data is abnormal, an abnormality handling work order is generated; the abnormality handling work order includes: an abnormality handling status identifier;

[0063] The above exception handling status indicator indicates whether the data exception situation corresponding to the exception handling work order has been processed.

[0064] Step 103: Track and monitor the exception handling work order according to the exception handling status identifier.

[0065] In view of the problem that transmission anomalies are prone to occur during data transmission, which affects the data transmission speed and accuracy, the embodiment of the present disclosure generates an exception handling work order when it is determined that the received target data has an exception. According to the exception handling status identifier in the exception handling work order, it can be monitored in real time whether each data transmission anomaly has been handled, to ensure that each data transmission anomaly can be recorded and handled in a timely manner, to avoid the data sender waiting for a response result for a long time due to data transmission anomalies, thereby improving the data transmission speed and accuracy of wireless communication and ensuring the reliability of data transmission between wireless communication devices.

[0066] In an optional implementation of the present disclosure, the exception handling status identifier may specifically include: a first identifier indicating that the exception situation corresponding to the exception handling work order has not been handled, and a second identifier indicating that the exception situation corresponding to the exception handling work order has been handled. Optionally, in an embodiment of the present disclosure, the above exception handling status identifier may be represented by a 1-bit binary number, for example, the above first identifier and the second identifier may be recorded as binary numbers 0 and 1, respectively.

[0067] In other embodiments of the present disclosure, the exception handling status identifier may also include other identifiers to record more processing information during the exception handling process. Optionally, the exception handling status identifier can be represented by a 3-bit binary number, the highest bits 0 and 1 correspond to the above-mentioned first identifier and second identifier respectively, and the lower 2 bits represent the number of times the data is re-received during the exception handling process. For example: the exception handling status identifier is 001, the highest bit is 0, indicating that the exception handling is not completed, and the lower 2 bits are 01, indicating that the data has been re-received 1 time; for example: the exception handling status identifier is 110, the highest bit is 1, indicating that the exception handling is completed, and the lower 2 bits are 10, indicating that the exception handling is completed after re-receiving the data 2 times.

[0068] In an optional embodiment of the present disclosure, if the target data is abnormal in the above step 102, an abnormality handling work order is generated, which may specifically include:

[0069] Step 1021, when the target data is abnormal, determine the abnormal duration;

[0070] Step 1022: if the abnormal duration is greater than the first preset duration, generating the abnormal handling work order;

[0071] Step 1023: If the exception duration is not greater than the first preset duration, return to step 101 and do not generate an exception handling work order.

[0072] Optionally, when the embodiment of the present disclosure determines that there is an abnormality in the target data, the current time can be recorded as the start time of the abnormality, and the abnormal duration, that is, the maintenance time of the abnormal state, is accumulated from the start time of the abnormality; if the abnormal duration is greater than a first preset duration, an exception handling work order is generated; conversely, if the abnormal duration is not greater than the first preset duration, no exception handling work order is generated, but the process returns to step 101 to continue to determine whether the next target data sent by the sender is abnormal.

[0073] The disclosed embodiment determines whether to generate an exception handling work order based on the duration of the exception, that is, the exception duration, so as to avoid data anomalies caused by accidental data sampling errors, thereby avoiding the generation of unnecessary exception handling work orders, reducing the burden of data transmission control, and improving control efficiency.

[0074] Optionally, whether to continue to accumulate the abnormal duration, that is, whether the abnormal state is still maintained, can be achieved by re-reading the target data and re-judging whether there is an abnormality after determining that the target data has an abnormality. If the judgment result is still abnormal, it means that the abnormal state is still continuing; conversely, if there is no abnormality in the re-read target data, it means that the abnormal state disappears and the current abnormality is caused by a data sampling error.

[0075] In an optional implementation of the present disclosure, the abnormal duration may be recorded in a corresponding abnormality handling work order.

[0076] In an optional implementation manner of the present disclosure, the tracking and monitoring of the exception handling work order according to the exception handling status identifier in step 103 may specifically include:

[0077] Step 1031, determining the accumulated processing time corresponding to the exception processing work order according to the exception processing status identifier, and generating a prompt message if the accumulated processing time is greater than a second preset time.

[0078] Optionally, the time can be counted from the moment the exception handling work order is generated. The exception handling status indicator can be used to determine whether the exception handling work order has been processed. As long as the processing is not completed, the time is kept to obtain the cumulative processing time corresponding to the exception handling work order. If the cumulative processing time is greater than the second preset time, it means that the abnormal situation corresponding to the exception handling work order has not been processed for a long time, so a prompt message can be generated to remind relevant personnel to consider whether to ignore the exception or manually handle the exception, so as to avoid the exception handling work order occupying relevant equipment resources for a long time.

[0079] In an optional implementation manner of the present disclosure, the tracking and monitoring of the exception handling work order according to the exception handling status identifier in step 103 may specifically include:

[0080] Step 1032: if the exception processing status identifier is the first identifier, generating and sending exception response information, so that the sending end resends new target data corresponding to the target data according to the exception response information;

[0081] Step 1033: if the new target data does not have an exception, modify the exception processing status identifier from the first identifier to a second identifier;

[0082] Step 1034: if the new target data is abnormal, return to step 1032 to return the abnormal response information to the sending end again;

[0083] As mentioned above, the first identifier indicates that the exception situation corresponding to the exception handling work order has not been handled; the second identifier indicates that the exception situation corresponding to the exception handling work order has been handled.

[0084] In the disclosed embodiment, each exception handling work order of the current device end can be traversed according to a certain period. If the exception handling status identifier in the exception handling work order is the above-mentioned first identifier, that is, the corresponding abnormal situation still exists, then the exception response information can be returned to the sending end of the target data, triggering the sending end to resend the data. If the newly received new target data still has an exception, the exception response information is returned again. If the newly received new target data does not have an exception, the exception situation corresponding to the exception handling work order has been processed, so the exception handling status identifier can be modified from the first identifier to the second identifier, indicating that the exception handling work order has been processed and there is no need to track the exception handling work order.

[0085] Optionally, after the exception handling status identifier is changed to the second identifier, the corresponding exception handling work order may be archived for subsequent comprehensive statistical analysis of data transmission anomalies of related devices.

[0086] Optionally, after the exception handling status identifier is changed to the second identifier, the cumulative processing time timing mentioned above ends, and the total processing time corresponding to the exception handling work order is obtained. The total processing time can be recorded in the exception handling work order for archiving and used for statistical analysis of related equipment.

[0087] In an optional implementation manner of the present disclosure, the data transmission control method further includes:

[0088] After receiving the target data, storing the target data in a preset backup area;

[0089] Correspondingly, in the above step 103, tracking and monitoring the exception handling work order according to the exception handling status identifier may specifically include: when the exception handling status identifier is the second identifier, deleting the target data from the preset backup area.

[0090] When the exception handling status is identified as the second identification, it indicates that the corresponding exception handling work order has been processed and the target data does not need to be stored any more, so it can be deleted from the preset backup area.

[0091] Optionally, if the judgment result of step 101 is that there is no abnormality in the target data and the target data does not need to be stored any more, the target data may be deleted from the preset backup area at this time.

[0092] The disclosed embodiment stores the received target data into a preset backup area for subsequent abnormality judgment of the target data; and promptly deletes the target data corresponding to the exception handling work order that has been processed from the preset backup area to reserve more storage space for storing new data, avoid the preset storage area being occupied by unnecessary data, and optimize the utilization of storage space.

[0093] In an optional implementation manner of the present disclosure, determining whether the target data is abnormal in step 101 may specifically include: determining whether the target data meets a preset abnormal condition.

[0094] In different application scenarios, the communication protocol of wireless communication may be different, and the corresponding data encapsulation format may also be different, so different preset abnormal conditions can be adaptively set.

[0095] Optionally, in the field of industrial automation control, the central control device and multiple controlled devices usually communicate based on the Modbus protocol; the central control device acts as the master station, and each controlled device acts as a slave station. The master station sends data to the slave station to control the slave station to execute corresponding instructions, such as reporting or modifying its own stored data, adjusting its own configuration, etc.

[0096] Under the Modbus protocol, the data sent from the master to the slave can be Figure 2 The format shown is as follows: the first part is the address of the slave station to which the data is to be sent; the second part is the function code, which indicates the instruction code sent by the master station to the slave station, used to instruct the slave station to perform what operation, for example, the function code 01 indicates reading the coil register, 05 indicates writing a single coil register, etc.; the third part is the data field, that is, the specific data to be sent to the slave station; the fourth part is the check code, which is used to check the data and determine whether there are errors such as bit errors, such as a bit changing from 0 to 1 during transmission. The check code is generated according to the check rule agreed upon between the master station and the slave station, which can be a cyclic redundancy check (CRC) or a longitudinal redundancy check (LRC).

[0097] based on Figure 2 The data format shown in the figure is used to control data transmission by applying the embodiment of the present disclosure, and the preset abnormal condition set includes at least one of the following:

[0098] A. The function code in the target data is not within the preset range;

[0099] The data length corresponding to the function code in the Modbus protocol is one byte, and the corresponding decimal number range is 1 to 255. Among them, the legal function code range is 1 to 127; other values ​​are used to indicate abnormalities, that is, the function code plus 128 (corresponding to 0x80H in hexadecimal), that is, 129 to 255, indicates that the function code is abnormal. Assuming that the function code in the target data is 01H in hexadecimal, when it is abnormal, the corresponding abnormal code 01H+0x80H=0x81H can be calculated, which corresponds to 129 in decimal.

[0100] In addition, the entire legal range of 1 to 127 can also be divided into different segments, corresponding to public function codes and user-defined function codes, such as segments 65 to 72 and 100 to 110 are user-defined function code segments, and the others are public function code segments.

[0101] Therefore, the above preset range can be set according to the function code range used in the actual application scenario. For example, if a certain control scenario does not exist or does not accept user-defined functions, the range corresponding to the public function code can be used as the preset range; for example, in a certain control scenario, only eight function codes 01~06, 15, 16 (corresponding to hexadecimal representation of 01H~06H, 0FH, 10H) are needed, and the eight function codes can be used as the above preset range.

[0102] If the function code in the target data is not within the above preset range, it means that the function code is abnormal and the current slave device cannot execute the function corresponding to the function code. It is necessary to generate an exception handling work order for exception handling.

[0103] B. The function code does not match the responsive function corresponding to the current receiving end;

[0104] The configurations of multiple slave devices under the same master station may be different. For example, the register of slave device S1 is a read-write register, while the register of another slave device S2 is a read-only register. If the function code in the target data received by slave device S2 is 05, that is, writing a single coil register, then the slave device S2 cannot respond to the function corresponding to the function code 05, and the target data is abnormal.

[0105] C. The starting address and the number of registers in the target data do not match the register information corresponding to the current receiving end;

[0106] For different function codes, the content in the data field of the target data is also different. For example, for the above-mentioned functions of reading or writing registers such as 01, 05, the data in the data field includes the starting address of reading or writing and the number of registers to be read or written. Assume that a slave device S3 contains 10 registers, and the corresponding addresses are expressed in hexadecimal as 0001H~000AH. The starting address in the data field of the received target data is 0008H, and the number of registers is 5, that is, the register address to be read or written is 0008H~000CH, which obviously exceeds the register address range of the slave device S3, that is, it does not match the register information corresponding to the slave device S3, and the target data is abnormal.

[0107] D. The result of verifying the target data according to the verification code in the target data is that the verification fails.

[0108] The target data can be checked according to the check code. If the check passes, it means that there is no bit error in the target data during transmission. If the check fails, it means that there is a bit error in the target data, that is, the target data is abnormal.

[0109] It should be noted that the above-mentioned preset abnormal conditions A to D are several examples of the present disclosure. Other abnormal conditions may be set according to actual application scenarios or data formats for abnormal judgment of target data, and the embodiments of the present disclosure will not list them one by one.

[0110] In an optional implementation of the present disclosure, the above-mentioned exception handling worksheet may include exception object information representing the cause of the exception and the location of the exception. The exception object information may be generated according to the preset exception condition that matches the target data.

[0111] Optionally, the exception object information can be the judgment result of each preset exception condition, or different codes can be used to represent different exception causes. For example, after judgment, if the target data meets the above preset exception condition A, code 01 is generated, indicating that the function code is illegal; if the target data meets the above preset exception condition C, code 02 is generated, indicating that the data address is illegal, and so on. When tracking and monitoring the exception handling work order, the specific exception content corresponding to the exception handling work order can be determined according to the above exception object information.

[0112] In an optional implementation manner of the present disclosure, the data transmission control method may further include:

[0113] Perform abnormal statistical analysis on the current equipment based on multiple abnormal processing work orders within a preset time period.

[0114] As described in the above embodiment, in addition to the exception handling status identifier, the exception handling work order may also include the exception start time, the cumulative processing time, the total processing time, the exception object information, etc. According to the multiple exception handling work orders generated within a preset time period, such as 24 hours, the current device can be statistically analyzed, including but not limited to:

[0115] Calculate or determine the total number of data transmission anomalies within the preset time period;

[0116] Calculate or determine the average processing time, maximum processing time, etc. of the exception handling work order within the preset time period;

[0117] Statistics are collected on the number and frequency of each abnormal reason occurring within the preset time period.

[0118] In the embodiment of the present disclosure, by performing statistical analysis on the abnormal conditions of the current device, it is possible to understand the number of data transmission anomalies of the current device, the duration of anomaly processing, the causes of abnormalities that occur more frequently, etc., and then the device or the system in which it is located can be optimized to reduce the probability of data transmission anomalies and improve data transmission speed and accuracy.

[0119] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, which will not be described one by one here.

[0120] Figure 3 is a structural diagram of a data transmission control device provided by an embodiment of the present disclosure, see Figure 3 , the device 300 comprises:

[0121] The abnormality judgment module 301 is used to judge whether the target data is abnormal when receiving the target data from the sending end;

[0122] The work order generation module 302 is used to generate an exception handling work order if the target data is abnormal; the exception handling work order includes: an exception handling status identifier;

[0123] The work order tracking module 303 is used to track and monitor the exception handling work order.

[0124] In one implementation of the embodiment of the present disclosure, the work order generation module 302 is used to generate an exception handling work order if the target data is abnormal, which may specifically include:

[0125] The work order generation module 302 is used to determine the abnormality duration when the target data is abnormal, and to generate the abnormality handling work order if the abnormality duration is greater than the first preset duration.

[0126] In one implementation of the embodiment of the present disclosure, the work order tracking module 303 is used to track and monitor the exception handling work order, which may specifically include:

[0127] The work order tracking module 303 is used to determine the cumulative processing time corresponding to the exception processing work order according to the exception processing state identifier, and generate a prompt message if the cumulative processing time is greater than a second preset time.

[0128] In one implementation of the embodiment of the present disclosure, the work order tracking module 303 is used to track and monitor the exception handling work order, which may specifically include:

[0129] The work order tracking module 303 is used to generate and send exception response information if the exception handling status identifier is the first identifier, so that the sending end resends new target data corresponding to the target data according to the exception response information; if there is no exception in the new target data, the exception handling status identifier is modified from the first identifier to the second identifier.

[0130] The first mark indicates that the abnormal situation corresponding to the exception handling work order has not been handled; the second mark indicates that the abnormal situation corresponding to the exception handling work order has been handled.

[0131] In one implementation of the embodiment of the present disclosure, the data transmission control device 300 may further include a storage module, which is used to store the target data in a preset backup area after receiving the target data.

[0132] Correspondingly, the work order tracking module 303 may also be configured to delete the target data from the preset backup area when the exception processing status identifier is the second identifier.

[0133] In one implementation of the embodiment of the present disclosure, the above-mentioned abnormality judgment module 301 is used to judge whether the target data is abnormal when receiving the target data from the sending end, which may specifically include:

[0134] The abnormality determination module 301 is used to determine whether the target data meets the preset abnormality conditions. The preset abnormality conditions include but are not limited to the preset abnormality conditions A to D described in the above embodiments.

[0135] In one implementation of the embodiment of the present disclosure, the data transmission control device 300 may further include an analysis module for performing an abnormality statistical analysis on the current device according to a plurality of the abnormality handling work orders within a preset time period.

[0136] The present disclosure also provides an electronic device, see Figure 4The electronic device 400 includes a processor 401, a memory 402, a program or instruction stored in the memory 402 and executable on the processor 401. When the program or instruction is executed by the processor 401, each process of the above-mentioned data transmission control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here. It should be noted that the electronic devices in the embodiments of the present disclosure include mobile electronic devices and non-mobile electronic devices. The electronic device 400 can be any device that needs to receive data. As a data receiving end, the control of the data transmission process is realized by executing the above-mentioned data transmission control method embodiment.

[0137] The embodiment of the present disclosure also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the various processes of the above-mentioned data transmission control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0138] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0139] The disclosed embodiment further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0140] It should be understood that the chip mentioned in the embodiments of the present disclosure may also be referred to as a system-level chip, a system chip, a chip system, or a system-on-chip chip, etc.

[0141] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0142] Although one or more embodiments of this specification provide method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).

[0143] In the description of the present application, it should be noted that the terms "upper", "lower", "inside", "outside", "front", "back", "left", "right", etc. indicate directions or positional relationships based on the directions or positional relationships in the working state of the present application. They are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they should not be understood as limitations on the present application.

[0144] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "install", "connect" and "connect" should be understood in a broad sense. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0145] The present application has been described above in conjunction with preferred embodiments, but these embodiments are only exemplary and serve only as an illustration. On this basis, various replacements and improvements may be made to the present application, all of which fall within the scope of protection of the present application.

Claims

1. A data transmission control method, characterized in that: include: When receiving target data from a sending end, determining whether the target data is abnormal; If the target data is abnormal, an exception handling work order is generated; The exception handling work order includes: an exception handling status identifier; Tracking and monitoring the exception handling work order according to the exception handling status identifier; The tracking and monitoring of the exception handling work order according to the exception handling status identifier includes: If the exception processing status identifier is the first identifier, generating and sending exception response information, so that the sending end resends new target data corresponding to the target data according to the exception response information; If the new target data does not have an exception, modifying the exception handling status identifier from the first identifier to a second identifier; The first mark indicates that the abnormal situation corresponding to the abnormal handling work order has not been handled; the second mark indicates that the abnormal situation corresponding to the abnormal handling work order has been handled; The exception handling status identifier also includes an identifier indicating the number of times data is re-received during the exception handling process.

2. The method according to claim 1, characterized in that If the target data is abnormal, an abnormality handling work order is generated, including: When the target data is abnormal, determine the duration of the abnormality; If the abnormal duration is greater than the first preset duration, the abnormal handling work order is generated.

3. The method according to claim 1, characterized in that The tracking and monitoring of the exception handling work order according to the exception handling status identifier includes: Determine the accumulated processing time corresponding to the exception processing work order according to the exception processing status identifier; If the accumulated processing time is longer than the second preset time, a prompt message is generated.

4. The method according to claim 1, characterized in that Also includes: After receiving the target data, storing the target data in a preset backup area; The tracking and monitoring of the exception handling work order according to the exception handling status identifier includes: when the exception handling status identifier is the second identifier, deleting the target data from the preset backup area.

5. The method according to claim 1, characterized in that The determining whether the target data is abnormal includes: determining whether the target data meets a preset abnormal condition; The preset abnormal condition includes at least one of the following: The function code in the target data is not within the preset range; The function code does not match the responsive function corresponding to the current receiving end; The starting address and the number of registers in the target data do not match the register information corresponding to the current receiving end; The result of verifying the target data according to the verification code in the target data is that the verification fails; The exception handling worksheet includes: exception object information generated according to the preset exception condition that matches the target data.

6. The method according to claim 1, characterized in that Also includes: An abnormality statistical analysis is performed on the current device according to a plurality of the abnormality handling work orders within a preset time period.

7. A data transmission control device, characterized in that: include: The abnormality judgment module is used to judge whether the target data is abnormal when receiving the target data from the sending end; A work order generation module is used to generate an exception handling work order if there is an exception in the target data; The exception handling work order includes: an exception handling status identifier; A work order tracking module, used to track and monitor the exception handling work order; The work order tracking module is used to track and monitor the exception handling work order, specifically including: If the exception handling status identifier is the first identifier, generating and sending exception response information so that the sending end resends new target data corresponding to the target data according to the exception response information; if there is no exception in the new target data, changing the exception handling status identifier from the first identifier to the second identifier; The first mark indicates that the abnormal situation corresponding to the abnormal handling work order has not been handled; the second mark indicates that the abnormal situation corresponding to the abnormal handling work order has been handled; The exception handling status identifier also includes an identifier indicating the number of times data is re-received during the exception handling process.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.

9. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data exception processing method and device

    CN108229841A

  • Operation and maintenance management platform based on fault diagnosis and analysis of monitoring equipment

    CN116091901A