CN206178801U - Main formula communication device that follow more - Google Patents

Main formula communication device that follow more Download PDF

Info

Publication number
CN206178801U
CN206178801U CN201620984169.XU CN201620984169U CN206178801U CN 206178801 U CN206178801 U CN 206178801U CN 201620984169 U CN201620984169 U CN 201620984169U CN 206178801 U CN206178801 U CN 206178801U
Authority
CN
China
Prior art keywords
network label
resistance
audion
slave
module
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.)
Withdrawn - After Issue
Application number
CN201620984169.XU
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.)
DEPUDA MICRO-MOTOR Co Ltd
Original Assignee
DEPUDA MICRO-MOTOR 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 DEPUDA MICRO-MOTOR Co Ltd filed Critical DEPUDA MICRO-MOTOR Co Ltd
Priority to CN201620984169.XU priority Critical patent/CN206178801U/en
Application granted granted Critical
Publication of CN206178801U publication Critical patent/CN206178801U/en
Withdrawn - After Issue legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Main formula communication device that follow more, including a host computer communication module, the quick -witted communication module of a plurality of follow, host computer communication module includes host computer message routing module, host computer receiving module, host computer information conversion module, host computer photoelectric isolation module and host computer on -off control module, host computer message routing module, host computer receiving module and host computer on -off control module all link to each other with host computer information conversion module through host computer photoelectric isolation module, it includes from quick -witted message routing module, from quick -witted receiving module, from quick -witted information conversion module, follows quick -witted photoelectric isolation module and follow quick -witted on -off control module to follow quick -witted communication module, from quick -witted message routing module, from quick -witted receiving module with from quick -witted on -off control module all through following quick -witted photoelectric isolation module and linking to each other from quick -witted information conversion module. This main formula communication device that follow more has realized the quick response of principal and subordinate's machine communication, with low costs, communication stability, avoids causing the incident because of BMS breaks down.

Description

One master and multiple slaves formula communicator
Technical field
One master and multiple slaves formula communicator, belongs to cell management system of electric automobile communication technical field.
Background technology
Battery management system BMS is the important tie for connecting vehicle mounted dynamic battery and electric automobile, and its major function includes: Battery physical parameter real-time monitoring and communication, battery status are estimated, inline diagnosis is controlled with early warning, charge and discharge and preliminary filling, balanced Management and heat management etc..Wherein, BMS communication technologys are always this area bone of contention, also concern the working stability of BMS systems Property, it is the main cause of all kinds of electric automobile power batteries generation spontaneous combustions or blast etc. at present.At present electric automobile is adopted and is based on CAN communication or the communicator and relevant communication protocol of RS485 communications carry out BMS with other each components of electric automobile and outside The data exchange of equipment.
During this utility model is realized, inventor has found at least to be had the following disadvantages in prior art:
1st, miniature electric automobile seldom adopts BMS systems, and to traffic safety huge hidden danger is brought;
2nd, using CAN communication pattern BMS systems electric automobile whole high cost;
3rd, communicated using full byte mode using RS485, upper byte Loss is serious, causes communication data distortion;
Jing analyses find that the main cause for the problems referred to above occur is:
1st, low cost is pursued by miniature electric automobile manufacturer, and the BMS costs under prior art are high, cause BMS systems System cannot be popularized in miniature electric automobile field;
2nd, when RS485 telecommunication circuits carry out Phototube Coupling using ultraphotic electric coupler, because optocoupler self-characteristic is led Cause the presence of coupled delay phenomenon during its initialization, so that digital signal upper byte is easily lost;And work as BMS systems When main frame and multiple slaves carry out information exchange, the phenomenon of this loss byte easily causes the BMS system failures, so as to cause peace Full accident.
The content of the invention
The technical problems to be solved in the utility model is:Overcome the deficiencies in the prior art, there is provided a kind of low cost, communication ring Answer the one master and multiple slaves formula communicator that speed is fast, communication is stable.
This utility model solves the technical scheme that its technical problem adopted:The one master and multiple slaves formula communicator, including One host computer communication module, multiple slave communication modules, the host computer communication module includes that host information sending module, main frame are believed Breath receiver module, host information modular converter, main frame photoelectric isolation module and host switch control module, the host information is sent out Module, host information receiver module and host switch control module is sent to change by main frame photoelectric isolation module and host information Module is connected;The slave communication module is including slave information sending module, slave information receiving module, from machine information modulus of conversion Block, slave photoelectric isolation module and slave switch control module, the slave information sending module, slave information receiving module and Slave switch control module is connected by slave photoelectric isolation module with slave info conversion module;Host information modular converter It is connected by RS485 bus modes with multiple slave info conversion modules.
Preferably, the main frame photoelectric isolation module is photoelectrical coupler U1, and the slave photoelectric isolation module is photoelectricity Bonder U3, photoelectrical coupler U1 and U3 are any one in PS2801-4, PS2801-2 or PS2801-1.
Preferably, the host information sending module includes resistance R1, R4, R7 and R8, audion Q1 and Q2, network label H_CPUGND, HOST_TX, H_485GND, H_485VCC+, H_485TXX and H_5V+;Network label HOST_TX connects main frame Arbitrary I/O ports of CPU, the emitter stage connection network label H_CPUGND of audion Q1, the colelctor electrode and resistance of audion Q1 R4 is connected by the input of main frame photoelectric isolation module U1, the base stage of resistance R1 connecting triode Q1, and audion Q2's sends out Emitter-base bandgap grading connects network label H_485GND, and the colelctor electrode of audion Q2 is connected with resistance R8, the base stage and network mark of audion Q2 Number H_485GND is connected by the outfan of main frame photoelectric isolation module U1, between the colelctor electrode and resistance R8 of audion Q2 also Connection network label H_485TXX, connects resistance R7, network label between the base stage and network label H_485VCC+ of audion Q2 H_5V+ connects the input of main frame photoelectric isolation module U1 by resistance R4;The slave information sending module includes resistance R15, R18, R21 and R22, audion Q6 and Q7, network label E_CPUGND, EXT_TX, E_485GND, E_485VCC+, E_ 485TXX and E_5V+;Network label EXT_TX connects arbitrary I/O ports of slave CPU, the emitter stage connection network of audion Q6 The colelctor electrode of label E_CPUGND, audion Q6 is connected with resistance R18 by the input of slave photoelectric isolation module U3, electricity The base stage of resistance R15 connecting triode Q6, the emitter stage connection network label E_485GND of audion Q7, the colelctor electrode of audion Q7 It is connected with resistance R22, the base stage and network label E_485GND of audion Q7 pass through the outfan of slave photoelectric isolation module U3 It is connected, network label E_485TXX, the base stage and net of audion Q7 is also connected between the colelctor electrode and resistance R22 of audion Q7 Connect resistance R21 between network label E_485VCC+, network label E_5V+ connects slave photoelectric isolation module U3 by resistance R18 Input.
Preferably, the host information receiver module includes resistance R3, R6, R10 and R11, audion Q4 and Q5, network mark Number H_CPUGND, HOST_RX, H_485GND, H_485VCC+, H_485RXX and H_5V+;Network label HOST_RX connects main frame The arbitrary I/O ports of CPU, the emitter stage connection network label H_CPUGND of audion Q5, base stage and the network label of audion Q5 H_CPUGND is connected by the outfan of main frame photoelectric isolation module U1, and the colelctor electrode of audion Q5 is connected by resistance R11 The base stage of network label H_5V+, audion Q5 is connected with network label H_5V+ by resistance R10, the colelctor electrode of audion Q5 with Network label HOST_RX is also connected between resistance R11;The emitter stage connection network label H_485GND of audion Q4, audion The colelctor electrode of Q4 is connected with resistance R6 by the input of main frame photoelectric isolation module U1, and the base stage of audion Q4 passes through resistance R3 connects network label H_485RXX, and network label H_485VCC+ connects the defeated of main frame photoelectric isolation module U1 by resistance R6 Enter end;The slave information receiving module includes resistance R17, R20, R24 and R25, audion Q9 and Q10, network label E_ CPUGND, EXT_RX, E_485GND, E_485VCC+, E_485RXX and E_5V+, network label EXT_RX connection slave CPU appoint One I/O ports;The emitter stage connection network label E_CPUGND of audion Q10, base stage and the network label E_ of audion Q10 CPUGND is connected by the outfan of slave photoelectric isolation module U1, and the colelctor electrode of audion Q10 connects net by resistance R25 The base stage of network label E_5V+, audion Q10 is connected with network label E_5V+ by resistance R24, the colelctor electrode of audion Q10 with Network label EXT_RX is also connected between resistance R25;Emitter stage connection the network label E_485GND, audion Q9 of audion Q9 Colelctor electrode be connected by the input of slave photoelectric isolation module U1 with resistance R20, the base stage of audion Q9 passes through resistance R17 connects network label E_485RXX, and network label E_485VCC+ connects slave photoelectric isolation module U1's by resistance R20 Input.
Preferably, the host switch control module includes resistance R2, R5 and R9, audion Q3, network label H_ CPUGND, HOST_CTL, H_485GND, H_485VCC+, H_5V+ and H_485DR;The colelctor electrode of audion Q3 passes through main frame light Electric isolution module U1 is connected with resistance R5, and the base stage of audion Q3 connects network label HOST_CTL, network mark by resistance R2 The arbitrary I/O ports of number HOST_CTL connection host CPU, the emitter stage connection network label H_CPUGND of audion Q3, network mark Number H_5V+ is connected by resistance R5 with the input of main frame photoelectric isolation module U1, and network label H_485VCC+ passes through resistance R9 It is connected with the outfan of main frame photoelectric isolation module U1, resistance R9 is by main frame photoelectric isolation module U1 and network label H_ 485GND is connected, and network label H_485DR is also connected between resistance R9 and main frame photoelectric isolation module U1;The slave switch control Molding block includes resistance R16, R19 and R23, audion Q8, network label E_CPUGND, EXT_CTL, E_485GND, E_ 485VCC+, E_5V+ and E_485DR;The colelctor electrode of audion Q8 is connected by slave photoelectric isolation module U3 with resistance R19, and three The base stage of pole pipe Q8 connects network label EXT_CTL, the arbitrary I/O of network label EXT_CTL connection slave CPU by resistance R16 Port, the emitter stage connection network label E_CPUGND of audion Q8, network label E_5V+ is by resistance R19 and slave photoelectricity The input of isolation module U3 is connected, the output that network label E_485VCC+ passes through resistance R23 and slave photoelectric isolation module U3 End is connected, and resistance R23 is connected by slave photoelectric isolation module U3 with network label E_485GND, resistance R23 and slave photoelectricity Network label E_485DR is also connected between isolation module U3.
Preferably, the host information modular converter includes half-duplex operation chip U2, resistance R12, R13 and R14, magnetic bead L1 and L2, Transient Suppression Diode D1, network label H_485GND, H_485VCC+, H_485DR, H_485RXX, H_485TXX, BB and AA;The 1 foot connection network label H_485RXX of half-duplex operation chip U2,2 feet of half-duplex operation chip U2 and 3 feet connect Meet network label H_485DR, 4 feet connection the network label H_485TXX, half-duplex operation chip U2 of half-duplex operation chip U2 5 feet connection network label H_485GND, 6 feet of half-duplex operation chip U2 connect network label AA by magnetic bead L2, half pair 7 feet of work communication chip U2 connect network label BB, the 8 feet connection network label H_ of half-duplex operation chip U2 by magnetic bead L1 Series resistance R12 between 7 feet and 8 feet of 485VCC+, half-duplex operation chip U2,6 feet and 7 feet of half-duplex operation chip U2 6 feet of the Transient Suppression Diode D1 in parallel between 5 feet of half-duplex operation chip U2, half-duplex operation chip U2 also with half pair Parallel resistance R14 between 5 feet of work communication chip U2,7 feet of half-duplex operation chip U2 are also with the 5 of half-duplex operation chip U2 Parallel resistance R13 between foot;The slave info conversion module includes half-duplex operation chip U4, resistance R26, R27 and R28, Magnetic bead L3 and L4, Transient Suppression Diode D2, network label E_485GND, E_485VCC+, E_485DR, E_485RXX, E_ 485TXX, BB and AA;The 1 foot connection network label E_485RXX of half-duplex operation chip U4,2 feet of half-duplex operation chip U4 Connect network label E_485DR, the 4 feet connection network label E_485TXX of half-duplex operation chip U4, half-duplex operation with 3 feet The 5 feet connection network label E_485GND of chip U4,6 feet of half-duplex operation chip U4 connect network label by magnetic bead L4 7 feet of AA, half-duplex operation chip U4 connect network label BB, the 8 feet connection net of half-duplex operation chip U4 by magnetic bead L3 Series resistance R26 between 7 feet and 8 feet of network label E_485VCC+, half-duplex operation chip U4, the 6 of half-duplex operation chip U4 Transient Suppression Diode D2 in parallel between foot and 7 feet and 5 feet of half-duplex operation chip U4,6 feet of half-duplex operation chip U4 Parallel resistance R28 also between 5 feet of half-duplex operation chip U4,7 feet of half-duplex operation chip U4 also with half-duplex operation Parallel resistance R27 between 5 feet of chip U4;The half-duplex operation that host information modular converter and slave info conversion module are adopted Chip U2 and U4 are appointing in SN75176, SN75276, SN75LBC184, MAX485, MAX1487, MAX3082, MAX1483 It is a kind of.
This utility model solves being described as follows for the technical scheme that its technical problem is adopted:
The one master and multiple slaves formula communicator, using a host computer communication module, multiple slave communication modules, the main frame and Multiple slave communication modules include information sending module, information receiving module, info conversion module, photoelectric isolation module and open The circuit framework of control module is closed, low cost, dependable performance, communication response speed is fast, and overcoming existing BMS systems cannot be micro- The deficiency of type electric automobile field popularization;On the other hand, the photoelectric isolation module of slave adopts PS2801-4, PS2801-2 Or PS2801-1 high-quality optocouplers, main frame and slave info conversion module using SN75176, SN75276, SN75LBC184, The half-duplex operation chip of MAX485, MAX1487, MAX3082 or MAX1483, by optical coupler when avoiding BMS to communicate to greatest extent Caused by part self-characteristic, the drawbacks of there is coupled delay phenomenon during its initialization, the reality of BMS systems communication is further enhanced Shi Xing, accuracy and safety.
Compared with prior art, this utility model is had an advantageous effect in that:
The one master and multiple slaves formula communicator adopt host computer communication module, a multiple slave communication modules, the main frame and Multiple slave communication modules include information sending module, information receiving module, info conversion module, photoelectric isolation module and open The circuit framework of control module is closed, installation cost is low, dependable performance, communication response speed are fast, communication stability is strong.
Description of the drawings
The structured flowchart of Fig. 1 one master and multiple slaves formula communicators.
Fig. 2 is not including the host computer communication module circuit diagram of host information modular converter.
Fig. 3 host information modular converter circuit diagrams.
Fig. 4 is not including the slave communication module circuitry figure of slave info conversion module.
Fig. 5 slave info conversion module circuit diagrams.
The communication means FB(flow block) of Fig. 6 one master and multiple slaves formula communicators.
Fig. 7 main frames are with FB(flow block) the step of nibble communication mode order slave.
The step of Fig. 8 slaves reply main frame with nibble communication mode FB(flow block).
Specific embodiment
Below in conjunction with the accompanying drawings 1 ~ 8 pair of this utility model one master and multiple slaves formula communicator is described further.
Using 2SC series audions, resistance is the metal oxidation resistance of precision 1% to following audions.
Fig. 1 for one master and multiple slaves formula communicator structured flowchart, including host computer communication module, multiple slaves communication mould Block, host computer communication module includes host information sending module, host information receiver module, host information modular converter, main frame light Electric isolution module and host switch control module, the control of host information sending module, host information receiver module and host switch Module is connected by main frame photoelectric isolation module with host information modular converter;Slave communication module includes from machine information sending Module, slave information receiving module, slave info conversion module, slave photoelectric isolation module and slave switch control module, from Machine information sending module, slave information receiving module and slave switch control module are by slave photoelectric isolation module and slave Info conversion module is connected;Host information modular converter is connected with multiple slave info conversion modules;It is multiple to change from machine information Module is connected with host information modular converter by RS485 bus modes.
Fig. 2 is that, not including the host computer communication module circuit diagram of host information modular converter, photoelectrical coupler U1 is PS2801- 4th, any one in PS2801-2 or PS2801-1, network label H_CPUGND represents the ground of connection host CPU, network label H_ 485GND represents the ground of connection host information modular converter, and network label H_485VCC+ represents connection host information modular converter Power supply, network label H_485TXX represent connection host information modular converter driver input end, network label H_ 5V+ represents connection main frame direct current 5V power supplies;Network label HOST_TX connects arbitrary I/O ports of host CPU, audion The emitter stage connection network label H_CPUGND of Q1, colelctor electrode and the resistance R4 of audion Q1 pass through main frame photoelectric isolation module U1 Input be connected, the base stage of resistance R1 connecting triode Q1, audion Q2 emitter stage connection network label H_485GND, The colelctor electrode of audion Q2 is connected with resistance R8, and the base stage and network label H_485GND of audion Q2 pass through main frame Phototube Coupling The outfan of module U1 is connected, and between the colelctor electrode and resistance R8 of audion Q2 network label H_485TXX, three poles are also connected with Connect resistance R7 between the base stage and network label H_485VCC+ of pipe Q2, network label H_5V+ connects main frame light by resistance R4 The input of electric isolution module U1;Network label H_485RXX represents the receptor input of connection host information modular converter, The arbitrary I/O ports of network label HOST_RX connection host CPUs, the emitter stage connection network label H_CPUGND of audion Q5, three The base stage of pole pipe Q5 is connected with network label H_CPUGND by the outfan of main frame photoelectric isolation module U1, audion Q5's Colelctor electrode connects network label H_5V+ by resistance R11, and base stage and the network label H_5V+ of audion Q5 are connected by resistance R10 Connect, between the colelctor electrode and resistance R11 of audion Q5 network label HOST_RX is also connected with;The emitter stage connection net of audion Q4 The colelctor electrode of network label H_485GND, audion Q4 is connected with resistance R6 by the input of main frame photoelectric isolation module U1, The base stage of audion Q4 connects network label H_485RXX by resistance R3, and network label H_485VCC+ is connected by resistance R6 The input of main frame photoelectric isolation module U1;Network label HOST_CTL represents connection host switch control module Enable Pin, net Network label H_485DR represents the receptor of connection host information modular converter and driver output Enable Pin, the collection of audion Q3 Electrode is connected by main frame photoelectric isolation module U1 with resistance R5, and the base stage of audion Q3 connects network label by resistance R2 The arbitrary I/O ports of HOST_CTL, network label HOST_CTL connection host CPU, the emitter stage connection network label of audion Q3 H_CPUGND, network label H_5V+ are connected by resistance R5 with the input of main frame photoelectric isolation module U1, network label H_ 485VCC+ is connected by resistance R9 with the outfan of main frame photoelectric isolation module U1, and resistance R9 passes through main frame photoelectric isolation module U1 is connected with network label H_485GND, and network label H_485DR is also connected between resistance R9 and main frame photoelectric isolation module U1; Host CPU selects STM32 series monolithics.
Fig. 3 is host information modular converter circuit diagram, and network label H_485RXX represents connection host information modular converter Receptor input, network label H_485TXX represent connection host information modular converter driver input end, network mark Number BB represents anti-phase receptor input and rp-drive output, and network label AA represents that homophase receptor is input into and driven in phase Device is exported;The 1 foot connection network label H_485RXX of half-duplex operation chip U2,2 feet of half-duplex operation chip U2 and 3 feet connect Meet network label H_485DR, 4 feet connection the network label H_485TXX, half-duplex operation chip U2 of half-duplex operation chip U2 5 feet connection network label H_485GND, 6 feet of half-duplex operation chip U2 connect network label AA by magnetic bead L2, half pair 7 feet of work communication chip U2 connect network label BB, the 8 feet connection network label H_ of half-duplex operation chip U2 by magnetic bead L1 Series resistance R12 between 7 feet and 8 feet of 485VCC+, half-duplex operation chip U2,6 feet and 7 feet of half-duplex operation chip U2 6 feet of the Transient Suppression Diode D1 in parallel between 5 feet of half-duplex operation chip U2, half-duplex operation chip U2 also with half pair Parallel resistance R14 between 5 feet of work communication chip U2,7 feet of half-duplex operation chip U2 are also with the 5 of half-duplex operation chip U2 Parallel resistance R13 between foot;U2 using SN75176, SN75276, SN75LBC184, MAX485, MAX1487, MAX3082, Any one in MAX1483;Wherein, 1 foot of half-duplex operation chip be receptor input, 2 feet be receptor Enable Pin, 3 Foot is driver Enable Pin, and 4 feet are driver output end, and 5 feet are ground, and 6 feet and 7 feet are respectively non-oppisite phase end and end of oppisite phase, are Input/output bus interface A, B, 8 feet connect 5V DC sources;Transient Suppression Diode D1 is neat from SM712 or similar shape parameters Receive diode.
With reference to Fig. 2 and Fig. 3, a certain I/O ports of host CPU(33 ~ 46 pins of LQFP100 is arbitrary during STM32 is serial Pin), send high level command byte data and enable to network label HOST_CTL, now host computer communication module is in transmission letter Breath state, another I/O ports of host CPU(Arbitrary pin of 33 ~ 46 pins of LQFP100 during STM32 is serial)Transmission information The main frame that interactive command byte is represented to network label HOST_TX, information Jing photoelectrical coupler U1, network label H_485TXX The driver input end of info conversion module, and differential signal is changed into by half-duplex operation chip U2 represents from network label BB Anti-phase receptor input and rp-drive and network label AA represent that the input of homophase receptor and driven in phase device are exported simultaneously; When a certain I/O ports of host CPU(Arbitrary pin of 33 ~ 46 pins of LQFP100 during STM32 is serial), send low level life Make byte data to network label HOST_CTL, now host computer communication module is in receive information state, the information byte of reception By half-duplex operation chip U2 process, one end of Jing network label H_485RXX, and by photoelectrical coupler U1, network label HOST_RX is by the arbitrary I/O ports of host CPU(Arbitrary pin of 33 ~ 46 pins of LQFP100 during STM32 is serial)Receive.
Fig. 4 is that, not including the slave communication module circuitry figure of slave info conversion module, network label E_CPUGND is represented The ground of connection slave CPU, network label E_485GND represents the ground of connection slave info conversion module, network label E_485VCC + power supply for connecting slave info conversion module is represented, network label E_485TXX represents connection slave info conversion module Driver input end, network label E_5V+ represent connection slave direct current 5V power supplies;Network label EXT_TX connects slave Arbitrary I/O ports of CPU, the emitter stage connection network label E_CPUGND of audion Q6, the colelctor electrode and resistance of audion Q6 R18 is connected by the input of slave photoelectric isolation module U3, the base stage of resistance R15 connecting triode Q6, audion Q7's Emitter stage connects network label E_485GND, and the colelctor electrode of audion Q7 is connected with resistance R22, the base stage and network of audion Q7 Label E_485GND is connected by the outfan of slave photoelectric isolation module U3, the colelctor electrode of audion Q7 and resistance R22 it Between be also connected with network label E_485TXX, between the base stage and network label E_485VCC+ of audion Q7 connect resistance R21, net Network label E_5V+ connects the input of slave photoelectric isolation module U3 by resistance R18, and network label E_485RXX represents connection The receptor input of slave info conversion module, the arbitrary I/O ports of network label EXT_RX connection slave CPU, audion Q10 Emitter stage connection network label E_CPUGND, the base stage of audion Q10 and network label E_CPUGND by slave photoelectricity every Outfan from module U1 is connected, and the colelctor electrode of audion Q10 connects network label E_5V+, audion by resistance R25 The base stage of Q10 is connected with network label E_5V+ by resistance R24, is also connected between the colelctor electrode and resistance R25 of audion Q10 Network label EXT_RX;The emitter stage connection network label E_485GND of audion Q9, colelctor electrode and the resistance R20 of audion Q9 It is connected by the input of slave photoelectric isolation module U1, the base stage of audion Q9 connects network label E_ by resistance R17 485RXX, network label E_485VCC+ connect the input of slave photoelectric isolation module U1, network label by resistance R20 EXT_CTL represents connection slave switch control module Enable Pin, and network label E_485DR represents connection slave info conversion module Receptor and driver output Enable Pin, the colelctor electrode of audion Q8 is by slave photoelectric isolation module U3 and resistance R19 phases Even, the base stage of audion Q8 connects network label EXT_CTL by resistance R16, and network label EXT_CTL connection slave CPU appoint One I/O ports, the emitter stage connection network label E_CPUGND of audion Q8, network label E_5V+ is by resistance R19 and slave The input of photoelectric isolation module U3 is connected, and network label E_485VCC+ is by resistance R23 and slave photoelectric isolation module U3's Outfan is connected, and resistance R23 is connected by slave photoelectric isolation module U3 with network label E_485GND, resistance R23 and slave Network label E_485DR is also connected between photoelectric isolation module U3.
Fig. 5 is slave info conversion module circuit diagram, and network label E_485RXX represents connection slave info conversion module Receptor input, network label E_485TXX represent connection slave info conversion module driver input end, half-duplex The 1 foot connection network label E_485RXX of communication chip U4,2 feet of half-duplex operation chip U4 and 3 feet connection network label E_ The 5 feet connection network of the 4 feet connection network label E_485TXX of 485DR, half-duplex operation chip U4, half-duplex operation chip U4 6 feet of label E_485GND, half-duplex operation chip U4 connect network label AA by magnetic bead L4, half-duplex operation chip U4's 7 feet connect network label BB, the 8 feet connection network label E_485VCC+ of half-duplex operation chip U4, half-duplex by magnetic bead L3 Series resistance R26 between 7 feet and 8 feet of communication chip U4,6 feet and 7 feet and the half-duplex operation core of half-duplex operation chip U4 Transient Suppression Diode D2 in parallel between 5 feet of piece U4,6 feet of half-duplex operation chip U4 are also with half-duplex operation chip U4's Parallel resistance R28 between 5 feet, 7 feet of the half-duplex operation chip U4 parallel resistance also between 5 feet of half-duplex operation chip U4 R27;U4 is any one in SN75176, SN75276, SN75LBC184, MAX485, MAX1487, MAX3082, MAX1483; Wherein, 1 foot of half-duplex operation chip be receptor input, 2 feet be receptor Enable Pin, 3 feet be driver Enable Pin, 4 Foot is driver output end, and 5 feet are ground, 6 feet and 7 feet be respectively non-oppisite phase end and end of oppisite phase, for input/output bus interface A, B, 8 feet connect 5V DC sources.
With reference to Fig. 4 and Fig. 5, a certain I/O ports of slave CPU(33 ~ 46 pins of LQFP100 is arbitrary during STM32 is serial Pin), send high level command byte data and enable to network label EXT_CTL, now slave communication module is in transmission letter Breath state, another I/O ports of slave CPU(Arbitrary pin of 33 ~ 46 pins of LQFP100 during STM32 is serial)Transmission information The slave that interactive command byte is represented to network label EXT_TX, information Jing photoelectrical coupler U3, network label E_485TXX The driver input end of info conversion module, and differential signal is changed into by half-duplex operation chip U4 represents from network label BB Anti-phase receptor input and rp-drive and network label AA represent that the input of homophase receptor and driven in phase device are exported simultaneously; When a certain I/O ports of slave CPU(Arbitrary pin of 33 ~ 46 pins of LQFP100 during STM32 is serial), send low level life Make byte data to network label EXT_CTL, now in receive information state, the information byte of reception leads to slave communication module Cross half-duplex operation chip U4 process, one end of Jing network label E_485RXX, and by photoelectrical coupler U3, network label EXT_RX is by the arbitrary I/O ports of slave CPU(Arbitrary pin of 33 ~ 46 pins of LQFP100 during STM32 is serial)Receive.
With reference to Fig. 1 ~ Fig. 5, host computer communication module is with slave communication module by the difference represented by network label BB and AA Bus signals, realize that Host Command slave and slave reply the information interactive process of main frame, and bus is total using the half-duplex of RS485 Line communication mode.
Fig. 6 is the communication means FB(flow block) of one master and multiple slaves formula communicator, and the communication means is applied including a master The main frame of machine communication module and including carrying out between multiple slaves of slave communication module under semiduplex mode, nibble mode Bus communication, comprises the following steps:
Step S601, main frame calling slave numbered address 0X81 simultaneously sends the machine address 0X8F(Unique host address, is used for Filter mess code interference);Embodiment 3 adopts a main frame, and 45 slaves, 45 slaves are divided into 15 groups, be per group # 0X81 ~ 0X8E, 0X81 represent three slaves of first group of calling, and every group of slave numbering is 0X01 ~ 0X03, and main frame calls every time three simultaneously Individual slave is replied;
Step S602 a, slave is replied main frame and sends slave numbered address 0X01;Other slave sending methods are identical Simply number different;
Step S603, main frame sends slave numbered address complement 0XFE and carries out slave numbering confirmation;With nibble during transmission Communication mode sends, i.e., sent by the way of 0X0F, 0X0E;
Step S604, slave is replied host acknowledgement slave numbered address 0X01 and confirms host address 0X8F;
Step S605, main frame is with nibble communication mode order slave;Order 0X55 represents that slave needs to reply main frame life Order;Require detection temperature, local relay adhesion state, local relay working condition and the detection electricity for replying slave 0X01 Pressure;These parameters are detected and computing through processing and amplifying in order to main frame or slave CPU;
Step S606, slave replys Host Command with nibble communication mode;
Step S607, main frame sends call state end code 0X0D.
Fig. 7 is main frame with FB(flow block) the step of nibble communication mode order slave, and main frame is with nibble communication mode Order slave, concretely comprises the following steps:
Call command byte high-low-position is split as call command byte by step S701, main frame according to nibble communication mode High-order and call command byte low level;When command byte is 0X33, main frame enters test mode;Calibration life under test mode Make byte be 0X66 when, main frame carries out Local Parameters computing product coefficient amendment;That is, when command byte sends, 0X55 is adopted The mode of 0X05,0X05 sends;0X33 is sent by the way of 0X03,0X03;0X66 is sent by the way of 0X06,0X06; When carry out total voltage data 0X1B58 calibrate when, test device send a frame total voltage calibration data 0X8F, 0X01,0X05, 0X0F、0X08、0X03、0X06、0X0B、0X01、0X08、0X05、0X03、0X04、0X0D;0X36 represents that instantaneous voltage is calibrated, Sent by the way of 0X03,0X06;Other calibration commands 0X35 represents that setting slave quantity, 0X37 represent monomer voltage school Accurate, 0X38 represents that the effective value calibration of global voltage, 0X39 represent that the effective value calibration of monomer voltage, 0X3A represent that initialization system terminates Discharge voltage value, 0X3B represent that the balanced decision condition of setting, 0X3C represent that setting monomer final discharging voltage value, 0X3E are represented and set Determine maximum temperature protection;
Step S702, main frame is split as the high word of calibration command according to nibble communication mode by command byte high-low-position is calibrated A section high position, a calibration command high byte low level, calibration command low byte high position and calibration command low byte low level;Command byte is During 0X33, main frame enters test mode, and carries out host CPU voltage calibration, the machine by the test device of main frame external connection The amendment of parameter computing product coefficient is operated;Now calibration command byte 0X1F8C is with transmission form during external device communication 0X01、0X0F、0X08、0X0C;
Step S703, main frame will verify bit byte high-low-position and be split as verifying a bit byte high position according to nibble communication mode With verification bit byte low level;Check bit carries out xor operation and obtains 0XD4, i.e. check bit word according to 0X81,0X01,0X55,0X00 Section 0XD4, is sent in the form of 0X0D, 0X04;
Step S704, main frame sends call command byte high position 0X03;
Step S705, main frame sends call command byte low level 0X03;
Step S706, main frame sends calibration command high byte high position 0X00;
Step S707, main frame sends calibration command high byte low level 0X00;
Step S708, main frame sends calibration command low byte high position 0X00;
Step S709, main frame sends calibration command low byte low level 0X00;
When main frame is with nibble communication mode order slave, that is, when sending 0X55 command bytes, the calibration life that main frame sends A high byte high position, a calibration command high byte low level, calibration command low byte high position and calibration command low byte low level is made to be ten Senary code 0X00;
Step S710, main frame sends the machine check bit low level 0X04;
Step S711, main frame sends the machine check bit high position 0X0D.
Fig. 8 is the step of slave replys main frame with nibble communication mode FB(flow block), and slave is with nibble communication mode Reply Host Command the step of be:
Step S801, slave confirms that commands in return parameter is for detection temperature 0X0154, local relay adhesion state 0X01 represents that non-adhesion, local relay working condition represent relay work, detection voltage for attracting state 0X01 0X1234;
Step S802, it is high that the high-low-position of detection temperature byte is split as detection temperature by slave according to nibble communication mode Byte position, a detection temperature low byte high position, detection temperature low byte low level;I.e. 0X0154 is by the way of 0X01,0X05,0X04 Main frame is replied, when temperature out of range, it is 0X00 that slave replys the high byte position of detection temperature;
Step S803, it is high that the high-low-position of detection voltage byte is split as detection voltage by slave according to nibble communication mode A byte high position, a detection voltage high byte low level, detection voltage low byte high position and detection voltage low byte low level;I.e. 0X1234 is adopted Main frame is replied with the mode of 0X01,0X02,0X03,0X04;
The machine verification bit byte high-low-position is split as the machine check bit by step S804, slave according to nibble communication mode Byte is high-order and the machine verifies bit byte low level;Check bit is obtained according to 0X01,0X54,0X01,0X12,0X34 successively xor operation 0X72 is obtained, and is sent by the nibble form of 0X07,0X02;
Step S805, slave sends the machine detection temperature low byte low level 0X04;
Step S806, slave sends the machine detection temperature low byte high position 0X05;
Step S807, slave sends the machine detection temperature high byte position 0X01;
Step S808, slave sends local relay adhesion state 0X01;
Step S809, slave sends local relay working condition 0X01;
Step S810, slave sends the machine detection voltage high byte low level 0X02;
Step S811, slave sends the machine detection voltage high byte high position 0X01;
Step S812, slave sends the machine detection voltage low byte low level 0X04;
Step S813, slave sends the machine detection voltage low byte high position 0X03;
Step S814, slave sends the machine check bit low level 0X02;
Step S815, slave sends the machine check bit high position 0X07;
Step S816, slave sends the machine recoil state end code 0X0D.
Slave replys byte number≤14 of main frame, and main frame is amounted to and sends >=13 bytes, when slave replys main frame, main frame The check code that slave sends will again be verified, it is ensured that the accuracy of communication.
The above, is only preferred embodiment of the present utility model, is not to make other forms to this utility model Restriction, any those skilled in the art changed possibly also with the technology contents of the disclosure above or be modified as equivalent The Equivalent embodiments of change.But it is every without departing from technical solutions of the utility model content, according to technology reality of the present utility model Any simple modification, equivalent variations and remodeling that confrontation above example is made, still fall within the guarantor of technical solutions of the utility model Shield scope.

Claims (6)

1. one master and multiple slaves formula communicator, including host computer communication module, a multiple slave communication modules, it is characterised in that:Institute Host computer communication module is stated including host information sending module, host information receiver module, host information modular converter, main frame photoelectricity Isolation module and host switch control module, the host information sending module, host information receiver module and host switch control Molding block is connected by main frame photoelectric isolation module with host information modular converter;The slave communication module is believed including slave Breath sending module, slave information receiving module, slave info conversion module, slave photoelectric isolation module and slave on-off control mould Block, the slave information sending module, slave information receiving module and slave switch control module pass through slave Phototube Coupling Module is connected with slave info conversion module;Host information modular converter is total by RS485 with multiple slave info conversion modules Line mode is connected.
2. one master and multiple slaves formula communicator according to claim 1, it is characterised in that:The main frame photoelectric isolation module is Photoelectrical coupler U1, the slave photoelectric isolation module be photoelectrical coupler U3, photoelectrical coupler U1 and U3 be PS2801-4, Any one in PS2801-2 or PS2801-1.
3. one master and multiple slaves formula communicator according to claim 1, it is characterised in that:The host information sending module bag Include resistance R1, R4, R7 and R8, audion Q1 and Q2, network label H_CPUGND, HOST_TX, H_485GND, H_485VCC+, H_485TXX and H_5V+;Network label HOST_TX connects arbitrary I/O ports of host CPU, the emitter stage connection of audion Q1 The colelctor electrode of network label H_CPUGND, audion Q1 is connected with resistance R4 by the input of main frame photoelectric isolation module U1 Connect, the base stage of resistance R1 connecting triode Q1, the emitter stage connection network label H_485GND of audion Q2, the collection of audion Q2 Electrode is connected with resistance R8, and the base stage and network label H_485GND of audion Q2 pass through the output of main frame photoelectric isolation module U1 End is connected, and is also connected with network label H_485TXX between the colelctor electrode and resistance R8 of audion Q2, the base stage of audion Q2 with Connect resistance R7 between network label H_485VCC+, network label H_5V+ connects main frame photoelectric isolation module U1 by resistance R4 Input;
The slave information sending module includes resistance R15, R18, R21 and R22, audion Q6 and Q7, network label E_ CPUGND, EXT_TX, E_485GND, E_485VCC+, E_485TXX and E_5V+;Network label EXT_TX connection slave CPU's Arbitrary I/O ports, the emitter stage connection network label E_CPUGND of audion Q6, colelctor electrode and the resistance R18 of audion Q6 lead to The input for crossing slave photoelectric isolation module U3 is connected, the base stage of resistance R15 connecting triode Q6, the emitter stage of audion Q7 Connection network label E_485GND, the colelctor electrode of audion Q7 is connected with resistance R22, the base stage and network label E_ of audion Q7 485GND is connected by the outfan of slave photoelectric isolation module U3, is also connected between the colelctor electrode and resistance R22 of audion Q7 Network label E_485TXX is met, resistance R21, network label are connected between the base stage and network label E_485VCC+ of audion Q7 E_5V+ connects the input of slave photoelectric isolation module U3 by resistance R18.
4. one master and multiple slaves formula communicator according to claim 1, it is characterised in that:The host information receiver module bag Include resistance R3, R6, R10 and R11, audion Q4 and Q5, network label H_CPUGND, HOST_RX, H_485GND, H_485VCC +, H_485RXX and H_5V+;The arbitrary I/O ports of network label HOST_RX connection host CPUs, the emitter stage connection of audion Q5 The output that the base stage of network label H_CPUGND, audion Q5 passes through main frame photoelectric isolation module U1 with network label H_CPUGND End is connected, and the colelctor electrode of audion Q5 connects network label H_5V+, base stage and the network mark of audion Q5 by resistance R11 Number H_5V+ is connected by resistance R10, and between the colelctor electrode and resistance R11 of audion Q5 network label HOST_RX is also connected with;Three The emitter stage connection network label H_485GND of pole pipe Q4, colelctor electrode and the resistance R6 of audion Q4 pass through main frame Phototube Coupling mould The input of block U1 is connected, and the base stage of audion Q4 connects network label H_485RXX, network label H_ by resistance R3 485VCC+ connects the input of main frame photoelectric isolation module U1 by resistance R6;
The slave information receiving module includes resistance R17, R20, R24 and R25, audion Q9 and Q10, network label E_ CPUGND, EXT_RX, E_485GND, E_485VCC+, E_485RXX and E_5V+, network label EXT_RX connection slave CPU appoint One I/O ports;The emitter stage connection network label E_CPUGND of audion Q10, base stage and the network label E_ of audion Q10 CPUGND is connected by the outfan of slave photoelectric isolation module U1, and the colelctor electrode of audion Q10 connects net by resistance R25 The base stage of network label E_5V+, audion Q10 is connected with network label E_5V+ by resistance R24, the colelctor electrode of audion Q10 with Network label EXT_RX is also connected between resistance R25;Emitter stage connection the network label E_485GND, audion Q9 of audion Q9 Colelctor electrode be connected by the input of slave photoelectric isolation module U1 with resistance R20, the base stage of audion Q9 passes through resistance R17 connects network label E_485RXX, and network label E_485VCC+ connects slave photoelectric isolation module U1's by resistance R20 Input.
5. one master and multiple slaves formula communicator according to claim 1, it is characterised in that:The host switch control module bag Include resistance R2, R5 and R9, audion Q3, network label H_CPUGND, HOST_CTL, H_485GND, H_485VCC+, H_5V+ and H_485DR;The colelctor electrode of audion Q3 is connected by main frame photoelectric isolation module U1 with resistance R5, and the base stage of audion Q3 passes through Resistance R2 connects network label HOST_CTL, and network label HOST_CTL connects the arbitrary I/O ports of host CPU, audion Q3's Emitter stage connects network label H_CPUGND, the input that network label H_5V+ passes through resistance R5 and main frame photoelectric isolation module U1 End is connected, and network label H_485VCC+ is connected by resistance R9 with the outfan of main frame photoelectric isolation module U1, and resistance R9 passes through Main frame photoelectric isolation module U1 is connected with network label H_485GND, is also connected between resistance R9 and main frame photoelectric isolation module U1 Network label H_485DR;
The slave switch control module includes resistance R16, R19 and R23, audion Q8, network label E_CPUGND, EXT_ CTL, E_485GND, E_485VCC+, E_5V+ and E_485DR;The colelctor electrode of audion Q8 passes through slave photoelectric isolation module U3 It is connected with resistance R19, the base stage of audion Q8 connects network label EXT_CTL by resistance R16, and network label EXT_CTL connects The arbitrary I/O ports of slave CPU are connect, the emitter stage connection network label E_CPUGND of audion Q8, network label E_5V+ passes through electricity Resistance R19 is connected with the input of slave photoelectric isolation module U3, and network label E_485VCC+ is by resistance R23 and slave photoelectricity The outfan of isolation module U3 is connected, and resistance R23 is connected by slave photoelectric isolation module U3 with network label E_485GND, electricity Network label E_485DR is also connected between resistance R23 and slave photoelectric isolation module U3.
6. one master and multiple slaves formula communicator according to claim 1, it is characterised in that:The host information modular converter bag Include half-duplex operation chip U2, resistance R12, R13 and R14, magnetic bead L1 and L2, Transient Suppression Diode D1, network label H_ 485GND, H_485VCC+, H_485DR, H_485RXX, H_485TXX, BB and AA;The 1 foot connection net of half-duplex operation chip U2 Network label H_485RXX, 2 feet of half-duplex operation chip U2 and 3 feet connection network label H_485DR, half-duplex operation chip U2 4 feet connection network label H_485TXX, half-duplex operation chip U2 5 feet connection network label H_485GND, half-duplex lead to 6 feet of letter chip U2 connect network label AA by magnetic bead L2, and 7 feet of half-duplex operation chip U2 connect network by magnetic bead L1 The 8 feet connection network label H_485VCC+ of label BB, half-duplex operation chip U2,7 feet and 8 feet of half-duplex operation chip U2 Between series resistance R12, transient state in parallel between 6 feet and 7 feet and 5 feet of half-duplex operation chip U2 of half-duplex operation chip U2 6 feet of suppression diode D1, half-duplex operation chip U2 parallel resistance R14 also between 5 feet of half-duplex operation chip U2, half 7 feet of duplex communication chip U2 parallel resistance R13 also between 5 feet of half-duplex operation chip U2;
The slave info conversion module includes half-duplex operation chip U4, resistance R26, R27 and R28, magnetic bead L3 and L4, transient state Suppress diode D2, network label E_485GND, E_485VCC+, E_485DR, E_485RXX, E_485TXX, BB and AA;Half pair The 1 foot connection network label E_485RXX of work communication chip U4,2 feet of half-duplex operation chip U4 and 3 feet connection network label The 5 feet connection net of the 4 feet connection network label E_485TXX of E_485DR, half-duplex operation chip U4, half-duplex operation chip U4 6 feet of network label E_485GND, half-duplex operation chip U4 connect network label AA, half-duplex operation chip U4 by magnetic bead L4 7 feet by magnetic bead L3 connect network label BB, half-duplex operation chip U4 8 feet connection network label E_485VCC+, half pair Series resistance R26 between 7 feet and 8 feet of work communication chip U4,6 feet of half-duplex operation chip U4 and 7 feet and half-duplex operation 6 feet of Transient Suppression Diode D2 in parallel between 5 feet of chip U4, half-duplex operation chip U4 also with half-duplex operation chip U4 5 feet between parallel resistance R28,7 feet of the half-duplex operation chip U4 electricity in parallel also between 5 feet of half-duplex operation chip U4 Resistance R27;Half-duplex operation the chip U2 and U4 that host information modular converter and slave info conversion module are adopted is Any one in SN75176, SN75276, SN75LBC184, MAX485, MAX1487, MAX3082, MAX1483.
CN201620984169.XU 2016-08-30 2016-08-30 Main formula communication device that follow more Withdrawn - After Issue CN206178801U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201620984169.XU CN206178801U (en) 2016-08-30 2016-08-30 Main formula communication device that follow more

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201620984169.XU CN206178801U (en) 2016-08-30 2016-08-30 Main formula communication device that follow more

Publications (1)

Publication Number Publication Date
CN206178801U true CN206178801U (en) 2017-05-17

Family

ID=60241667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201620984169.XU Withdrawn - After Issue CN206178801U (en) 2016-08-30 2016-08-30 Main formula communication device that follow more

Country Status (1)

Country Link
CN (1) CN206178801U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339345A (en) * 2016-08-30 2017-01-18 山东得普达电机股份有限公司 One host and multiple slave type communication device and communication method
CN111786863A (en) * 2020-06-03 2020-10-16 汉威科技集团股份有限公司 Bus quiescent current tracking circuit and bus communication circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339345A (en) * 2016-08-30 2017-01-18 山东得普达电机股份有限公司 One host and multiple slave type communication device and communication method
CN106339345B (en) * 2016-08-30 2023-08-01 山东得普达电机股份有限公司 One-master-multiple-slave communication device and communication method
CN111786863A (en) * 2020-06-03 2020-10-16 汉威科技集团股份有限公司 Bus quiescent current tracking circuit and bus communication circuit

Similar Documents

Publication Publication Date Title
CN102591244B (en) Bus-based input/output (IO) acquisition and control extending device
CN207184521U (en) Internet of Things Multifunctional gateway based on NB IoT
CN107465608A (en) Internet of Things Multifunctional gateway based on NB IoT
CN206178801U (en) Main formula communication device that follow more
CN101819258A (en) Solar battery pack wireless monitoring method and system thereof based on internet of things
CN106339345A (en) One host and multiple slave type communication device and communication method
CN104615103A (en) Motor control system and method using ZigBee and CAN bus
CN202735787U (en) Electric power information machine room environment real-time monitoring system
CN201118630Y (en) A non-polarity two-core communication bus receiver/transmitter for photoelectrical separation
CN103972909B (en) TSC systems and its RS485 communication means based on FPGA
CN201662884U (en) Solar battery pack wireless monitoring system based on internet of things
CN204279131U (en) A kind of entire car controller of pure electric automobile
CN112433483B (en) Sequential controller based on multi-microprocessor structure
CN107770060A (en) A kind of things-internet gateway system based on wire and wireless integration technology
CN203658773U (en) Signal control circuit and signal control device
CN207096410U (en) A kind of battery case Measurement System of Air Pressure
CN203301498U (en) Redundant communication circuit based on RS485 serial interface
CN205880564U (en) New energy automobile fusion control system
CN108363322B (en) Engineering machinery control module, work machine control system and method
CN211086961U (en) Industrial control circuit board for X-ray intelligent detector
EP2138918B1 (en) An electrical process interface device
CN209707948U (en) A kind of industrial robot circuit for remotely controlling based on bluetooth module
CN204302785U (en) Based on the intelligent home control system of LABVIEW and 485 buses
CN207081991U (en) A kind of bus-type actuator control module based on HART protocol
CN219875781U (en) Gateway equipment for data acquisition of injection molding machine

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
AV01 Patent right actively abandoned
AV01 Patent right actively abandoned
AV01 Patent right actively abandoned

Granted publication date: 20170517

Effective date of abandoning: 20230801

AV01 Patent right actively abandoned

Granted publication date: 20170517

Effective date of abandoning: 20230801