CN112235827A - Method for improving successful efficiency of wireless networking data communication - Google Patents
Method for improving successful efficiency of wireless networking data communication Download PDFInfo
- Publication number
- CN112235827A CN112235827A CN202010964016.XA CN202010964016A CN112235827A CN 112235827 A CN112235827 A CN 112235827A CN 202010964016 A CN202010964016 A CN 202010964016A CN 112235827 A CN112235827 A CN 112235827A
- Authority
- CN
- China
- Prior art keywords
- data
- frame
- wireless
- wireless network
- crc
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000006855 networking Effects 0.000 title abstract description 28
- 230000005540 biological transmission Effects 0.000 claims abstract description 25
- 238000012545 processing Methods 0.000 claims abstract description 6
- 125000004122 cyclic group Chemical group 0.000 claims description 4
- 238000001514 detection method Methods 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 4
- 238000005457 optimization Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 230000002349 favourable effect Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0006—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
Abstract
A method for improving successful efficiency of wireless networked data communications, comprising the steps of: presetting initial values of wireless network communication failure times and temporary byte variables as 0; terminal transmitting equipment in a wireless network performs data packet processing according to a transmitting data packet format and then performs wireless transmission according to a period T; and judging whether the device in the wireless network correctly receives the data packet of the wireless transmitting device. The invention optimizes the communication efficiency in the wireless networking, ensures the accuracy in the wireless data transmission and improves the false data transmission rate of the whole wireless network system.
Description
Technical Field
The invention relates to the field of wireless networking algorithms, in particular to a method for improving successful efficiency of wireless networking data communication.
Background
At present, wireless networking schemes mainly rely on the performance of hardware, such as increasing transmission power, improving antenna quality, applying frequency modulation technology of a chip and the like, on the aspect of ensuring the successful efficiency of data communication, the schemes need a plurality of expensive professional devices for auxiliary testing in the processes of production, sale and debugging, higher requirements are also put forward on the cost of products, the requirements of a radio frequency circuit on PCB layout are strict, and the portability is relatively poor. Moreover, the existing wireless networking scheme has relatively coarse feedback information of the communication state, and particularly for a slightly complicated wireless network, the problem is not easy to be rapidly checked after the problem occurs; the running state is unstable, and the false alarm rate and the packet loss rate are relatively high.
Disclosure of Invention
Objects of the invention
In order to solve the technical problems in the background art, the invention provides a method for improving the successful efficiency of wireless networking data communication, which optimizes the communication efficiency in wireless networking, ensures the correct rate in data wireless transmission and improves the false alarm rate of data transmission of the whole wireless network system.
(II) technical scheme
In order to solve the above problems, the present invention provides a method for improving successful efficiency of wireless networking data communication, comprising the following steps:
s1: presetting initial values of wireless network communication failure times and temporary byte variables as 0;
s2: terminal transmitting equipment in a wireless network performs data packet processing according to a transmitting data packet format and then performs wireless transmission according to a period T;
s3: judging whether the equipment in the wireless network correctly receives the data packet of the wireless transmitting equipment, including judging whether the frame head is successfully received or not and judging whether the frame tail is received or not;
s4: if the frame head or the frame tail fails to receive the data error, the data is not replied, and the number of temporary byte variables is added by 1;
s41: the system carries out corresponding classification according to the user-defined data state and the fault code;
s42: if the temporary byte variable is greater than the wireless network communication failure times, the hardware is indicated to have wireless communication problems, and error reporting signal equipment is overhauled;
s43: if the temporary byte variable is less than the wireless network communication failure times, returning to S2 and restarting;
s5: if the frame head and the frame tail receive the correct data, analyzing the address of the equipment in the transmitted data packet and checking the CRC;
s51: it is determined whether the CRC check is correct,
s52: if the CRC is correct, replying the received data, resetting the cross street variable, and judging by the corresponding terminal according to the received data stream to return a reply frame data packet based on the corresponding state code;
s53: if the CRC fails, replying an error state acceptance data frame, and the corresponding terminal judges according to the acceptance data stream to return a reply frame data packet based on the corresponding state code.
Preferably, in S4, if there is a successful receipt of the data for changing the terminal address in the transmission period T within the number of times of the wireless network communication failure, the temporary byte variable is cleared.
Preferably, the CRC check is calculated as CRC 16.
Preferably, the user-defined communication failure times range from 0 to 255.
Preferably, the method comprises a frame transmitting data packet and a frame reply receiving data packet;
transmitting a data packet by one frame, wherein the parameters comprise a frame header, a terminal equipment address, a concentrator equipment address, data length, data, a state 1, a state 2, CRC (cyclic redundancy check) and a frame tail;
receiving a data packet by one frame reply, wherein the parameters comprise a frame header, a terminal equipment address, data length, data, state, communication failure times, CRC (cyclic redundancy check) and a frame tail;
the data length and the data of a frame of transmitting data packet and a frame of replying and receiving data packet are correspondingly variable;
if, the data length is 0: 0x00, then data may not be added during transmission;
if, the data length is 3: 0x03, the data has three bytes arranged in a data format from high order bits to low order bits.
Preferably, a frame is transmitted, comprising 256X256 state combinations.
Preferably, the status in the reply accept packet of a frame includes the following:
data was successfully accepted and CRC checked without errors: 0x 01;
the data is successfully received and the CRC check is wrong, and the address of the transmitting terminal equipment is analyzed: 0x 02;
the data frame header is unsuccessfully received: 0x 03;
unsuccessful data frame end acceptance: 0x 04.
The technical scheme of the invention has the following beneficial technical effects:
the invention solves the technical problems of high packet loss rate, unstable operation, poor function portability and the like of data communication in the existing wireless networking scheme, realizes the optimization of the communication efficiency in wireless networking from the aspect of algorithm, adds algorithms such as a data fault-tolerant mechanism, state detection and the like to the networking equipment, is very favorable for the maintenance and the overhaul of the whole wireless network, can intuitively and integrally master the operation state of each equipment in the wireless network, can ensure the accuracy in the wireless data transmission and improve the false data transmission rate of the whole wireless network system. The whole algorithm has great popularization and application values in universality, portability, flexibility and practicability.
In the invention, optimization processing is carried out from the algorithm perspective, direct association with specific hardware networking equipment is avoided, algorithm portability is relatively strong, flexibility is relatively high, and practicability is more obvious.
In the invention, a user can customize the state of the transmitted data according to the wireless network performance; communication efficiency in wireless networking is optimized algorithmically, a data fault tolerance mechanism, state detection and the like are added to the networking equipment, the operation state of each equipment in the wireless network can be intuitively and integrally mastered, and the maintenance and overhaul of the whole wireless network are facilitated; the false alarm rate in the data wireless transmission is reduced, and the data transmission performance of the whole wireless network system is improved; the embedded wireless networking program is compatible, and the portability, the consistency and the flexibility are good.
Drawings
Fig. 1 is a flowchart illustrating a method for improving successful efficiency of wireless networking data communication according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
As shown in fig. 1, a method for improving successful efficiency of wireless networking data communication proposed by the present invention includes the following steps:
s1: presetting initial values of wireless network communication failure times and temporary byte variables as 0;
s2: terminal transmitting equipment in a wireless network performs data packet processing according to a transmitting data packet format and then performs wireless transmission according to a period T;
s3: judging whether the equipment in the wireless network correctly receives the data packet of the wireless transmitting equipment, including judging whether the frame head is successfully received or not and judging whether the frame tail is received or not;
s4: if the frame head or the frame tail fails to receive the data error, the data is not replied, and the number of temporary byte variables is added by 1;
s41: the system carries out corresponding classification according to the user-defined data state and the fault code;
s42: if the temporary byte variable is greater than the wireless network communication failure times, the hardware is indicated to have wireless communication problems, and error reporting signal equipment is overhauled;
s43: if the temporary byte variable is less than the wireless network communication failure times, returning to S2 and restarting;
s5: if the frame head and the frame tail receive the correct data, analyzing the address of the equipment in the transmitted data packet and checking the CRC;
s51: it is determined whether the CRC check is correct,
s52: if the CRC is correct, replying the received data, resetting the cross street variable, and judging by the corresponding terminal according to the received data stream to return a reply frame data packet based on the corresponding state code;
s53: if the CRC fails, replying an error state acceptance data frame, and the corresponding terminal judges according to the acceptance data stream to return a reply frame data packet based on the corresponding state code.
In an alternative embodiment, in S4, if there is a successful receipt of the data for the changed terminal address in the transmission period T within the number of wireless network communication failures, the temporary byte variable is cleared.
In an alternative embodiment, the CRC check uses the CRC16 algorithm.
In an alternative embodiment, the user-defined number of communication failures ranges from 0 to 255.
The invention solves the technical problems of high packet loss rate, unstable operation, poor function portability and the like of data communication in the existing wireless networking scheme, realizes the optimization of the communication efficiency in wireless networking from the aspect of algorithm, adds algorithms such as a data fault-tolerant mechanism, state detection and the like to the networking equipment, is very favorable for the maintenance and the overhaul of the whole wireless network, can intuitively and integrally master the operation state of each equipment in the wireless network, can ensure the accuracy in the wireless data transmission and improve the false data transmission rate of the whole wireless network system. The whole algorithm has great popularization and application values in universality, portability, flexibility and practicability.
In the invention, optimization processing is carried out from the algorithm perspective, direct association with specific hardware networking equipment is avoided, algorithm portability is relatively strong, flexibility is relatively high, and practicability is more obvious.
The invention supports the full duplex communication wireless networking equipment and is based on the existing wireless networking foundation.
In an alternative embodiment, the method comprises a frame transmitting data packet and a frame reply receiving data packet;
a frame is transmitted, and the parameters include a frame header (0xA5), an end device address, a concentrator device address, a data length, data, a status 1, a status 2, a CRC checksum frame trailer (0x5A), as shown in table 1:
table 1: transmitting data packet in one frame
A frame reply accept packet, parameters including header (0xB5), end device address, data length, data, status, number of failures, CRC check, and trailer (0x5B), as shown in table 2:
table 2: one frame reply acceptance packet
In tables 1 and 2, the data packets are in units of bytes;
the data length and data of the transmitting and replying receiving data packet are correspondingly variable;
if, the data length is 0: 0x00, then data may not be added during transmission;
if, the data length is 3: 0x03, the data has three bytes arranged in a data format from high order to low order (e.g., sending data as 0x231456, the order of the data in the transmission packet is 0x23, 0x14, 0x 56).
In table 1, in a frame of transmission data packet, state 1 and state 2 form 256 × 256 state combinations (which can also be set by self-definition in practical use) to satisfy most of the required use environments.
In table 2, in one frame of the reply accept packet, the states in the reply accept packet include the following:
data was successfully accepted and CRC checked without errors: 0x 01;
the data is successfully received and the CRC check is wrong, and the address of the transmitting terminal equipment is analyzed: 0x 02;
the data frame header is unsuccessfully received: 0x 03;
unsuccessful data frame end acceptance: 0x 04.
It should be noted that the number of communication failures is user-defined (0-255), which means that all times of receiving no received frame in the communication period and if the number is greater than the number of communication failures, the wireless hardware is prompted to have a failure.
The invention optimizes the algorithm and improves the successful efficiency of data communication.
In summary, the algorithm scheme of the present invention has the following technical effects or advantages:
the user can customize the state of the transmitted data according to the wireless network performance;
communication efficiency in wireless networking is optimized algorithmically, a data fault tolerance mechanism, state detection and the like are added to the networking equipment, the operation state of each equipment in the wireless network can be intuitively and integrally mastered, and the maintenance and overhaul of the whole wireless network are facilitated;
the false alarm rate in the data wireless transmission is reduced, and the data transmission performance of the whole wireless network system is improved; the embedded wireless networking program is compatible, and the portability, the consistency and the flexibility are good.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.
Claims (7)
1. A method for improving successful efficiency of wireless networked data communications, comprising the steps of:
s1: presetting initial values of wireless network communication failure times and temporary byte variables as 0;
s2: terminal transmitting equipment in a wireless network performs data packet processing according to a transmitting data packet format and then performs wireless transmission according to a period T;
s3: judging whether the equipment in the wireless network correctly receives the data packet of the wireless transmitting equipment, including judging whether the frame head is successfully received or not and judging whether the frame tail is received or not;
s4: if the frame head or the frame tail fails to receive the data error, the data is not replied, and the number of temporary byte variables is added by 1;
s41: the system carries out corresponding classification according to the user-defined data state and the fault code;
s42: if the temporary byte variable is greater than the wireless network communication failure times, the hardware is indicated to have wireless communication problems, and error reporting signal equipment is overhauled;
s43: if the temporary byte variable is less than the wireless network communication failure times, returning to S2 and restarting;
s5: if the frame head and the frame tail receive the correct data, analyzing the address of the equipment in the transmitted data packet and checking the CRC;
s51: it is determined whether the CRC check is correct,
s52: if the CRC is correct, replying the received data, resetting the cross street variable, and judging by the corresponding terminal according to the received data stream to return a reply frame data packet based on the corresponding state code;
s53: if the CRC fails, replying an error state acceptance data frame, and the corresponding terminal judges according to the acceptance data stream to return a reply frame data packet based on the corresponding state code.
2. The method according to claim 1, wherein in S4, if there is a successful receipt of the data for changing the terminal address in the transmission period T within the number of wireless network communication failures, the temporary byte variable is cleared.
3. The method of claim 1, wherein the CRC check is calculated as CRC 16.
4. The method of claim 1, wherein the user-defined number of communication failures ranges from 0 to 255.
5. The method of claim 1, comprising a frame of transmit packets and a frame of reply accept packets;
transmitting a data packet by one frame, wherein the parameters comprise a frame header, a terminal equipment address, a concentrator equipment address, data length, data, a state 1, a state 2, CRC (cyclic redundancy check) and a frame tail;
receiving a data packet by one frame reply, wherein the parameters comprise a frame header, a terminal equipment address, data length, data, state, communication failure times, CRC (cyclic redundancy check) and a frame tail;
the data length and the data of a frame of transmitting data packet and a frame of replying and receiving data packet are correspondingly variable;
if, the data length is 0: 0x00, then data may not be added during transmission;
if, the data length is 3: 0x03, the data has three bytes arranged in a data format from high order bits to low order bits.
6. The method of claim 5, wherein a frame of transmitted data packets comprises 256X256 state combinations.
7. The method of claim 5, wherein the status in a frame reply accept packet includes the following:
data was successfully accepted and CRC checked without errors: 0x 01;
the data is successfully received and the CRC check is wrong, and the address of the transmitting terminal equipment is analyzed: 0x 02;
the data frame header is unsuccessfully received: 0x 03;
unsuccessful data frame end acceptance: 0x 04.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010964016.XA CN112235827A (en) | 2020-09-15 | 2020-09-15 | Method for improving successful efficiency of wireless networking data communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010964016.XA CN112235827A (en) | 2020-09-15 | 2020-09-15 | Method for improving successful efficiency of wireless networking data communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112235827A true CN112235827A (en) | 2021-01-15 |
Family
ID=74116313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010964016.XA Pending CN112235827A (en) | 2020-09-15 | 2020-09-15 | Method for improving successful efficiency of wireless networking data communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112235827A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155009A (en) * | 2007-09-21 | 2008-04-02 | 艾默生网络能源有限公司 | Anti-interference method for communication system |
CN101576742A (en) * | 2009-06-19 | 2009-11-11 | 西安交通大学 | Remote monitoring and fault diagnosing system for numerical control slitter and method for realizing same |
CN101646185A (en) * | 2009-09-04 | 2010-02-10 | 重庆大学 | Regulation and measurement equipment of wireless self-organizing network and use method thereof |
CN102123007A (en) * | 2011-03-01 | 2011-07-13 | 上海奈凯电子科技有限公司 | Communication method for realizing data transmission in numerical control system |
CN106788894A (en) * | 2016-12-20 | 2017-05-31 | 中核控制系统工程有限公司 | Segmentation individual transmission method of calibration |
WO2018137147A1 (en) * | 2017-01-24 | 2018-08-02 | 北京广利核系统工程有限公司 | Self-diagnosis method for communication protocol of security-level instrumentation and control system of nuclear power plant |
-
2020
- 2020-09-15 CN CN202010964016.XA patent/CN112235827A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101155009A (en) * | 2007-09-21 | 2008-04-02 | 艾默生网络能源有限公司 | Anti-interference method for communication system |
CN101576742A (en) * | 2009-06-19 | 2009-11-11 | 西安交通大学 | Remote monitoring and fault diagnosing system for numerical control slitter and method for realizing same |
CN101646185A (en) * | 2009-09-04 | 2010-02-10 | 重庆大学 | Regulation and measurement equipment of wireless self-organizing network and use method thereof |
CN102123007A (en) * | 2011-03-01 | 2011-07-13 | 上海奈凯电子科技有限公司 | Communication method for realizing data transmission in numerical control system |
CN106788894A (en) * | 2016-12-20 | 2017-05-31 | 中核控制系统工程有限公司 | Segmentation individual transmission method of calibration |
WO2018137147A1 (en) * | 2017-01-24 | 2018-08-02 | 北京广利核系统工程有限公司 | Self-diagnosis method for communication protocol of security-level instrumentation and control system of nuclear power plant |
Non-Patent Citations (1)
Title |
---|
桂江华;邵健;潘邈;: "一种高可靠串行通信协议", 电子与封装, no. 02, 20 February 2016 (2016-02-20) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8761089B2 (en) | Frame acknowledgment in a communication network | |
US6161207A (en) | Communications unit and method of communicating having efficient packet acknowledgement | |
CN101278512B (en) | Error correction in packet-based communication networks using data consistency checks | |
CN111030785B (en) | Method, system and wireless receiver for data retransmission in wireless network | |
US7707478B2 (en) | Error correction in packet-based communication networks using validation sets | |
CN103201976A (en) | Packet-level erasure protection coding in aggregated packet transmissions | |
US8335970B2 (en) | Encoder/decoder with unfolding error correction | |
CN101022473B (en) | Method for automatic, identifying plate card configration and generating local data in exchanger | |
CN108933642B (en) | Downlink retransmission method based on code block grouping, base station and terminal | |
EP3074912B1 (en) | Packet header protection for utility networks | |
CN108337069B (en) | Improved error rate reducing end parallel grouping CRC (Cyclic redundancy check) system | |
CN102104463A (en) | Data message request retransmission method and device | |
CN113014366B (en) | Control information indication method and network element | |
CN113645600A (en) | Data transmission method, device, terminal and storage medium | |
CN110505013B (en) | Control method and system for screen-free equipment distribution network, electronic equipment and storage medium | |
CN112235827A (en) | Method for improving successful efficiency of wireless networking data communication | |
CN113541874A (en) | Data transmission method and network equipment | |
CN114337942B (en) | Message retransmission method and device and electronic equipment | |
CN115361236A (en) | Data transmission consistency checking method, device, equipment and medium | |
CN102341784A (en) | Method for quick map recovery in case of error in moca | |
CN115996084B (en) | Microwave laser fusion system, communication link switching method, device and medium | |
CN115190088B (en) | Switch probability forwarding method based on software defined network | |
CN116795404A (en) | Upgrading method and system of server power firmware and WiFi assembly | |
US20240121031A1 (en) | Communication Method and Communication Apparatus | |
Wu et al. | Reliable transmission technology of spaceborne remote sensing data based on BeiDou short message communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |