CN107133188A - The master-slave communication of daisy chain connection distributes address approach, system and slave, main frame - Google Patents

The master-slave communication of daisy chain connection distributes address approach, system and slave, main frame Download PDF

Info

Publication number
CN107133188A
CN107133188A CN201710270702.5A CN201710270702A CN107133188A CN 107133188 A CN107133188 A CN 107133188A CN 201710270702 A CN201710270702 A CN 201710270702A CN 107133188 A CN107133188 A CN 107133188A
Authority
CN
China
Prior art keywords
slave
address
grade
main frame
mailing address
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
CN201710270702.5A
Other languages
Chinese (zh)
Other versions
CN107133188B (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Technology Guangzhou 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 Comba Telecom Technology Guangzhou Ltd filed Critical Comba Telecom Technology Guangzhou Ltd
Priority to CN201710270702.5A priority Critical patent/CN107133188B/en
Publication of CN107133188A publication Critical patent/CN107133188A/en
Application granted granted Critical
Publication of CN107133188B publication Critical patent/CN107133188B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/161Computing infrastructure, e.g. computer clusters, blade chassis or hardware partitioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/173Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
    • G06F15/17337Direct connection machines, e.g. completely connected computers, point to point communication networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention relates to a kind of master-slave communication distribution address approach of daisy chain connection, system and slave, main frame.The method comprising the steps of:First order slave obtains the first mailing address that main frame is sent by the first address wire, and row data communication is entered with first mailing address and the main frame;First order slave by second bit line detect second level slave it is in place when, second level slave information in place is sent to the main frame with data communication mode;First order slave receives the second mailing address of the second level slave that the main frame is returned with data communication mode, second mailing address is sent to the second level slave by the second address wire, so that the second level slave enters row data communication with second mailing address and the main frame.Main frame of the present invention distributes mailing address for each slave automatically, it is not necessary to set manually, so as to improve the accuracy of project installation, it is to avoid human operational error.

Description

The master-slave communication of daisy chain connection distributes address approach, system and slave, main frame
Technical field
The present invention relates to communication technical field, more particularly to the master-slave communication distribution address approach of daisy chain connection, chrysanthemum Master-slave communication distribution address system, slave and the main frame of pattern chain connection.
Background technology
With mobile communications network construction and the fast development of Client application demand, mobile communication equipment is also in the hair of high speed Exhibition, the intellectuality of equipment directly influences the efficiency of man-machine interaction.In communication equipment or a communication system, often exist One multiple slave of Host Administration, so as to realize the Function Decomposition or intelligent modularized of product.It is main in master-slave communication system The connected mode of machine and slave can be divided into star-like connection and daisy chain connected mode, in main frame is to multiple slave communication process often Conventional address makes a distinction main frame in the data interaction to some slave, therefore the control of address is the prerequisite communicated.
At present under daisy chain connected mode, it is general waited using dial-up mode or be first configured with software operate to from The mailing address of machine is allocated, and the human factor of introducing is uncontrollable, influences the accuracy of project installation.
The content of the invention
Based on this, it is necessary to lead to for project installation accuracy the problem of relatively low there is provided a kind of principal and subordinate of daisy chain connection Letter distribution address approach, system and slave, main frame, realize the automatic distribution for the slave addresses that main frame is connected to multiple daisy chains, Improve the accuracy of project installation.
A kind of master-slave communication distribution address approach of daisy chain connection, including step:
First order slave obtains the first mailing address that main frame is sent by the first address wire, with first mailing address Enter row data communication with the main frame;First mailing address be the main frame by first bit line detect the first order from The mailing address distributed when machine is in place for the first order slave, passes through described the between the main frame and the first order slave One address wire and described first is connected in bit line;
First order slave by second bit line detect second level slave it is in place when, it is that the second level slave is in place Information is sent to the main frame with data communication mode;Between the second level slave and the first order slave by second Bit line and the connection of the second address wire;
The second of the second level slave that the first order slave reception main frame is returned with data communication mode is communicatedly Location, the second level slave is sent to by second mailing address by the second address wire so that the second level slave with Second mailing address enters row data communication with the main frame.
A kind of master-slave communication distribution address approach of daisy chain connection, including step:
N-th grade of slave obtains the mailing address that (n-1)th grade of slave is sent by nth address line, with the mailing address with Main frame enters row data communication;The mailing address be (n-1)th grade of slave by n-th bit line detect n-th grade of slave it is in place when The mailing address obtained from main frame, is connected, n between n-th grade of slave and (n-1)th grade of slave by nth address line and n-th in bit line For the integer more than 1;
N-th grade of slave by (n+1)th bit line detect (n+1)th grade of slave it is in place when, by the letter of (n+1)th grade of slave in place Breath is sent to the main frame with data communication mode;By (n+1)th in bit line and n-th between n-th grade of slave and (n+1)th grade of slave + 1 address wire is connected;
N-th grade of slave receives the mailing address for (n+1)th grade of slave that the main frame is returned with data communication mode, by n-th+ The mailing address of 1 grade of slave is sent to (n+1)th grade of slave by the (n+1)th address wire, so that (n+1)th grade of slave is with its mailing address Enter row data communication with the main frame.
A kind of master-slave communication distribution address approach of daisy chain connection, including step:
Main frame by first bit line detect first order slave it is in place when, be that first order slave distribution first communicates Address, and first mailing address is sent to the first order slave by the first address wire so that the first order from Machine enters row data communication with first mailing address and main frame;Between the main frame and the first order slave by first Bit line and the connection of the first address wire;
Main frame receive n-th grade of slave by (n+1)th bit line detect (n+1)th grade of slave it is in place when the information that sends When, it is that (n+1)th grade of slave distributes the (n+1)th mailing address, and (n+1)th mailing address is sent with data communication mode To n-th grade of slave so that n-th grade of slave (n+1)th mailing address is sent to by the (n+1)th address wire it is described (n+1)th grade of slave;Described information is sent with data communication mode, is passed through between n-th grade of slave and (n+1)th grade of slave (n+1)th connects in bit line and the (n+1)th address wire, and n is the integer more than or equal to 1.
A kind of slave, the slave is first order slave, including:
Communication building block, for obtaining the first mailing address that main frame is sent by the first address wire, with described first Mailing address enters row data communication with the main frame;First mailing address is that the main frame is detected by first in bit line The mailing address distributed when first order slave is in place for the first order slave, leads between the main frame and the first order slave First address wire and described first is crossed to connect in bit line;
Detection module, for by second bit line detect second level slave it is in place when, the second level slave is existed The information of position is sent to the main frame with data communication mode;Pass through between the second level slave and the first order slave Two connect in bit line and the second address wire;
Mailing address forwarding module, for receiving the second level slave that the main frame is returned with data communication mode Second mailing address, the second level slave is sent to by second mailing address by the second address wire, so that described Two grades of slaves enter row data communication with second mailing address and the main frame.
A kind of slave, the slave is n-th grade of slave, and n is the integer more than 1, including:
Communication building block, for obtaining the mailing address that (n-1)th grade of slave is sent by nth address line, with described logical Row data communication is entered in letter address with main frame;The mailing address be (n-1)th grade of slave by n-th bit line detect n-th grade from The mailing address obtained when machine is in place from main frame, it is in place by nth address line and n-th between n-th grade of slave and (n-1)th grade of slave Line is connected;
Detection module, for by (n+1)th bit line detect (n+1)th grade of slave it is in place when, (n+1)th grade of slave is in place Information the main frame is sent to data communication mode;By (n+1)th in bit line between n-th grade of slave and (n+1)th grade of slave With the connection of the (n+1)th address wire;
Mailing address forwarding module, for receiving the logical of (n+1)th grade of slave that the main frame is returned with data communication mode Believe address, the mailing address of (n+1)th grade of slave is sent to (n+1)th grade of slave by the (n+1)th address wire so that (n+1)th grade from Machine enters row data communication with its mailing address and the main frame.
A kind of main frame, including:
First communication building block, for by first bit line detect first order slave it is in place when, be described first Level slave distribute the first mailing address, and by first mailing address by the first address wire be sent to the first order from Machine, so that the first order slave enters row data communication with first mailing address and main frame;The main frame and described first Connected between level slave by first in bit line and the first address wire;
Second communication building block, (n+1)th grade of slave is detected for receiving n-th grade of slave by (n+1)th in bit line Be that (n+1)th grade of slave distributes the (n+1)th mailing address during the information sent when in place, and by (n+1)th mailing address with Data communication mode is sent to n-th grade of slave, so that (n+1)th mailing address is passed through (n+1)th by n-th grade of slave Address wire is sent to (n+1)th grade of slave;Described information is sent with data communication mode, n-th grade of slave and described n-th Connected between+1 grade of slave by (n+1)th in bit line and the (n+1)th address wire, n is the integer more than or equal to 1.
The system that a kind of master-slave communication of daisy chain connection distributes address, including main frame and N grades of slaves, main frame and the first order Connected between slave by first in bit line and the first address wire, between n-th grade of slave and (n+1)th grade of slave by (n+1)th Bit line and the connection of the (n+1)th address wire;N is the integer more than or equal to 1 and less than N;
The main frame by first bit line detect the first order slave it is in place when, be first order slave distribution First mailing address, and first mailing address is sent to the first order slave by the first address wire;
The first order slave obtains first mailing address, and line number is entered with first mailing address and the main frame According to communication;
N-th grade of slave by (n+1)th bit line detect (n+1)th grade of slave it is in place when, by the letter of (n+1)th grade of slave in place Breath is sent to the main frame with data communication mode;
It is that (n+1)th grade of slave distribution (n+1)th communicates when the main frame receives (n+1)th grade of slave information in place Address, and (n+1)th mailing address is sent to n-th grade of slave with data communication mode;
(n+1)th mailing address is sent to (n+1)th grade of slave by n-th grade of slave by the (n+1)th address wire;
(n+1)th grade of slave obtains (n+1)th mailing address, is entered with (n+1)th mailing address and the main frame Row data communication.
The master-slave communication of above-mentioned daisy chain connection distributes address approach, system and slave, main frame, is connecting in a daisy chain fashion Be arranged on bit line and address wire between each equipment connect, bit line be used for this equipment detect this equipment next stage equipment whether In place, so that it is determined that whether main frame is next stage equipment distribution mailing address, address wire is used for the downward first device of this equipment and passed The mailing address of host assignment is passed, so as to realize the data communication of next stage equipment and main frame.Distributed in whole mailing address Cheng Zhong, the mailing address of each slave is by the way that after host assignment, the address wire between equipment is passed successively from upper level slave Pass next stage slave and carry out automatic identification, it is not necessary to set, so as to improve the accuracy of project installation, kept away manually Human operational error is exempted from.
Brief description of the drawings
The structural representation of the system for the master-slave communication distribution address that Fig. 1 connects for the daisy chain of an embodiment;
The schematic flow sheet of the method for the master-slave communication distribution address that Fig. 2 connects for the daisy chain of an embodiment;
Fig. 3 is the structural representation of the slave of an embodiment;
The schematic flow sheet of the method for the master-slave communication distribution address that Fig. 4 connects for the daisy chain of another embodiment;
Fig. 5 is the structural representation of the slave of another embodiment;
The schematic flow sheet of the method for the master-slave communication distribution address that Fig. 6 connects for the daisy chain of another embodiment;
Fig. 7 is the structural representation of the main frame of an embodiment;
Fig. 8 is the monitoring host computer of a specific embodiment and the connection diagram of monitoring slave;
Fig. 9 is that the monitoring host computer of a specific embodiment is the schematic flow sheet that each monitoring slave distributes mailing address.
Embodiment
It should be noted that the first and second grade wordings occurred in text are only used for distinguishing same technical characteristic, it is not right Order and quantity of the technical characteristic etc. cause to limit.Diagram in text is given for example only, not to quantity of each element etc. Cause to limit.
Further to illustrate the effect of the technological means taken of the present invention and acquirement, below first from the angle of whole system Degree sets out, and with reference to accompanying drawing and preferred embodiment, to technical scheme, carries out clear and complete description.
The hardware configuration for the system for distributing address to the master-slave communication that daisy chain is connected first is simply introduced:
As shown in figure 1, the system that a kind of master-slave communication of daisy chain connection distributes address, including main frame and N grades of slaves (from Machine 1 to slave N), by first in the bit line (DI/I of the main frame and DI/O of slave 1 between main frame and first order slave (slave 1) Between line) and the first address wire (including:Line ... ... between the ADDn/O of main frame and the ADDn/I of slave 1, main frame ADD2/O and slave 1 ADD2/I between line, the line between the ADD1/O of main frame and the ADD1/I of slave 1) connection, Connected between n-th grade of slave and (n+1)th grade of slave by (n+1)th in bit line and the (n+1)th address wire;N is more than or equal to 1 and is less than N integer, i.e., 0<n≤N.For example, between slave 1 and slave 2 second in DI/O of the bit line for DI/I and the slave 2 of slave 1 Between line, the second address wire between slave 1 and slave 2 includes:Between the ADDn/O of slave 1 and the ADDn/I of slave 2 Line ... ..., the line between the ADD2/O of slave 1 and the ADD2/I of slave 2, the ADD1/O of slave 1 and slave 2 Line between ADD1/I.Second between the slave of other adjacent levels is similar in bit line and the second address wire, not detailed herein State.
Main frame and slave can be the communication equipments such as single-chip microcomputer.Daisy chain is connected as each equipment in communication system successively Connection, for example, as shown in figure 1, main frame, slave 1, slave 2, slave 3 ... and slave N are sequentially connected, composition daisy chain is connected Mode.In the master-slave communication system that daisy chain is connected, a main frame is communicated with multiple slaves, and main frame undertakes higher level's work( Can, sent and ordered to slave by bus, the communication between each slave and main frame is distinguished using address, while slave and slave Between communication cable use daisy chain connected mode.The data/address bus of slave be two-way interactive data/address bus, i.e., it is a certain from Machine and main frame are set up after data communication, and the slave and main frame can be carried out the two-way interactive of data.
In order to realize the automatic distribution of slave mailing address, the hardware configuration of slave communication system is improved, i.e., Bit line and address wire are arranged between the equipment (equipment includes main frame and slave) of adjacent level.Below to line in place and address wire Simply introduced.
It is used for upper level equipment in bit line and detects whether next stage equipment is in place, by next stage equipment output level, upper one Level equipment is detected.It can according to actual needs be determined, alternatively, lead between the equipment of adjacent level in the quantity of bit line One is crossed to connect in bit line.For example, as shown in figure 1, between main frame and slave 1 provided with one bit line (DI/I of main frame with Line between the DI/O of slave 1), whether main frame was in place in bit line detection slave 1 according to being somebody's turn to do.DI represents the end connected in bit line Mouthful, subsequently in order to express easily, directly represented with DI in bit line ,/I below represents input ,/O below represents output.Can be with Input/output port general on relevant device is selected as DI/I ports and DI/O ports, for example, selecting one on main frame General input port selects a general output port to be used as DI/O ports as DI/I ports on slave 1, then main Line between the DI/I ports of machine and the DI/O ports of slave 1 is that, in bit line, that is to say detection line in place.
It is that next stage equipment transmits mailing address that address wire, which is used for upper level equipment, next by upper equipment output level Level equipment carries out the automatic identification of mailing address according to the level of reception.The slave that the quantity of address wire is typically connected as needed Quantity and coded system determine, for example, using binary-coded method set level when, if main frame need control Four slaves, then can set two address wires between the equipment of adjacent level.As shown in figure 1, ADD represents the end of address wire connection Mouthful, in order to express easily, the follow-up mode directly numbered with ADD+ represents address wire, and/I below represents input ,/O below Represent output.
Then the operation principle for the system for distributing address to the master-slave communication that daisy chain is connected simply is introduced:
The main frame by first bit line detect the first order slave it is in place when, be first order slave distribution First mailing address, and first mailing address is sent to the first order slave by the first address wire;Described first Level slave obtains first mailing address, and row data communication is entered with first mailing address and the main frame;N-th grade of slave By (n+1)th bit line detect (n+1)th grade of slave it is in place when, by (n+1)th grade of slave information in place with data communication mode It is sent to the main frame;It is (n+1)th grade of slave distribution n-th when the main frame receives (n+1)th grade of slave information in place + 1 mailing address, and (n+1)th mailing address is sent to n-th grade of slave with data communication mode;Described n-th grade from (n+1)th mailing address is sent to (n+1)th grade of slave by machine by the (n+1)th address wire;(n+1)th grade of slave is obtained (n+1)th mailing address, row data communication is entered with (n+1)th mailing address and the main frame.
As shown in figure 1, during slave 1 (first order slave) access host, the DI/O ports output level of slave 1, the level By the DI/I ports that main frame is delivered in bit line DI between slave 1 and main frame, after Host Detection to DI/I port levels, really Recognize slave 1 in place.The level that slave 1 is exported can be configured according to actual needs, for example, the level that slave 1 is exported is set For high level, Host Detection to DI/I ports confirms that slave 1 is in place when having high level, and the level that can also export slave 1 is set Low level etc. is set to, the present invention makes restriction not to this.
Main frame can arbitrarily set several different mailing addresses, and for distributing to each slave, each of setting leads to Letter address can be stored in main frame in forms such as lists., will be from advance in the presence of main frame in bit line by detecting slave 1 Automatically the mailing address that an address is set to slave 1 is chosen in several mailing addresses set, then by slave 1 communicatedly Location is sent to slave 1, and slave 1 is obtained and main frame identical mailing address, and both can be carried out data communication.
In one embodiment, as shown in figure 1, main frame is chosen after the mailing address of slave 1, according to the mailing address to it The level for the ADD1/O~ADDn/O address ports being connected with each address wire is configured, by ADD1/O~ADDn/O of setting The level of address port is with being delivered to the ADD1/I~ADDn/I being connected with each address wire of slave 1 by corresponding address wire Location port.Main frame can use pre-arranged code mode when setting port level, such as binary coding mode.Slave 1 is read The low and high level state of its ADD1/I~ADDn/I address port is taken, with corresponding coded system by the low and high level state of reading Corresponding mailing address is translated as, therefore slave 1 is obtained and main frame identical mailing address, both can enter row data communication. Slave 1 translates the coded system used when the coded system taken during mailing address sets the address port of main frame by main frame.
N-th grade of slave is to include each slave of first order slave.Understand for convenience, subsequently led to according to slave 2 The order that letter address sets up data communication, the acquisition mailing address of slave 3 and main frame with main frame and sets up data communication ... is to main frame And the workflow of each slave is introduced.
As shown in figure 1, when slave 2 (second level slave) accesses slave 1, the DI/O ports output level of slave 2, the level By the DI/I ports that slave 1 is delivered in bit line DI between slave 2 and slave 1, slave 1 detects DI/I port levels Afterwards, confirm that slave 2 is in place, the information in place of slave 2 is sent to main frame with data communication mode.Main frame is according to pre-setting Each mailing address is that slave 2 distributes mailing address, while sending the mailing address of distribution to slave with data communication mode 1, the mailing address of the mailing address and slave 1 of slave 2 is differed.
It is the mailing address that slave 2 is distributed that slave 1, which receives main frame, and the mailing address of slave 2 is sent into slave 2, from Machine 2 is obtained and main frame identical mailing address, and both can be carried out data communication.In one embodiment, as shown in figure 1, When slave 1 receives the mailing address that main frame distributes for slave 2, it is connected with each address wire according to the mailing address The level of ADD1/O~ADDn/O address ports is configured, and the level of ADD1/O~ADDn/O address ports of setting is passed through Corresponding address wire is delivered to the ADD1/I~ADDn/I address ports being connected with each address wire of slave 2.Slave 1 is being set Pre-arranged code mode can be used during port level, such as binary coding mode.Slave 2 reads its ADD1/I~ADDn/I The low and high level state of address port, using corresponding coded system by the low and high level state transition of reading as it is corresponding communicatedly The mailing address detected, is then set to the mailing address of slave 2 by location, therefore slave 2 is obtained and communicated with main frame identical Address, both can enter row data communication.Slave 2 translates the coded system taken during mailing address and sets slave 1 for slave 1 The coded system used during address port.
With same mechanism, slave 3 (third level slave) is by reading the height of its ADD1/I~ADDn/I address port Level state, can obtain host assignment to its address information, realize the data communication with main frame.By that analogy, can be by Slave expands to N grades, and slave N is by reading the low and high level state of its ADD1/I~ADDn/I address port so as to obtain main frame The mailing address allocated it, realize with the data communication of main frame, wherein main frame is the mailing address that distributes of each slave not phase Together.
In the communication of whole slave, the address acquisition of the distribution of the address of main frame and slave artificially manual need not be set Put, main frame and corresponding slave addresses can be allowed to be consistent, improve engineering joint efficiency and accuracy, reduce artificial mistake By mistake.
Below from the angle of first order slave, with reference to accompanying drawing and preferred embodiment, to technical scheme, enter The clear and complete description of row.
As shown in Fig. 2 a kind of master-slave communication distribution address approach of daisy chain connection, including step:
S110, first order slave obtain the first mailing address that main frame is sent by the first address wire, logical with described first Row data communication is entered in letter address with the main frame;First mailing address is that the main frame detects the by first in bit line The mailing address distributed when one-level slave is in place for the first order slave, passes through between the main frame and the first order slave First address wire and described first is connected in bit line;
S120, first order slave by second bit line detect second level slave it is in place when, by the second level slave Information in place is sent to the main frame with data communication mode;Pass through between the second level slave and the first order slave Second connects in bit line and the second address wire;
The second of the second level slave that S130, the first order slave reception main frame are returned with data communication mode is led to Believe address, second mailing address is sent to the second level slave by the second address wire so that the second level from Machine enters row data communication with second mailing address and the main frame.
The master-slave communication distribution address approach of above-mentioned daisy chain connection can realize that program is operated in by corresponding program In first order slave, first order slave is the slave being connected with main frame.In whole mailing address assigning process, each slave Mailing address is by the way that after host assignment, the address wire between equipment passes to next stage slave from upper level slave and entered successively Row automatic identification, it is not necessary to set manually, so as to improve the accuracy of project installation, it is to avoid manual operation mistake By mistake.
In step s 110, main frame and slave can be the communication equipments such as single-chip microcomputer.In order to realize slave mailing address Automatic distribution, bit line and address wire are arranged between the equipment of adjacent level.It is used for upper level equipment in bit line and detects next stage Whether equipment is in place, and by next stage equipment output level, upper level equipment is detected.Can be according to reality in the quantity of bit line Need to be determined, alternatively, connected between the equipment of adjacent level by one in bit line.Address wire is for upper level equipment Next stage equipment transmits mailing address, and by upper equipment output level, next stage equipment is carried out communicatedly according to the level of reception The automatic identification of location.The quantity and coded system for the slave that the quantity of address wire is typically connected as needed are determined.
As shown in figure 1, during 1 access host of slave, the DI/O ports output level of slave 1, the level passes through slave 1 and master The DI/I ports that main frame 1 is delivered in bit line DI between machine, main frame 1 is detected after DI/I port levels, confirms that slave 1 exists Position.The level that slave 1 is exported can be configured according to actual needs.
In the presence of main frame in bit line by detecting slave 1, it will be selected automatically from each mailing address pre-set Take an address to be set to the mailing address of slave 1, the mailing address of slave 1 is then sent to slave 1, slave 1 is obtained and master Machine identical mailing address, both can be carried out data communication.
In one embodiment, first order slave obtains the step for the first mailing address that main frame is sent by the first address wire Suddenly it can include:First order slave reads the level for the address input end mouthful that first order slave is connected with the first address wire;It is described Level is the level that the main frame is set according to the first mailing address;The level is translated as corresponding communication by first order slave Address, obtains the first mailing address.
Main frame is chosen after the mailing address of slave 1, the ADD1/O being connected according to the mailing address to it with each address wire The level of~ADDn/O address ports is configured, and the level of ADD1/O~ADDn/O address ports of setting is passed through corresponding Address wire is delivered to the ADD1/I~ADDn/I address ports being connected with each address wire of slave 1.Main frame is setting port electricity Pre-arranged code mode can be usually used, such as binary coding mode.Slave 1 reads its ADD1/I~ADDn/I addresses end Mouthful low and high level state, using corresponding coded system by the low and high level state transition of reading as corresponding mailing address, because This slave 1 is obtained and main frame identical mailing address, and both can enter row data communication.Slave 1 is taken when translating mailing address Coded system coded system for the using when address port of main frame is set by main frame.
In the step s 120, slave 1 detects whether slave 2 is in place by being connected with slave 2 in bit line.In an implementation In example, the master-slave communication distribution address approach of daisy chain connection can also include step:First order slave is by second in bit line Detect whether second level slave is in place, including:Whether the first order receives from the input port in place of machine testing first order slave Second level slave passes through the second level sent in bit line;The input port in place is that first order slave and second connect in bit line The port connect;If receiving level, first order slave determines that second level slave is in place;Otherwise, first order slave determines the second level Slave is not in place.
As shown in figure 1, when slave 2 accesses slave 1, the DI/O ports output level of slave 2, the level passes through the He of slave 2 The DI/I ports that slave 1 is delivered in bit line DI between slave 1, slave 1 is detected after DI/I port levels, confirms slave 2 In place, the information in place of slave 2 is sent to main frame with data communication mode.If slave 1 does not detect DI/I port levels, Then confirm that slave 2 is not in place, and any operation is not performed.
In step s 130, main frame is received after the information in place of slave 2 of the transmission of slave 1, is that slave 2 is distributed communicatedly Location, while sending the mailing address of distribution to slave 1, the mailing address of slave 2 and the communication of slave 1 with data communication mode Address is differed.It is the mailing address that slave 2 is distributed that slave 1, which receives main frame, the mailing address of slave 2 is passed through corresponding Location line is sent to slave 2, and slave 2 is obtained and main frame identical mailing address, and both can be carried out data communication.
In one embodiment, second mailing address is sent to described by first order slave by the second address wire The step of two grades of slaves, can include:
First order slave sets the level of the address output end mouthful of first order slave according to second mailing address;Address Output port is the port that first order slave is connected with the second address wire;
The level of address output end mouthful is sent to the second level slave by first order slave by the second address wire.
As shown in figure 1, slave 1 receive main frame be slave 2 distribute mailing address, according to the mailing address to its with it is each The level of ADD1/O~ADDn/O address ports of individual address wire connection is configured, by ADD1/O~ADDn/O addresses of setting The level of port is delivered to the ADD1/I~ADDn/I addresses end being connected with each address wire of slave 2 by corresponding address wire Mouthful.Slave 1 can use pre-arranged code mode when setting port level, such as binary coding mode.Slave 2 reads it The low and high level state of ADD1/I~ADDn/I address ports, with corresponding coded system by the low and high level state transition of reading For corresponding mailing address, then the mailing address detected be set to the mailing address of slave 2, thus slave 2 obtain with The mailing address of main frame identical slave 2, both can enter row data communication.Slave 2 translates the coding taken during mailing address Mode is set the coded system used during the address port of slave 1 by slave 1.
In the communication of whole slave, the address acquisition of the distribution of the address of main frame and slave artificially manual need not be set Put, main frame and corresponding slave addresses can be allowed to be consistent, improve engineering joint efficiency and accuracy, reduce artificial mistake By mistake.
Based on same inventive concept, the present invention also provides a kind of slave, below in conjunction with the accompanying drawings to the specific of slave of the present invention Embodiment is described in detail.
As shown in figure 3, a kind of slave, the slave is first order slave, including:
Communication building block 110, for obtaining the first mailing address that main frame is sent by the first address wire, with described One mailing address enters row data communication with the main frame;First mailing address is that the main frame is detected by first in bit line The mailing address distributed to the first order slave when in place for the first order slave, between the main frame and the first order slave Connected by first address wire and described first in bit line;
Detection module 120, for by second bit line detect second level slave it is in place when, by the second level slave Information in place is sent to the main frame with data communication mode;Pass through between the second level slave and the first order slave Second connects in bit line and the second address wire;
Mailing address forwarding module 130, the second level returned for receiving the main frame with data communication mode from Second mailing address of machine, is sent to the second level slave, so that institute by second mailing address by the second address wire State second level slave and row data communication is entered with second mailing address and the main frame.
In order to realize the automatic distribution of slave mailing address, bit line and address wire are arranged between the equipment of adjacent level. It is used for whether upper level equipment detection next stage equipment is in place in bit line, by next stage equipment output level, upper level equipment is entered Row detection.Can be determined according to actual needs in the quantity of bit line, alternatively, between the equipment of adjacent level by one Bit line is connected.It is that next stage equipment transmits mailing address that address wire, which is used for upper level equipment, next by upper equipment output level Level equipment carries out the automatic identification of mailing address according to the level of reception.The slave that the quantity of address wire is typically connected as needed Quantity and coded system be determined.
As shown in figure 1, during 1 access host of slave, the DI/O ports output level of slave 1, the level passes through slave 1 and master The DI/I ports that main frame 1 is delivered in bit line DI between machine, main frame 1 is detected after DI/I port levels, confirms that slave 1 exists Position.The level that slave 1 is exported can be configured according to actual needs.
In the presence of main frame in bit line by detecting slave 1, one address of automatic selection is set to slave 1 communicatedly The mailing address of slave 1, is then sent to the communication building block 110 of slave 1 by location, and slave 1 is obtained to be led to main frame identical Believe address, both can be carried out data communication.
In one embodiment, the address that the reading of communication building block 110 first order slave is connected with the first address wire is defeated The level of inbound port;The level is the level that the main frame is set according to the first mailing address;The level is translated as pair The mailing address answered, obtains the first mailing address.
The detection module 120 of slave 1 detects whether slave 2 is in place by being connected with slave 2 in bit line.In an implementation In example, it is in place by second that detection module 120 detects whether the input port in place of first order slave receives second level slave The level that line is sent;Input port in place is first order slave and the second port being connected in bit line;When receiving level, really Determine second level slave in place;When not receiving level, determine that second level slave is not in place.
Main frame is received after the information in place of slave 2 of the transmission of slave 1, is the distribution mailing address of slave 2, while will distribution Mailing address slave 1 is sent to data communication mode, the mailing address of the mailing address and slave 1 of slave 2 is differed.From It is the mailing address that slave 2 is distributed that the mailing address forwarding module 130 of machine 1, which receives main frame, and the mailing address of slave 2 is passed through Corresponding address wire is sent to slave 2, and slave 2 is obtained and main frame identical mailing address, and both can be carried out data communication.
In one embodiment, mailing address forwarding module 130 sets first order slave according to second mailing address Address output end mouthful level;The port that address output end mouthful is connected for first order slave with the second address wire;Address is defeated The level of exit port is sent to the second level slave by the second address wire.
In the communication of whole slave, the address acquisition of the distribution of the address of main frame and slave artificially manual need not be set Put, main frame and corresponding slave addresses can be allowed to be consistent, improve engineering joint efficiency and accuracy, reduce artificial mistake By mistake.
Below from the angle of other slaves, with reference to accompanying drawing and preferred embodiment, to technical scheme, carry out Clear and complete description.
As shown in figure 4, a kind of master-slave communication distribution address approach of daisy chain connection, including step:
S210, n-th grade of slave obtain the mailing address that (n-1)th grade of slave is sent by nth address line, with it is described communicatedly Row data communication is entered in location with main frame;The mailing address detects n-th grade of slave in bit line by n-th for (n-1)th grade of slave and existed The mailing address obtained during position from main frame, is connected between n-th grade of slave and (n-1)th grade of slave by nth address line and n-th in bit line Connect, n is the integer more than 1;
S220, n-th grade of slave by (n+1)th bit line detect (n+1)th grade of slave it is in place when, (n+1)th grade of slave is existed The information of position is sent to the main frame with data communication mode;It is in place by (n+1)th between n-th grade of slave and (n+1)th grade of slave Line and the connection of the (n+1)th address wire;
S230, n-th grade of slave receive the mailing address for (n+1)th grade of slave that the main frame is returned with data communication mode, The mailing address of (n+1)th grade of slave is sent to (n+1)th grade of slave by the (n+1)th address wire, so that (n+1)th grade of slave is logical with it Row data communication is entered in letter address with the main frame.
The master-slave communication distribution address approach of above-mentioned daisy chain connection can realize that program is operated in by corresponding program In other slaves in addition to first order slave.In whole mailing address assigning process, the mailing address of each slave is to pass through After host assignment, the address wire between equipment passes to next stage slave from upper level slave and carries out automatic identification successively, It need not be set manually, so as to improve the accuracy of project installation, it is to avoid human operational error.
In step S210, main frame and slave can be the communication equipments such as single-chip microcomputer.In order to realize slave mailing address Automatic distribution, bit line and address wire are arranged between the equipment of adjacent level.It is used for upper level equipment in bit line and detects next stage Whether equipment is in place, and by next stage equipment output level, upper level equipment is detected.Can be according to reality in the quantity of bit line Need to be determined, alternatively, connected between the equipment of adjacent level by one in bit line.Address wire is for upper level equipment Next stage equipment transmits mailing address, and by upper equipment output level, next stage equipment is carried out communicatedly according to the level of reception The automatic identification of location.The quantity and coded system for the slave that the quantity of address wire is typically connected as needed are determined.
(n-1)th grade of slave is to realize the slave of data communication in main frame.When n-th grade of slave accesses (n-1)th grade of slave, the The DI/O ports output level of n grades of slaves, the level between n-th grade of slave and (n-1)th grade of slave in bit line DI by transmitting To the DI/I ports of (n-1)th grade of slave, (n-1)th grade of slave is detected after DI/I port levels, confirms that n-th grade of slave is in place.N-th The level of level slave output can be configured according to actual needs.
In the presence of (n-1)th grade of slave in bit line by detecting n-th grade of slave, by n-th grade of slave information in place with Data communication mode is sent to main frame, when main frame receives n-th grade of slave information in place, by automatically from pre-set each The mailing address that an address is set to n-th grade of slave is chosen in mailing address, then by the mailing address of n-th grade of slave with data Communication mode is sent to (n-1)th grade of slave, and (n-1)th grade of slave sends out the mailing address of n-th grade of slave by corresponding address wire N-th grade of slave is given, n-th grade of slave is obtained and main frame identical mailing address, and both can be carried out data communication.
In one embodiment, n-th grade of slave obtains the mailing address that (n-1)th grade of slave is sent by nth address line Step can include:N-th grade of slave reads the level for the address input end mouthful that n-th grade of slave is connected with nth address line;Address is defeated The level of inbound port is the level that (n-1)th grade of slave is set according to the mailing address of n-th grade of slave;N-th grade of slave is defeated by address The level of inbound port is translated as corresponding mailing address, obtains the mailing address of n-th grade of slave.
(n-1)th grade of slave is received after mailing address of the main frame for the distribution of n-th grade of slave, according to the mailing address to its with The level of ADD1/O~ADDn/O address ports of each address wire connection is configured, by ADD1/O~ADDn/O of setting The level of location port is delivered to the ADD1/I~ADDn/I being connected with each address wire of n-th grade of slave by corresponding address wire Address port.(n-1)th grade of slave can use pre-arranged code mode, such as binary coding mode when setting port level Deng.N-th grade of slave reads the low and high level state of its ADD1/I~ADDn/I address port, will be read with corresponding coded system Low and high level state transition be corresponding mailing address, therefore n-th grade of slave obtains logical with n-th grade of slave of main frame identical Believe address, both can enter row data communication.The coded system taken during n-th grade of slave translation mailing address for (n-1)th grade from The coded system used during the address port of machine (n-1)th grade of slave of setting.
In step S220, n-th grade of slave detects that (n+1)th grade of slave is by being connected with (n+1)th grade of slave in bit line It is no in place.In one embodiment, the master-slave communication distribution address approach of daisy chain connection can also include step:N-th grade from Machine detects whether (n+1)th grade of slave be in place in place by (n+1)th in bit line, including:N-th grade from machine testing its input port in place (DI/I) whether receive (n+1)th grade of slave and pass through the (n+1)th level sent in bit line;Input port in place is n-th grade of slave With the (n+1)th port being connected in bit line;If receiving level, determine that (n+1)th grade of slave is in place;Otherwise, it determines (n+1)th grade of slave It is not in place.
When (n+1)th grade of slave accesses n-th grade of slave, the DI/O ports output level of (n+1)th grade of slave, the level passes through the The DI/I ports that n-th grade of slave is delivered in bit line DI between n+1 grades of slaves and n-th grade of slave, n-th grade of slave is detected After DI/I port levels, confirm that (n+1)th grade of slave is in place, by (n+1)th grade of slave information transmission in place to main frame.If n-th grade Slave does not detect DI/I port levels, then confirms that (n+1)th grade of slave be not in place, any operation is not performed.
In step S230, main frame is received after (n+1)th grade of slave that n-th grade of slave send information in place, is (n+1)th Level slave distribution mailing address, while sending the mailing address of distribution to n-th grade of slave with data communication mode.N-th grade from Machine receives mailing address of the main frame for (n+1)th grade of slave distribution, and the mailing address of (n+1)th grade of slave is passed through into corresponding address Line is sent to (n+1)th grade of slave, and (n+1)th grade of slave is obtained and main frame identical mailing address, and both can be carried out data and lead to Letter.
In one embodiment, the mailing address of (n+1)th grade of slave is sent to by n-th grade of slave by the (n+1)th address wire The step of (n+1)th grade of slave, can include:
N-th grade of slave sets the level of the address output end mouthful of n-th grade of slave according to the mailing address of (n+1)th grade of slave; The port that address output end mouthful is connected for n-th grade of slave with the (n+1)th address wire;
The level of address output end mouthful is sent to (n+1)th grade of slave by n-th grade of slave by the (n+1)th address wire.
N-th grade of slave receives mailing address of the main frame for the distribution of (n+1)th grade of slave, according to the mailing address to its with it is each The level of ADD1/O~ADDn/O address ports of individual address wire connection is configured, by ADD1/O~ADDn/O addresses of setting The level of port is delivered to the ADD1/I~ADDn/I being connected with each address wire of (n+1)th grade of slave by corresponding address wire Address port.N-th grade of slave can use pre-arranged code mode when setting port level, such as binary coding mode. (n+1)th grade of slave reads the low and high level state of its ADD1/I~ADDn/I address port, will be read with corresponding coded system Low and high level state transition be corresponding mailing address, the mailing address detected is then set to (n+1)th grade of slave Mailing address, therefore (n+1)th grade of slave obtains the mailing address with (n+1)th grade of slave of main frame identical, both can enter line number According to communication.The coded system taken during (n+1)th grade of slave translation mailing address sets the address of n-th grade of slave for n-th grade of slave The coded system used during port.
In the communication of whole slave, the address acquisition of the distribution of the address of main frame and slave artificially manual need not be set Put, main frame and corresponding slave addresses can be allowed to be consistent, improve engineering joint efficiency and accuracy, reduce artificial mistake By mistake.
Based on same inventive concept, the present invention also provides another slave, below in conjunction with the accompanying drawings to the tool of another slave Body embodiment is described in detail.
As shown in figure 5, a kind of slave, the slave is n-th grade of slave, n is the integer more than 1, including:
Communication building block 210, for obtaining the mailing address that (n-1)th grade of slave is sent by nth address line, with described Mailing address enters row data communication with main frame;The mailing address is that (n-1)th grade of slave detects n-th grade by n-th in bit line When slave is in place from main frame obtain mailing address, between n-th grade of slave and (n-1)th grade of slave by nth address line and n-th Bit line is connected;
Detection module 220, for by (n+1)th bit line detect (n+1)th grade of slave it is in place when, by (n+1)th grade of slave Information in place is sent to the main frame with data communication mode;Between n-th grade of slave and (n+1)th grade of slave by (n+1)th Bit line and the connection of the (n+1)th address wire;
Mailing address forwarding module 230, for receiving (n+1)th grade of slave that the main frame is returned with data communication mode Mailing address, is sent to (n+1)th grade of slave, so that (n+1)th grade by the mailing address of (n+1)th grade of slave by the (n+1)th address wire Slave enters row data communication with its mailing address and the main frame.
Main frame and slave can be the communication equipments such as single-chip microcomputer.In order to realize the automatic distribution of slave mailing address, in phase Bit line and address wire are arranged between the equipment of adjacent level.It is used for upper level equipment in bit line and detects whether next stage equipment is in place, By next stage equipment output level, upper level equipment is detected.It can be determined according to actual needs in the quantity of bit line, Alternatively, connected between the equipment of adjacent level by one in bit line.Address wire is used for upper level equipment and passed for next stage equipment Mailing address is passed, by upper equipment output level, next stage equipment carries out the automatic identification of mailing address according to the level of reception. The quantity and coded system for the slave that the quantity of address wire is typically connected as needed are determined.
When n-th grade of slave accesses (n-1)th grade of slave, the DI/O ports output level of n-th grade of slave, the level passes through n-th The DI/I ports that (n-1)th grade of slave is delivered in bit line DI between level slave and (n-1)th grade of slave, (n-1)th grade from machine testing To after DI/I port levels, confirm that n-th grade of slave is in place.The level of n-th grade of slave output can be set according to actual needs Put.
In the presence of (n-1)th grade of slave in bit line by detecting n-th grade of slave, by n-th grade of slave information in place with Data communication mode is sent to main frame, when main frame receives n-th grade of slave information in place, and one address of automatic selection is set to The mailing address of n-th grade of slave, is then sent to (n-1)th grade of slave by the mailing address of n-th grade of slave with data communication mode, The mailing address of n-th grade of slave is sent to the communication building block of n-th grade of slave by (n-1)th grade of slave by corresponding address wire 210, n-th grade of slave is obtained and main frame identical mailing address, and both can be carried out data communication.
In one embodiment, communication building block 210 reads the address input that n-th grade of slave is connected with nth address line The level of port;The level that the level of address input end mouthful is set for (n-1)th grade of slave according to the mailing address of n-th grade of slave; The level of address input end mouthful is translated as corresponding mailing address, the mailing address of n-th grade of slave is obtained.
The detection module 220 of n-th grade of slave detects that (n+1)th grade of slave is by being connected with (n+1)th grade of slave in bit line It is no in place.In one embodiment, detection module 220 detects whether the input port in place (DI/I) of n-th grade of slave receives (n+1)th grade of slave passes through the (n+1)th level sent in bit line;Input port in place is that n-th grade of slave is connected with (n+1)th in bit line Port;When receiving level, determine that (n+1)th grade of slave is in place;When not receiving level, determine that (n+1)th grade of slave does not exist Position.
Main frame is received after (n+1)th grade of slave that n-th grade of slave send information in place, is that (n+1)th grade of slave distribution is logical Address is believed, while the mailing address of distribution to be sent to the mailing address forwarding module of n-th grade of slave with data communication mode 230.The mailing address forwarding module 230 of n-th grade of slave receives mailing address of the main frame for (n+1)th grade of slave distribution, by n-th The mailing address of+1 grade of slave is sent to (n+1)th grade of slave by corresponding address wire, and (n+1)th grade of slave obtains identical with main frame Mailing address, both can be carried out data communication.
In one embodiment, mailing address forwarding module 230 sets n-th grade according to the mailing address of (n+1)th grade of slave The level of the address output end mouthful of slave;The port that address output end mouthful is connected for n-th grade of slave with the (n+1)th address wire;By ground The level of location output port is sent to (n+1)th grade of slave by the (n+1)th address wire.
In the communication of whole slave, the address acquisition of the distribution of the address of main frame and slave artificially manual need not be set Put, main frame and corresponding slave addresses can be allowed to be consistent, improve engineering joint efficiency and accuracy, reduce artificial mistake By mistake.
Below from the angle of main frame, with reference to accompanying drawing and preferred embodiment, to technical scheme, carry out clear With complete description.
As shown in fig. 6, a kind of master-slave communication distribution address approach of daisy chain connection, including step:
S310, main frame by first bit line detect first order slave it is in place when, be first order slave distribution the One mailing address, and first mailing address is sent to the first order slave by the first address wire, so that described One-level slave enters row data communication with first mailing address and main frame;Pass through between the main frame and the first order slave First connects in bit line and the first address wire;
S320, main frame receive n-th grade of slave by (n+1)th bit line detect (n+1)th grade of slave it is in place when send It is that (n+1)th grade of slave distributes the (n+1)th mailing address during information, and by (n+1)th mailing address with data communication mode N-th grade of slave is sent to, so that (n+1)th mailing address is sent to by n-th grade of slave by the (n+1)th address wire (n+1)th grade of slave;Described information is sent with data communication mode, between n-th grade of slave and (n+1)th grade of slave Connected by (n+1)th in bit line and the (n+1)th address wire, n is the integer more than or equal to 1.
The master-slave communication distribution address approach of above-mentioned daisy chain connection can realize that program is operated in by corresponding program In main frame.In whole mailing address assigning process, the mailing address of each slave is by after host assignment, between equipment Address wire pass to next stage slave successively from upper level slave and carry out automatic identification, it is not necessary to set manually, from And improve the accuracy of project installation, it is to avoid human operational error.
In step S310, main frame and slave can be the communication equipments such as single-chip microcomputer.In order to realize slave mailing address Automatic distribution, bit line and address wire are arranged between the equipment of adjacent level.It is used for upper level equipment in bit line and detects next stage Whether equipment is in place, and by next stage equipment output level, upper level equipment is detected.Can be according to reality in the quantity of bit line Need to be determined, alternatively, connected between the equipment of adjacent level by one in bit line.Address wire is for upper level equipment Next stage equipment transmits mailing address, and by upper equipment output level, next stage equipment is carried out communicatedly according to the level of reception The automatic identification of location.The quantity and coded system for the slave that the quantity of address wire is typically connected as needed are determined.
As shown in figure 1, during 1 access host of slave, the DI/O ports output level of slave 1, the level passes through slave 1 and master The DI/I ports that main frame 1 is delivered in bit line DI between machine, main frame 1 is detected after DI/I port levels, confirms that slave 1 exists Position.The level that slave 1 is exported can be configured according to actual needs.
In the presence of main frame in bit line by detecting slave 1, one address of automatic selection is set to slave 1 communicatedly Location, is then sent to slave 1 by the mailing address of slave 1, slave 1 obtain with main frame identical mailing address, both just can be with Enter row data communication.
In one embodiment, as shown in figure 1, main frame is chosen after the mailing address of slave 1, according to the mailing address to it The level for the ADD1/O~ADDn/O address ports being connected with each address wire is configured, by ADD1/O~ADDn/O of setting The level of address port is with being delivered to the ADD1/I~ADDn/I being connected with each address wire of slave 1 by corresponding address wire Location port.Main frame can use pre-arranged code mode when setting port level, such as binary coding mode.Slave 1 is read The low and high level state of its ADD1/I~ADDn/I address port is taken, with corresponding coded system by the low and high level state of reading Corresponding mailing address is translated as, therefore slave 1 obtains the mailing address with main frame identical slave 1, both can enter line number According to communication.Slave 1 translates the volume used when the coded system taken during mailing address sets the address port of main frame by main frame Code mode.
In step s 320, n-th grade of slave realizes the slave communicated with host data to have obtained mailing address, and n is big In equal to 1.When (n+1)th grade of slave accesses n-th grade of slave, the DI/O ports output level of (n+1)th grade of slave, the level passes through the The DI/I ports that n-th grade of slave is delivered in bit line DI between n+1 grades of slaves and n-th grade of slave, n-th grade of slave is detected After DI/I port levels, confirm that (n+1)th grade of slave is in place, the information of (n+1)th grade of slave is sent to master with data communication mode Machine.Main frame is (n+1)th grade of slave distribution mailing address, while sending the mailing address of distribution to n-th with data communication mode Level slave.
N-th grade of slave receives mailing address of the main frame for (n+1)th grade of slave distribution, by (n+1)th grade of slave communicatedly Location is sent to (n+1)th grade of slave by corresponding address wire, and (n+1)th grade of slave is obtained and main frame identical mailing address, both It can be carried out data communication.In one embodiment, n-th grade of slave receives the mailing address that main frame is (n+1)th grade of distribution, The level of its ADD1/O~ADDn/O address port being connected with each address wire is configured according to the mailing address, will be set The level for the ADD1/O~ADDn/O address ports put (n+1)th grade of slave is delivered to by corresponding address wire with each address ADD1/I~ADDn/I address ports of line connection.N-th grade of slave can use pre-arranged code mode when setting port level, Such as binary coding mode.(n+1)th grade of slave reads the low and high level state of its ADD1/I~ADDn/I address port, with The low and high level state transition of reading is corresponding mailing address by corresponding coded system, then by the mailing address detected The mailing address of (n+1)th grade of slave is set to, therefore (n+1)th grade of slave obtains the communication with (n+1)th grade of slave of main frame identical Address, both can enter row data communication.The coded system taken during (n+1)th grade of slave translation mailing address is n-th grade of slave The coded system used during the address port of n-th grade of slave of setting.
In the communication of whole slave, the address acquisition of the distribution of the address of main frame and slave artificially manual need not be set Put, main frame and corresponding slave addresses can be allowed to be consistent, improve engineering joint efficiency and accuracy, reduce artificial mistake By mistake.
Based on same inventive concept, the present invention also provides a kind of main frame, below in conjunction with the accompanying drawings to the specific of main frame of the present invention Embodiment is described in detail.
As shown in fig. 7, a kind of main frame, including:
First communication building block 310, for by first bit line detect first order slave it is in place when, be described One-level slave distribute the first mailing address, and by first mailing address by the first address wire be sent to the first order from Machine, so that the first order slave enters row data communication with first mailing address and main frame;The main frame and described first Connected between level slave by first in bit line and the first address wire;
Second communication building block 320, for receive n-th grade of slave by (n+1)th bit line detect (n+1)th grade from It is that (n+1)th grade of slave distributes the (n+1)th mailing address during the information sent when machine is in place, and by (n+1)th mailing address N-th grade of slave is sent to data communication mode, so that (n+1)th mailing address is passed through n-th by n-th grade of slave + 1 address wire is sent to (n+1)th grade of slave;Described information is sent with data communication mode, n-th grade of slave with it is described Connected between (n+1)th grade of slave by (n+1)th in bit line and the (n+1)th address wire, n is the integer more than or equal to 1.
Main frame and slave can be the communication equipments such as single-chip microcomputer.In order to realize the automatic distribution of slave mailing address, in phase Bit line and address wire are arranged between the equipment of adjacent level.It is used for upper level equipment in bit line and detects whether next stage equipment is in place, By next stage equipment output level, upper level equipment is detected.It can be determined according to actual needs in the quantity of bit line, Alternatively, connected between the equipment of adjacent level by one in bit line.Address wire is used for upper level equipment and passed for next stage equipment Mailing address is passed, by upper equipment output level, next stage equipment carries out the automatic identification of mailing address according to the level of reception. The quantity and coded system for the slave that the quantity of address wire is typically connected as needed are determined.
As shown in figure 1, during 1 access host of slave, the DI/O ports output level of slave 1, the level passes through slave 1 and master The DI/I ports that main frame 1 is delivered in bit line DI between machine, main frame 1 is detected after DI/I port levels, confirms that slave 1 exists Position.The level that slave 1 is exported can be configured according to actual needs.
In the presence of the first communication building block 310 of main frame in bit line by detecting slave 1, one will be chosen automatically Address is set to the mailing address of slave 1, and the mailing address of slave 1 then is sent into slave 1, and slave 1 obtains identical with main frame Mailing address, both can be carried out data communication.
N-th grade of slave realizes the slave communicated with host data to have obtained mailing address.(n+1)th grade of slave access During n-th grade of slave, the DI/O ports output level of (n+1)th grade of slave, the level by (n+1)th grade of slave and n-th grade of slave it Between the DI/I ports that n-th grade of slave is delivered in bit line DI, n-th grade of slave detected after DI/I port levels, confirms (n+1)th Level slave is in place, and the information of (n+1)th grade of slave is sent to the second communication building block 320 of main frame with data communication mode. Second communication building block 320 is (n+1)th grade of slave distribution mailing address, while by the mailing address of distribution with data communication side Formula sends n-th grade of slave to.
N-th grade of slave receives mailing address of the main frame for (n+1)th grade of slave distribution, by (n+1)th grade of slave communicatedly Location is sent to (n+1)th grade of slave, and (n+1)th grade of slave is obtained and main frame identical mailing address, and both can be carried out data and lead to Letter.In one embodiment, n-th grade of slave receives the mailing address that main frame is (n+1)th grade of distribution, according to the mailing address pair The level of its ADD1/O~ADDn/O address port being connected with each address wire is configured, by the ADD1/O of setting~ The level of ADDn/O address ports is delivered to being connected with each address wire for (n+1)th grade of slave by corresponding address wire ADD1/I~ADDn/I address ports.N-th grade of slave can use pre-arranged code mode when setting port level, and such as two enter Coded system processed etc..(n+1)th grade of slave reads the low and high level state of its ADD1/I~ADDn/I address port, to compile accordingly The low and high level state transition of reading is corresponding mailing address by code mode, and the mailing address detected then is set into the The mailing address of n+1 grades of slaves, therefore (n+1)th grade of slave obtains the mailing address with (n+1)th grade of slave of main frame identical, both Row data communication can be entered.The coded system taken during (n+1)th grade of slave translation mailing address sets n-th grade for n-th grade of slave The coded system used during the address port of slave.
In the communication of whole slave, the address acquisition of the distribution of the address of main frame and slave artificially manual need not be set Put, main frame and corresponding slave addresses can be allowed to be consistent, improve engineering joint efficiency and accuracy, reduce artificial mistake By mistake.
For a better understanding of the present invention, described in detail with reference to a specific embodiment.
As shown in figure 8, being 1 monitoring host computer (i.e. main frame) and 4 monitoring slave (i.e. slave) connections, monitoring in this example Have between main frame and monitoring slave 1 in bit line DI, two address wires ADD1 and ADD2, between monitoring slave 1 and monitoring slave 2 Have with bit line DI, two address wires ADD1 and ADD2, monitoring between slave 2 and monitoring slave 3 in bit line DI, two ground Location line ADD1 and ADD2, have in bit line DI, two address wires ADD1 and ADD2 between monitoring slave 3 and monitoring slave 4.In place Line DI is detected by next stage output level, upper level;Address wire is by upper level output level, next stage detection;Slave Data/address bus is two-way interactive data/address bus.
As shown in figure 9, when monitoring 1 access host of slave, monitoring slave 1 exports DI level, DI electricity from its DI/O port The flat DI/I ports for being transferred to monitoring host computer in bit line by DI.Monitoring host computer is detected after DI level, it is believed that have next stage from Machine, is low level to monitor the distribution of slave 1 address (such as 00) and exporting ADD1/O and ADD2/O port level, by corresponding Address wire passes to ADD1/O and ADD2/O low level the ADD1/I ports and ADD2/I ports of monitoring slave 1.Work as monitoring When slave 1 detects the level of its ADD1/I port and ADD2/I ports for low level, mailing address is written as 00.Therefore main frame Identical with the mailing address of first order slave, slave just can realize data communication by bus.
When monitoring slave 1 by detecting monitoring slave 2 in bit line DI and connecting in place, monitoring slave 1 uses data communication The information in place for monitoring slave 2 is told monitoring host computer by mode.Monitoring host computer will distribute mailing address to monitoring slave 2, and such as 01 (ADD2/O=0, ADD1/O=1), monitoring slave 1 is transmitted in the way of data communication by the address information for monitoring slave 2.Monitoring Slave 1 obtains after address information its ADD2/O port and ADD1/O ports being set to low level and high level respectively, passes through correspondence Address wire by monitor slave 1 ADD1/O ports and ADD2/O ports level pass to monitoring slave 2 ADD1/I ports With ADD2/I ports.Monitoring slave 2 detects its ADD1/I port and ADD2/I ports are respectively high level and low level, will lead to Letter address is written as 01, identical with the mailing address of slave 2 in main frame, therefore monitoring host computer and monitoring slave 2 can pass through bus Realize data communication.
When monitoring slave 2 by detecting monitoring slave 3 in bit line DI and connecting in place, monitoring slave 2 uses data communication The information in place for monitoring slave 3 is told monitoring host computer by mode.Monitoring host computer will distribute mailing address to monitoring slave 3, and such as 10 (ADD2/O=1, ADD1/O=0), monitoring slave 2 is transmitted in the way of data communication by the address information for monitoring slave 3.Monitoring Slave 2 obtains after address information its ADD2/O port and ADD1/O ports being set to high level and low level respectively, passes through correspondence Address wire by monitor slave 2 ADD1/O ports and ADD2/O ports level pass to monitoring slave 3 ADD1/I ports With ADD2/I ports.Monitoring slave 3 detects its ADD1/I port and ADD2/I ports are respectively low level and high level, will lead to Letter address is written as 10, identical with the mailing address of slave 3 in main frame, therefore monitoring host computer and monitoring slave 3 can pass through bus Realize data communication.
When monitoring slave 3 by detecting monitoring slave 4 in bit line DI and connecting in place, monitoring slave 3 uses data communication The information in place for monitoring slave 4 is told monitoring host computer by mode.Monitoring host computer will distribute mailing address to monitoring slave 4, and such as 11 (ADD2/O=1, ADD1/O=1), monitoring slave 3 is transmitted in the way of data communication by the address information for monitoring slave 4.Monitoring Slave 3 obtains after address information its ADD2/O port and ADD1/O ports being set to high level and high level respectively, passes through correspondence Address wire by monitor slave 3 ADD1/O ports and ADD2/O ports level pass to monitoring slave 4 ADD1/I ports With ADD2/I ports.Monitoring slave 4 detects its ADD1/I port and ADD2/I ports are respectively high level and high level, will lead to Letter address is written as 11, identical with the mailing address of slave 4 in main frame, therefore monitoring host computer and monitoring slave 4 can pass through bus Realize data communication.
The master-slave communication of above-mentioned daisy chain connection distributes address approach, system and slave, main frame, and the address of each slave is After host assignment, the line between equipment passes to next stage slave from upper level slave and carries out automatic identification successively , it is not necessary to set manually, the automatic distribution for the slave addresses that main frame is connected to multiple daisy chains is realized, so as to improve Engineering efficiency and accuracy, improve the accuracy and convenience of address setting, reduce human operational error, evade artificial The wrong communication mistake brought is set, and address distribution can arbitrarily be distributed by main frame, not by hardware controls.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. the master-slave communication distribution address approach of a kind of daisy chain connection, it is characterised in that including step:
First order slave obtains the first mailing address that main frame is sent by the first address wire, with first mailing address and institute State main frame and enter row data communication;First mailing address detects first order slave in bit line by first for the main frame and existed The mailing address distributed during position for the first order slave, passes through first ground between the main frame and the first order slave Location line and described first is connected in bit line;
First order slave by second bit line detect second level slave it is in place when, by second level slave information in place The main frame is sent to data communication mode;By second in bit line between the second level slave and the first order slave With the connection of the second address wire;
First order slave receives the second mailing address of the second level slave that the main frame is returned with data communication mode, will Second mailing address is sent to the second level slave by the second address wire, so that the second level slave is with described Two mailing addresses enter row data communication with the main frame.
2. the master-slave communication distribution address approach of daisy chain according to claim 1 connection, it is characterised in that the first order from The step of the first mailing address that machine acquisition main frame is sent by the first address wire, includes:
First order slave reads the level for the address input end mouthful that first order slave is connected with the first address wire, and the level is institute State the level that main frame is set according to the first mailing address;
The level is translated as corresponding mailing address by first order slave, obtains the first mailing address.
3. the master-slave communication distribution address approach of daisy chain according to claim 2 connection, it is characterised in that the first order from The step of second mailing address is sent to the second level slave by machine by the second address wire includes:
First order slave sets the level of the address output end mouthful of first order slave according to second mailing address;Address is exported Port is the port that first order slave is connected with the second address wire;
The level of address output end mouthful is sent to the second level slave by first order slave by the second address wire.
4. the master-slave communication distribution address approach of the daisy chain connection according to claims 1 to 3 any one, its feature exists In, in addition to step:First order slave detects whether second level slave is in place by second in bit line, including:
Whether the first order receives second level slave by second in bit line from the input port in place of machine testing first order slave The level of transmission;The input port in place is first order slave and the second port being connected in bit line;
If receiving level, first order slave determines that second level slave is in place;Otherwise, first order slave determines second level slave not In place.
5. the master-slave communication distribution address approach of a kind of daisy chain connection, it is characterised in that including step:
N-th grade of slave obtains the mailing address that (n-1)th grade of slave is sent by nth address line, with the mailing address and main frame Enter row data communication;The mailing address be (n-1)th grade of slave by n-th bit line detect n-th grade of slave it is in place when from master The mailing address that machine is obtained, is connected, n is big between n-th grade of slave and (n-1)th grade of slave by nth address line and n-th in bit line In 1 integer;
N-th grade of slave by (n+1)th bit line detect (n+1)th grade of slave it is in place when, by (n+1)th grade of slave information in place with Data communication mode is sent to the main frame;By (n+1)th in bit line and the (n+1)th ground between n-th grade of slave and (n+1)th grade of slave Location line connection;
N-th grade of slave receives the mailing address for (n+1)th grade of slave that the main frame is returned with data communication mode, by (n+1)th grade The mailing address of slave is sent to (n+1)th grade of slave by the (n+1)th address wire so that (n+1)th grade of slave with its mailing address with The main frame enters row data communication.
6. the master-slave communication distribution address approach of a kind of daisy chain connection, it is characterised in that including step:
Main frame by first bit line detect first order slave it is in place when, be first order slave distribution first communicatedly Location, and first mailing address is sent to the first order slave by the first address wire, so that the first order slave Row data communication is entered with first mailing address and main frame;It is in place by first between the main frame and the first order slave Line and the connection of the first address wire;
Main frame receive n-th grade of slave by (n+1)th bit line detect (n+1)th grade of slave it is in place when send information when, be (n+1)th grade of slave distributes the (n+1)th mailing address, and (n+1)th mailing address is sent into institute with data communication mode State n-th grade of slave so that n-th grade of slave (n+1)th mailing address is sent to described n-th by the (n+1)th address wire+ 1 grade of slave;Described information is sent with data communication mode, between n-th grade of slave and (n+1)th grade of slave by n-th+ 1 connects in bit line and the (n+1)th address wire, and n is the integer more than or equal to 1.
7. a kind of slave, the slave is first order slave, it is characterised in that including:
Communication building block, for obtaining the first mailing address that main frame is sent by the first address wire, with the described first communication Row data communication is entered in address with the main frame;First mailing address is that the main frame detects first by first in bit line The mailing address distributed when level slave is in place for the first order slave, institute is passed through between the main frame and the first order slave The first address wire and described first is stated to connect in bit line;
Detection module, for by second bit line detect second level slave it is in place when, it is that the second level slave is in place Information is sent to the main frame with data communication mode;Between the second level slave and the first order slave by second Bit line and the connection of the second address wire;
Mailing address forwarding module, second for receiving the second level slave that the main frame is returned with data communication mode Mailing address, is sent to the second level slave, so that the second level by second mailing address by the second address wire Slave enters row data communication with second mailing address and the main frame.
8. a kind of slave, the slave is n-th grade of slave, n is the integer more than 1, it is characterised in that including:
Communication building block, for obtaining the mailing address that is sent by nth address line of (n-1)th grade of slave, with it is described communicatedly Row data communication is entered in location with main frame;The mailing address detects n-th grade of slave in bit line by n-th for (n-1)th grade of slave and existed The mailing address obtained during position from main frame, is connected between n-th grade of slave and (n-1)th grade of slave by nth address line and n-th in bit line Connect;
Detection module, for by (n+1)th bit line detect (n+1)th grade of slave it is in place when, by the letter of (n+1)th grade of slave in place Breath is sent to the main frame with data communication mode;By (n+1)th in bit line and n-th between n-th grade of slave and (n+1)th grade of slave + 1 address wire is connected;
Mailing address forwarding module, the (n+1)th grade of slave returned for receiving the main frame with data communication mode is communicatedly Location, (n+1)th grade of slave is sent to by the mailing address of (n+1)th grade of slave by the (n+1)th address wire so that (n+1)th grade of slave with Its mailing address enters row data communication with the main frame.
9. a kind of main frame, it is characterised in that including:
First communication building block, for by first bit line detect first order slave it is in place when, be the first order from Machine distributes the first mailing address, and first mailing address is sent into the first order slave by the first address wire, with The first order slave is set to enter row data communication with first mailing address and main frame;The main frame and the first order slave Between connected by first in bit line and the first address wire;
Second communication building block, in bit line detects (n+1)th grade of slave for receiving n-th grade of slave by (n+1)th in place When send information when, be that (n+1)th grade of slave distributes the (n+1)th mailing address, and by (n+1)th mailing address with data Communication mode is sent to n-th grade of slave, so that (n+1)th mailing address is passed through the (n+1)th address by n-th grade of slave Line is sent to (n+1)th grade of slave;Described information is sent with data communication mode, n-th grade of slave with described (n+1)th grade Connected between slave by (n+1)th in bit line and the (n+1)th address wire, n is the integer more than or equal to 1.
10. the system that a kind of master-slave communication of daisy chain connection distributes address, including main frame and N grades of slaves, it is characterised in that main Connect, lead between n-th grade of slave and (n+1)th grade of slave in bit line and the first address wire by first between machine and first order slave (n+1)th is crossed to connect in bit line and the (n+1)th address wire;N is the integer more than or equal to 1 and less than N;
The main frame by first bit line detect the first order slave it is in place when, be first order slave distribution first Mailing address, and first mailing address is sent to the first order slave by the first address wire;
The first order slave obtains first mailing address, and carrying out data with first mailing address and the main frame leads to Letter;
N-th grade of slave by (n+1)th bit line detect (n+1)th grade of slave it is in place when, by (n+1)th grade of slave information in place with Data communication mode is sent to the main frame;
It is that (n+1)th grade of slave distributes the (n+1)th mailing address when the main frame receives (n+1)th grade of slave information in place, And (n+1)th mailing address is sent to n-th grade of slave with data communication mode;
(n+1)th mailing address is sent to (n+1)th grade of slave by n-th grade of slave by the (n+1)th address wire;
(n+1)th grade of slave obtains (n+1)th mailing address, and line number is entered with (n+1)th mailing address and the main frame According to communication.
CN201710270702.5A 2017-04-24 2017-04-24 Daisy chain connected master-slave communication address distributing method, system and slave computer and master computer Active CN107133188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710270702.5A CN107133188B (en) 2017-04-24 2017-04-24 Daisy chain connected master-slave communication address distributing method, system and slave computer and master computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710270702.5A CN107133188B (en) 2017-04-24 2017-04-24 Daisy chain connected master-slave communication address distributing method, system and slave computer and master computer

Publications (2)

Publication Number Publication Date
CN107133188A true CN107133188A (en) 2017-09-05
CN107133188B CN107133188B (en) 2020-05-05

Family

ID=59715340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710270702.5A Active CN107133188B (en) 2017-04-24 2017-04-24 Daisy chain connected master-slave communication address distributing method, system and slave computer and master computer

Country Status (1)

Country Link
CN (1) CN107133188B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038061A (en) * 2017-11-09 2018-05-15 深圳市亿维自动化技术有限公司 A kind of address distribution method and PLC system
CN109067633A (en) * 2018-10-22 2018-12-21 泛亚电子工业(无锡)有限公司 Power-supply management system and method based on Ethernet daisy chain communication network topology
CN109672600A (en) * 2018-12-27 2019-04-23 北京航天飞腾装备技术有限责任公司 Single machine interacted system on bullet
CN110247997A (en) * 2019-06-26 2019-09-17 三维通信股份有限公司 The method, apparatus and storage medium of IP address distribution and Topology Management in DAS system
CN110267220A (en) * 2019-04-30 2019-09-20 泉州维盾电气有限公司 A kind of system and method for single host wireless device series connection networking data communication
CN110290227A (en) * 2019-05-28 2019-09-27 广州大学 Dynamic allocation method, system and the storage medium of IC bus address
CN110647127A (en) * 2019-10-17 2020-01-03 厦门高瑞特电气自动化有限公司 Module combined power process control device and initialization configuration method thereof
CN110647478A (en) * 2019-09-26 2020-01-03 北京兴达智联科技有限公司 Method and system for setting serial communication equipment address
CN111541597A (en) * 2020-04-20 2020-08-14 广州致远电子有限公司 Automatic numbering method and system for parallel connection
CN112637371A (en) * 2020-07-31 2021-04-09 深圳优地科技有限公司 Node address determination method and device, electronic equipment and storage medium
CN112883439A (en) * 2021-02-07 2021-06-01 杰华特微电子(杭州)有限公司 Battery self-checking encryption method, self-checking encryption circuit and battery management circuit
CN114665752A (en) * 2022-05-25 2022-06-24 中山大洋电机股份有限公司 Motor with multiple communication addresses, address selection method, electrical equipment and communication method
CN115580596A (en) * 2022-11-24 2023-01-06 合肥华思系统有限公司 Automatic battery cluster address distribution system and method based on chain connection
CN116582520A (en) * 2023-07-13 2023-08-11 天津宜科自动化股份有限公司 Address information distribution system based on RS485 protocol
CN116684389A (en) * 2023-08-02 2023-09-01 苏州路之遥科技股份有限公司 Address automatic allocation method and host, slave and communication equipment with same

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257350A (en) * 2008-04-03 2008-09-03 京信通信系统(中国)有限公司 Optical fiber straight amplification station based on opened loop and closed loop auto-gain control chain circuit
CN101110768B (en) * 2007-06-20 2010-10-06 杭州华三通信技术有限公司 Data communication method, system, master control card and cable fastener
CN102868780A (en) * 2012-09-07 2013-01-09 深圳睿立方智能科技有限公司 RS-485 slave computer addressing network system and addressing method thereof
CN103246627A (en) * 2012-02-03 2013-08-14 施耐德电器工业公司 Multi-stage subordinate serial communication system and method capable of automatically allocating addresses
CN104579875A (en) * 2013-10-10 2015-04-29 大唐恩智浦半导体有限公司 Daisy-chain communication bus and protocol
CN105049551A (en) * 2015-08-27 2015-11-11 赵忠义 System and method for automatically distributing address via bus
CN105446928A (en) * 2015-11-18 2016-03-30 深圳云联讯数据科技有限公司 Address automatically allocated serial bus communication method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110768B (en) * 2007-06-20 2010-10-06 杭州华三通信技术有限公司 Data communication method, system, master control card and cable fastener
CN101257350A (en) * 2008-04-03 2008-09-03 京信通信系统(中国)有限公司 Optical fiber straight amplification station based on opened loop and closed loop auto-gain control chain circuit
CN103246627A (en) * 2012-02-03 2013-08-14 施耐德电器工业公司 Multi-stage subordinate serial communication system and method capable of automatically allocating addresses
CN102868780A (en) * 2012-09-07 2013-01-09 深圳睿立方智能科技有限公司 RS-485 slave computer addressing network system and addressing method thereof
CN104579875A (en) * 2013-10-10 2015-04-29 大唐恩智浦半导体有限公司 Daisy-chain communication bus and protocol
CN105049551A (en) * 2015-08-27 2015-11-11 赵忠义 System and method for automatically distributing address via bus
CN105446928A (en) * 2015-11-18 2016-03-30 深圳云联讯数据科技有限公司 Address automatically allocated serial bus communication method and system

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038061B (en) * 2017-11-09 2020-09-25 深圳市亿维自动化技术有限公司 Address allocation method and PLC system
CN108038061A (en) * 2017-11-09 2018-05-15 深圳市亿维自动化技术有限公司 A kind of address distribution method and PLC system
CN109067633A (en) * 2018-10-22 2018-12-21 泛亚电子工业(无锡)有限公司 Power-supply management system and method based on Ethernet daisy chain communication network topology
CN109067633B (en) * 2018-10-22 2024-04-16 泛亚电子工业(无锡)有限公司 Power management system and method based on Ethernet daisy chain communication network topology
CN109672600A (en) * 2018-12-27 2019-04-23 北京航天飞腾装备技术有限责任公司 Single machine interacted system on bullet
CN109672600B (en) * 2018-12-27 2021-11-16 北京航天飞腾装备技术有限责任公司 On-missile single-machine interconnection system
CN110267220A (en) * 2019-04-30 2019-09-20 泉州维盾电气有限公司 A kind of system and method for single host wireless device series connection networking data communication
CN110267220B (en) * 2019-04-30 2021-11-02 泉州维盾电气有限公司 System and method for serial networking data communication of single-host wireless equipment
CN110290227A (en) * 2019-05-28 2019-09-27 广州大学 Dynamic allocation method, system and the storage medium of IC bus address
CN110247997A (en) * 2019-06-26 2019-09-17 三维通信股份有限公司 The method, apparatus and storage medium of IP address distribution and Topology Management in DAS system
CN110647478A (en) * 2019-09-26 2020-01-03 北京兴达智联科技有限公司 Method and system for setting serial communication equipment address
CN110647127A (en) * 2019-10-17 2020-01-03 厦门高瑞特电气自动化有限公司 Module combined power process control device and initialization configuration method thereof
CN111541597A (en) * 2020-04-20 2020-08-14 广州致远电子有限公司 Automatic numbering method and system for parallel connection
CN111541597B (en) * 2020-04-20 2022-03-11 广州致远电子有限公司 Automatic numbering method and system for parallel connection
CN112637371A (en) * 2020-07-31 2021-04-09 深圳优地科技有限公司 Node address determination method and device, electronic equipment and storage medium
CN112637371B (en) * 2020-07-31 2023-04-07 深圳优地科技有限公司 Node address determination method and device, electronic equipment and storage medium
CN112883439A (en) * 2021-02-07 2021-06-01 杰华特微电子(杭州)有限公司 Battery self-checking encryption method, self-checking encryption circuit and battery management circuit
CN114665752A (en) * 2022-05-25 2022-06-24 中山大洋电机股份有限公司 Motor with multiple communication addresses, address selection method, electrical equipment and communication method
CN115580596A (en) * 2022-11-24 2023-01-06 合肥华思系统有限公司 Automatic battery cluster address distribution system and method based on chain connection
CN116582520A (en) * 2023-07-13 2023-08-11 天津宜科自动化股份有限公司 Address information distribution system based on RS485 protocol
CN116582520B (en) * 2023-07-13 2023-11-14 天津宜科自动化股份有限公司 Address information distribution system based on RS485 protocol
CN116684389A (en) * 2023-08-02 2023-09-01 苏州路之遥科技股份有限公司 Address automatic allocation method and host, slave and communication equipment with same
CN116684389B (en) * 2023-08-02 2023-10-31 苏州路之遥科技股份有限公司 Address automatic allocation method and host, slave and communication equipment with same

Also Published As

Publication number Publication date
CN107133188B (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN107133188A (en) The master-slave communication of daisy chain connection distributes address approach, system and slave, main frame
AU626880B2 (en) Peer-to-peer register exchange controller for plcs
CN105846858A (en) Multi connection air conditioning units, networking method thereof and device
US4131881A (en) Communication system including addressing apparatus for use in remotely controllable devices
CN102081585B (en) RS485 dual-bus communication method used for test satellite
CN106200454B (en) A kind of communication system and method for more MCU
JPH0329043A (en) System and method for address assignment
CN105260337A (en) Automatic addressing method and system of single-chip microcomputers
CN105635184A (en) Communication protocol conversion method, device and system
JPH0664532B2 (en) Card identification and connection check method in multi-terminal system
US4419751A (en) Multiport modem and the use thereof in a method and a system for testing a multilevel communication network
US8588943B2 (en) Method for parameterizing operating means
CN105045742A (en) Cascade communication method and cascade system
US5245705A (en) Functional addressing method and apparatus for a multiplexed data bus
CN1160618C (en) Programmable controller
JPH0695685B2 (en) Two-way communication method
CN109947689A (en) A kind of method of automobile-used lithium ion battery case automatic numbering
CN101630158A (en) Industrial control system and serial communication method thereof
CN103823775A (en) Serial port and Internet port smart converter
CN112235325A (en) Method and system for performing access control on functional module connected with intelligent terminal
CN100476778C (en) Master module, function module, electronic device and identification data setting method thereof
CN108780304A (en) Complete set of equipments supervisor control data regeneration device
CN103376369B (en) The method of testing of communication load and device
CN107071076B (en) Equipment address configuration method, device and system in communication system
GB2111735A (en) Data transmission and processing systems

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180214

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Comba Telecom System (China) Co., Ltd.

Applicant after: Comba Telecom Systems (Guangzhou) Co., Ltd.

Applicant after: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant after: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

Address before: 510663 Guangdong city of Guangzhou province Guangzhou economic and Technological Development Zone Jinbi Road No. 6

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200110

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Patentee after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Patentee before: Comba Telecom System (China) Ltd.