CN101005427A - 485 bus system and method for transmitting data - Google Patents

485 bus system and method for transmitting data Download PDF

Info

Publication number
CN101005427A
CN101005427A CN 200610167961 CN200610167961A CN101005427A CN 101005427 A CN101005427 A CN 101005427A CN 200610167961 CN200610167961 CN 200610167961 CN 200610167961 A CN200610167961 A CN 200610167961A CN 101005427 A CN101005427 A CN 101005427A
Authority
CN
China
Prior art keywords
main equipment
bus
data
slave unit
slave
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
CN 200610167961
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.)
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 CN 200610167961 priority Critical patent/CN101005427A/en
Publication of CN101005427A publication Critical patent/CN101005427A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention is designed for use in overcoming the disadvantage existed in currently-used technology, which is the communication in point-to-multipoint is only capable of using half-duplex communication mode. The invention provides a 485 bus system, which comprises a master device and multi slave devices; the connection between the master device and the multi slave devices is based on two buses independently each other. The method thereof comprises: the slave devices send uplink data to master device through one bus, and the master device sends downlink data to the slave devices through downlink another bus.

Description

The method of a kind of 485 bus systems and transmission data
Technical field
The present invention relates to the communications field, particularly a kind of 485 bus systems and the method for utilizing 485 bus systems transmission data.
Background technology
The RS485 communication standard is a kind of electrical characteristic standard that adopts the digital multipoint system of difference balanced type transmission, can support to drive 32 loads simultaneously, possesses advantages such as anti-common mode disturbances ability is strong.When RS485 was no more than 50Ft in transmission range, flank speed can reach 10Mbps; Maximum transmission distance can reach 4000Ft when transmission rate was 100Kbps.That 485 communication technologys are mainly used in is point-to-point, the application of multi-point and point-to-multipoint intercommunication.
In the applied environment of point-to-multipoint intercommunication, general main equipment meeting and a plurality of slave unit communicate, and do not need communication between each slave unit, but the communication between meeting active initiation and the main equipment.The general multi-point multi-master bus communication pattern that adopts of 485 communications communicates under this application scenarios.Under multi-point multi-master bus communication pattern, the reception of main equipment and each slave unit and transmission all connect together, shared same set of bus, and main equipment moves different software respectively with slave unit and communicates, main equipment can intercom mutually with each slave unit, and each slave unit does not need communication each other.Each equipment in the system all can be used as main equipment, and during actual the use, wherein certain equipment is as main equipment, and other equipment are as slave unit.Referring to Fig. 1, equipment #1 is a main equipment, and equipment #2 and equipment #3 are slave unit.The transmission data port of main equipment #1, slave unit #2 and slave unit #3, reception data port and collision detection signal port all link together the shared same clock of the transmission of main equipment #1, slave unit #2 and slave unit #3 and receive clock by 485 buses.
There is following shortcoming in above-mentioned this communication pattern:
1, because the reception of main equipment and each slave unit and transmission all connect together, and shared same set of bus can only adopt the half-duplex operation mode, receive and send and can not carry out simultaneously, communication bandwidth can reduce half.
Have bus contention between a plurality of slave units when 2, slave unit sends, need carry out collision detection by the collision detection signal port, traffic rate is difficult to be De Taigao, generally can only be operated in below the 4Mbps at present.
3, because a plurality of slave units need carry out collision detection, thereby the clock of all slave units must be identical, and the tranmitting data register end and the receive clock end of main equipment and slave unit all is connected on the same clock in the prior art, so the receiving velocity of each equipment is all identical with transmission rate, the slave unit of downlink data amount issue to(for) main equipment is issued the big application scenarios of upstream data amount of main equipment than slave unit, because of being subjected to the restriction of upstream rate, downstream rate can not surpass 4Mbps.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, and and then provide a kind of 485 bus systems.Described technical scheme is as follows:
A kind of 485 bus systems, comprise main equipment and a plurality of slave unit, connection between described main equipment and the described a plurality of slave unit adopts two to overlap independently bus, and wherein, the transmission data port of described main equipment is connected with the reception data port of described a plurality of slave units by a cover bus; The reception data port of described main equipment is connected with the collision detection signal port with the transmission data port of described a plurality of slave units by another set of bus.
The present invention also provides a kind of method of utilizing 485 bus systems to transmit data, and described method comprises:
Slave unit obtains the network information, and sends the step of upstream data to main equipment by a bus; And main equipment sends the step of downlink data to slave unit by another bus.
The invention has the beneficial effects as follows:
1, adopt two to overlap independently bus, main equipment is sent to the following row bus of slave unit and last row bus that slave unit sends to main equipment separately, two cover buses can be carried out the transmission and the reception of data simultaneously, system can be operated under the pattern of full duplex, and the system communication bandwidth can double at least.
2, the tranmitting data register of equipment and receive clock separate, and following row bus can be different with up Bus Speed, and downlink communication speed detects because of there not being bus collision, and speed can be brought up to more than the 10Mbps, and the downlink communication performance can also be enhanced about more than once.Can be applied to main equipment and issue the downlink data amount of slave unit is issued main equipment than slave unit the big asymmetric application scenarios of upstream data amount.Can improve the communication performance of whole system greatly by improving downlink communication speed.
Description of drawings
Fig. 1 is the schematic diagram of multi-master bus communication pattern in the prior art;
Fig. 2 is the schematic diagram of described 485 bus systems of the embodiment of the invention;
Fig. 3 is the described method flow diagram that utilizes 485 bus systems to transmit data of the embodiment of the invention.
Embodiment
The invention will be further described with reference to corresponding drawings and Examples below, but not as a limitation of the invention.
Described 485 bus systems of the described technical scheme of present embodiment comprise main equipment and a plurality of slave unit, and this system is a master-slave mode bus communication mode, and the connection between main equipment and the described a plurality of slave unit adopts two to overlap independently bus.The transmission data port of main equipment #1 and the reception data port of a plurality of slave units connect together and constitute row bus down, are designed to the tranmitting data register of main equipment #1 and the receive clock of a plurality of slave units consistent simultaneously.The transmission data port of the reception data port of main equipment #1 and a plurality of slave units and collision detection signal port connected together to constitute go up row bus, be designed to the receive clock of main equipment #1 and the tranmitting data register of a plurality of slave units consistent simultaneously.Described bus is for adopting the RS485 bus.
Referring to Fig. 2, concrete technical scheme is as follows:
The transmission data port TXD of main equipment #1 is connected with the reception data port RXD of a plurality of slave units by bus 2, to constitute row bus down.The reception data port RXD of main equipment #1 is connected with collision detection signal port CTS with the transmission data port TXD of a plurality of slave units by bus 1, goes up row bus to constitute.Owing to have a plurality of slave units in the system, thereby still need collision detection signal port and the transmission data port of slave unit, the reception data port of main equipment of slave unit are connected by last row bus, the collision detection of slave unit when being used for the upstream data transmission.And there is not conflict when sending in main equipment, and then the reception data port of the transmission data port of main equipment and slave unit does not just need to connect the collision detection mouth of main equipment when row bus is connected down, has so improved downlink communication speed yet.
The tranmitting data register and the receive clock of equipment are separated, make the tranmitting data register of main equipment #1 consistent with the receive clock of slave unit #2, slave unit #3, the receive clock of main equipment #1 is consistent with the tranmitting data register of slave unit #2, slave unit #3.
For the consistent tranmitting data register and the slave unit #2 that can pass through of the tranmitting data register of main equipment #1 with main equipment #1 with the receive clock of slave unit #2, slave unit #3, the receive clock of slave unit #3 is connected same clock Clock2 and goes up realization, also can be by tranmitting data register and slave unit #2 with main equipment #1, the receive clock of slave unit #3 connects clock separately respectively, and guarantees that clock separately all is that Clock2 realizes.
For the consistent receive clock and the slave unit #2 that can pass through of the receive clock of main equipment #1 with main equipment #1 with the tranmitting data register of slave unit #2, slave unit #3, the tranmitting data register of slave unit #3 is connected same clock Clock1 and goes up realization, also can be by receive clock and slave unit #2 with main equipment #1, the tranmitting data register of slave unit #3 connects clock separately respectively, and guarantees that clock separately all is that Clock1 realizes.
Main equipment #1 can pass through row bus down, adopt the Clock2 clock rate to send data to slave unit, any slave unit can obtain to go up the row bus right of possession corporeal right by competition bus simultaneously, adopts the Clock1 clock rate to send data to main equipment, realizes the full-duplex communication of arbitrary equipment.
The invention will be further described below by the application at communications field transmission equipment MADM (the many bifurcateds of Multiple Add Drop Multiplexer are multiplexing) equipment:
The MADM transmission equipment comprises control unit, line unit and cross unit.Wherein, control unit is a main equipment, and line unit and cross unit are slave unit.Transmission equipment need be realized the function of network level quick protective switch; after faults such as the disconnected fibre of network appearance; line unit needs to give control unit with fault information reporting fast; control unit starts APS protection agreement according to reporting information; to protect information to be handed down to cross unit as early as possible, thereby realize the quick defencive function behind the network failure.
Traditional communication means is the communication mode of 485 shared buss, and promptly the receiving terminal and the transmitting terminal of main equipment (control unit) and each slave unit (line unit and cross unit) all connect together, shared same set of bus.Because the protection information data amount that control unit issues is very big, and the fault information data amount that line unit reports is very little, adopts 485 traditional shared bus communication modes to be difficult to satisfy the real-time requirement of large capacity equipment.
In the present embodiment, can adopt 485 bus communication modes,, can easily a plurality of line units, cross unit and control unit be coupled together by 485 buses by the interface on the System Backplane.The transmission data port TXD of control unit is connected with the reception data port RXD of line unit and cross unit by bus 2, to constitute row bus down.The reception data port RXD of control unit is connected with collision detection signal port CTS with the transmission data port TXD of cross unit and control unit by bus 1, goes up row bus to constitute.
The receive clock of the tranmitting data register of control unit and cross unit, control unit is connected on the same clock Clock2, the tranmitting data register of the receive clock of control unit and cross unit, control unit is connected on the same clock Clock2, guaranteeing down that row bus and up Bus Speed can be different, thereby improved the communication performance of whole system.
The present invention only need increase a bus, can convert traditional up-downgoing unification shared bus to transmitting-receiving two buses separately.The traffic rate that descends row bus significantly can be improved (because of not needing to handle collision detection) on the one hand; can realize down that in addition row bus and last row bus work simultaneously; when control unit issues protection information; can not be subjected to line unit to report the influence of fault message, adopt this technology to solve communication performance bottleneck problem when equipment protection is switched well.
Utilize 485 above-mentioned bus systems, the invention allows for a kind of method that transmits data.Referring to Fig. 3, be example still with communications field transmission equipment MADM equipment, concrete steps are as follows:
Steps A: fiber cut failure appears in network, and line unit obtains fault message, and fault message is reported control unit by a bus (being the last row bus that the connection line unit sends data port and control unit reception data port);
In the present embodiment, the collision detection signal port of a plurality of line units of 485 bus systems will carry out collision detection, if there are a plurality of line units to send fault message simultaneously to control unit, then the collision detection signal port will detect bus collision, line unit will stop to send fault message, and conflict does not report again on bus.
Step B: control unit starts APS protection agreement according to reporting information; protection information is handed down to cross unit by another bus (promptly connecting the following row bus that control unit sends data port and cross unit reception data port), thereby realizes the quick defencive function behind the network failure.
Owing to have two buses, the transmission of upstream data and downlink data both can not carried out simultaneously, also can be under the situation of needs, and the transmission of upstream data and the transmission of downlink data are carried out simultaneously.
For example; when control unit by following row bus when cross unit issues protection information, if a fiber cut failure is arranged again, if adopt the monobus scheme of prior art; must wait until that the downlink data transmission finishes, line unit could send fault message to control unit.Adopt system of the present invention, line unit can send fault message to control unit at control unit when cross unit sends protection information.
In the foregoing description, slave unit sends data to main equipment earlier, main equipment also can send downlink data to slave unit earlier by the following row bus that connects main equipment transmission data port and slave unit reception data port in the application, slave unit makes the transmission of up-downgoing data be undertaken by different buses by connecting the last row bus transmission upstream data that slave unit sends data port and main equipment reception data port then.
The transmission and the receive clock of each equipment separate, because the tranmitting data register difference of up-downgoing data, thereby the transmission rate of up-downgoing data also can be different.
More than be that preferred implementation of the present invention is described, those skilled in the art is in the scheme scope of the technology of the present invention, and common variation and the replacement carried out all should be included in protection scope of the present invention.

Claims (10)

1, a kind of 485 bus systems, comprise main equipment and a plurality of slave unit, it is characterized in that, connection between described main equipment and the described a plurality of slave unit adopts two to overlap independently bus, wherein, the transmission data port of described main equipment is connected with the reception data port of described a plurality of slave units by a cover bus; The reception data port of described main equipment is connected with the transmission data port of described a plurality of slave units by another set of bus.
2,485 bus systems as claimed in claim 1 is characterized in that, the collision detection signal port of described a plurality of slave units is connected by the reception data port of described another set of bus and described main equipment and the transmission data port of described a plurality of slave units.
3,485 bus systems as claimed in claim 1 or 2 is characterized in that, the tranmitting data register of described main equipment is consistent with the receive clock of described a plurality of slave units, and the receive clock of described main equipment is consistent with the tranmitting data register of described a plurality of slave units.
4,485 bus systems as claimed in claim 3, it is characterized in that, the tranmitting data register end of described main equipment and the receive clock end of described a plurality of slave units are connected on the same clock or the receive clock end of the tranmitting data register end of described main equipment and described a plurality of slave units is connected separately clock respectively, and the frequency of the described clock that connects separately is identical.
5,485 bus systems as claimed in claim 3, it is characterized in that, the receive clock end of described main equipment and the tranmitting data register end of a plurality of slave units are connected on the same clock or the tranmitting data register end of the receive clock end of described main equipment and a plurality of slave units is connected separately clock respectively, and the frequency of the described clock that connects separately is identical.
6, as described 485 bus systems of any claim in claim 1 or 2 or 4 or 5, it is characterized in that, described main equipment is the control unit in many bifurcateds multiplexing transmission equipment, and described slave unit is line unit or the cross unit in many bifurcateds multiplexing transmission equipment.
7, a kind of method of utilizing 485 bus systems to transmit data is characterized in that described method comprises:
Slave unit sends the step of upstream data to main equipment by a bus; And
Main equipment sends the step of downlink data to slave unit by another bus.
8, the method for transmission data as claimed in claim 6 is characterized in that, described slave unit carries out to the step that slave unit sends downlink data by another bus to step and the described main equipment that main equipment sends upstream data simultaneously by a bus.
9, the method for transmission data as claimed in claim 6 is characterized in that, described slave unit is inequality to the speed that slave unit sends downlink data by another bus to speed and described main equipment that main equipment sends upstream data by a bus.
As the method for any described transmission data of claim of claim 7 to 9, it is characterized in that 10, described slave unit sends upstream data by a bus to main equipment and specifically comprises:
The collision detection signal port of described slave unit carries out collision detection, if there are a plurality of slave units to send data simultaneously to main equipment, then described collision detection signal port will detect bus collision, and slave unit will stop to send data, and conflict does not send data to main equipment again on bus.
CN 200610167961 2006-12-22 2006-12-22 485 bus system and method for transmitting data Pending CN101005427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610167961 CN101005427A (en) 2006-12-22 2006-12-22 485 bus system and method for transmitting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610167961 CN101005427A (en) 2006-12-22 2006-12-22 485 bus system and method for transmitting data

Publications (1)

Publication Number Publication Date
CN101005427A true CN101005427A (en) 2007-07-25

Family

ID=38704305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610167961 Pending CN101005427A (en) 2006-12-22 2006-12-22 485 bus system and method for transmitting data

Country Status (1)

Country Link
CN (1) CN101005427A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345682B (en) * 2008-07-29 2011-01-19 人民电器集团有限公司 Operation method for main unit of intelligent electric appliance serial bus
WO2011011915A1 (en) * 2009-07-29 2011-02-03 华为技术有限公司 Data communication method, communication equipment and communication system
CN102081585A (en) * 2010-12-30 2011-06-01 哈尔滨工业大学 RS485 dual-bus communication method used for test satellite
CN102447601A (en) * 2011-11-14 2012-05-09 中国石油天然气集团公司 Single-bus (s-bus) communication circuit
CN102546141A (en) * 2012-02-20 2012-07-04 杭州海康威视系统技术有限公司 485 bus system and asynchronous half-duplex communication method thereof
CN104102205A (en) * 2014-07-10 2014-10-15 精技电子(南通)有限公司 Multi-module bus control system and method
CN105677608A (en) * 2015-12-31 2016-06-15 浙江众合科技股份有限公司 Multi-master RS485 bus arbitration method and system
JP2017184086A (en) * 2016-03-31 2017-10-05 富士機械製造株式会社 Multiplex communication system and work machine
CN107370651A (en) * 2017-06-26 2017-11-21 中国人民解放军91388部队 A kind of communication means between SPI slaves
CN111045980A (en) * 2019-12-24 2020-04-21 广东嘉泰智能技术有限公司 Multi-core processor
CN111385172A (en) * 2018-12-27 2020-07-07 杭州萤石软件有限公司 Control system, control method and storage medium based on bus
CN113485956A (en) * 2021-06-18 2021-10-08 深圳弘星智联科技有限公司 Automatic speed increasing method for 485 bus equipment
CN113535626A (en) * 2021-07-28 2021-10-22 北京深思数盾科技股份有限公司 Serial port communication system, serial port communication method and intelligent door lock

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345682B (en) * 2008-07-29 2011-01-19 人民电器集团有限公司 Operation method for main unit of intelligent electric appliance serial bus
WO2011011915A1 (en) * 2009-07-29 2011-02-03 华为技术有限公司 Data communication method, communication equipment and communication system
CN102081585A (en) * 2010-12-30 2011-06-01 哈尔滨工业大学 RS485 dual-bus communication method used for test satellite
CN102447601A (en) * 2011-11-14 2012-05-09 中国石油天然气集团公司 Single-bus (s-bus) communication circuit
CN102447601B (en) * 2011-11-14 2015-12-09 中国石油天然气集团公司 S-bus monobus communicating circuit
CN102546141A (en) * 2012-02-20 2012-07-04 杭州海康威视系统技术有限公司 485 bus system and asynchronous half-duplex communication method thereof
CN102546141B (en) * 2012-02-20 2015-02-18 杭州海康威视系统技术有限公司 485 bus system and asynchronous half-duplex communication method thereof
CN104102205A (en) * 2014-07-10 2014-10-15 精技电子(南通)有限公司 Multi-module bus control system and method
CN105677608B (en) * 2015-12-31 2019-01-04 浙江众合科技股份有限公司 A kind of how main RS485 bus arbitration method and system
CN105677608A (en) * 2015-12-31 2016-06-15 浙江众合科技股份有限公司 Multi-master RS485 bus arbitration method and system
JP2017184086A (en) * 2016-03-31 2017-10-05 富士機械製造株式会社 Multiplex communication system and work machine
CN107370651A (en) * 2017-06-26 2017-11-21 中国人民解放军91388部队 A kind of communication means between SPI slaves
CN107370651B (en) * 2017-06-26 2020-04-10 中国人民解放军91388部队 Communication method between SPI slave machines
CN111385172A (en) * 2018-12-27 2020-07-07 杭州萤石软件有限公司 Control system, control method and storage medium based on bus
CN111385172B (en) * 2018-12-27 2021-11-26 杭州萤石软件有限公司 Control system, control method and storage medium based on bus
CN111045980A (en) * 2019-12-24 2020-04-21 广东嘉泰智能技术有限公司 Multi-core processor
CN113485956A (en) * 2021-06-18 2021-10-08 深圳弘星智联科技有限公司 Automatic speed increasing method for 485 bus equipment
CN113485956B (en) * 2021-06-18 2023-05-30 深圳弘星智联科技有限公司 485 bus equipment automatic speed increasing method
CN113535626A (en) * 2021-07-28 2021-10-22 北京深思数盾科技股份有限公司 Serial port communication system, serial port communication method and intelligent door lock
CN113535626B (en) * 2021-07-28 2022-07-26 北京深思数盾科技股份有限公司 Serial port communication system, serial port communication method and intelligent door lock

Similar Documents

Publication Publication Date Title
CN101005427A (en) 485 bus system and method for transmitting data
US20080205416A1 (en) Flight control computers with ethernet based cross channel data links
CN105743566B (en) A kind of double-PON port ONU optical link pretection switch devices and guard method
CN101907887B (en) Mineral hydraulic bracket controller, bracket control system and communication method
CN103716092B (en) The communication means of the group network system of bidirectional optical fiber communication in a kind of bus-network
CN102318267A (en) Data communication method, communication equipment and communication system
CN1937782B (en) Frame device and its message transmitting method
CN101710865A (en) Method and device for rapid active-standby switching in network equipment
CN102594643A (en) Method, device and system for controlling bus communication of controller area network
CN108365944A (en) A kind of communication means of half-duplex bus, system and room control system
CN102158383B (en) Data transmission method, device and system for E1 bidirectional ring network
CN101547131B (en) EAPS looped network single-channel fault location and protection method
CN103034604A (en) Conversion equipment of universal serial bus (USB) and various serial ports and realization method thereof
CN104272662A (en) Full-duplex ethernet communications over coaxial links using time-division duplexing
CN100521690C (en) System and component for realizing first component and second component communication
CN102082696B (en) Redundancy network system and message sending method based on same
CN102111299A (en) Redundant network system and method for realizing redundancy
CN103268301A (en) Automatic-flowing half-duplex UART interface circuit
KR101868662B1 (en) Ethernet based Backplane and Module for Programmable Logic Controller
CN102638589A (en) Determining method of corresponding connection relation of channels, as well as related connecting ends and system
CN101917291B (en) Serial-bus streaming media transmission system and terminal equipment in same
CN105591894B (en) A kind of method and apparatus that the veneer of distributed system improves data channel reliability between plate
CN102148678A (en) Dual-path automatic full-redundancy transparent light transmission system
CN106506304B (en) Expansible communication system and method
CN202003197U (en) Mining hydraulic bracket controller, bracket control system

Legal Events

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