CN105847077B - A kind of method and device, equipment detecting multi-path serial data collision - Google Patents

A kind of method and device, equipment detecting multi-path serial data collision Download PDF

Info

Publication number
CN105847077B
CN105847077B CN201610151443.XA CN201610151443A CN105847077B CN 105847077 B CN105847077 B CN 105847077B CN 201610151443 A CN201610151443 A CN 201610151443A CN 105847077 B CN105847077 B CN 105847077B
Authority
CN
China
Prior art keywords
data
serial data
path serial
path
rtu
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.)
Active
Application number
CN201610151443.XA
Other languages
Chinese (zh)
Other versions
CN105847077A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610151443.XA priority Critical patent/CN105847077B/en
Publication of CN105847077A publication Critical patent/CN105847077A/en
Application granted granted Critical
Publication of CN105847077B publication Critical patent/CN105847077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error

Abstract

The embodiment of the invention discloses a kind of method and device, equipment for detecting multi-path serial data collision.The statistics of 1 number or 0 number is carried out by the data of each same bits position in the multi-path serial data to caching, if counting 1 number of the data of any same bits position in obtained multi-path serial data or when 0 number is greater than or equal to two, determine that multi-path serial data clash, data frame format independent of communication can detect data collision, without complicated calculating, detection that is easy, being reliably achieved multi-path serial data collision is realized.

Description

A kind of method and device, equipment detecting multi-path serial data collision
Technical field
The present invention relates to field of communication technology more particularly to it is a kind of detect multi-path serial data collision method and device, Equipment.
Background technique
In certain industries such as power generation industry, it will use various fortune on a large amount of miniature instrument detection or monitoring production line Row data, miniature instrument is not high to communication bandwidth requirement, but to it is central controlled require it is very high, that is, require a controlling terminal or Control centre's computer can be communicated with multi-channel long measuring instrument simultaneously.
Under this application scenarios, it is desirable to realize the communication technology of point-to-multipoint.Point-to-points data communication is more typical Application scenarios are realized using communication protocol, and communication scenes such as high for bandwidth requirement use the network protocol of ether interface; For the not high scene of bandwidth requirement, using RS485, CAN bus etc., point-to-multipoint delivery is realized by master slave mode.
And as power industry, the miniature instruments of monitoring device operation data are much used for, data communication interface to be usual Using RS232 serial ports etc., point-to-points control can not be realized by network protocol or master slave mode.In this case, More common solution is, by configuring remote-terminal unit (English: Remote Terminal Unit, abbreviation: RTU), Guarantee only have a RTU to occupy communication channel in synchronization, the output data of other RTU is full 0 or complete 1, then to control Multichannel RTU data do mutually and (non-communicating RTU exports complete 1) or mutually or (non-communicating RTU exports full 0) operation, realizes most strings The merging of mouth data, and merging data is transmitted to control PC.It is communicated and Controlling model is as shown in Figure 1.
As shown in Figure 1, after multichannel RTU serial data is ANDed or ORed operation on distal end or proximal end access device, It is transmitted to control centre's computer.Although being configured to RTU, in use, in order to improve the reliability of data communication, Data need to be detected with the presence or absence of conflict, the data for not communicating RTU output such as are not full 0 or complete 1, then the circuit-switched data It is wrong, if user can not take measures to the wrong data obtained in control centre's computer without detection means.
For multi-path serial data with the presence or absence of the detection of conflict, currently existing scheme is the output data by configuring RTU, The RTU output data in communications status is required to have the communication frame format of frame head, data, check value, access device will be located After the RTU data of communications status merge with the RTU data of other non-communicating states, it is sent into control centre's computer, in control Data frame is verified on heart computer, if the check value that the transmission data check value and data frame that calculate in real time carry is not It is equal, then it is assumed that data have conflict.But data are verified on control centre's computer, not can determine which platform Mistake has occurred in RTU data;The detection method relies on RTU and has specific frame data output format, is just able to achieve verification, can not Accomplish versatility.
Summary of the invention
The embodiment of the present invention provides a kind of method and device, equipment for detecting multi-path serial data collision, with easy, reliable The detection of ground realization multi-path serial data collision.
In a first aspect, providing a kind of method for detecting multi-path serial data collision, comprising: when receiving multi-path serial number According to when, cache the multi-path serial data, every road serial data includes multiple bits;To every in the multi-path serial data The data of a same bits position carry out the statistics of 1 number or 0 number;Appoint if counting in the obtained multi-path serial data When 1 number of the data of one same bits position or 0 number are greater than or equal to two, determine that the multi-path serial data occur Conflict, the serial data that there are at least two paths is non-full 0 or non-complete 1.
In this implementation, 1 is carried out by the data of each same bits position in the multi-path serial data to caching Number or 0 number statistics, if in the obtained multi-path serial data of statistics the data of any same bits position 1 number Or 0 number be greater than or equal to two when, determine that multi-path serial data clash, the data frame format independent of communication is just It can detect data collision, without complicated calculating, realize detection that is easy, being reliably achieved multi-path serial data collision.
With reference to first aspect, in the first possible implementation, the method also includes:
The multi-path serial data of remote-terminal unit RTU output are received by RS232 interface.
With reference to first aspect or the first possible implementation of first aspect, in second of possible implementation, The method also includes: the multi-path serial data are clashed and are alerted;Report at least two-way clashed The gap marker in channel.
In this implementation, the case where clashing to multi-path serial data alerts, and is able to confirm which road Serial data is conflicted and is reported.
With reference to first aspect or second of the first possible implementation of first aspect or first aspect possible Implementation, in the third possible implementation, the method also includes: according to user preset or the serial data of default Clash handle rule carries out corresponding data processing to the multi-path serial data clashed.
With reference to first aspect or second of the first possible implementation of first aspect or first aspect possible The possible implementation of the third of implementation or first aspect, in the fourth possible implementation, the method is also It include: to merge the multi-path serial data;By the data transmission after merging to proximal end access device, connect by the proximal end Enter equipment for the data transmission after the merging to control centre's computer;Or by the data transmission after merging into the control Heart computer.
In this implementation, carrying out multi-path serial data collision detection can carry out in distal end or proximal end, realize flexible portion Administration.
Second aspect provides a kind of device for detecting multi-path serial data collision, which, which has, realizes the above method The function of middle device behavior.The function can also execute corresponding software realization by hardware realization by hardware.Institute It states hardware or software includes one or more modules corresponding with above-mentioned function.
In a kind of possible implementation, a kind of device for detecting multi-path serial data collision is provided, comprising: caching is single Member, for when receiving multi-path serial data, caching the multi-path serial data, every road serial data includes multiple bits Position;Statistic unit carries out 1 number or 0 for the data to each same bits position in the multi-path serial data Several statistics;Determination unit, if 1 for counting the data of any same bits position in the obtained multi-path serial data When number or 0 number are greater than or equal to two, determine that the multi-path serial data clash, there are at least two paths Serial data is non-full 0 or non-complete 1.
In alternatively possible implementation, a kind of equipment for detecting multi-path serial data collision is provided, comprising: input Device, output device, memory and processor, the memory are used for when the multi-path serial for receiving the input unit input When data, the multi-path serial data are cached, every road serial data includes multiple bits;The processor is used for described more The data of each same bits position in the serial data of road carry out the statistics of 1 number or 0 number;And if statistics obtains In the multi-path serial data 1 number of the data of any same bits position or 0 number be greater than or equal to two when, determine The multi-path serial data clash, and the serial data that there are at least two paths is non-full 0 or non-complete 1.
Implement a kind of method and device, equipment for detecting multi-path serial data collision provided in an embodiment of the present invention, has It is following the utility model has the advantages that
1 number or 0 number are carried out by the data of each same bits position in the multi-path serial data to caching Statistics, if in the obtained multi-path serial data of statistics 1 number of data or 0 number of any same bits position be greater than or When equal to two, determine that multi-path serial data clash, the data frame format independent of communication can detect that data are rushed It is prominent, without complicated calculating, realize detection that is easy, being reliably achieved multi-path serial data collision.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is multi-path serial data communication in the prior art and Controlling model schematic diagram;
Fig. 2 is multi-path serial data collision detection schematic diagram in the prior art;
Fig. 3 is a kind of flow diagram of method for detecting multi-path serial data collision provided in an embodiment of the present invention;
Fig. 4 a and Fig. 4 b are respectively that the serial data of exemplary non-communicating state channel output is the collision detection of complete 1 and full 0 Schematic diagram;
Fig. 5 is the flow diagram of the method for another detection multi-path serial data collision provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of device for detecting multi-path serial data collision provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the device of another detection multi-path serial data collision provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of equipment for detecting multi-path serial data collision provided in an embodiment of the present invention.
Specific embodiment
Fig. 3 is a kind of flow diagram of method for detecting multi-path serial data collision provided in an embodiment of the present invention, should Method the following steps are included:
S101 caches the multi-path serial data, every road serial data includes multiple when receiving multi-path serial data Bit.
The multiple sensors or the collected various operation datas of equipment for being mounted on remote scene need while being sent to control Multiple sensings of remote scene are arranged in the device of central computer processed, the detection multi-path serial data collision of the embodiment of the present invention Between device or equipment and control centre's computer, which can be remote access device, is also possible to proximal end access and sets It is standby, flexible deployment, the access device it can be router etc. according to demand.Its multi-path serial data communication and Controlling model Still as shown in Figure 1.
The multi-path serial data that detection device receives multiple sensors of remote scene or equipment is sent, first by multichannel Serial data is cached, and each circuit-switched data is all 0/1 bit (English: bit) stream in storage, and each circuit-switched data includes more A bit.
In order to enable multiple sensors or equipment and the control centre's computer of remote scene to realize point-to-multipoint delivery, lead to Often configuration RTU, RTU are mounted in the electronic equipment of remote scene, the sensor of remote scene are mounted on for monitoring and measuring And equipment, it is responsible for the monitoring and control to on-site signal, industrial equipment, the state measured or signal are converted by RTU can be logical The data format that sends on letter media, it is realized also by the data conversion sent from control centre's computer at order to setting Standby function control.The multiple sensors or equipment of remote scene are exported through RTU to detection device.It is of course also possible to configure with The identical other devices of RTU function.The characteristics of carrying out point-to-multipoint delivery by RTU is that synchronization only has a RTU to occupy Communication channel, the output data of other RTU are full 0 or complete 1, i.e. the RTU of current time occupancy communication channel is in communication state, Its RTU is in non-communicating state.
S102 carries out 1 number or 0 number to the data of each same bits position in the multi-path serial data Statistics.
But if there is mistake in the data that the RTU in non-communicating state is transmitted, the data of output be not full 0 or Complete 1, therefore, it is necessary to detect whether the data of the RTU of non-communicating state transmission mistake occur.
Fig. 4 a is the collision detection schematic diagram that the serial data of exemplary non-communicating state channel output is complete 1, in Fig. 4 a, often The data of a RTU output are 8 bit, are only for example herein, and herein, RS232Data2 is efficient communication data, i.e., this is logical Road is in communication state, and other channels are in non-communicating state, and the data of the channel transfer of non-communicating state should be complete 1, and actually send out Mistake is given birth to, the data of RS232Data1 output are not complete 1.Detection method at this time are as follows: every time from the n circuit-switched data in total of caching In take one it is bit identical, count in this n number 0 number.
Fig. 4 b is that the serial data of exemplary non-communicating state channel output is the collision detection schematic diagram of full 0, in Fig. 4 b, often The data of a RTU output are 8 bit, are only for example herein, and herein, RS232Data2 is efficient communication data, i.e., this is logical Road is in communication state, and other channels are in non-communicating state, and the data of the channel transfer of non-communicating state should be full 0, and actually send out Mistake is given birth to, the data of RS232Data1 output are not full 0.Detection method at this time are as follows: every time from the n circuit-switched data in total of caching In take one it is bit identical, count in this n number 1 number.
S103, if 1 number of the data of any same bits position or 0 in the obtained multi-path serial data of statistics When number is greater than or equal to two, determines that the multi-path serial data clash, there is the serial data of at least two paths For non-full 0 or non-complete 1.
In Fig. 4 a, when the number for counting on 0 has 2 or more than 2, can determine whether that data clash, because other In the case that the data of non-communicating state channel output should be complete 1,0 number should not in each bit n data counted on More than 1.
In Fig. 4 b, when the number for counting on 1 has 2 or more than 2, can determine whether that data clash, because other In the case that the data of non-communicating state channel output should be full 0,1 number should not in each bit n data counted on More than 1.
Multi-path serial data clash, that is, the serial data that there are at least two paths is non-full 0 or non-complete 1.
A kind of method of the detection multi-path serial data collision provided according to embodiments of the present invention, passes through the multichannel to caching The data of each same bits position in serial data carry out the statistics of 1 number or 0 number, if the multichannel string that statistics obtains In row data 1 number of the data of any same bits position or 0 number be greater than or equal to two when, determine multi-path serial number According to clashing, the data frame format independent of communication can detect data collision, without complicated calculating, realize letter Just, it is reliably achieved the detection of multi-path serial data collision.
Fig. 5 is the flow diagram of the method for another detection multi-path serial data collision provided in an embodiment of the present invention, Method includes the following steps:
S201 receives the multi-path serial data of remote-terminal unit RTU output by RS232 interface.
In the present embodiment, the device for detecting multi-path serial data collision is connect by RS232 interface with RTU, is passed through RS232 interface receives the multi-path serial data of RTU output.
S202 caches the multi-path serial data.
Detection device caches the multi-path serial data received.In the multi-path serial data, each circuit-switched data is in storage It is all 0/1 bit (English: bit) stream, and each circuit-switched data includes multiple bits.
S203 carries out 1 number or 0 number to the data of each same bits position in the multi-path serial data Statistics.
The process of the statistical operation and the S102 of embodiment illustrated in fig. 3 are identical, and details are not described herein.
S204, if 1 number of the data of any same bits position or 0 in the obtained multi-path serial data of statistics When number is greater than or equal to two, determines that the multi-path serial data clash, there is the serial data of at least two paths For non-full 0 or non-complete 1.
The process of the determination conflict and the S103 of embodiment illustrated in fig. 3 are identical, and details are not described herein.
S205 clashes the multi-path serial data and alerts.
Multi-path serial data are clashed, can be alerted on detection means to user, inform that user is current Multi-path serial data clash this case.
S206 reports the gap marker of at least two paths clashed.Data are clashed at least Two paths, detection device may further determine that the gap marker for at least two paths that data clash.
The detection device can be router etc., can also have network management system in the higher level of router, can be by determining number Network management system is reported according to the gap marker of at least two paths clashed.
S207, according to user preset or the serial data clash handle rule of default, to the multichannel string clashed Row data carry out corresponding data processing.
For the multi-path serial data clashed, user can be pre-configured with processing rule, if user configuration is pre- If the multi-path serial data that rule process clashes, if data abandon, then detection device can be according to the preset rules to hair The multi-path serial data of raw conflict are handled.It certainly, can also be according to detection if user does not configure default processing rule The processing rule of device default handles the multi-path serial data clashed.If detection device is to multi-path serial data Discard processing is carried out, then process leaves it at that;It may also be not abandoning, and processed again after the completion of process below.
S208 merges the multi-path serial data.
Multi-path serial data are made phase for merging and (non-communicating state channel exports complete 1) or phase or (non-communicating state channel is defeated Full 0 out) operation, realize the merging of multi-path serial data.
S209 will be after the merging by the proximal end access device by the data transmission after merging to proximal end access device Data transmission to control centre's computer;Or by the data transmission after merging to control centre's computer.
Detection device can be deployed in distal end, can also be deployed in proximal end.
If detection operation is deployed in remote access device, remote access device by multi-path serial data carry out detection and It, then will be after merging by proximal end access device by transmission network by the data transmission after merging to proximal end access device after merging Data transmission is to control centre's computer.
If detection operation is deployed in proximal end access device, proximal end access device receives distance connection by transmission network After the multi-path serial data of equipment transmission, multi-path serial data are detected and merged, by the data transmission after merging to control Central computer processed.
In the present embodiment, can for detecting that the multi-path serial data clashed are still merged and uploaded, and It is dealt with again after the data that control centre's computer receives after merging.
A kind of method of the detection multi-path serial data collision provided according to embodiments of the present invention, passes through the multichannel to caching The data of each same bits position in serial data carry out the statistics of 1 number or 0 number, if the multichannel string that statistics obtains In row data 1 number of the data of any same bits position or 0 number be greater than or equal to two when, determine multi-path serial number According to clashing, the data frame format independent of communication can detect data collision, without complicated calculating, realize letter Just, it is reliably achieved the detection of multi-path serial data collision;And it is able to confirm which road serial data is conflicted, to user It is alerted, and the mark in channel that reported data clashes;And it can be according to the serial data conflict of user preset or default Processing rule carries out corresponding data processing to the serial data clashed;And carry out multi-path serial data collision detection can be Distal end or proximal end carry out, and realize flexible deployment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Fig. 6 is a kind of structural schematic diagram of device for detecting multi-path serial data collision provided in an embodiment of the present invention, should Device 1000 includes:
Cache unit 11, for when receiving multi-path serial data, caching the multi-path serial data, every road serial number According to including multiple bits.
The multiple sensors or the collected various operation datas of equipment for being mounted on remote scene need while being sent to control Multiple sensings of remote scene are arranged in the device of central computer processed, the detection multi-path serial data collision of the embodiment of the present invention Between device or equipment and control centre's computer, which can be remote access device, is also possible to proximal end access and sets It is standby, flexible deployment, the access device it can be router etc. according to demand.Its multi-path serial data communication and Controlling model Still as shown in Figure 1.
The multi-path serial data that detection device receives multiple sensors of remote scene or equipment is sent, first caching are single Member 11 caches multi-path serial data, and each circuit-switched data is all 0/1 bit (English: bit) stream in storage, and per all the way Data include multiple bits.
In order to enable multiple sensors or equipment and the control centre's computer of remote scene to realize point-to-multipoint delivery, lead to Often configuration RTU, RTU are mounted in the electronic equipment of remote scene, the sensor of remote scene are mounted on for monitoring and measuring And equipment, it is responsible for the monitoring and control to on-site signal, industrial equipment, the state measured or signal are converted by RTU can be logical The data format that sends on letter media, it is realized also by the data conversion sent from control centre's computer at order to setting Standby function control.The multiple sensors or equipment of remote scene are exported through RTU to detection device.It is of course also possible to configure with The identical other devices of RTU function.The characteristics of carrying out point-to-multipoint delivery by RTU is that synchronization only has a RTU to occupy Communication channel, the output data of other RTU are full 0 or complete 1, i.e. the RTU of current time occupancy communication channel is in communication state, Its RTU is in non-communicating state.
Statistic unit 12 carries out 1 number for the data to each same bits position in the multi-path serial data Or 0 number statistics.
But if there is mistake in the data that the RTU in non-communicating state is transmitted, the data of output be not full 0 or Complete 1, therefore, it is necessary to detect whether the data of the RTU of non-communicating state transmission mistake occur.
Fig. 4 a is the collision detection schematic diagram that the serial data of exemplary non-communicating state channel output is complete 1, in Fig. 4 a, often The data of a RTU output are 8 bit, are only for example herein, and herein, RS232Data2 is efficient communication data, i.e., this is logical Road is in communication state, and other channels are in non-communicating state, and the data of the channel transfer of non-communicating state should be complete 1, and actually send out Mistake is given birth to, the data of RS232Data1 output are not complete 1.Detection method at this time are as follows: every time from the n circuit-switched data in total of caching In take one it is bit identical, count in this n number 0 number.
Fig. 4 b is that the serial data of exemplary non-communicating state channel output is the collision detection schematic diagram of full 0, in Fig. 4 b, often The data of a RTU output are 8 bit, are only for example herein, and herein, RS232Data2 is efficient communication data, i.e., this is logical Road is in communication state, and other channels are in non-communicating state, and the data of the channel transfer of non-communicating state should be full 0, and actually send out Mistake is given birth to, the data of RS232Data1 output are not full 0.Detection method at this time are as follows: every time from the n circuit-switched data in total of caching In take one it is bit identical, count in this n number 1 number.
Determination unit 13, if 1 for counting the data of any same bits position in the obtained multi-path serial data Number or 0 number be greater than or equal to two when, determine that the multi-path serial data clash, there are at least two paths Serial data be non-full 0 or non-complete 1.
In Fig. 4 a, when the number for counting on 0 has 2 or more than 2, can determine whether that data clash, because other In the case that the data of non-communicating state channel output should be complete 1,0 number should not in each bit n data counted on More than 1.
In Fig. 4 b, when the number for counting on 1 has 2 or more than 2, can determine whether that data clash, because other In the case that the data of non-communicating state channel output should be full 0,1 number should not in each bit n data counted on More than 1.
Multi-path serial data clash, that is, the serial data that there are at least two paths is non-full 0 or non-complete 1.
A kind of device of the detection multi-path serial data collision provided according to embodiments of the present invention, passes through the multichannel to caching The data of each same bits position in serial data carry out the statistics of 1 number or 0 number, if the multichannel string that statistics obtains In row data 1 number of the data of any same bits position or 0 number be greater than or equal to two when, determine multi-path serial number According to clashing, the data frame format independent of communication can detect data collision, without complicated calculating, realize letter Just, it is reliably achieved the detection of multi-path serial data collision.
Fig. 7 is the structural schematic diagram of the device of another detection multi-path serial data collision provided in an embodiment of the present invention, The device 2000 includes:
Receiving unit 21, for receiving the multi-path serial data of remote-terminal unit RTU output by RS232 interface.
In the present embodiment, the device for detecting multi-path serial data collision is connect by RS232 interface with RTU, is received single Member 21 receives the multi-path serial data of RTU output by RS232 interface.
Cache unit 22, for caching the multi-path serial data.
Cache unit 22 caches the multi-path serial data received.In the multi-path serial data, each circuit-switched data is being stored On be all 0/1 bit (English: bit) stream, and each circuit-switched data includes multiple bits.
Statistic unit 23 carries out 1 number for the data to each same bits position in the multi-path serial data Or 0 number statistics.
The function of the statistic unit 23 is identical as the statistic unit 12 of embodiment illustrated in fig. 6, and details are not described herein.
Determination unit 24, if 1 for counting the data of any same bits position in the obtained multi-path serial data Number or 0 number be greater than or equal to two when, determine that the multi-path serial data clash, there are at least two paths Serial data be non-full 0 or non-complete 1.
The function of the determination unit 24 is identical as the determination unit 13 of embodiment illustrated in fig. 6, and details are not described herein.
Alarm Unit 25 is alerted for clashing to the multi-path serial data.
Multi-path serial data are clashed, can be alerted on detection means to user, inform that user is current Multi-path serial data clash this case.
Reporting unit 26, for report clash described at least two paths gap marker.
For at least two paths that data clash, detection device may further determine that at least two-way that data clash The gap marker in channel.
The detection device can be router etc., can also have network management system in the higher level of router, reporting unit 26 can The gap marker for at least two paths that determining data clash is reported into network management system.
Processing unit 27, for the serial data clash handle rule according to user preset or default, to what is clashed The multi-path serial data carry out corresponding data processing.
For the multi-path serial data clashed, user can be pre-configured with processing rule, if user configuration is pre- If the multi-path serial data that rule process clashes, if data abandon, then processing unit 27 can be according to the preset rules pair The multi-path serial data clashed are handled.Certainly, if user does not configure default processing rule, processing unit 27 The processing rule that can be defaulted according to detection device handles the multi-path serial data clashed.If detection device pair Multi-path serial data have carried out discard processing, then process leaves it at that;It may also be not abandoning, and completed in process below It processes again afterwards.
Combining unit 28, for merging the multi-path serial data.
Multi-path serial data are made phase for merging and (non-communicating state channel exports complete 1) or phase or (non-communicating state channel is defeated Full 0 out) operation, realize the merging of multi-path serial data.
Transmission unit 29 will by the proximal end access device for the data transmission after merging to proximal end access device Data transmission after the merging is to control centre's computer;Or the data transmission after merging to the control centre is calculated Machine.
Detection device can be deployed in distal end, can also be deployed in proximal end.
If detection operation is deployed in remote access device, remote access device by multi-path serial data carry out detection and It, then will be after merging by proximal end access device by transmission network by the data transmission after merging to proximal end access device after merging Data transmission is to control centre's computer.
If detection operation is deployed in proximal end access device, proximal end access device receives distance connection by transmission network After the multi-path serial data of equipment transmission, multi-path serial data are detected and merged, by the data transmission after merging to control Central computer processed.
In the present embodiment, can for detecting that the multi-path serial data clashed are still merged and uploaded, and It is dealt with again after the data that control centre's computer receives after merging.
A kind of device of the detection multi-path serial data collision provided according to embodiments of the present invention, passes through the multichannel to caching The data of each same bits position in serial data carry out the statistics of 1 number or 0 number, if the multichannel string that statistics obtains In row data 1 number of the data of any same bits position or 0 number be greater than or equal to two when, determine multi-path serial number According to clashing, the data frame format independent of communication can detect data collision, without complicated calculating, realize letter Just, it is reliably achieved the detection of multi-path serial data collision;And it is able to confirm which road serial data is conflicted, to user It is alerted, and the mark in channel that reported data clashes;And it can be according to the serial data conflict of user preset or default Processing rule carries out corresponding data processing to the serial data clashed;And carry out multi-path serial data collision detection can be Distal end or proximal end carry out, and realize flexible deployment.
Fig. 8 is a kind of structural schematic diagram of equipment for detecting multi-path serial data collision provided in an embodiment of the present invention, should Equipment 3000 includes: input unit 31, output device 32, memory 33 and the (quantity of the processor 34 in equipment of processor 34 Can be one or more, taken a processor as an example in Fig. 8).In some embodiments of the invention, input unit 31, output Device 32, memory 33 and processor 34 can be connected by bus 35 or other means, wherein to be connected by bus 35 in Fig. 8 It is connected in example.
Wherein, the memory 33 is used for when receiving the multi-path serial data of the input of input unit 31, described in caching Multi-path serial data, every road serial data include multiple bits;
The processor 34 is used to carry out the data of each same bits position in the multi-path serial data 1 number Or 0 number statistics;
If the processor 34 is also used to count the data of any same bits position in the obtained multi-path serial data 1 number or 0 number be greater than or equal to two when, determine that the multi-path serial data clash, there is at least two-way The serial data in channel is non-full 0 or non-complete 1.
In some possible implementations, the input unit 31 is specifically used for receiving by RS232 interface long-range whole The multi-path serial data of end unit RTU output.
In other possible implementations, the output device 32 is for clashing the multi-path serial data It is alerted;And report the gap marker of at least two paths clashed;
The processor 34 is also used to the serial data clash handle rule according to user preset or default, to clashing The multi-path serial data carry out corresponding data processing.
In other possible implementation, the processor 34 is also used to close the multi-path serial data And.
In other possible implementation, the output device 32 be also used to merge after data transmission to proximal end Access device, by the proximal end access device by the data transmission after the merging to control centre's computer;Or after merging Data transmission to control centre's computer.
A kind of equipment of the detection multi-path serial data collision provided according to embodiments of the present invention, passes through the multichannel to caching The data of each same bits position in serial data carry out the statistics of 1 number or 0 number, if the multichannel string that statistics obtains In row data 1 number of the data of any same bits position or 0 number be greater than or equal to two when, determine multi-path serial number According to clashing, the data frame format independent of communication can detect data collision, without complicated calculating, realize letter Just, it is reliably achieved the detection of multi-path serial data collision.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be with It is realized with hardware realization or firmware realization or their combination mode.It when implemented in software, can be by above-mentioned function Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted.Meter Calculation machine readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from a place to another Any medium of a place transmission computer program.Storage medium can be any usable medium that computer can access.With For this but be not limited to: computer-readable medium may include random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, magnetic disk storage medium or other magnetic storage apparatus or can be used in Carry or storage have instruction or data structure form desired program code and can by computer access any other Medium.Furthermore.Any connection appropriate can become computer-readable medium.For example, if software is using coaxial cable, light Fine optical cable, twisted pair, Digital Subscriber Line (Digital Subscriber Line, DSL) or such as infrared ray, radio and The wireless technology of microwave etc is transmitted from website, server or other remote sources, then coaxial cable, optical fiber cable, double The wireless technology of twisted wire, DSL or such as infrared ray, wireless and microwave etc includes in the fixing of affiliated medium.Such as this hair Used in bright, disk (Disk) and dish (disc) include compress optical disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), Floppy disk and Blu-ray Disc, the usually magnetic replicate data of which disk, and dish is then with laser come optical replicate data.Group above Conjunction should also be as including within the protection scope of computer-readable medium.
In short, being not intended to limit of the invention the foregoing is merely the preferred embodiment of technical solution of the present invention Protection scope.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in Within protection scope of the present invention.

Claims (10)

1. a kind of method for detecting multi-path serial data collision, is applied to configuration RTU and the progress of control centre's computer is point-to-points The communication scenes of point characterized by comprising
When receiving multi-path serial data, the multi-path serial data are cached, every road serial data includes multiple bits, In, only serial data is communication state data all the way, and other road serial datas are non-communicating state data;
When the serial data of non-communicating state channel output is full 0, to each same bits position in the multi-path serial data Data carry out 1 number statistics;Or
When the serial data of non-communicating state channel output is complete 1, to each same bits position in the multi-path serial data Data carry out 0 number statistics;
If 1 number of data or 0 number that count any same bits position in the obtained multi-path serial data are greater than Or be equal to two when, determine that the multi-path serial data clash, exist at least two paths serial data be non-full 0 or Non- complete 1.
2. the method as described in claim 1, which is characterized in that the method also includes:
The multi-path serial data of remote-terminal unit RTU output are received by RS232 interface.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
The multi-path serial data are clashed and are alerted;
Report the gap marker of at least two paths clashed.
4. method according to claim 1 or 2, which is characterized in that the method also includes:
According to user preset or the serial data clash handle rule of default, the multi-path serial data clashed are carried out Corresponding data processing.
5. method according to claim 1 or 2, which is characterized in that the method also includes:
The multi-path serial data are merged;
By the data transmission after merging to proximal end access device, by the proximal end access device by the data transmission after the merging To control centre's computer;Or
By the data transmission after merging to control centre's computer.
6. a kind of device for detecting multi-path serial data collision, is applied to configuration RTU and the progress of control centre's computer is point-to-points The communication scenes of point characterized by comprising
Cache unit, for when receiving multi-path serial data, caching the multi-path serial data, every road serial data includes Multiple bits, wherein only serial data is communication state data all the way, and other road serial datas are non-communicating state data;
Statistic unit, when the serial data for exporting when non-communicating state channel is full 0, to every in the multi-path serial data The data of a same bits position carry out the statistics of 1 number;It is right or when the serial data of non-communicating state channel output is complete 1 The data of each same bits position in the multi-path serial data carry out the statistics of 0 number;
Determination unit, if 1 number for counting the data of any same bits position in the obtained multi-path serial data Or 0 number determines that the multi-path serial data clash, there is the serial of at least two paths when being greater than or equal to two Data are non-full 0 or non-complete 1.
7. device as claimed in claim 6, which is characterized in that described device further include:
Receiving unit, for receiving the multi-path serial data of remote-terminal unit RTU output by RS232 interface.
8. device as claimed in claims 6 or 7, which is characterized in that described device further include:
Alarm Unit is alerted for clashing to the multi-path serial data;
Reporting unit, for report clash described at least two paths gap marker.
9. device as claimed in claims 6 or 7, which is characterized in that described device further include:
Processing unit is described more to what is clashed for the serial data clash handle rule according to user preset or default Road serial data carries out corresponding data processing.
10. device as claimed in claims 6 or 7, which is characterized in that described device further include:
Combining unit, for merging the multi-path serial data;
Transmission unit, for the data transmission after merging to proximal end access device, by the proximal end access device by the conjunction Data transmission after and is to control centre's computer;Or
The transmission unit is for the data transmission after merging to control centre's computer.
CN201610151443.XA 2016-03-17 2016-03-17 A kind of method and device, equipment detecting multi-path serial data collision Active CN105847077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610151443.XA CN105847077B (en) 2016-03-17 2016-03-17 A kind of method and device, equipment detecting multi-path serial data collision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610151443.XA CN105847077B (en) 2016-03-17 2016-03-17 A kind of method and device, equipment detecting multi-path serial data collision

Publications (2)

Publication Number Publication Date
CN105847077A CN105847077A (en) 2016-08-10
CN105847077B true CN105847077B (en) 2019-03-08

Family

ID=56587113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610151443.XA Active CN105847077B (en) 2016-03-17 2016-03-17 A kind of method and device, equipment detecting multi-path serial data collision

Country Status (1)

Country Link
CN (1) CN105847077B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290305B (en) * 2018-12-06 2021-05-04 航天科工惯性技术有限公司 Multi-channel digital quantity acquisition and processing anti-collision method and system for multiple sets of inertial navigation systems
CN112217599B (en) * 2019-07-12 2021-12-24 天地融科技股份有限公司 Data frame receiving method and device, and communication method and system
CN110865955B (en) * 2019-11-19 2023-03-10 天津津航计算技术研究所 High-reliability merging and forwarding system of multi-path full-duplex serial port
CN110838892B (en) * 2019-11-19 2022-02-01 天津津航计算技术研究所 High-reliability merging and forwarding method for multi-path full-duplex serial port

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060139186A1 (en) * 2004-12-29 2006-06-29 Enigma Semiconductor 16b/10s coding apparatus and method
CN101183327A (en) * 2006-11-15 2008-05-21 晶像股份有限公司 Interface test circuitry and methods
CN102484482A (en) * 2008-10-29 2012-05-30 晶像股份有限公司 Coding system for memory systems employing high-speed serial links
CN104113347A (en) * 2013-04-16 2014-10-22 硅谷实验室公司 Isolated serializer-deserializer
JP2015530674A (en) * 2012-09-28 2015-10-15 インテル・コーポレーション Multiple systems, multiple devices, and multiple methods for performing conflict detection and broadcasting multiple contents of a register to multiple data element locations of another register

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6959256B2 (en) * 2003-05-16 2005-10-25 Analog Devices, Inc. Universally accessible fully programmable memory built-in self-test (MBIST) system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060139186A1 (en) * 2004-12-29 2006-06-29 Enigma Semiconductor 16b/10s coding apparatus and method
CN101183327A (en) * 2006-11-15 2008-05-21 晶像股份有限公司 Interface test circuitry and methods
CN102484482A (en) * 2008-10-29 2012-05-30 晶像股份有限公司 Coding system for memory systems employing high-speed serial links
JP2015530674A (en) * 2012-09-28 2015-10-15 インテル・コーポレーション Multiple systems, multiple devices, and multiple methods for performing conflict detection and broadcasting multiple contents of a register to multiple data element locations of another register
CN104113347A (en) * 2013-04-16 2014-10-22 硅谷实验室公司 Isolated serializer-deserializer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
改进综合自动化系统功能的探讨;韦耀阳;《广西电力技术》;20010630;全文

Also Published As

Publication number Publication date
CN105847077A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN105847077B (en) A kind of method and device, equipment detecting multi-path serial data collision
CN105099828B (en) A kind of implementation method of high performance network tester
CN107508719B (en) Method and device for measuring network time delay and network node
CN100366005C (en) Test method for throughput capacity of IP equipment
CN109194620A (en) Multichannel communication method, intelligent gateway and readable storage medium storing program for executing
CN104579552B (en) Highway addressable remote transducer samples
CN102946284A (en) System and method for calibrating and testing radio frequency of WIFI
CN102752194B (en) Frame structure-based forwarding method and RS-485 bus hub
EP2833574A1 (en) Method and apparatus for ethernet performance measurement
CN109245959A (en) Statistics enlivens method, the network equipment and the system of flow amount
CN110505112A (en) A kind of network performance monitoring method, device and storage medium
US11388631B2 (en) Data reduction in a system
CN107306151A (en) A kind of calibration method and its device of BOB equipment
US9455867B2 (en) Automatic configuration of a repeater
CN107800465B (en) Power line carrier communication transmission method
CN110474692A (en) A kind of optical communication equipment, optical communication system, data transmission method and storage medium
CN116938777B (en) Network telemetry method and device, electronic equipment and storage medium
CN109194512A (en) Looped network intelligent communications device and its configuration method
CN101442380B (en) Method and apparatus for testing error rate based on high speed serial interface encoded mode
CN110492610B (en) Topology identification system allowing live-wire operation
CN104243246A (en) Method and device for Zigbee technology-based FlexRay bus test and optimization
CN102183946A (en) Method, electronic component and system for diagnosing communication connections
CN105681229A (en) Method for extending port serial numbers and switch
JP2010204289A (en) Encrypted-traffic discrimination device and encrypted-traffic discrimination system with the same
CN106936651B (en) Determination method and controller for data streams

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant