CN107230331A - Wireless data communication method applied to industrial detection - Google Patents

Wireless data communication method applied to industrial detection Download PDF

Info

Publication number
CN107230331A
CN107230331A CN201610167525.3A CN201610167525A CN107230331A CN 107230331 A CN107230331 A CN 107230331A CN 201610167525 A CN201610167525 A CN 201610167525A CN 107230331 A CN107230331 A CN 107230331A
Authority
CN
China
Prior art keywords
data
data block
server
client computer
mark
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.)
Granted
Application number
CN201610167525.3A
Other languages
Chinese (zh)
Other versions
CN107230331B (en
Inventor
邵俊红
杨大雷
宋杰峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baowu Equipment Intelligent Technology Co Ltd
Original Assignee
Shanghai Baosteel Industry Technological Service Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Baosteel Industry Technological Service Co Ltd filed Critical Shanghai Baosteel Industry Technological Service Co Ltd
Priority to CN201610167525.3A priority Critical patent/CN107230331B/en
Publication of CN107230331A publication Critical patent/CN107230331A/en
Application granted granted Critical
Publication of CN107230331B publication Critical patent/CN107230331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of wireless data communication method applied to industrial detection, this method is initiated connection to server from client computer when data communication starts and shaken hands, and client computer sends connection request packet, and server replys connection and confirms packet;Client computer, which is received after connection confirms bag, to be started to server transmission data, and client computer is sent using repetition during data transfer, server uses redundant validation;Server is shaken hands to client computer initiation disconnection after the completion of data communication, server sends all data and has been received by data validation bag, client computer, which receives to send to server after data validation bag, disconnects packet, and server, which is received, to be disconnected data communication after packet and terminate.This method overcomes the defect that industrial site traditional data is communicated, it is ensured that accurate, the transmitting of data, improves industrial production efficiency, it is ensured that the correct application of detection data.

Description

Wireless data communication method applied to industrial detection
Technical field
The present invention relates to a kind of wireless data communication method applied to industrial detection.
Background technology
With the development of science and technology, data transmission network, especially wireless network are used widely, thus in industrial detection data by wireless network transmissions by most detection device first choice.But, due to most industrial site bad environments, there is the interference such as various magnetic fields, electric field in surrounding, the less stable of wireless signal, has a strong impact on accurate, the transmitting of data, once data transmission fault, then the detection operation of early stage need to repeat, or the Data Analysis Services in influence later stage, reduce production efficiency, the correct application of influence detection data.Traditional data communication based on TCP/IP is formulated based on wired data transfer simultaneously, it is complicated to shake hands, interaction mechanism is easy to occur communicating interrupt or postponed for a long time, particularly in some embedded devices, because protocol stack realizes imperfection, make data communication not only time length but also very unstable, limit the application of data transfer in industrial site.
The content of the invention
The technical problems to be solved by the invention are to provide a kind of wireless data communication method applied to industrial detection, this method overcomes the defect that industrial site traditional data is communicated, ensure accurate, the transmitting of data, improve industrial production efficiency, it is ensured that the correct application of detection data.
In order to solve the above technical problems, the present invention comprises the following steps applied to the wireless data communication method of industrial detection:
Shaken hands Step 1: initiating connection to server from client computer when data communication starts, client computer sends connection request packet to server, server replys client computer connection and confirms packet;
Step 2: the connection that client computer receives server confirms to start to server transmission data after wrapping, client computer uses redundant validation using transmission, server is repeated during data transfer;
Step 3: after the completion of data communication, server is initiated disconnection to client computer and shaken hands, server sends all data to client computer and has been received by data validation bag, client computer, which receives to send to server after data validation bag, disconnects packet, and server, which is received, to be disconnected data communication after packet and terminate.
Further, the connection request packet that client computer is sent to server includes the length of transmission data and the size of transmission data block, server is set up according to the size of transmission data length and transmission data block and receives data field and data block reception logo area, each mark one data block of correspondence in data block reception logo area, mark is not provided with data block reception logo area, then represent that the corresponding data block of the mark is not received by, provided with mark in data block reception logo area, then it represents that the corresponding data block of the mark has been received by.
Further, the connection request packet that client computer is sent to server includes the length of transmission data and the size of transmission data block, client computer sets up data block acknowledgement indicator area according to the length of transmission data and the size of transmission data block, each mark one data block of correspondence in data block acknowledgement indicator area, the data block that mark is not provided with data block acknowledgement indicator area represents that the data block does not have the data block provided with mark in the reception of being serviced device, data block acknowledgement indicator area to represent that being serviced device is received the data block.
Further, client computer sends the mark for searching the data block before data block in data block acknowledgement indicator area to server, and such as mark is present, represent that being serviced device is received the data block, without sending again, such as data block no marks, represent that the data block not yet being serviced device is received, it is necessary to send.
Further, comprising an ID in the data block that client computer is sent to server, the ID to should ordinal position of the data block in transmission data, the ID corresponds in data block acknowledgement indicator area with the mark of the data block.
Further, the ordinal position ID and redundant validation mark ID of data accepted block are included in the data validation bag that server is sent to client computer, ordinal position ID is identical with the data block ID that client computer is sent, and is corresponded with the mark of the data block in the data block reception logo area of server.
Further, client computer, which receives to identify in data block acknowledgement indicator area after the data validation bag of server transmission, has sent the corresponding marks of data block ID, and identifies corresponding flag bit according to the redundant validation mark ID of server in the data block.
Further, redundant validation mark ID in the data validation bag that server is sent to client computer is related to ordinal position ID, ordinal position ID in data validation bag is 100, represent that server receives the data block that the ID that client sends is 100, the mark of several data blocks is constituted redundant validation mark ID before the data block location in data block reception logo area for 100 data block by ID.
Because the wireless data communication method that the present invention is applied to industrial detection employs above-mentioned technical proposal, i.e. this method is shaken hands when data communication starts from client computer to server initiation connection, client computer sends connection request packet, and server replys connection and confirms packet;Client computer, which is received after connection confirms bag, to be started to server transmission data, and client computer is sent using repetition during data transfer, server uses redundant validation;Server is shaken hands to client computer initiation disconnection after the completion of data communication, server sends all data and has been received by data validation bag, client computer, which receives to send to server after data validation bag, disconnects packet, and server, which is received, to be disconnected data communication after packet and terminate.This method overcomes the defect that industrial site traditional data is communicated, it is ensured that accurate, the transmitting of data, improves industrial production efficiency, it is ensured that the correct application of detection data.
Brief description of the drawings
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings:
Fig. 1 is applied to the wireless data communication method schematic diagram of industrial detection for the present invention;
Fig. 2 is data transfer schematic diagram in this method;
Fig. 3 is data block order position ID and redundant validation mark ID mark schematic diagrames in this method.
Embodiment
Embodiment is as shown in figure 1, the present invention comprises the following steps applied to the wireless data communication method of industrial detection:
Shaken hands Step 1: initiating connection to server 2 from client computer 1 when data communication starts, client computer 1 sends connection request packet to server 2, server 2 replys the connection of client computer 1 and confirms packet;If client computer confirms that packet can retry connection and shake hands or abandon connection in the connection that setting time does not receive server;
Step 2: the connection that client computer 1 receives server 2 confirms to start after bag to transmit data to server 2, client computer 1 is sent using repetition during data transfer, server 2 uses redundant validation;
Step 3: after the completion of data communication, server 2 is initiated disconnection to client computer 1 and shaken hands, server 2 sends all data to client computer 1 and has been received by data validation bag, client computer 1, which receives to send to server 2 after data validation bag, disconnects packet, and server 2, which is received, to be disconnected data communication after packet and terminate.
It is preferred that, the connection request packet that client computer is sent to server includes the length of transmission data and the size of transmission data block, server is set up according to the size of transmission data length and transmission data block and receives data field and data block reception logo area, each mark one data block of correspondence in data block reception logo area, mark is not provided with data block reception logo area, then represent that the corresponding data block of the mark is not received by, provided with mark in data block reception logo area, then it represents that the corresponding data block of the mark has been received by.
It is preferred that, the connection request packet that client computer is sent to server includes the length of transmission data and the size of transmission data block, client computer sets up data block acknowledgement indicator area according to the length of transmission data and the size of transmission data block, each mark one data block of correspondence in data block acknowledgement indicator area, the data block that mark is not provided with data block acknowledgement indicator area represents that the data block does not have the data block provided with mark in the reception of being serviced device, data block acknowledgement indicator area to represent that being serviced device is received the data block.
It is preferred that, client computer sends the mark for searching the data block before data block in data block acknowledgement indicator area to server, and such as mark is present, represent that being serviced device is received the data block, without sending again, such as data block no marks, represent that the data block not yet being serviced device is received, it is necessary to send.
It is preferred that, comprising an ID in the data block that client computer is sent to server, the ID to should ordinal position of the data block in transmission data, the ID corresponds in data block acknowledgement indicator area with the mark of the data block.
It is preferred that, the ordinal position ID and redundant validation mark ID of data accepted block are included in the data validation bag that server is sent to client computer, ordinal position ID is identical with the data block ID that client computer is sent, and is corresponded with the mark of the data block in the data block reception logo area of server.
It is preferred that, client computer, which receives to identify in data block acknowledgement indicator area after the data validation bag of server transmission, has sent the corresponding marks of data block ID, and identifies corresponding flag bit according to the redundant validation mark ID of server in the data block.
It is preferred that, redundant validation mark ID in the data validation bag that server is sent to client computer is related to ordinal position ID, ordinal position ID in data validation bag is 100, represent that server receives the data block that the ID that client sends is 100, the mark of several data blocks is constituted redundant validation mark ID before the data block location in data block reception logo area for 100 data block by ID.For example, so that redundant validation mark ID is 32 signless integers as an example, each one data block reception mark of correspondence represents whether the position data block has been received by.
As shown in Fig. 2 after communication connection is set up, client computer 1 sets up data block acknowledgement indicator area 12 according to the data block size transmitted in transmission data length and each packet, one data block of each mark correspondence;Server 2 sets up data block reception logo area 22 according to the data block size transmitted in transmission data length and each packet.Client computer 1 searches the data block without acknowledgement indicator in data block acknowledgement indicator area 12, is transmitted from the taking-up data block of data field 11 is sent to server 2;Client computer 1 receives the confirmation packet sent from server 2 simultaneously, therefrom extracts current data block ordinal position ID and redundant validation ID, and acknowledgement indicator is set in the relevant position of data block acknowledgement indicator area 12;The packet that the subscribing client 1 of server 2 is sent, extract data block ID, searched whether to have been received by the data block in data block reception logo area 22 according to ID, if not receiving, the data block is put into the reception corresponding position in data field 21 and is set in data block reception logo area 22 and has received mark;Meanwhile, server 2 sends the confirmation bag of current data block to client computer 1, confirms that not only the ID comprising current data block also includes the whether paid-in mark of several data blocks before current data block in bag.After the inspection data block reception of server 2 logo area 22 confirms that all data blocks have been received all data data accepted bags are sent to client computer 1.Client computer 1 is distributed after all data blocks, checks data block acknowledgement indicator area 12, retransmits the data block for being not provided with data validation mark, and setting repetition transmission times or all data sent until receiving server 2 stop after having received confirmation packet.
As shown in Figure 3, data block order position ID and data block order position ID in data block reception logo area 22 is corresponded in data block acknowledgement indicator area 12, simultaneously, redundant validation mark ID in the data validation bag of the server mark of several data blocks before the data block order position ID and the data block location is constituted, to provide several data blocks before current data block whether paid-in mark.
This method is tested through practical application, it not only can reliably carry out data communication, the efficiency of data communication can also be effectively improved, in the wireless context decades of times can be improved than traditional data communication method efficiency based on TCP/IP, so that it is guaranteed that accurate, the transmitting of industrial detection data, improve industrial production efficiency, it is ensured that the correct application of detection data.

Claims (8)

1. a kind of wireless data communication method applied to industrial detection:It is characterized in that this method comprises the following steps:
Shaken hands Step 1: initiating connection to server from client computer when data communication starts, client computer sends connection request packet to server, server replys client computer connection and confirms packet;
Step 2: the connection that client computer receives server confirms to start to server transmission data after wrapping, client computer uses redundant validation using transmission, server is repeated during data transfer;
Step 3: after the completion of data communication, server is initiated disconnection to client computer and shaken hands, server sends all data to client computer and has been received by data validation bag, client computer, which receives to send to server after data validation bag, disconnects packet, and server, which is received, to be disconnected data communication after packet and terminate.
2. the wireless data communication method according to claim 1 applied to industrial detection:It is characterized in that:The connection request packet that client computer is sent to server includes the length of transmission data and the size of transmission data block, server is set up according to the size of transmission data length and transmission data block and receives data field and data block reception logo area, each mark one data block of correspondence in data block reception logo area, mark is not provided with data block reception logo area, then represent that the corresponding data block of the mark is not received by, provided with mark in data block reception logo area, then it represents that the corresponding data block of the mark has been received by.
3. the wireless data communication method according to claim 1 applied to industrial detection:It is characterized in that:The connection request packet that client computer is sent to server includes the length of transmission data and the size of transmission data block, client computer sets up data block acknowledgement indicator area according to the length of transmission data and the size of transmission data block, each mark one data block of correspondence in data block acknowledgement indicator area, the data block that mark is not provided with data block acknowledgement indicator area represents that the data block does not have the data block provided with mark in the reception of being serviced device, data block acknowledgement indicator area to represent that being serviced device is received the data block.
4. the wireless data communication method according to claim 3 applied to industrial detection:It is characterized in that:Client computer sends the mark for searching the data block before data block in data block acknowledgement indicator area to server, and such as mark is present, and represents that being serviced device is received the data block, without sending again, such as data block no marks, represents that the data block not yet being serviced device is received, it is necessary to send.
5. the wireless data communication method applied to industrial detection according to claim 3 or 4:It is characterized in that:Comprising an ID in the data block that client computer is sent to server, the ID to should ordinal position of the data block in transmission data, the ID corresponds in data block acknowledgement indicator area with the mark of the data block.
6. the wireless data communication method according to claim 5 applied to industrial detection:It is characterized in that:The ordinal position ID and redundant validation mark ID of data accepted block are included in the data validation bag that server is sent to client computer, ordinal position ID is identical with the data block ID that client computer is sent, and is corresponded with the mark of the data block in the data block reception logo area of server.
7. the wireless data communication method according to claim 6 applied to industrial detection:It is characterized in that:Client computer, which receives to identify in data block acknowledgement indicator area after the data validation bag of server transmission, has sent the corresponding marks of data block ID, and identifies corresponding flag bit according to the redundant validation mark ID of server in the data block.
8. the wireless data communication method according to claim 6 applied to industrial detection:It is characterized in that:Redundant validation mark ID in the data validation bag that server is sent to client computer is related to ordinal position ID, ordinal position ID in data validation bag is 100, represent that server receives the data block that the ID that client sends is 100, the mark of several data blocks is constituted redundant validation mark ID before the data block location in data block reception logo area for 100 data block by ID.
CN201610167525.3A 2016-03-23 2016-03-23 Wireless data communication method applied to industrial detection Active CN107230331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610167525.3A CN107230331B (en) 2016-03-23 2016-03-23 Wireless data communication method applied to industrial detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610167525.3A CN107230331B (en) 2016-03-23 2016-03-23 Wireless data communication method applied to industrial detection

Publications (2)

Publication Number Publication Date
CN107230331A true CN107230331A (en) 2017-10-03
CN107230331B CN107230331B (en) 2020-12-04

Family

ID=59932733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610167525.3A Active CN107230331B (en) 2016-03-23 2016-03-23 Wireless data communication method applied to industrial detection

Country Status (1)

Country Link
CN (1) CN107230331B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109718529A (en) * 2018-12-05 2019-05-07 深圳市广和通无线股份有限公司 Sideline judge's flagpole and its method for carrying out information interchange

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202604A (en) * 2007-08-14 2008-06-18 深圳市同洲电子股份有限公司 Method, system and equipment for transmitting and receiving network data
CN101227486A (en) * 2008-02-03 2008-07-23 浙江大学 Transport protocols suitable for multiprocessor network on chip
CN103209195A (en) * 2012-01-11 2013-07-17 国家电网公司 Data acquisition method, terminal and far-end device
KR20140091279A (en) * 2013-01-11 2014-07-21 주식회사 엘지유플러스 Method of transmitting data in wireless communication system and apparatus thereof
CN104967497A (en) * 2015-06-09 2015-10-07 武汉数字派特科技有限公司 Network communication protocol-based reliable data transmission method and upgrading method
CN105120439A (en) * 2015-07-13 2015-12-02 宁波尚为信息技术有限公司 Beidou long message communication method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202604A (en) * 2007-08-14 2008-06-18 深圳市同洲电子股份有限公司 Method, system and equipment for transmitting and receiving network data
CN101227486A (en) * 2008-02-03 2008-07-23 浙江大学 Transport protocols suitable for multiprocessor network on chip
CN103209195A (en) * 2012-01-11 2013-07-17 国家电网公司 Data acquisition method, terminal and far-end device
KR20140091279A (en) * 2013-01-11 2014-07-21 주식회사 엘지유플러스 Method of transmitting data in wireless communication system and apparatus thereof
CN104967497A (en) * 2015-06-09 2015-10-07 武汉数字派特科技有限公司 Network communication protocol-based reliable data transmission method and upgrading method
CN105120439A (en) * 2015-07-13 2015-12-02 宁波尚为信息技术有限公司 Beidou long message communication method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109718529A (en) * 2018-12-05 2019-05-07 深圳市广和通无线股份有限公司 Sideline judge's flagpole and its method for carrying out information interchange

Also Published As

Publication number Publication date
CN107230331B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN104243267B (en) Data transmission method and device
JP5369272B2 (en) Status reporting method in wireless communication system
US8976814B2 (en) Method of transporting data from sending node to destination node
CN108173920B (en) LORAWAN-based file transmission method
RU2010112708A (en) ACARS MESSAGE METHOD FOR IP PROTOCOL
CN105120439A (en) Beidou long message communication method
CN102217258B (en) Detection processing method, data sending terminal, data receiver and communication system
RU2010108275A (en) TUNNELING OF DATA LEVEL 2 DURING SERVICE TRANSFER IN A WIRELESS COMMUNICATION SYSTEM
EP3231114B1 (en) Out of sequence delivery of an sdu in a radio device
CN102761403B (en) Method and device for detecting TCP (transmission control protocol) packet loss and TCP stack
WO2009045071A3 (en) Apparatus and method for transmitting and receiving automatic retransmission request feedback information element in a communication system
CN102365834A (en) Method of receiving a point-to-multipoint service in a wireless communication system
CN105262746A (en) Method for guaranteeing reliable data transmission on the basis of UDP protocol
CN108886713B (en) Data transmission method, data receiving equipment and data sending equipment
CN102769520A (en) Wireless network congestion control method based on stream control transmission protocol (SCTP)
CN106230990A (en) The method and apparatus of data transmission in wireless downloading
CN107230331A (en) Wireless data communication method applied to industrial detection
CN1988537A (en) Data transmission protocol
CN110048914A (en) A kind of method for detecting packet loss for SLIP agreement
CN105245568A (en) File transmission method
WO2014194493A1 (en) Method, device and system for reducing confirmation packets at transmission control layer
CN104243107A (en) Data transmission method, device, terminal, server and system
CN110138515A (en) A kind of data transmission method based on SLIP agreement
CN113170297A (en) Earphone communication method
JP2010287958A (en) Radio communication system

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 3520 Tongji Road, Baoshan District, Shanghai 201900

Patentee after: Baowu equipment Intelligent Technology Co.,Ltd.

Address before: 201900, 335, Pu Pu Road, Shanghai, Baoshan District

Patentee before: SHANGHAI BAOSTEEL INDUSTRY TECHNOLOGICAL SERVICE Co.,Ltd.

CP03 Change of name, title or address