[go: up one dir, main page]

CN107908584A - A kind of 485 communication networks of multichannel RS - Google Patents

A kind of 485 communication networks of multichannel RS Download PDF

Info

Publication number
CN107908584A
CN107908584A CN201711241045.8A CN201711241045A CN107908584A CN 107908584 A CN107908584 A CN 107908584A CN 201711241045 A CN201711241045 A CN 201711241045A CN 107908584 A CN107908584 A CN 107908584A
Authority
CN
China
Prior art keywords
communication
ports
dsp
multichannel
interface circuits
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711241045.8A
Other languages
Chinese (zh)
Other versions
CN107908584B (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.)
Sichuan Fanhua Aviation Instrument and Electrical Co Ltd
Original Assignee
Sichuan Fanhua Aviation Instrument and Electrical 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 Sichuan Fanhua Aviation Instrument and Electrical Co Ltd filed Critical Sichuan Fanhua Aviation Instrument and Electrical Co Ltd
Priority to CN201711241045.8A priority Critical patent/CN107908584B/en
Publication of CN107908584A publication Critical patent/CN107908584A/en
Application granted granted Critical
Publication of CN107908584B publication Critical patent/CN107908584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a kind of 485 communication networks of multichannel RS, for realizing that multichannel RS 485 communicates using limited serial port resource, including DSP digital signal processor, passage control switching circuit, 485 interface circuits of RS, 485 communication terminals of RS, it is characterised in that:485 communication terminals of RS are connected with same communication port, and the channel selecting signal of the DSP digital signal processor output is used to enable 485 interface circuits of RS after passage control switching circuit.The present invention can realize that multichannel RS 485 communicates without programming devices such as FPGA by single serial ports, solve the technical problem that prior art cost is higher, extension change cost is larger, designs complicated inconvenience transplanting.

Description

A kind of multichannel RS-485 communication networks
Technical field
The present invention relates to multichannel communication multiple telecommunication network, more particularly to a kind of multichannel RS-485 communication networks.
Background technology
As sorts of systems digitizes, the continuous of informationization is lifted, the information sharing requirement to all kinds of measure-controlling units Higher and higher, the crosslinking between equipment becomes increasingly complex.Communication interface is to realize the basis that equipment is cross-linked with each other, due to microcontroller Or DSP digital information processing systems usually only has two-way serial line interface, the serial line interface all the way of traditional application method can only Realize RS-485 full-duplex communications all the way, cannot directly meet Measurement and Control System requirement of new generation, particularly have When multiple asynchronous communication cross-linking apparatus need information exchange at the same time.If want to ensure that highly reliable communication will in limited hardware resource Summation system rejection to disturbance ability simultaneously realizes that the communication of multichannel exchanges, it is necessary to a kind of multichannel RS-485 communication networks.
Currently available technology is communicated soft core using the exploitation of the Programmable Device Design such as FPGA, using internal logic control come Realize that multichannel RS-485 communicates, its logic chart is as shown in Figure 1.But the multichannel RS-485 communication networks designed using fpga chip The cost of network is higher, extension change cost is larger, and temperature applicable range is small(-40℃~+60℃), and design and develop complicated journey Degree and technical difficulty are big, are often unsuitable for transplanting in the embedded system such as SCM system and DSP digital information processing systems.
Therefore in the prior art, there are cost is higher, extension change cost is larger, temperature makes for multichannel RS-485 communication networks With scope is small, design is complicated, the technical problem of inconvenience transplanting.
The content of the invention
The present invention is that the cost present in the above-mentioned prior art is higher, extension change cost is larger, temperature is applicable in avoid Scope is small, designing technique difficulty is big, the technical problem of inconvenience transplanting provides a kind of multichannel RS-485 communication networks.
A kind of multichannel RS-485 communication networks provided by the invention, including DSP digital signal processor, passage switching control The RS-485 communication terminals of the identical and independent RS-485 interface circuits in circuit, at least 3 tunnels, at least 3 tunnel independences, the RS-485 Communication terminal has RS-485 communication interfaces and consistent with RS-485 interface circuit quantity;The RS-485 communication terminals and RS- 485 interface circuits are one-to-one to be connected, and forms some communication ports;The RS-485 interface circuits are used for DSP serial interface communication The conversion of agreement and RS-485 serial port communication agreements;It is characterized in that:The passage control switching circuit is connected to DSP numbers Between word signal processor and RS-485 interface circuits, be used for realization DSP digital signal processor and RS-485 interface circuits it Between level conversion and DSP digital signal processor pin protection;The DSP digital signal processor is used to export controllable Channel selecting signal, the data message of multiple communication channels are received and sent, the information format of configuration bookbinding transmission content;It is described Channel selecting signal is transferred to RS-485 interface circuits after passage control switching circuit, for enabling RS485 interface circuits;Institute The RS-485 communication interfaces of RS-485 communication terminals are stated after corresponding RS-485 interface circuits and passage control switching circuit It is connected with the same communication port of DSP digital signal processor.Its principle is:Per road RS-485 interface circuits respectively with one Communication port, all communication ports are connected to DSP digital signal processor to road RS-485 communication terminals connection composition all the way Same serial port, then RS-485 interface circuits are controlled by DSP digital signal processor output channel enable signal, and then control The unicom and disconnection that DSP digital processing units processed communicate with certain road RS-485 communication terminals.The channel selecting signal Controllable, it is depending on the prefabricated receiving and dispatching mechanism of DSP digital signal processor:Need to lead to certain road RS-485 communication terminals During letter, the channel selecting signals of enabled road RS-485 interface circuits is exported to gate the road communication channel.DSP numerals letter at the same time Signal number between processor and RS-485 interface circuits realizes that level switches by passage control switching circuit, and it is suitable to be converted to Drive level.The channel selecting signal exported using DSP digital signal processor, is aided with the level of passage control switching circuit Conversion, you can realize switching and the information exchange of multichannel RS-485 communication ports, therefore only need to be in DSP digital signal processor Configure rational receiving and dispatching mechanism can reach with periphery multiple communication terminals carry out information exchange and share, without FPGA Deng the soft core of Programmable Device Design exploitation communication.
Further, the RS-485 interface circuits include one send Enable Pin, one receive Enable Pin, be used for and passage Control switching circuit connects the DSP serial ports of mouth, the RS-485 full duplex serial ports for being connected with RS-485 communication terminals;The DSP Serial ports includes two ports, and a port is as signal input port, another is as signal output port;The RS-485 is complete Duplexing serial ports includes 4 ports, and two of which is as differential signal input mouth, two other is to as differential signal outputs Mouthful;The Enable Pin that sends controls the differential signal outputs mouth of RS-485 full duplex serial ports to export for high-impedance state or according to DSP The level value of rs 232 serial interface signal input port and export analog value;The reception Enable Pin control DSP serial ports output port is in height Resistance state exports analog value according to the level value of RS-485 full duplex serial ports differential signal input mouths.Its principle is:It is above-mentioned RS-485 interface circuits are RS-485 full duplex interface circuits in mode, have 4 ports, and it is entirely double to can be used for composition RS-485 Work communication network, can use both-end to send, both-end balance drive and differential received, equivalent to having two in each interface circuit Single ended transceiver, this balance drive and differential received method can be inherently eliminated grounding interference.And it is sent with connecing The control for sending Enable Pin with receiving Enable Pin is received, can be gated with being controlled by DSP digital signal processor.
Further, the DSP digital signal processor function is mainly completed by dsp chip;The dsp chip is TMS320C2000 family chips, its some I/O mouthfuls are connected to output channel selection signal with passage control switching circuit;Institute RS-485 interface circuits are transferred to after stating the level signal that channel selecting signal is converted to 5V or 0V through passage control switching circuit Transmission Enable Pin and receive Enable Pin;The dsp chip includes software, is used for realization at Initialize installation DSP digital signals Device, I/O mouthfuls of output levels of control, the data message of multiple communication channels is managed to receive and send, configure the letter that bookbinding sends content Cease form;The SCIA communication ports of the dsp chip after passage control switching circuit with all RS-485 interface circuits In DSP serial ports be connected, as the communication port being finally connected with RS-485 communication terminals.Its principle is:In dsp chip It is integrated with communication interface circuit bottom layer driving software and Communication Control algorithm software.Communication interface circuit bottom layer driving software is main It is that internal processes space, data space and the I/O mouthful of DSP digital signal processor are configured;Clock frequency is initialized, it is defeated Enter to export I/O mouth line states;Initialize serial communication interface SCIA, SCIB reiving/transmitting state and pattern;And all kinds of interruption clothes of DSP Business program entry.Communication Control algorithm software is the communication driving and control algolithm designed and developed according to required communication protocol, mesh Be to realize that multichannel RS-485 communication ports share the serial communication interface of a DSP digital signal processor, and can be real When detect whether present communications passage works normally.Communication Control algorithm routine software is defeated by drive control dsp chip Enter to export I/O controlling bus, enable the working status of RS-485 interface circuits, realize the switching of multichannel RS-485 communication ports and letter Breath exchanges, and reaches the information exchange with ancillary equipment.Its workflow is as follows:Complete the basic function of initialization dsp chip Afterwards, the enabled control command with the RS-485 communication terminals N RS-485 interface circuits being connected is sent, to RS-485 communication terminals N Send the data after bookbinding;After the completion of data sending, the data and status information that wait RS-485 communication terminals N to be received to return, Present communications passage is closed, exits reception service routine;Communication Control algorithm software is to receiving multichannel RS-485 communication ports Data judged, into fault-tolerant processing flow, if currently received error in data or do not received in cycle time is taken office What data, starts present communications channel failure and counts, when continuous fault counting is accumulated to some number, by Current communications periphery Equipment fault flag bit set, if after communication recovers normal, immediately resets fault flag, can be with the event of real-time report passage Barrier, convenient detection and maintenance.TMS320C2000 series DSPs chip has SCIA and SCIB dual serial communication port.Select SCIA realizes connection with multichannel RS-485 communication terminals, structure by connecting the DSP serial ports in all RS-485 interface circuits Build multiple communication channels.The I/O of dsp chip can set according to inside and export Transistor-Transistor Logic level, which switches by passage The level signal of 5V or 0V can be converted to after circuit, is made available for the transmission Enable Pin of driving RS-485 interface circuits and reception Energy end, realizes gating and the switching of communication port, and final receiving and dispatching mechanism as needed realizes multichannel RS-485 full-duplex communications.
Further, the major function of the passage control switching circuit is realized by electrical level transferring chip, the level conversion Chip type selecting is SN74ALVC164245DL;The I/O mouths of the A series of ports connection dsp chip of the electrical level transferring chip, it is corresponding B series of ports connection RS-485 interface circuits transmission Enable Pin with receive Enable Pin.Specifically such as, the I/O mouths of dsp chip Control_1 to control_8 is used for output channel selection signal, then by control_1 to control_8 ports successively with The 1A1 of electrical level transferring chip is sequentially connected to 1A8 ports, at the same by the 1B1 of electrical level transferring chip to 1B8 ports successively with 4 tunnels The transmission Enable Pin of RS-485 interface circuits is connected with Enable Pin is received.Its principle is:With selecting SN74ALVC164245DL level Chip is converted, its A series of ports is 3.3V fiduciary levels, and B series of ports is 5.0V fiduciary levels, it is possible to achieve required level turns Change, and can be by selecting multiple chips to realize the extension of passage.
Further, the major function of the RS-485 interface circuits is realized that the RS-485 leads to by RS-485 communication chips Letter chip type selecting is MAX489ESA, signal output port, the DI of the RO ports of the RS-485 communication chips as DSP serial ports Signal input port of the port as DSP serial ports, for by after passage control switching circuit respectively with dsp chip SCIA serial ports The transmitting-receiving pin of communication port is connected;The RE ports of the RS-485 communication chips are as reception Enable Pin, DE ports as hair Send Enable Pin;The A ports of the RS-485 communication chips, B ports, Z ports, Y-port form RS-485 full duplex serial ports, wherein A ports, B ports are differential signal input mouth, and Z ports, Y-port are differential signal outputs mouth.Its principle is: RS-485 communication chips of the MAX489ESA as standard, itself has and sends Enable Pin and reception Enable Pin, RS-485 full duplexs Serial ports, and can realize that the conversion of serial port protocol, integrated level are high, it is the preferred solution for realizing the present invention.Wherein, RS-485 interfaces According to actual conditions needs in circuit, some adaptation resistance can be increased, effect is protection RS-485 communication chips, improves circuit Antijamming capability.
Further, the multichannel RS-485 communication networks further include energy external power supply and are converted to+5V ,+3.3V ,+1.9V three The power conversion module of kind magnitude of voltage.Its principle is:+ 3.3V the level can be as the work of DSP digital signal processor Make level ,+1.9V level can be used as its core operational voltage.
Further, the power conversion module includes power-switching circuit 1 and power-switching circuit 2, the power supply conversion Outer power voltage is adjusted to+12V by circuit 1 by LM117EMP chips, then be by adjusting voltage after MIC2397A chips+ 5V;+ 5V voltage conversions are+3.3V and+1.9V by TPS75733 and TPS76801 chips by the power-switching circuit 2.Its Principle is:Power-switching circuit includes multi-stage power source conversion circuit, finally the external power supply of 1.2V to 37V can be converted to+5V, Three kinds of magnitudes of voltage of+3.3V ,+1.9V.
Further, wherein 3 tunnels of the RS-485 communication terminals are respectively fuel monitor one, fuel monitor two, show Control computer.Its principle is:It is simple by the multichannel RS-485 full-duplex communication network structures for connecting above-mentioned communication terminal composition, It is of low cost, it can be used for fuel oil measurement control system.
Further, the multichannel RS-485 communication networks, further include UART half-duplex interface circuits;The UART half-duplexs Interface circuit, one end connect the SCIB communication ports of DSP digital signal processor, and one end is connected by half-duplex external bus Ancillary equipment is connect, such as non-aviation electronics monitoring processing system.The work(of communication network of the present invention is extended using UART connections SCIB Can, to widen use scope, typically use it for connecting non-aviation electronics monitoring processing system, can realize the same of communication When, realize monitoring function.
The present invention is led to using the control multichannel RS-485 full-duplex communications of DSP digital signal processor output control signal itself The switching in road, multichannel RS-485 full-duplex communications are realized using single serial ports, eliminate FPGA needed in the art or The programming devices such as CPLD, and the process for the soft core of the Programmable Device Designs such as FPGA or CPLD communication, cost is lower, software Design is more simple;The present invention shares the serial communication of a DSP digital signal processor by multichannel RS-485 communication ports Port, more efficiently make use of limited hardware resource, and the communication network of selected chip composition can be at -60 DEG C to+125 Used in DEG C temperature range, temperature applicable range is wider;In expanding communication function, increased RS-485 connects the present invention on hardware Mouth chip and electrical level transferring chip cost are all relatively low, while the reliability of RS-485 interface chips in itself is high, it is ensured that multichannel The reliability of RS-485 interface circuits is consistent, and the software in dsp chip itself is simple in structure easy to change, and multichannel RS-485 Bsp driver between interface circuit is approximate or identical, can very easily be changed transplanting as the case may be, therefore The reliability of the present invention is high, and extension is low with change cost, easy to transplant.
Technology compared with the prior art of the invention, at least has the advantages that:Cost is lower, extension changes cost more Small, temperature applicable range bigger, be more convenient for transplanting.
Brief description of the drawings
Fig. 1, a kind of multichannel RS-485 communication network architecture figures for the prior art.
Fig. 2, be a kind of multichannel RS-485 communication network architecture figures of the present invention.
Fig. 3, be a kind of circuit diagram of multichannel RS-485 communication networks of the present invention.
Fig. 4, be a kind of circuit diagram of RS-485 interface circuits of the present invention.
Fig. 5, be a kind of circuit diagram of power-switching circuit 1 of the present invention.
Fig. 6, be a kind of circuit diagram of power-switching circuit 2 of the present invention.
In figure:U1.DSP chips, U2. electrical level transferring chips, U3.RS-485 communication chips, U4. UART half-duplex interfaces Circuit.
Embodiment
The present invention is further described with reference to the accompanying drawings and examples:
Embodiment 1, referring to Fig. 2:
A kind of multichannel RS-485 communication networks, including DSP digital signal processor, passage control switching circuit, at least 3 tunnels are identical And independent RS-485 interface circuits, the RS-485 communication terminals of at least 3 tunnel independences, the RS-485 communication terminals have RS- 485 communication interfaces are simultaneously consistent with RS-485 interface circuit quantity;The RS-485 communication terminals are a pair of with RS-485 interface circuits One is connected, and forms some communication ports;The RS-485 interface circuits are used for DSP serial interface communication protocol and RS-485 is serial The conversion of interface communication protocol;It is characterized in that:The passage control switching circuit be connected to DSP digital signal processor and Between RS-485 interface circuits, the level conversion that is used for realization between DSP digital signal processor and RS-485 interface circuits and The protection of DSP digital signal processor pin;The DSP digital signal processor be used for export controllable channel selecting signal, The data message of multiple communication channels is received and sent, the information format of configuration bookbinding transmission content;The channel selecting signal RS-485 interface circuits are transferred to after passage control switching circuit, for enabling RS485 interface circuits;The RS-485 communications The RS-485 communication interfaces of terminal after corresponding RS-485 interface circuits and passage control switching circuit with DSP digital signals The same communication port of processor is connected.Its principle is:Communicate respectively with RS-485 all the way per road RS-485 interface circuits Communication port, all communication ports are connected to the same serial port of DSP digital signal processor to terminal connection composition all the way, RS-485 interface circuits are controlled by DSP digital signal processor output channel enable signal again, and then control DSP digital processings The unicom and disconnection that Qi Yumou roads RS-485 communication terminals communicate.Controllable, its basis of the channel selecting signal Depending on the prefabricated receiving and dispatching mechanism of DSP digital signal processor:When needing with certain road RS-485 serial communications, output is enabled The channel selecting signal of road RS-485 interface circuits is to gate the road communication channel.DSP digital signal processor and RS- at the same time Signal between 485 interface circuits realizes that level switches by passage control switching circuit, is converted to suitable drive level.Profit The channel selecting signal exported with DSP digital signal processor, is aided with the level conversion of passage control switching circuit, you can realizes The switching of multichannel RS-485 communication ports and information exchange, therefore rational receipts need to be only configured in DSP digital signal processor Hair mechanism, which can reach, to be carried out information exchange with multiple communication terminals of periphery and shares, and is designed and developed without fpga chip Communicate soft core.
Embodiment 2:
On the basis of above-described embodiment, embodiment 2 is proposed, it is characterised in that:The RS-485 interface circuits include a hair Send Enable Pin, reception Enable Pin, the DSP serial ports for connecting mouth with passage control switching circuit, for communicating with RS-485 The RS-485 full duplex serial ports of terminal connection;The DSP serial ports includes two ports, a port as signal input port, Another is as signal output port;The RS-485 full duplexs serial ports includes 4 ports, and two of which is defeated as differential signal Inbound port, two other is to as differential signal outputs mouth;The difference for sending Enable Pin control RS-485 full duplex serial ports The output of sub-signal output port exports analog value for high-impedance state or according to the level value of DSP rs 232 serial interface signal input ports;It is described Receive Enable Pin control DSP serial ports output port and be in high-impedance state or according to RS-485 full duplex serial ports differential signal input mouths Level value and export analog value.Its principle is:RS-485 interface circuits are RS-485 full duplex interface circuits in aforesaid way, With 4 ports, can be used for forming RS-485 full-duplex communication networks, both-end can be used to send, both-end balance drive and Differential received, equivalent to there is two single ended transceivers in each interface circuit, this balance drive and differential received method can be with It has been inherently eliminated grounding interference.And its send and receive by send Enable Pin with reception Enable Pin controlled, can with by DSP digital signal processor control gating.
Embodiment 3, is shown in Fig. 3:
On the basis of above-described embodiment, embodiment 3 is proposed, it is characterised in that:The DSP digital signal processor function is main Completed by dsp chip U1, the dsp chip U1 is TMS320C2000 family chips, its some I/O mouthfuls with passage switching control Circuit is connected to output channel selection signal;The channel selecting signal is converted to 5V's or 0V through passage control switching circuit The transmission Enable Pin of RS-485 interface circuits is transferred to after level signal and receives Enable Pin;The dsp chip U1 includes software, It is used for realization Initialize installation DSP digital signal processor, I/O mouthfuls of output levels of control, the data message of multiple communication channels Receive and send, the information format of configuration bookbinding transmission content;The SCIA communication ports of the dsp chip U1 are cut through passage It is connected after changing control circuit with the DSP serial ports in all RS-485 interface circuits, as being finally connected with RS-485 communication terminals Communication port.TMS320C2000 series DSP chips U1 has SCIA and SCIB dual serial communication port.Select SCIA realizes connection with multichannel RS-485 communication terminals, structure by connecting the DSP serial ports in all RS-485 interface circuits Build multiple communication channels.The I/O ports of dsp chip U1 can set according to inside and export Transistor-Transistor Logic level, and the Transistor-Transistor Logic level is by logical The level signal of 5V or 0V can be converted to after road switching circuit, for driving the transmission Enable Pin of RS-485 interface circuits and connecing Enable Pin is received, realizes gating and the switching of communication port, final receiving and dispatching mechanism as needed realizes multichannel RS-485 full duplexs Communication.
Embodiment 4, is shown in Fig. 3:
On the basis of above-described embodiment, embodiment 4 is proposed, it is characterised in that:The main work(of the passage control switching circuit It can be realized by electrical level transferring chip U2, the electrical level transferring chip U2 type selectings are SN74ALVC164245DL;The level conversion The I/O mouths of the A series of ports connection dsp chip U1 of chip U2, the transmission of corresponding B series of ports connection RS-485 interface circuits Enable Pin is with receiving Enable Pin.Specifically such as, the I/O mouth control_1 to control_8 of dsp chip U1 are selected for output channel Signal is selected, then is connected control_1 to control_8 ports successively with the 1A1 of electrical level transferring chip U2 to 1A8 ports successively Connect, while by the 1B1 of electrical level transferring chip U2 to 1B8 ports successively with the transmission Enable Pins of 4 road RS-485 interface circuits and connecing Receive Enable Pin connection.Its principle is:With SN74ALVC164245DL electrical level conversion chips are selected, its A series of ports is 3.3V standards Level, B series of ports are 5.0V fiduciary levels, it is possible to achieve required level conversion, and can be by selecting multiple chips to realize The extension of passage.
Embodiment 5, is shown in Fig. 3, Fig. 4:
On the basis of above-described embodiment, embodiment 5 is proposed, it is characterised in that:The major function of the RS-485 interface circuits Realized by RS-485 communication chips U3, the RS-485 communication chips U3 type selectings are MAX489ESA, the RS-485 communication chips Signal output port, DI port signal input port as DSP serial ports of the RO ports of U3 as DSP serial ports, for passing through Transmitting-receiving pin after passage control switching circuit respectively with dsp chip U1SCIA serial communications port is connected;The RS-485 leads to Believe that the RE ports of chip U3 are used as reception Enable Pin, DE ports and send Enable Pin;The A ends of the RS-485 communication chips U3 Mouth, B ports, Z ports, Y-port form RS-485 full duplex serial ports, and wherein A ports, B ports is differential signal input mouth, Z Port, Y-port are differential signal outputs mouth.Its principle is:RS-485 communication chip U3s of the MAX489ESA as standard, this Body, which has, to be sent Enable Pin and receives Enable Pin, RS-485 full duplex serial ports, and can realize the conversion of serial port protocol, integrated level Height, is the preferred solution for realizing the present invention.Wherein, it is suitable that some can be increased according to actual conditions needs in RS-485 interface circuits With resistance, effect is protection RS-485 communication chip U3, improves the antijamming capability of circuit.
Embodiment 6, is shown in Fig. 5, Fig. 6:
On the basis of above-described embodiment, embodiment 6 is proposed, it is characterised in that:The multichannel RS-485 communication networks further include Energy external power supply is converted to+5V, the power conversion module of three kinds of magnitudes of voltage of+3.3V ,+1.9V.Its principle is:+ the 3.3V Level can be used as its core operational voltage as the operation level of DSP digital signal processor ,+1.9V level.
Embodiment 7, is shown in Fig. 5, Fig. 6:
On the basis of above-described embodiment, embodiment 7 is proposed, it is characterised in that:The power conversion module is changed including power supply Circuit 1 and power-switching circuit 2, outer power voltage is adjusted to by LM117EMP chips by the power-switching circuit 1+ 12V, then by after MIC2397A chips adjust voltage be+5V;The power-switching circuit 2 passes through TPS75733 and TPS76801 + 5V voltage conversions are+3.3V and+1.9V by chip.Its principle is:Power-switching circuit includes multi-stage power source conversion circuit, most The external power supply of 1.2V to 37V can be converted to+5V, three kinds of magnitudes of voltage of+3.3V ,+1.9V eventually.
Embodiment 8:
On the basis of above-described embodiment, embodiment 8 is proposed, it is characterised in that:Wherein 3 roads of the RS-485 communication terminals point Wei not fuel monitor one, fuel monitor two, aobvious control computer.Its principle is:Formed by connecting above-mentioned communication terminal Multichannel RS-485 full-duplex communication network structures are simple, of low cost, can be used for fuel oil measurement control system.
Embodiment 9, is shown in Fig. 1, Fig. 3:
On the basis of above-described embodiment, embodiment 9 is proposed, it is characterised in that:The multichannel RS-485 communication networks, further include UART half-duplex interface circuits U4;The UART half-duplexs interface circuit U4, one end connect the SCIB of DSP digital signal processor Communication port, one end connect ancillary equipment by half-duplex external bus, such as non-aviation electronics monitoring processing system.Profit The function of communication network of the present invention is extended with UART half-duplex interface circuit U4 connections SCIB, to widen use scope, typically Use it for connecting non-aviation electronics monitoring processing system, can realize monitoring function while communication is realized.

Claims (10)

1. a kind of multichannel RS-485 communication networks, including DSP digital signal processor, at least passage control switching circuit, 3 tunnel phases Same and independent RS-485 interface circuits, at least 3 tunnel independences RS-485 communication terminals, the RS-485 communication terminals have RS-485 communication interfaces are simultaneously consistent with RS-485 interface circuit quantity;The RS-485 communication terminals and RS-485 interface circuits one It is connected to one, forms some communication ports;The RS-485 interface circuits are used for DSP serial interface communication protocol and are gone here and there with RS-485 The conversion of line interface communications protocol;It is characterized in that:The passage control switching circuit be connected to DSP digital signal processor and Between RS-485 interface circuits, the level conversion that is used for realization between DSP digital signal processor and RS-485 interface circuits and The protection of DSP digital signal processor pin;The DSP digital signal processor be used for export controllable channel selecting signal, The data message of multiple communication channels is received and sent, the information format of configuration bookbinding transmission content;The channel selecting signal RS-485 interface circuits are transferred to after passage control switching circuit, for enabling RS485 interface circuits;The RS-485 communications The RS-485 communication interfaces of terminal after corresponding RS-485 interface circuits and passage control switching circuit with DSP digital signals The same communication port of processor is connected.
A kind of 2. multichannel RS-485 communication networks according to claim 1, it is characterised in that:The RS-485 interface circuits Including one send Enable Pin, one receive Enable Pin, the DSP serial ports for connecting mouth with passage control switching circuit, for The RS-485 full duplex serial ports of RS-485 communication terminals connection;The DSP serial ports includes two ports, and a port is as signal Input port, another is as signal output port;The RS-485 full duplexs serial ports includes 4 ports, two of which conduct Differential signal input mouth, two other is to as differential signal outputs mouth;The transmission Enable Pin control RS-485 is entirely double The differential signal outputs mouth output of work serial ports the output phase for high-impedance state or according to the level values of DSP rs 232 serial interface signal input ports It should be worth;The reception Enable Pin control DSP serial ports output port is in high-impedance state or is believed according to RS-485 full duplex serial ports difference The level value of number input port and export analog value.
A kind of 3. multichannel RS-485 communication networks according to claim 2, it is characterised in that:The DSP digital signals Processor function is mainly completed by dsp chip (U1);The dsp chip (U1) is TMS320C2000 family chips, its some I/ O mouthfuls are connected to output channel selection signal with passage control switching circuit;The channel selecting signal is through passage switching control Circuit conversion be 5V or 0V level signal after be transferred to RS-485 interface circuits transmission Enable Pin and receive Enable Pin;It is described Dsp chip (U1) includes software, is used for realization Initialize installation DSP digital signal processor, controls I/O mouthfuls of output levels, is more The data message of road communication port is received and sent, the information format of configuration bookbinding transmission content;The dsp chip (U1) SCIA communication ports are connected after passage control switching circuit with the DSP serial ports in all RS-485 interface circuits, as The communication port being finally connected with RS-485 communication terminals.
A kind of 4. multichannel RS-485 communication networks according to claim 3, it is characterised in that:The passage switching control electricity The major function on road is realized that electrical level transferring chip (U2) type selecting is by electrical level transferring chip (U2) SN74ALVC164245DL;The I/O mouths of the A series of ports connection dsp chip (U1) of the electrical level transferring chip (U2), it is corresponding The transmission Enable Pin of B series of ports connection RS-485 interface circuits is with receiving Enable Pin.
A kind of 5. multichannel RS-485 communication networks according to claim 4, it is characterised in that:The RS-485 interface circuits Major function by RS-485 communication chips (U3) realize, RS-485 communication chips (U3) type selecting is MAX489ESA, described The RO ports of RS-485 communication chips (U3) are defeated as the signal of DSP serial ports as the signal output port of DSP serial ports, DI ports Inbound port, for passing through the transmitting-receiving pin with dsp chip (U1) SCIA serial communications port respectively after passage control switching circuit It is connected;The RE ports of the RS-485 communication chips (U3) are as reception Enable Pin, DE ports as transmission Enable Pin;It is described The A ports of RS-485 communication chips (U3), B ports, Z ports, Y-port form RS-485 full duplex serial ports, wherein A ports, B ends Mouth is differential signal input mouth, and Z ports, Y-port are differential signal outputs mouth.
6. any multichannel RS-485 communication networks according to claim 1 to 5, it is characterised in that:The multichannel RS- 485 communication networks further include energy external power supply and are converted to+5V, the power conversion module of three kinds of magnitudes of voltage of+3.3V ,+1.9V.
A kind of 7. multichannel RS-485 communication networks according to claim 6, it is characterised in that:The power conversion module bag Power-switching circuit 1 and power-switching circuit 2 are included, the power-switching circuit 1 is electric by external power supply by LM117EMP chips Pressure is adjusted to+12V, then by adjusting voltage after MIC2397A chips is+5V;The power-switching circuit 2 passes through TPS75733 By+5V voltage conversions it is+3.3V and+1.9V with TPS76801 chips.
8. any multichannel RS-485 communication networks according to claim 3 to 5, it is characterised in that:The RS-485 leads to Wherein 3 tunnels of letter terminal are respectively fuel monitor one, fuel monitor two, aobvious control computer.
A kind of 9. multichannel RS-485 communication networks according to claim 7, it is characterised in that:The RS-485 communication terminals Wherein 3 tunnels be respectively fuel monitor one, fuel monitor two, aobvious control computer.
A kind of 10. multichannel RS-485 communication networks according to claim 8, it is characterised in that:The multichannel RS-485 leads to Communication network, further includes UART half-duplexs interface circuit (U4);The UART half-duplexs interface circuit (U4), one end connection DSP numbers The SCIB communication ports of word signal processor, one end connect ancillary equipment by half-duplex external bus.
CN201711241045.8A 2017-11-30 2017-11-30 Multi-path RS-485 communication network Active CN107908584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711241045.8A CN107908584B (en) 2017-11-30 2017-11-30 Multi-path RS-485 communication network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711241045.8A CN107908584B (en) 2017-11-30 2017-11-30 Multi-path RS-485 communication network

Publications (2)

Publication Number Publication Date
CN107908584A true CN107908584A (en) 2018-04-13
CN107908584B CN107908584B (en) 2021-04-02

Family

ID=61848960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711241045.8A Active CN107908584B (en) 2017-11-30 2017-11-30 Multi-path RS-485 communication network

Country Status (1)

Country Link
CN (1) CN107908584B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112955826A (en) * 2020-04-26 2021-06-11 深圳市大疆创新科技有限公司 Gating circuit, communication control method and device
CN114301488A (en) * 2021-12-07 2022-04-08 贵州航天控制技术有限公司 RS-485 communication circuit, integrated circuit and electronic equipment
CN114301814A (en) * 2021-12-10 2022-04-08 贵州航天凯山石油仪器有限公司 Method for realizing 485 communication with multiple products based on polling mode
CN114397832A (en) * 2021-11-22 2022-04-26 中国科学院西安光学精密机械研究所 A serial port multi-computer communication circuit and method
CN117558141A (en) * 2023-11-13 2024-02-13 广东高信智能科技有限公司 A traffic identification and control device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6119180A (en) * 1995-05-03 2000-09-12 Nokia Mobile Phones, Ltd. Data terminal with controller for selectively modifying data transmitted to and from
CN201345083Y (en) * 2008-12-05 2009-11-11 深圳市凯弦电气自动化有限公司 Integrative communication interface
CN201820217U (en) * 2010-03-11 2011-05-04 中国航天科工集团第三研究院第八三五七研究所 Multi-channel serial communicator
CN103226527A (en) * 2013-04-10 2013-07-31 山东博科生物产业有限公司 Multiple joint communication circuit based on RS232C standard
CN205880862U (en) * 2016-04-28 2017-01-11 北京国正信安系统控制技术有限公司 Serial communication expansion board
CN106571990A (en) * 2016-10-31 2017-04-19 青岛海信电器股份有限公司 Automatic communication mode switching circuit, display and display system
CN206515660U (en) * 2017-02-24 2017-09-22 深圳市永联科技股份有限公司 Modularized digital power supply platform based on DSP and FPGA

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6119180A (en) * 1995-05-03 2000-09-12 Nokia Mobile Phones, Ltd. Data terminal with controller for selectively modifying data transmitted to and from
CN201345083Y (en) * 2008-12-05 2009-11-11 深圳市凯弦电气自动化有限公司 Integrative communication interface
CN201820217U (en) * 2010-03-11 2011-05-04 中国航天科工集团第三研究院第八三五七研究所 Multi-channel serial communicator
CN103226527A (en) * 2013-04-10 2013-07-31 山东博科生物产业有限公司 Multiple joint communication circuit based on RS232C standard
CN205880862U (en) * 2016-04-28 2017-01-11 北京国正信安系统控制技术有限公司 Serial communication expansion board
CN106571990A (en) * 2016-10-31 2017-04-19 青岛海信电器股份有限公司 Automatic communication mode switching circuit, display and display system
CN206515660U (en) * 2017-02-24 2017-09-22 深圳市永联科技股份有限公司 Modularized digital power supply platform based on DSP and FPGA

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112955826A (en) * 2020-04-26 2021-06-11 深圳市大疆创新科技有限公司 Gating circuit, communication control method and device
CN114397832A (en) * 2021-11-22 2022-04-26 中国科学院西安光学精密机械研究所 A serial port multi-computer communication circuit and method
CN114301488A (en) * 2021-12-07 2022-04-08 贵州航天控制技术有限公司 RS-485 communication circuit, integrated circuit and electronic equipment
CN114301814A (en) * 2021-12-10 2022-04-08 贵州航天凯山石油仪器有限公司 Method for realizing 485 communication with multiple products based on polling mode
CN117558141A (en) * 2023-11-13 2024-02-13 广东高信智能科技有限公司 A traffic identification and control device

Also Published As

Publication number Publication date
CN107908584B (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN107908584A (en) A kind of 485 communication networks of multichannel RS
US7486721B2 (en) Physical layer device having an analog serdes pass through mode
CN106571990B (en) A kind of communication pattern automatic switch-over circuit, display and display system
CN208298176U (en) A kind of multi-functional multi-interface communication board
CN206820735U (en) A kind of serial communication interface function switch circuit
CN107070445A (en) A kind of serial communication interface function switching circuit and method
CN103186126B (en) Realize interface arrangement and method that dcs is interconnected with smart machine
CN204925719U (en) Signal conversion equipment and system
CN109669397A (en) A kind of FC-AE-1553 fiber buss communication servo controller
CN214225912U (en) Serial port level internal selection switching equipment and system
CN207817688U (en) A kind of serial communication bus interface circuit of compatible different agreement
CN207853917U (en) A kind of slave, communication expansion card and group network system
CN203847102U (en) CAN bus and 485 bus node circuit
CN103067240A (en) Switching circuit of four-channel serial bus and four-channel controller area network (CAN) bus
CN103176435A (en) Device and method of interface for achieving connection of distributed control system and measuring device
CN102523141B (en) Method for networking and cascading electronic equipment by using universal serial port technology
CN107360005A (en) A kind of receiving end equipment and by method for electrically
CN1333560C (en) High-performance optical fibre CAN communication system for strong electromagnetism interference environment
CN218068846U (en) Isolated RS485-CAN multiplexing circuit
CN101807950A (en) Method for realizing loop self-healing function of repeater system
CN207232946U (en) A kind of novel multi-interface multiplexer based on RJ45
CN101662405B (en) Communication circuit of CAN bus
CN108345231A (en) Power equipment linkage control method, system and device
CN212367543U (en) Intelligent gateway
CN107273330A (en) Three-wire system serial communication interface isolation circuit module

Legal Events

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