CN104618074A - Data communication method - Google Patents

Data communication method Download PDF

Info

Publication number
CN104618074A
CN104618074A CN201410842366.3A CN201410842366A CN104618074A CN 104618074 A CN104618074 A CN 104618074A CN 201410842366 A CN201410842366 A CN 201410842366A CN 104618074 A CN104618074 A CN 104618074A
Authority
CN
China
Prior art keywords
end instrument
data
communication method
data communication
computer
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
Application number
CN201410842366.3A
Other languages
Chinese (zh)
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.)
Hefei Gold Star M & E Technical Development Co Ltd
Original Assignee
Hefei Gold Star M & E Technical Development 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 Hefei Gold Star M & E Technical Development Co Ltd filed Critical Hefei Gold Star M & E Technical Development Co Ltd
Priority to CN201410842366.3A priority Critical patent/CN104618074A/en
Publication of CN104618074A publication Critical patent/CN104618074A/en
Pending legal-status Critical Current

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention relates to the technical field of communication and particularly relates to a data communication method. The method comprises the steps of (A) an end instrument sends data to be sent to a computer; (B) a computer receives signals to send feedback signals to the end instrument; (C) entering step F when data sending is successful if the end instrument receives correct feedback signals in preset time, otherwise, entering step D; (D) determining the times k entering the step, the end instrument performs serial port line alarm if k is larger than set times, otherwise, entering step E; (E) repeating the step A after random time t; (F) ending the sending and performing zero clearing on k. By the aid of the method, data transmission results are monitored effectively through the feedback signals, the state of the line between the end instrument and the computer is normal, conflict during data transmission are prevented as much as possible, and the data transmission reliability is improved.

Description

Data communication method
Technical field
The present invention relates to communication technique field, particularly a kind of data communication method.
Background technology
RS485 sends standard by EIA EIA (Electronic IndustriesAssociation) in a kind of balanced type data that nineteen eighty-three proposes, and the transceiver meeting this standard adopts balance to send and differential received working method.In fact, RS485 (TIA/EIA-485) is counted as the one expansion of TIA/EIA-422 standard usually.Owing to supporting multinode (32 or more node), remote (maximum 4000 feet) and reception high sensitivity (200mV), when forming communication network, a pair twisted-pair feeder is only needed to make transmission line, therefore with low cost, equipment is simple, is applied widely under multistation, telecommunication environment.
Due to RS485 there is long transmission distance, good in anti-interference performance, networking are more flexible, the advantages such as support node is many, in in the past 20 years, RS485 is as a kind of electrical code of multiple spot differential data transmission, be used in many different fields, but be based on the feature that RS485 bus-bar can only have a main frame, it is often applied between centralized control hinge and decentralized control unit.But, many limitation that RS485 bus-bar itself exists, along with the development of science and technology, the bus-bar efficiency of RS485 is low, the reliability of communication is low, the multiple transmission range of later maintenance cost network engineering application is undesirable, the shortcomings such as the node application that single bus-bar can mount is dumb slowly come out, due to the link method that RS485 adopts a bus to be connected in series by each node, usually an one malfunctions is had can to cause the paralysis of entire system or local, and, because node is many, being difficult to again judgement is which node is made mistakes, common solution be artificial by equipment one by one from disconnection detection bus, just can know which equipment fault caused, such maintenance needs to expend suitable manpower and time.
Summary of the invention
The object of the present invention is to provide a kind of data communication method, ensure transfer of data and line status monitoring.
For realizing above object, the technical solution used in the present invention is: a kind of data communication method, comprises the steps: that outgoing data is sent to computer by (A) end instrument; (B) computer sends feedback signal to end instrument after receiving signal; (C) if end instrument receives correct feedback signal in setting-up time, represent that data send successfully, enter step F, otherwise, enter step D; (D) judge the number of times k entering this step, if k is greater than set point number, end instrument carries out the alarm of serial ports circuit, otherwise, enter step e; (E) after random time t, steps A is repeated; (F) send end, k is reset.
Compared with prior art, there is following technique effect in the present invention: by feedback signal effective Monitoring Data transmission result, ensure that the line status between end instrument and computer is normal, by random time t, avoid the conflict in data transmission procedure as much as possible, improve the reliability of transfer of data.
Accompanying drawing explanation
Fig. 1 is schematic flow sheet of the present invention.
Embodiment
Below in conjunction with Fig. 1, the present invention is described in further detail.
Consult Fig. 1, a kind of data communication method, comprise the steps: that outgoing data is sent to computer by (A) end instrument; (B) computer sends feedback signal to end instrument after receiving signal; (C) if end instrument receives correct feedback signal in setting-up time, represent that data send successfully, enter step F, otherwise, enter step D; (D) judge the number of times k entering this step, if k is greater than set point number, end instrument carries out the alarm of serial ports circuit, otherwise, enter step e; (E) after random time t, steps A is repeated; (F) send end, k is reset.When the terminal be connected with computer is many and industry spot disturbs very many time, when current state information is passed to computer by industry spot end instrument, event of data loss is more serious, here by setting an algorithm on end instrument, effective guarantee transfer of data and line status monitoring, further, this improvement does not relate to hardware circuit, can not cause the increase of cost.In step D, also namely judgement enters the number of times k of this step: k initial value is 0, and when often performing step D, k adds 1, k and sends failed number of times for record data.When decision data sends unsuccessfully and the frequency of failure reaches set point, show that serial ports circuit now may go wrong, therefore give a warning and undertaken checking, keeping in repair by operating personnel; If data send unsuccessfully but the frequency of failure does not reach set point, not now directly again send data, and after being through random time t, by arranging random time, can preventing multiple end instrument from when computer sends data, producing conflict and causing data again to send failure.
Preferably, in described step e, random time t is that the information exported according to the single-chip microcomputer timer in the address of end instrument and end instrument produces.The information exported by the address information of end instrument, single-chip microcomputer timer, as the generation source of random number, can increase the degree of freedom of random time t to greatest extent.
Further, when the scope of random time t is less time, reliably can not avoid conflict during each end instrument transmission information, when the scope of random time t is larger time, affect data transmission efficiency.Therefore, random time 1000ms≤t≤10000ms preferably described here, also namely the unit of random time t is here ms, and its value can be any one value in 1000 ~ 10000, comprises 1000 and 10000.Within the scope of this, the conflict between end instrument can be reduced, the ageing of transfer of data can be ensured again.
As preferred version of the present invention, in described step B, the address containing end instrument in feedback signal, end instrument judges whether it is that self sends after receiving feedback signal.The feedback signal that this is done to prevent computer from sending sends mistake, improves the reliability of transfer of data further.
Preferably, in described step D, set point number is 20-40 time, and the number of times of setting is also very important, if setting is very few, just there will be frequent phenomenon of reporting to the police; What set is too much, can affect data transmission efficiency.In the present embodiment, set point number is 30 times.

Claims (6)

1. a data communication method, comprises the steps:
(A) outgoing data is sent to computer by end instrument;
(B) computer sends feedback signal to end instrument after receiving signal;
(C) if end instrument receives correct feedback signal in setting-up time, represent that data send successfully, enter step F, otherwise, enter step D;
(D) judge the number of times k entering this step, if k is greater than set point number, end instrument carries out the alarm of serial ports circuit, otherwise, enter step e;
(E) after random time t, steps A is repeated;
(F) send end, k is reset.
2. data communication method as claimed in claim 1, is characterized in that: in described step e, and random time t is that the information exported according to the single-chip microcomputer timer in the address of end instrument and end instrument produces.
3. data communication method as claimed in claim 1 or 2, is characterized in that: described random time 1000ms≤t≤10000ms.
4. data communication method as claimed in claim 1, is characterized in that: in described step B, the address containing end instrument in feedback signal, and end instrument judges whether it is that self sends after receiving feedback signal.
5. data communication method as claimed in claim 1, it is characterized in that: in described step D, set point number is 20-40 time.
6. data communication method as claimed in claim 5, it is characterized in that: in described step D, set point number is 30 times.
CN201410842366.3A 2014-12-30 2014-12-30 Data communication method Pending CN104618074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410842366.3A CN104618074A (en) 2014-12-30 2014-12-30 Data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410842366.3A CN104618074A (en) 2014-12-30 2014-12-30 Data communication method

Publications (1)

Publication Number Publication Date
CN104618074A true CN104618074A (en) 2015-05-13

Family

ID=53152378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410842366.3A Pending CN104618074A (en) 2014-12-30 2014-12-30 Data communication method

Country Status (1)

Country Link
CN (1) CN104618074A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1385983A (en) * 2001-05-10 2002-12-18 华为技术有限公司 Self-adaptive regulating iterative frequency H-ARO receiving method
CN1838784A (en) * 2005-03-25 2006-09-27 华为技术有限公司 Message transmitting method
CN202268943U (en) * 2011-10-12 2012-06-06 中兴通讯股份有限公司 Alarming device for positioning failure of user line port
CN103886732A (en) * 2014-03-27 2014-06-25 中国科学院成都生物研究所 High-reliability ecological environmental parameter wireless-sensing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1385983A (en) * 2001-05-10 2002-12-18 华为技术有限公司 Self-adaptive regulating iterative frequency H-ARO receiving method
CN1838784A (en) * 2005-03-25 2006-09-27 华为技术有限公司 Message transmitting method
CN202268943U (en) * 2011-10-12 2012-06-06 中兴通讯股份有限公司 Alarming device for positioning failure of user line port
CN103886732A (en) * 2014-03-27 2014-06-25 中国科学院成都生物研究所 High-reliability ecological environmental parameter wireless-sensing system

Similar Documents

Publication Publication Date Title
ES2364535T3 (en) INDICATION OF INCORRECT WIRING DEVICES.
GB2424318A (en) Wireless battery monitoring system
EP2442488B1 (en) Device for detecting physical link and method thereof
CN107517282A (en) A kind of method for assigning address to indoor unit, storage medium and multiple on-line system
RU2602977C2 (en) Method for detecting correctness of optic fibre connection based on radio remote unit (rru) looped network and base band unit (bbu)
CN103278739B (en) A kind of high-voltage dc transmission electric control system Profibus field bus fault diagnostic method
CN104065508A (en) Application service health examination method, device and system
CN109120430A (en) A method of guaranteeing data communication reliability
CN103401312A (en) Redundancy warning system and control method for goose network communication of intelligent transformer station
KR20130096472A (en) Apparatus and method for correcting of acquired data
CN106154071B (en) A kind of device and method detecting intelligent electric energy meter RS485 bus failure
CN101547526B (en) Fault handling method, wireless device and communication system
CN103001808A (en) Switch for detecting port faults and achieving method
US20190132261A1 (en) Link locking in ethernet networks
EP3177030A1 (en) Connection qualified link pass through applicable to media converters
CN104618074A (en) Data communication method
CN110890933A (en) Service protection method, device, system, equipment and medium
CN113009246B (en) PSE device detection device and PSE device detection method
CN108337135B (en) Communication control system, method and device
CN115460635A (en) Fault detection method, device, equipment and computer storage medium
CN111404728B (en) Network equipment fault monitoring method and network system
CN109803301B (en) Offline identification management system for wireless network
CN103684719A (en) Network dual-redundancy hot swap method independent of platforms
CN102711163A (en) Method for rapidly detecting alarm link failure in IP (internal protocol)-RAN (random access network) equipment
CN109981166B (en) Method and device for positioning optical fiber in error connection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150513

RJ01 Rejection of invention patent application after publication