CN107133188B - Daisy chain connected master-slave communication address distributing method, system and slave computer and master computer - Google Patents

Daisy chain connected master-slave communication address distributing method, system and slave computer and master computer Download PDF

Info

Publication number
CN107133188B
CN107133188B CN201710270702.5A CN201710270702A CN107133188B CN 107133188 B CN107133188 B CN 107133188B CN 201710270702 A CN201710270702 A CN 201710270702A CN 107133188 B CN107133188 B CN 107133188B
Authority
CN
China
Prior art keywords
level
address
slave
machine
level slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710270702.5A
Other languages
Chinese (zh)
Other versions
CN107133188A (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 Systems China 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 Systems China Ltd filed Critical Comba Telecom Systems China 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

Images

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 invention relates to a daisy chain connected master-slave communication address allocation method and system, a slave and a master. The method comprises the following steps: the first-level slave machine obtains a first communication address sent by a host machine through a first address line, and performs data communication with the host machine through the first communication address; when the first-level slave machine detects that the second-level slave machine is in place through a second in-place line, the in-place information of the second-level slave machine is sent to the host machine in a data communication mode; and the first-level slave receives a second communication address of the second-level slave returned by the host in a data communication mode, and sends the second communication address to the second-level slave through a second address line, so that the second-level slave performs data communication with the host by using the second communication address. The host automatically distributes communication addresses to the slave machines without manual setting, thereby improving the accuracy of engineering installation and avoiding human misoperation.

Description

Daisy chain connected master-slave communication address distributing method, system and slave computer and master computer
Technical Field
The invention relates to the technical field of communication, in particular to a daisy chain connected master-slave communication address distribution method, a daisy chain connected master-slave communication address distribution system, a slave and a master.
Background
With the rapid development of mobile communication network construction and customer application requirements, mobile communication equipment is also developing at a high speed, and the intellectualization of the equipment directly affects the efficiency of human-computer interaction. In a communication device or a communication system, there is often a master managing a plurality of slaves, thereby realizing functional decomposition or intelligent modularization of products. In a master-slave communication system, connection modes of a master and slaves can be divided into a star connection mode and a daisy chain connection mode, and in the process of communicating a plurality of slaves by the master, the master is often distinguished by addresses to exchange data with one slave, so that the control of the addresses is a prerequisite condition for communication.
At present, in a daisy chain connection mode, a dial-up mode or operations such as setting by software are generally adopted to allocate communication addresses of slaves, and introduced human factors are uncontrollable, so that the accuracy of engineering installation is influenced.
Disclosure of Invention
Therefore, it is necessary to provide a daisy chain connected master-slave communication address allocation method and system, a slave, and a master, aiming at the problem of low engineering installation accuracy, so as to realize the automatic allocation of the master to the addresses of the plurality of daisy chain connected slaves and improve the engineering installation accuracy.
A daisy chain connected master-slave communication address allocation method includes the steps:
the first-level slave machine obtains a first communication address sent by a host machine through a first address line, and performs data communication with the host machine through the first communication address; the first communication address is a communication address allocated to a first-level slave machine when the host detects that the first-level slave machine is in place through a first in-bit line, and the host and the first-level slave machine are connected through the first address line and the first in-bit line;
when the first-level slave machine detects that the second-level slave machine is in place through a second in-place line, the in-place information of the second-level slave machine is sent to the host machine in a data communication mode; the second-level slave machine and the first-level slave machine are connected through a second bit line and a second address line;
and the first-level slave receives a second communication address of the second-level slave returned by the host in a data communication mode, and sends the second communication address to the second-level slave through a second address line, so that the second-level slave performs data communication with the host by using the second communication address.
A daisy chain connected master-slave communication address allocation method includes the steps:
the nth-level slave machine obtains a communication address sent by the nth-1-level slave machine through the nth address line, and performs data communication with the host machine through the communication address; the communication address is acquired from the host when the nth-1-level slave machine detects that the nth-level slave machine is in place through an nth in-place line, the nth-level slave machine is connected with the nth-1-level slave machine through an nth address line and the nth in-place line, and n is an integer greater than 1;
when the nth-level slave machine detects that the (n + 1) th-level slave machine is in place through the (n + 1) th in-place bit line, the in-place information of the (n + 1) th-level slave machine is sent to the host machine in a data communication mode; the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line;
and the nth-level slave receives the communication address of the (n + 1) th-level slave returned by the host in a data communication mode, and sends the communication address of the (n + 1) th-level slave to the (n + 1) th-level slave through the (n + 1) th address line, so that the (n + 1) th-level slave performs data communication with the host by using the communication address.
A daisy chain connected master-slave communication address allocation method includes the steps:
when the host detects that a first-level slave machine is in place through a first in-place line, a first communication address is distributed to the first-level slave machine, and the first communication address is sent to the first-level slave machine through a first address line, so that the first-level slave machine performs data communication with the host through the first communication address; the host and the first-level slave are connected through a first on-bit line and a first address line;
when the host receives information sent by the nth-level slave machine when the nth + 1-level slave machine detects that the nth + 1-level slave machine is in place through an n +1 th on-bit line, the host allocates an n +1 th communication address for the nth + 1-level slave machine and sends the n +1 th communication address to the nth-level slave machine in a data communication mode, so that the nth-level slave machine sends the n +1 th communication address to the n + 1-level slave machine through an n +1 th address line; the information is transmitted in a data communication mode, the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line, and n is an integer greater than or equal to 1.
A slave that is a first level slave comprising:
the communication establishing module is used for acquiring a first communication address sent by a host through a first address line and carrying out data communication with the host through the first communication address; the first communication address is a communication address allocated to a first-level slave machine when the host detects that the first-level slave machine is in place through a first in-bit line, and the host and the first-level slave machine are connected through the first address line and the first in-bit line;
the detection module is used for sending the in-place information of the second-level slave to the host in a data communication mode when detecting that the second-level slave is in place through a second in-place line; the second-level slave machine and the first-level slave machine are connected through a second bit line and a second address line;
and the communication address forwarding module is used for receiving a second communication address of the second-level slave machine returned by the host in a data communication mode, and sending the second communication address to the second-level slave machine through a second address line so as to enable the second-level slave machine to perform data communication with the host by using the second communication address.
A slave that is an nth level slave, n being an integer greater than 1, comprising:
the communication establishing module is used for obtaining a communication address sent by the nth-1 level slave machine through the nth address line and carrying out data communication with the host machine through the communication address; the communication address is acquired from the host when the nth-1-level slave machine detects that the nth-level slave machine is in place through an nth in-place line, and the nth-level slave machine is connected with the nth-1-level slave machine through an nth address line and the nth in-place line;
the detection module is used for sending the in-place information of the (n + 1) th-level slave to the host in a data communication mode when the (n + 1) th-level slave is detected to be in place through the (n + 1) th in-place bit line; the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line;
and the communication address forwarding module is used for receiving the communication address of the (n + 1) th-level slave machine returned by the host machine in a data communication mode, and sending the communication address of the (n + 1) th-level slave machine to the (n + 1) th-level slave machine through an (n + 1) th address line so as to enable the (n + 1) th-level slave machine to carry out data communication with the host machine through the communication address of the (n + 1) th-level slave machine.
A host, comprising:
the first communication establishing module is used for allocating a first communication address to a first-level slave machine when detecting that the first-level slave machine is in place through a first in-place line, and sending the first communication address to the first-level slave machine through a first address line so that the first-level slave machine performs data communication with a host machine through the first communication address; the host and the first-level slave are connected through a first on-bit line and a first address line;
the second communication establishing module is used for allocating an n +1 th communication address to the n +1 th slave and sending the n +1 th communication address to the n +1 th slave in a data communication mode when receiving information sent by the n +1 th slave when the n +1 th slave detects that the n +1 th slave is in place through an n +1 th in-place line, so that the n +1 th communication address is sent to the n +1 th slave by the n +1 th slave; the information is transmitted in a data communication mode, the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line, and n is an integer greater than or equal to 1.
A daisy chain connected master-slave communication address distribution system comprises a master machine and N levels of slave machines, wherein the master machine is connected with a first level of slave machine through a first on bit line and a first address line, and the nth level of slave machine is connected with an N +1 th level of slave machine through an N +1 th on bit line and an N +1 th address line; n is an integer of 1 or more and less than N;
when the host detects that the first-level slave machine is in place through a first in-place line, a first communication address is distributed to the first-level slave machine, and the first communication address is sent to the first-level slave machine through a first address line;
the first-level slave machine obtains the first communication address and carries out data communication with the host machine through the first communication address;
when the nth-level slave machine detects that the (n + 1) th-level slave machine is in place through the (n + 1) th in-place bit line, the in-place information of the (n + 1) th-level slave machine is sent to the host machine in a data communication mode;
when the host receives the in-place information of the (n + 1) th-level slave, allocating an (n + 1) th communication address to the (n + 1) th-level slave, and sending the (n + 1) th communication address to the nth-level slave in a data communication mode;
the nth-level slave machine sends the n + 1-th communication address to the n + 1-level slave machine through an n + 1-th address line;
the (n + 1) th slave computer obtains the (n + 1) th communication address, and performs data communication with the host computer by using the (n + 1) th communication address.
According to the daisy chain connection master-slave communication address allocation method and system, the slave machines and the host machine, bit lines and address lines are arranged among all the devices connected in the daisy chain mode, the bit lines are used for detecting whether the next-level device of the device is in place or not by the device so as to determine whether the host machine allocates communication addresses for the next-level device, and the address lines are used for transmitting the communication addresses allocated by the host machine to the next-level device by the device so as to realize data communication between the next-level device and the host machine. In the whole communication address allocation process, after the communication addresses of the slave machines are allocated through the host machine, the address lines among the devices are sequentially transmitted to the next slave machine from the previous slave machine to be automatically identified, and manual setting is not needed, so that the accuracy of engineering installation is improved, and manual operation errors are avoided.
Drawings
FIG. 1 is a block diagram illustrating an embodiment of a system for assigning addresses for daisy-chained master and slave communications;
FIG. 2 is a flow diagram illustrating a method for assigning addresses for daisy chained master and slave communications, according to one embodiment;
FIG. 3 is a schematic structural diagram of a slave according to an embodiment;
FIG. 4 is a flow diagram illustrating a method for assigning addresses for daisy chained master and slave communications according to another embodiment;
FIG. 5 is a schematic structural diagram of a slave according to another embodiment;
FIG. 6 is a flow diagram illustrating a method for assigning addresses for daisy chained master and slave communications according to another embodiment;
FIG. 7 is a block diagram of a host according to an embodiment;
FIG. 8 is a schematic diagram of a monitoring master and a monitoring slave according to an embodiment;
fig. 9 is a flowchart illustrating a monitoring master allocating a communication address to each monitoring slave according to an embodiment.
Detailed Description
It should be noted that the first and second terms appearing herein are only used for distinguishing the same technical features, and do not limit the order, number, and the like of the technical features. The drawings are only for illustrative purposes and do not limit the number of elements and the like.
In order to further explain the technical means and effects of the present invention, the following description will first clearly and completely describe the technical solution of the present invention from the perspective of the whole system, with reference to the accompanying drawings and preferred embodiments.
Firstly, the hardware structure of the daisy chain connected master-slave communication address distribution system is briefly introduced:
as shown in FIG. 1, a daisy chain connected master-slave communication address distribution system comprises a master and N-level slaves (slave 1 to slave N), wherein the master and the first level slave (slave 1) are connected through a first bit line (a connection line between DI/I of the master and DI/O of the slave 1) and a first address line (comprising a connection line between ADDn/O of the master and ADDn/I of the slave 1, … …, a connection line between ADD2/O of the master and ADD2/I of the slave 1, a connection line between ADD1/O of the master and ADD1/I of the slave 1), and the nth level slave and the nth +1 level slave are connected through an N +1 th address line and an N +1 th address line; n is an integer of 1 or more and less than N, i.e., 0< n.ltoreq.N. For example, the second between slave 1 and slave 2 is a connection line between the bit line DI/I of slave 1 and the DI/O of slave 2, and the second address line between slave 1 and slave 2 includes: a connection between ADDn/O of slave 1 and ADDn/I of slave 2, … …, a connection between ADD2/O of slave 1 and ADD2/I of slave 2, and a connection between ADD1/O of slave 1 and ADD1/I of slave 2. The second bit-line and second address-line between slaves of other adjacent stages are similar and not described in detail herein.
The host and the slave can be communication equipment such as a singlechip and the like. The daisy chain connection is a daisy chain connection system in which devices in a communication system are connected in sequence, for example, as shown in fig. 1, a master, a slave 1, a slave 2, a slave 3 … …, and a slave N are connected in sequence. In a daisy chain connected master-slave communication system, a master communicates with a plurality of slaves, the master takes on superior functions and sends commands to the slaves through a bus, the communication between each slave and the master is distinguished by adopting addresses, and the communication connection between the slaves adopts a daisy chain connection mode. The data bus of the master and the slave is a bidirectional interactive data bus, that is, after data communication is established between a certain slave and the master, the slave and the master can perform bidirectional interaction of data.
In order to realize automatic allocation of communication addresses of the slave machines, the hardware structure of a master-slave machine communication system is improved, namely bit lines and address lines are arranged between adjacent stages of equipment (the equipment comprises a master machine and the slave machines). The following is a brief description of the bit lines and address lines.
The bit line is used for the upper-level equipment to detect whether the lower-level equipment is in place or not, the lower-level equipment outputs the level, and the upper-level equipment detects the level. The number of bit lines can be determined according to actual needs, and optionally, the devices of adjacent stages are connected through one bit line. For example, as shown in fig. 1, one bit line (a connection between DI/I of the master and DI/O of the slave 1) is provided between the master and the slave 1, and the master detects whether the slave 1 is present on the basis of the bit line. DI denotes the port at the bit line connection, and for convenience of description it is directly denoted DI at the bit line,/followed by I denotes the input and/followed by O denotes the output. For example, a general input port is selected as the DI/I port on the master, and a general output port is selected as the DI/O port on the slave 1, so that the connection line between the DI/I port of the master and the DI/O port of the slave 1 is an on-bit line, i.e., an on-bit detection line.
The address line is used for the upper-level equipment to transmit a communication address to the lower-level equipment, the upper-level equipment outputs a level, and the lower-level equipment automatically identifies the communication address according to the received level. The number of the address lines is generally determined according to the number of the slaves that need to be connected and the encoding mode, for example, when the level is set by adopting a binary encoding method, if the master needs to control four slaves, two address lines may be set between the devices of adjacent stages. As shown in fig. 1, ADD represents a port to which an address line is connected, and for convenience of description, the address line is directly represented by an ADD + number,/following I represents an input, and/following O represents an output.
Then, the working principle of the daisy chain connected master-slave communication address distribution system is briefly introduced:
when the host detects that the first-level slave machine is in place through a first in-place line, a first communication address is distributed to the first-level slave machine, and the first communication address is sent to the first-level slave machine through a first address line; the first-level slave machine obtains the first communication address and carries out data communication with the host machine through the first communication address; when the nth-level slave machine detects that the (n + 1) th-level slave machine is in place through the (n + 1) th in-place bit line, the in-place information of the (n + 1) th-level slave machine is sent to the host machine in a data communication mode; when the host receives the in-place information of the (n + 1) th-level slave, allocating an (n + 1) th communication address to the (n + 1) th-level slave, and sending the (n + 1) th communication address to the nth-level slave in a data communication mode; the nth-level slave machine sends the n + 1-th communication address to the n + 1-level slave machine through an n + 1-th address line; the (n + 1) th slave computer obtains the (n + 1) th communication address, and performs data communication with the host computer by using the (n + 1) th communication address.
As shown in fig. 1, when the slave 1 (first-level slave) accesses the master, the DI/O port of the slave 1 outputs a level, which is transmitted to the DI/I port of the master through the bit line DI between the slave 1 and the master, and the master confirms that the slave 1 is in place after detecting the level of the DI/I port. The level output from the slave 1 may be set according to actual requirements, for example, the level output from the slave 1 is set to a high level, the master confirms that the slave 1 is in place when detecting that the DI/I port has the high level, or the level output from the slave 1 may be set to a low level, and the like.
The master can set a plurality of different communication addresses arbitrarily for being allocated to each slave, and each set communication address can be stored in the master in the form of a list and the like. When the master machine detects the existence of the slave machine 1 through the bit line, one address is automatically selected from a plurality of preset communication addresses to be used as the communication address of the slave machine 1, then the communication address of the slave machine 1 is sent to the slave machine 1, the slave machine 1 obtains the same communication address as the master machine, and the two can carry out data communication.
In one embodiment, as shown in fig. 1, after the master selects the communication address of the slave 1, the level of the ADD1/O to ADDn/O address ports connected to the respective address lines is set according to the communication address, and the set level of the ADD1/O to ADDn/O address ports is transmitted to the ADD1/I to ADDn/I address ports connected to the respective address lines of the slave 1 through the corresponding address lines. The host may use a predetermined encoding scheme, such as a binary encoding scheme, when setting the port level. The slave 1 reads the high and low level states of the ADD 1/I-ADDn/I address ports and translates the read high and low level states into corresponding communication addresses in a corresponding coding mode, so that the slave 1 obtains the same communication addresses as the master, and the two can carry out data communication. The slave 1 adopts an encoding mode when translating the communication address, and the encoding mode is adopted when the host sets the address port of the host.
The nth level slave is each slave including the first level slave. For convenience of understanding, the work flow of the master and the slaves will be described in the following order of obtaining the communication address from the slave 2 to establish data communication with the master and obtaining the communication address from the slave 3 to establish data communication with the master … ….
As shown in fig. 1, when the slave 2 (second-level slave) is connected to the slave 1, the DI/O port of the slave 2 outputs a level, which is transmitted to the DI/I port of the slave 1 through the on-bit line DI between the slave 2 and the slave 1, and the slave 1 checks that the slave 2 is present after detecting the DI/I port level, and transmits information that the slave 2 is present to the master in a data communication manner. The master machine allocates communication addresses to the slave machines 2 according to preset communication addresses, and transmits the allocated communication addresses to the slave machines 1 in a data communication mode, wherein the communication addresses of the slave machines 2 are different from the communication addresses of the slave machines 1.
The slave 1 receives the communication address allocated to the slave 2 by the master, transmits the communication address of the slave 2 to the slave 2, and the slave 2 obtains the same communication address as the master, so that the two can perform data communication. In one embodiment, as shown in fig. 1, when the slave 1 receives a communication address assigned by the master to the slave 2, the levels of the ADD1/O to ADDn/O address ports connected to the respective address lines are set according to the communication address, and the set levels of the ADD1/O to ADDn/O address ports are transmitted to the ADD1/I to ADDn/I address ports connected to the respective address lines of the slave 2 via the corresponding address lines. The slave 1 may adopt a preset encoding mode, such as a binary encoding mode, when setting the port level. The slave 2 reads the high-low level state of the ADD 1/I-ADDn/I address port, translates the read high-low level state into a corresponding communication address in a corresponding coding mode, and sets the detected communication address as the communication address of the slave 2, so that the slave 2 obtains the same communication address as the master, and the two can carry out data communication. The encoding method adopted when the slave 2 translates the communication address is the encoding method adopted when the slave 1 sets the address port of the slave 1.
In the same manner, the slave 3 (third-stage slave) reads the high/low level state of its ADD1/I to ADDn/I address port, and can acquire the address information assigned to it by the host, thereby realizing data communication with the host. In the same way, the slave machines can be expanded to N levels, the slave machine N obtains the communication address allocated to the slave machine N by reading the high-low level state of the ADD 1/I-ADDn/I address port of the slave machine N, and data communication with the master machine is achieved, wherein the communication addresses allocated to the slave machines by the master machine are different.
In the whole master-slave machine communication, the address allocation of the master machine and the address acquisition of the slave machine do not need manual setting, so that the addresses of the master machine and the corresponding slave machine are kept consistent, the engineering connection efficiency and accuracy are improved, and human errors are reduced.
The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings and preferred embodiments from the perspective of the first-level slave machine.
As shown in fig. 2, a daisy chain connected master-slave communication address allocation method includes the steps of:
s110, a first-level slave machine obtains a first communication address sent by a host machine through a first address line, and performs data communication with the host machine through the first communication address; the first communication address is a communication address allocated to a first-level slave machine when the host detects that the first-level slave machine is in place through a first in-bit line, and the host and the first-level slave machine are connected through the first address line and the first in-bit line;
s120, when the first-level slave machine detects that the second-level slave machine is in place through a second in-place line, the information that the second-level slave machine is in place is sent to the host machine in a data communication mode; the second-level slave machine and the first-level slave machine are connected through a second bit line and a second address line;
s130, the first-level slave machine receives a second communication address of the second-level slave machine returned by the host machine in a data communication mode, and sends the second communication address to the second-level slave machine through a second address line, so that the second-level slave machine performs data communication with the host machine through the second communication address.
The daisy chain connection master-slave communication address allocation method can be realized by corresponding programs, wherein the programs are operated in the first-level slave machines, and the first-level slave machines are slave machines connected with the master machine. In the whole communication address allocation process, after the communication addresses of the slave machines are allocated through the host machine, the address lines among the devices are sequentially transmitted to the next slave machine from the previous slave machine to be automatically identified, and manual setting is not needed, so that the accuracy of engineering installation is improved, and manual operation errors are avoided.
In step S110, the master and the slave may be communication devices such as a single chip microcomputer. In order to realize automatic allocation of slave communication addresses, bit lines and address lines are arranged between devices of adjacent stages. The bit line is used for the upper-level equipment to detect whether the lower-level equipment is in place or not, the lower-level equipment outputs the level, and the upper-level equipment detects the level. The number of bit lines can be determined according to actual needs, and optionally, the devices of adjacent stages are connected through one bit line. The address line is used for the upper-level equipment to transmit a communication address to the lower-level equipment, the upper-level equipment outputs a level, and the lower-level equipment automatically identifies the communication address according to the received level. The number of address lines is generally determined according to the number of slaves to be connected and the coding method.
As shown in fig. 1, when the slave 1 is connected to the master, the DI/O port of the slave 1 outputs a level, which is transmitted to the DI/I port of the master 1 through the bit line DI between the slave 1 and the master, and the master 1 confirms that the slave 1 is in place after detecting the level of the DI/I port. The level output from the slave 1 can be set according to actual needs.
When the master machine detects the existence of the slave machine 1 through the bit line, one address is automatically selected from preset communication addresses to be used as the communication address of the slave machine 1, then the communication address of the slave machine 1 is sent to the slave machine 1, the slave machine 1 obtains the same communication address as the master machine, and data communication can be carried out between the two.
In one embodiment, the step of the first-level slave obtaining the first communication address sent by the master through the first address line may include: the first-level slave machine reads the level of an address input port connected with a first address line; the level is set by the host according to a first communication address; and the first-level slave machine translates the level into a corresponding communication address to obtain a first communication address.
After the master selects the communication address of the slave 1, the level of the ADD 1/O-ADDn/O address ports connected with the address lines is set according to the communication address, and the set level of the ADD 1/O-ADDn/O address ports is transmitted to the ADD 1/I-ADDn/I address ports connected with the address lines of the slave 1 through the corresponding address lines. The host may use a predetermined encoding scheme, such as a binary encoding scheme, when setting the port level. The slave 1 reads the high and low level states of the ADD 1/I-ADDn/I address ports and translates the read high and low level states into corresponding communication addresses in a corresponding coding mode, so that the slave 1 obtains the same communication addresses as the master, and the two can carry out data communication. The slave 1 adopts an encoding mode when translating the communication address, and the encoding mode is adopted when the host sets the address port of the host.
In step S120, the slave 1 detects whether the slave 2 is present through the presence line connected to the slave 2. In one embodiment, the daisy chain connected master-slave communication address allocation method may further comprise the steps of: the first-level slave machine detects whether the second-level slave machine is in place through a second in-place line, and the method comprises the following steps: the first-level slave machine detects whether an in-place input port of the first-level slave machine receives a level sent by the second-level slave machine through a second in-place line; the in-place input port is a port for connecting the first-stage slave machine with the second in-place line; if the level is received, the first-level slave machine determines that the second-level slave machine is in place; otherwise, the first-level slave machine determines that the second-level slave machine is not in place.
As shown in fig. 1, when the slave 2 is connected to the slave 1, the DI/O port of the slave 2 outputs a level, which is transmitted to the DI/I port of the slave 1 through the bit line DI between the slave 2 and the slave 1, and the slave 1 checks that the slave 2 is present after detecting the DI/I port level, and transmits information that the slave 2 is present to the master in a data communication manner. If slave 1 does not detect the DI/I port level, it is confirmed that slave 2 is not in the bit and no operation is performed.
In step S130, after receiving the information of the presence of the slave 2 sent by the slave 1, the master allocates a communication address to the slave 2 and transmits the allocated communication address to the slave 1 in a data communication manner, where the communication address of the slave 2 is different from the communication address of the slave 1. The slave 1 receives the communication address allocated to the slave 2 by the master, transmits the communication address of the slave 2 to the slave 2 through the corresponding address line, and the slave 2 obtains the same communication address as the master, so that the two can perform data communication.
In one embodiment, the step of the first-level slave sending the second communication address to the second-level slave through the second address line may include:
the first-level slave machine sets the level of an address output port of the first-level slave machine according to the second communication address; the address output port is a port for connecting the first-stage slave machine and the second address line;
and the first-level slave machine sends the level of the address output port to the second-level slave machine through the second address line.
As shown in fig. 1, the slave 1 receives a communication address assigned by the master to the slave 2, sets the levels of the ADD1/O to ADDn/O address ports connected to the respective address lines based on the communication address, and transmits the set levels of the ADD1/O to ADDn/O address ports to the ADD1/I to ADDn/I address ports connected to the respective address lines of the slave 2 via the corresponding address lines. The slave 1 may adopt a preset encoding mode, such as a binary encoding mode, when setting the port level. The slave 2 reads the high-low level state of the ADD 1/I-ADDn/I address port, translates the read high-low level state into a corresponding communication address in a corresponding coding mode, and sets the detected communication address as the communication address of the slave 2, so that the slave 2 obtains the same communication address of the slave 2 as the master, and the two can carry out data communication. The encoding method adopted when the slave 2 translates the communication address is the encoding method adopted when the slave 1 sets the address port of the slave 1.
In the whole master-slave machine communication, the address allocation of the master machine and the address acquisition of the slave machine do not need manual setting, so that the addresses of the master machine and the corresponding slave machine are kept consistent, the engineering connection efficiency and accuracy are improved, and human errors are reduced.
Based on the same inventive concept, the invention also provides a slave machine, and the following detailed description of the specific embodiment of the slave machine is provided with the accompanying drawings.
As shown in fig. 3, a slave, which is a first-level slave, includes:
the communication establishing module 110 is configured to obtain a first communication address sent by a host through a first address line, and perform data communication with the host at the first communication address; the first communication address is a communication address allocated to a first-level slave machine when the host detects that the first-level slave machine is in place through a first in-bit line, and the host and the first-level slave machine are connected through the first address line and the first in-bit line;
the detecting module 120 is configured to send the information that the second-level slave machine is in place to the master machine in a data communication manner when detecting that the second-level slave machine is in place through a second in-place line; the second-level slave machine and the first-level slave machine are connected through a second bit line and a second address line;
the communication address forwarding module 130 is configured to receive a second communication address of the second-level slave that is returned by the master in a data communication manner, and send the second communication address to the second-level slave through a second address line, so that the second-level slave performs data communication with the master at the second communication address.
In order to realize automatic allocation of slave communication addresses, bit lines and address lines are arranged between devices of adjacent stages. The bit line is used for the upper-level equipment to detect whether the lower-level equipment is in place or not, the lower-level equipment outputs the level, and the upper-level equipment detects the level. The number of bit lines can be determined according to actual needs, and optionally, the devices of adjacent stages are connected through one bit line. The address line is used for the upper-level equipment to transmit a communication address to the lower-level equipment, the upper-level equipment outputs a level, and the lower-level equipment automatically identifies the communication address according to the received level. The number of address lines is generally determined according to the number of slaves to be connected and the coding method.
As shown in fig. 1, when the slave 1 is connected to the master, the DI/O port of the slave 1 outputs a level, which is transmitted to the DI/I port of the master 1 through the bit line DI between the slave 1 and the master, and the master 1 confirms that the slave 1 is in place after detecting the level of the DI/I port. The level output from the slave 1 can be set according to actual needs.
When the master machine detects that the slave machine 1 exists through the bit line, one address is automatically selected to be the communication address of the slave machine 1, then the communication address of the slave machine 1 is sent to the communication establishing module 110 of the slave machine 1, the slave machine 1 obtains the same communication address as the master machine, and the two can carry out data communication.
In one embodiment, the communication establishing module 110 reads a level of an address input port of the first-level slave connected to the first address line; the level is set by the host according to a first communication address; and translating the level into a corresponding communication address to obtain a first communication address.
The detection module 120 of the slave 1 detects whether the slave 2 is in place through the presence line connected to the slave 2. In one embodiment, the detection module 120 detects whether the bit input port of the first level slave receives a level sent by the second level slave through the second bit line; the on-position input port is a port for connecting the first-level slave machine with the second on-position line; when the level is received, determining that the second-level slave is in place; when the level is not received, it is determined that the second level slave is not in place.
After receiving the information of the slave 2 in place sent by the slave 1, the master allocates a communication address for the slave 2 and transmits the allocated communication address to the slave 1 in a data communication mode, wherein the communication address of the slave 2 is different from the communication address of the slave 1. The communication address forwarding module 130 of the slave 1 receives the communication address allocated by the master to the slave 2, transmits the communication address of the slave 2 to the slave 2 through the corresponding address line, and the slave 2 obtains the same communication address as the master, so that the two can perform data communication.
In one embodiment, the communication address forwarding module 130 sets a level of an address output port of the first-level slave according to the second communication address; the address output port is a port for connecting the first-stage slave machine and the second address line; and sending the level of the address output port to the second-level slave through a second address line.
In the whole master-slave machine communication, the address allocation of the master machine and the address acquisition of the slave machine do not need manual setting, so that the addresses of the master machine and the corresponding slave machine are kept consistent, the engineering connection efficiency and accuracy are improved, and human errors are reduced.
The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings and the preferred embodiments from the perspective of other slaves.
As shown in fig. 4, a daisy chain connected master-slave communication address allocation method includes the steps of:
s210, the nth-level slave machine obtains a communication address sent by the nth-1-level slave machine through the nth address line, and performs data communication with the host machine through the communication address; the communication address is acquired from the host when the nth-1-level slave machine detects that the nth-level slave machine is in place through an nth in-place line, the nth-level slave machine is connected with the nth-1-level slave machine through an nth address line and the nth in-place line, and n is an integer greater than 1;
s220, when the nth-level slave machine detects that the (n + 1) th-level slave machine is located through the (n + 1) th on-bit line, the (n + 1) th-level slave machine in-place information is sent to the host machine in a data communication mode; the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line;
and S230, the nth-level slave machine receives the communication address of the (n + 1) th-level slave machine returned by the host machine in a data communication mode, and sends the communication address of the (n + 1) th-level slave machine to the (n + 1) th-level slave machine through the (n + 1) th address line, so that the (n + 1) th-level slave machine performs data communication with the host machine through the communication address.
The above-described master-slave communication address allocation method for daisy chain connection may be implemented by a corresponding program that runs in other slaves except the first-stage slave. In the whole communication address allocation process, after the communication addresses of the slave machines are allocated through the host machine, the address lines among the devices are sequentially transmitted to the next slave machine from the previous slave machine to be automatically identified, and manual setting is not needed, so that the accuracy of engineering installation is improved, and manual operation errors are avoided.
In step S210, the master and the slave may be communication devices such as a single chip microcomputer. In order to realize automatic allocation of slave communication addresses, bit lines and address lines are arranged between devices of adjacent stages. The bit line is used for the upper-level equipment to detect whether the lower-level equipment is in place or not, the lower-level equipment outputs the level, and the upper-level equipment detects the level. The number of bit lines can be determined according to actual needs, and optionally, the devices of adjacent stages are connected through one bit line. The address line is used for the upper-level equipment to transmit a communication address to the lower-level equipment, the upper-level equipment outputs a level, and the lower-level equipment automatically identifies the communication address according to the received level. The number of address lines is generally determined according to the number of slaves to be connected and the coding method.
The (n-1) th level slave is a slave which realizes data communication with the master. When the nth slave accesses the nth-1 slave, the DI/O port of the nth slave outputs a level which is transmitted to the DI/I port of the nth-1 slave through the bit line DI between the nth slave and the nth-1 slave, and the nth-1 slave confirms that the nth slave is in place after detecting the DI/I port level. The level of the nth-stage slave output can be set according to actual needs.
When the n-1 level slave detects the existence of the n-level slave on a bit line, the in-place information of the n-level slave is sent to the host in a data communication mode, when the host receives the in-place information of the n-level slave, one address is automatically selected from preset communication addresses to be set as a communication address of the n-level slave, then the communication address of the n-level slave is sent to the n-1 level slave in a data communication mode, the n-1 level slave sends the communication address of the n-level slave to the n-level slave through a corresponding address line, and the n-level slave obtains the same communication address as the host, so that data communication can be carried out between the n-level slave and the host.
In one embodiment, the step of obtaining the communication address sent by the nth level slave machine through the nth address line by the nth level slave machine may include: the nth slave reads the level of an address input port connected with the nth address line; the level of the address input port is the level set by the nth-1 level slave machine according to the communication address of the nth level slave machine; the nth level slave machine translates the level of the address input port into a corresponding communication address, and obtains the communication address of the nth level slave machine.
After the n-1 th-level slave receives the communication address distributed by the master to the n-th-level slave, the level of the ADD 1/O-ADDn/O address port connected with each address line is set according to the communication address, and the set level of the ADD 1/O-ADDn/O address port is transmitted to the ADD 1/I-ADDn/I address port connected with each address line of the n-th-level slave through the corresponding address line. The n-1 th level slave machine may adopt a preset encoding mode, such as a binary encoding mode, when setting the port level. The nth slave reads the high and low level states of the ADD 1/I-ADDn/I address ports and translates the read high and low level states into corresponding communication addresses in a corresponding coding mode, so that the nth slave obtains the same communication address as the host, and the nth slave and the host can perform data communication. And the encoding mode adopted when the nth level slave machine translates the communication address is the encoding mode adopted when the nth-1 level slave machine sets the address port of the nth-1 level slave machine.
In step S220, the nth level slave detects whether the (n + 1) th level slave is present through an in-bit line connected to the (n + 1) th level slave. In one embodiment, the daisy chain connected master-slave communication address allocation method may further comprise the steps of: the nth level slave machine detects whether the nth +1 level slave machine is in place through the (n + 1) th in-place bit line, and the method comprises the following steps: the nth-level slave machine detects whether the nth-level slave machine receives the level sent by the nth + 1-level slave machine through the nth + 1-level bit line or not at a bit input port (DI/I); the on-position input port is a port for connecting the nth-level slave machine and the (n + 1) th on-position line; if the level is received, determining that the (n + 1) th level slave machine is in place; otherwise, the n +1 th level slave is determined not to be in place.
When the n +1 th level slave machine is accessed to the nth level slave machine, the DI/O port of the n +1 th level slave machine outputs the level, the level is transmitted to the DI/I port of the nth level slave machine through the bit line DI between the n +1 th level slave machine and the nth level slave machine, after the nth level slave machine detects the level of the DI/I port, the n +1 th level slave machine is confirmed to be in place, and the in-place information of the n +1 th level slave machine is transmitted to the host machine. And if the nth slave does not detect the DI/I port level, confirming that the (n + 1) th slave is not in place and not executing any operation.
In step S230, after receiving the information that the n +1 th slave is in place, which is sent by the nth slave, the master allocates a communication address to the n +1 th slave and transmits the allocated communication address to the nth slave in a data communication manner. The nth slave receives the communication address distributed by the host to the (n + 1) th slave, the communication address of the (n + 1) th slave is sent to the (n + 1) th slave through the corresponding address line, the (n + 1) th slave obtains the same communication address as the host, and the two can carry out data communication.
In one embodiment, the step of the nth level slave transmitting the communication address of the (n + 1) th level slave to the (n + 1) th level slave through the (n + 1) th address line may include:
the nth level slave sets the level of an address output port of the nth level slave according to the communication address of the (n + 1) th level slave; the address output port is a port for connecting the nth-level slave machine with the (n + 1) th address line;
and the nth slave transmits the level of the address output port to the (n + 1) th slave through the (n + 1) th address line.
The nth slave receives the communication address distributed by the master for the (n + 1) th slave, sets the level of the ADD 1/O-ADDn/O address port connected with each address line according to the communication address, and transmits the set level of the ADD 1/O-ADDn/O address port to the ADD 1/I-ADDn/I address port connected with each address line of the (n + 1) th slave through the corresponding address line. The nth-level slave machine may adopt a preset encoding mode, such as a binary encoding mode, when setting the port level. The (n + 1) th slave reads the high-low level state of the ADD 1/I-ADDn/I address port, translates the read high-low level state into a corresponding communication address in a corresponding coding mode, and sets the detected communication address as the communication address of the (n + 1) th slave, so that the (n + 1) th slave obtains the same communication address as the master, and the (n + 1) th slave and the master can carry out data communication. The coding mode adopted when the (n + 1) th level slave machine translates the communication address is the coding mode adopted when the nth level slave machine sets the address port of the nth level slave machine.
In the whole master-slave machine communication, the address allocation of the master machine and the address acquisition of the slave machine do not need manual setting, so that the addresses of the master machine and the corresponding slave machine are kept consistent, the engineering connection efficiency and accuracy are improved, and human errors are reduced.
Based on the same inventive concept, the invention also provides another slave machine, and the detailed description of the embodiment of the other slave machine is described in detail below with reference to the attached drawings.
As shown in fig. 5, a slave, where the slave is an nth-level slave, and n is an integer greater than 1, includes:
the communication establishing module 210 is configured to obtain a communication address sent by the nth address line from the nth-1 level slave, and perform data communication with the host through the communication address; the communication address is acquired from the host when the nth-1-level slave machine detects that the nth-level slave machine is in place through an nth in-place line, and the nth-level slave machine is connected with the nth-1-level slave machine through an nth address line and the nth in-place line;
the detection module 220 is configured to send in-place information of an n +1 th slave to the host in a data communication manner when detecting that an n +1 th slave is in place through an n +1 th in-place bit line; the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line;
the communication address forwarding module 230 is configured to receive a communication address of the (n + 1) th slave machine returned by the host in a data communication manner, and send the communication address of the (n + 1) th slave machine to the (n + 1) th slave machine through the (n + 1) th address line, so that the (n + 1) th slave machine performs data communication with the host through the communication address of the n +1 th slave machine.
The host and the slave can be communication equipment such as a singlechip and the like. In order to realize automatic allocation of slave communication addresses, bit lines and address lines are arranged between devices of adjacent stages. The bit line is used for the upper-level equipment to detect whether the lower-level equipment is in place or not, the lower-level equipment outputs the level, and the upper-level equipment detects the level. The number of bit lines can be determined according to actual needs, and optionally, the devices of adjacent stages are connected through one bit line. The address line is used for the upper-level equipment to transmit a communication address to the lower-level equipment, the upper-level equipment outputs a level, and the lower-level equipment automatically identifies the communication address according to the received level. The number of address lines is generally determined according to the number of slaves to be connected and the coding mode.
When the nth slave accesses the nth-1 slave, the DI/O port of the nth slave outputs a level which is transmitted to the DI/I port of the nth-1 slave through the bit line DI between the nth slave and the nth-1 slave, and the nth-1 slave confirms that the nth slave is in place after detecting the DI/I port level. The level of the nth-stage slave output can be set according to actual needs.
When the n-1 level slave detects the existence of the n-level slave on a bit line, the in-place information of the n-level slave is sent to the host in a data communication mode, when the host receives the in-place information of the n-level slave, an address is automatically selected to be a communication address of the n-level slave, then the communication address of the n-level slave is sent to the n-1 level slave in a data communication mode, the n-1 level slave sends the communication address of the n-level slave to the communication establishing module 210 of the n-level slave through a corresponding address line, and the n-level slave obtains the same communication address as the host, so that the data communication can be carried out between the n-level slave and the host.
In one embodiment, the communication establishing module 210 reads a level of an address input port of the nth-level slave connected with the nth address line; the level of the address input port is the level set by the nth-1 level slave machine according to the communication address of the nth level slave machine; and translating the level of the address input port into a corresponding communication address to obtain the communication address of the nth level slave.
The detection module 220 of the nth slave detects whether the (n + 1) th slave is in place through an in-place line connected with the (n + 1) th slave. In one embodiment, the detection module 220 detects whether a bit input port (DI/I) of the nth slave receives a level transmitted by the nth +1 slave on the bit line; the on-position input port is a port for connecting the nth-level slave machine and the (n + 1) th on-position line; when the level is received, determining that the (n + 1) th level slave is in place; when the level is not received, the n +1 th level slave is determined not to be in place.
After receiving the in-place information of the (n + 1) th slave machine sent by the nth slave machine, the master machine allocates a communication address to the (n + 1) th slave machine, and transmits the allocated communication address to the communication address forwarding module 230 of the nth slave machine in a data communication manner. The communication address forwarding module 230 of the nth slave receives the communication address allocated by the master to the (n + 1) th slave, and sends the communication address of the (n + 1) th slave to the (n + 1) th slave through the corresponding address line, and the (n + 1) th slave obtains the same communication address as the master, so that the two can perform data communication.
In one embodiment, the communication address forwarding module 230 sets a level of an address output port of the nth level slave according to a communication address of the (n + 1) th level slave; the address output port is a port for connecting the nth-level slave machine with the (n + 1) th address line; and transmitting the level of the address output port to the (n + 1) th-level slave machine through the (n + 1) th address line.
In the whole master-slave machine communication, the address allocation of the master machine and the address acquisition of the slave machine do not need manual setting, so that the addresses of the master machine and the corresponding slave machine are kept consistent, the engineering connection efficiency and accuracy are improved, and human errors are reduced.
The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings and the preferred embodiments from the perspective of the host.
As shown in fig. 6, a daisy chain connected master-slave communication address allocation method includes the steps of:
s310, when the host detects that a first-level slave machine is in place through a first in-place line, a first communication address is distributed to the first-level slave machine, and the first communication address is sent to the first-level slave machine through a first address line, so that the first-level slave machine performs data communication with the host through the first communication address; the host and the first-level slave are connected through a first on-bit line and a first address line;
s320, when the host receives information sent when the nth-level slave machine detects that the (n + 1) th-level slave machine is in place through an (n + 1) th in-place bit line, the host allocates an (n + 1) th communication address for the nth +1 th-level slave machine and sends the (n + 1) th communication address to the nth-level slave machine in a data communication mode, so that the nth-level slave machine sends the (n + 1) th communication address to the n +1 th-level slave machine through an (n + 1) th address line; the information is transmitted in a data communication mode, the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line, and n is an integer greater than or equal to 1.
The daisy chain connection master-slave communication address allocation method can be realized by corresponding programs, and the programs are operated in the host. In the whole communication address allocation process, after the communication addresses of the slave machines are allocated through the host machine, the address lines among the devices are sequentially transmitted to the next slave machine from the previous slave machine to be automatically identified, and manual setting is not needed, so that the accuracy of engineering installation is improved, and manual operation errors are avoided.
In step S310, the master and the slave may be communication devices such as a single chip microcomputer. In order to realize automatic allocation of slave communication addresses, bit lines and address lines are arranged between devices of adjacent stages. The bit line is used for the upper-level equipment to detect whether the lower-level equipment is in place or not, the lower-level equipment outputs the level, and the upper-level equipment detects the level. The number of bit lines can be determined according to actual needs, and optionally, the devices of adjacent stages are connected through one bit line. The address line is used for the upper-level equipment to transmit a communication address to the lower-level equipment, the upper-level equipment outputs a level, and the lower-level equipment automatically identifies the communication address according to the received level. The number of address lines is generally determined according to the number of slaves to be connected and the coding method.
As shown in fig. 1, when the slave 1 is connected to the master, the DI/O port of the slave 1 outputs a level, which is transmitted to the DI/I port of the master 1 through the bit line DI between the slave 1 and the master, and the master 1 confirms that the slave 1 is in place after detecting the level of the DI/I port. The level output from the slave 1 can be set according to actual needs.
When the master machine detects the existence of the slave machine 1 through the bit line, one address is automatically selected to be the communication address of the slave machine 1, then the communication address of the slave machine 1 is sent to the slave machine 1, the slave machine 1 obtains the same communication address with the master machine, and the two can carry out data communication.
In one embodiment, as shown in fig. 1, after the master selects the communication address of the slave 1, the level of the ADD1/O to ADDn/O address ports connected to the respective address lines is set according to the communication address, and the set level of the ADD1/O to ADDn/O address ports is transmitted to the ADD1/I to ADDn/I address ports connected to the respective address lines of the slave 1 through the corresponding address lines. The host may use a predetermined encoding scheme, such as a binary encoding scheme, when setting the port level. The slave 1 reads the high and low level states of the ADD 1/I-ADDn/I address ports and translates the read high and low level states into corresponding communication addresses in a corresponding coding mode, so that the slave 1 obtains the same communication address of the slave 1 as the master, and the slave 1 and the master can perform data communication. The slave 1 adopts an encoding mode when translating the communication address, and the encoding mode is adopted when the host sets the address port of the host.
In step S320, the nth slave is a slave that has obtained a communication address and realizes data communication with the master, and n is greater than or equal to 1. When the n +1 th level slave machine is accessed to the nth level slave machine, the DI/O port of the n +1 th level slave machine outputs the level, the level is transmitted to the DI/I port of the nth level slave machine through the bit line DI between the n +1 th level slave machine and the nth level slave machine, after the nth level slave machine detects the level of the DI/I port, the presence of the n +1 th level slave machine is confirmed, and the information of the n +1 th level slave machine is transmitted to the host machine in a data communication mode. The master machine allocates a communication address for the n +1 th-level slave machine, and simultaneously transmits the allocated communication address to the nth-level slave machine in a data communication mode.
The nth slave receives the communication address distributed by the host to the (n + 1) th slave, the communication address of the (n + 1) th slave is sent to the (n + 1) th slave through the corresponding address line, the (n + 1) th slave obtains the same communication address as the host, and the two can carry out data communication. In one embodiment, the nth slave receives a communication address assigned by the master to the (n + 1) th slave, sets the levels of ADD1/O to ADDn/O address ports connected to the respective address lines according to the communication address, and transmits the set levels of the ADD1/O to ADDn/O address ports to ADD1/I to ADDn/I address ports connected to the respective address lines of the nth +1 slave via the corresponding address lines. The nth-level slave machine may adopt a preset encoding mode, such as a binary encoding mode, when setting the port level. The (n + 1) th slave reads the high-low level state of the ADD 1/I-ADDn/I address port, translates the read high-low level state into a corresponding communication address in a corresponding coding mode, and sets the detected communication address as the communication address of the (n + 1) th slave, so that the (n + 1) th slave obtains the same communication address as the master, and the (n + 1) th slave and the master can carry out data communication. The coding mode adopted when the (n + 1) th level slave machine translates the communication address is the coding mode adopted when the nth level slave machine sets the address port of the nth level slave machine.
In the whole master-slave machine communication, the address allocation of the master machine and the address acquisition of the slave machine do not need manual setting, so that the addresses of the master machine and the corresponding slave machine are kept consistent, the engineering connection efficiency and accuracy are improved, and human errors are reduced.
Based on the same inventive concept, the invention also provides a host, and the detailed description of the host of the invention is provided below with reference to the accompanying drawings.
As shown in fig. 7, a host, comprising:
the first communication establishing module 310 is configured to, when it is detected that a first-level slave is in place through a first in-place line, allocate a first communication address to the first-level slave, and send the first communication address to the first-level slave through a first address line, so that the first-level slave performs data communication with a host through the first communication address; the host and the first-level slave are connected through a first on-bit line and a first address line;
the second communication establishing module 320 is configured to, when receiving information sent when the nth slave device detects that the (n + 1) th slave device is in place through the (n + 1) th in-place bit line, allocate an (n + 1) th communication address to the nth +1 th slave device, and send the (n + 1) th communication address to the nth slave device in a data communication manner, so that the nth slave device sends the (n + 1) th communication address to the (n + 1) th slave device through the (n + 1) th address line; the information is transmitted in a data communication mode, the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line, and n is an integer greater than or equal to 1.
The host and the slave can be communication equipment such as a singlechip and the like. In order to realize automatic allocation of slave communication addresses, bit lines and address lines are arranged between devices of adjacent stages. The bit line is used for the upper-level equipment to detect whether the lower-level equipment is in place or not, the lower-level equipment outputs the level, and the upper-level equipment detects the level. The number of bit lines can be determined according to actual needs, and optionally, the devices of adjacent stages are connected through one bit line. The address line is used for the upper-level equipment to transmit a communication address to the lower-level equipment, the upper-level equipment outputs a level, and the lower-level equipment automatically identifies the communication address according to the received level. The number of address lines is generally determined according to the number of slaves to be connected and the coding method.
As shown in fig. 1, when the slave 1 is connected to the master, the DI/O port of the slave 1 outputs a level, which is transmitted to the DI/I port of the master 1 through the bit line DI between the slave 1 and the master, and the master 1 confirms that the slave 1 is in place after detecting the level of the DI/I port. The level output from the slave 1 can be set according to actual needs.
When the first communication establishing module 310 of the master detects the existence of the slave 1 on the bit line, an address is automatically selected as the communication address of the slave 1, then the communication address of the slave 1 is sent to the slave 1, the slave 1 obtains the same communication address as the master, and the two can carry out data communication.
The nth level slave machine is the slave machine which already obtains the communication address and realizes data communication with the host machine. When the n +1 th slave accesses the nth slave, the DI/O port of the n +1 th slave outputs a level, and the level is transmitted to the DI/I port of the nth slave through the bit line DI between the n +1 th slave and the nth slave, and after the nth slave detects the level of the DI/I port, it confirms that the n +1 th slave is in place, and transmits the information of the n +1 th slave to the second communication establishing module 320 of the master in a data communication manner. The second communication establishing module 320 allocates a communication address to the n +1 th-level slave and transmits the allocated communication address to the nth-level slave in a data communication manner.
The nth slave receives the communication address distributed by the master for the (n + 1) th slave, the communication address of the (n + 1) th slave is sent to the (n + 1) th slave, the (n + 1) th slave obtains the same communication address as the master, and the two can carry out data communication. In one embodiment, the nth slave receives a communication address assigned by the master to the (n + 1) th slave, sets the levels of ADD1/O to ADDn/O address ports connected to the respective address lines according to the communication address, and transmits the set levels of the ADD1/O to ADDn/O address ports to ADD1/I to ADDn/I address ports connected to the respective address lines of the nth +1 slave via the corresponding address lines. The nth-level slave machine may adopt a preset encoding mode, such as a binary encoding mode, when setting the port level. The (n + 1) th slave reads the high-low level state of the ADD 1/I-ADDn/I address port, translates the read high-low level state into a corresponding communication address in a corresponding coding mode, and sets the detected communication address as the communication address of the (n + 1) th slave, so that the (n + 1) th slave obtains the same communication address as the master, and the (n + 1) th slave and the master can carry out data communication. The coding mode adopted when the (n + 1) th level slave machine translates the communication address is the coding mode adopted when the nth level slave machine sets the address port of the nth level slave machine.
In the whole master-slave machine communication, the address allocation of the master machine and the address acquisition of the slave machine do not need manual setting, so that the addresses of the master machine and the corresponding slave machine are kept consistent, the engineering connection efficiency and accuracy are improved, and human errors are reduced.
For a better understanding of the present invention, reference is made to the following detailed description taken in conjunction with a specific embodiment.
As shown in fig. 8, in this example, 1 monitoring master (i.e., master) and 4 monitoring slaves (i.e., slaves) are connected, a bit line DI, two address lines ADD1 and ADD2 are provided between monitoring master and monitoring slave 1, a bit line DI, two address lines ADD1 and ADD2 are provided between monitoring slave 1 and monitoring slave 2, a bit line DI, two address lines ADD1 and ADD2 are provided between monitoring slave 2 and monitoring slave 3, and a bit line DI, two address lines ADD1 and ADD2 are provided between monitoring slave 3 and monitoring slave 4. The level is output from the next stage on the bit line DI, and the detection is carried out by the previous stage; the address line is output by the upper stage, and the lower stage detects the address line; the master-slave machine data bus is a bidirectional interactive data bus.
As shown in fig. 9, when the monitoring slave 1 is connected to the master, the monitoring slave 1 outputs DI level from its DI/O port, and the DI level is transmitted to the DI/I port of the monitoring master through the DI bit line. After the DI level is detected by the monitoring master, the next level of slave is considered to be available, an address (such as 00) is allocated to the monitoring slave 1, the port levels of ADD1/O and ADD2/O are output to be low levels, and the low levels of ADD1/O and ADD2/O are transmitted to an ADD1/I port and an ADD2/I port of the monitoring slave 1 through corresponding address lines. When the monitoring slave 1 detects that the levels of its ADD1/I port and ADD2/I port are low, the communication address is written to 00. Therefore, the communication addresses of the master machine and the first-level slave machine are the same, and the master machine and the slave machine can realize data communication through the bus.
When the monitoring slave 1 detects that the monitoring slave 2 is connected in place through the bit line DI, the monitoring slave 1 informs the monitoring master of the in-place information of the monitoring slave 2 in a data communication mode. The monitoring master assigns communication addresses, such as 01(ADD2/O equals 0, ADD1/O equals 1), to the monitoring slave 2, and transmits address information of the monitoring slave 2 to the monitoring slave 1 in a data communication manner. After the monitoring slave 1 obtains the address information, the ADD2/O port and the ADD1/O port are respectively set to be low level and high level, and the levels of the ADD1/O port and the ADD2/O port of the monitoring slave 1 are transmitted to the ADD1/I port and the ADD2/I port of the monitoring slave 2 through corresponding address lines. The monitoring slave 2 detects that the ADD1/I port and the ADD2/I port of the monitoring slave 2 are respectively in a high level and a low level, the communication address is written as 01 and is the same as the communication address of the slave 2 in the master, and therefore the monitoring master and the monitoring slave 2 can achieve data communication through the bus.
When the monitoring slave 2 detects that the monitoring slave 3 is connected in place through the bit line DI, the monitoring slave 2 informs the monitoring master of the in-place information of the monitoring slave 3 in a data communication mode. The monitoring master assigns communication addresses, such as 10(ADD2/O equals 1, ADD1/O equals 0), to the monitoring slave 3, and transmits address information of the monitoring slave 3 to the monitoring slave 2 in a data communication manner. After the monitoring slave 2 obtains the address information, the ADD2/O port and the ADD1/O port are respectively set to be high level and low level, and the levels of the ADD1/O port and the ADD2/O port of the monitoring slave 2 are transmitted to the ADD1/I port and the ADD2/I port of the monitoring slave 3 through corresponding address lines. The monitoring slave 3 detects that the ADD1/I port and the ADD2/I port are respectively in low level and high level, the communication address is written to be 10 and is the same as the communication address of the slave 3 in the master, and therefore the monitoring master and the monitoring slave 3 can realize data communication through the bus.
When the monitoring slave 3 detects that the monitoring slave 4 is connected in place through the bit line DI, the monitoring slave 3 informs the monitoring master of the in-place information of the monitoring slave 4 in a data communication mode. The monitoring master assigns communication addresses, such as 11(ADD2/O equals 1, ADD1/O equals 1) to the monitoring slave 4, and transmits address information of the monitoring slave 4 to the monitoring slave 3 in a data communication mode. After the monitoring slave 3 obtains the address information, the ADD2/O port and the ADD1/O port are respectively set to be high level and high level, and the levels of the ADD1/O port and the ADD2/O port of the monitoring slave 3 are transmitted to the ADD1/I port and the ADD2/I port of the monitoring slave 4 through corresponding address lines. The monitoring slave 4 detects that the ADD1/I port and the ADD2/I port of the monitoring slave are respectively in a high level and a high level, the communication address is written to be 11 and is the same as the communication address of the slave 4 in the master, and therefore the monitoring master and the monitoring slave 4 can achieve data communication through the bus.
According to the daisy chain connected master-slave communication address allocation method and system, the slave machines and the host machine, after the addresses of the slave machines are allocated through the host machine, the addresses of the slave machines are sequentially transmitted to the next slave machine from the previous slave machine through the connecting line between the devices for automatic identification, manual setting is not needed, automatic allocation of the addresses of the slave machines connected through the daisy chain by the host machine is realized, so that the engineering efficiency and the accuracy are improved, the accuracy and the convenience of address setting are improved, manual operation errors are reduced, communication errors caused by the manual setting errors are avoided, and the addresses can be allocated randomly by the host machine and are not controlled by hardware.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A daisy chain connected master-slave communication address assignment method, comprising the steps of:
the first-level slave machine obtains a first communication address sent by a host machine through a first address line, and performs data communication with the host machine through the first communication address; the first communication address is a communication address allocated to a first-level slave machine when the host detects that the first-level slave machine is in place through a first in-bit line, and the host and the first-level slave machine are connected through the first address line and the first in-bit line;
when the first-level slave machine detects that the second-level slave machine is in place through a second in-place line, the in-place information of the second-level slave machine is sent to the host machine in a data communication mode; the second-level slave machine and the first-level slave machine are connected through a second bit line and a second address line;
the first-level slave machine receives a second communication address of the second-level slave machine returned by the host in a data communication mode, and sends the second communication address to the second-level slave machine through a second address line, so that the second-level slave machine and the host are in data communication at the second communication address;
the host is respectively connected with the first-level slave machine and the second-level slave machine through a bidirectional interactive master-slave machine data bus.
2. The daisy chain connected master-slave communication address assignment method of claim 1, wherein the step of the first level slave obtaining the first communication address sent by the master via the first address line comprises:
reading the level of an address input port connected with a first address line by a first-level slave machine, wherein the level is set by the host according to a first communication address;
and the first-level slave machine translates the level into a corresponding communication address to obtain a first communication address.
3. The daisy chain connected master-slave communication address assignment method of claim 2, wherein the step of the first level slave sending the second communication address to the second level slave via the second address line comprises:
the first-level slave machine sets the level of an address output port of the first-level slave machine according to the second communication address; the address output port is a port for connecting the first-stage slave machine and the second address line;
and the first-level slave machine sends the level of the address output port to the second-level slave machine through the second address line.
4. A daisy chain connected master-slave communications address assignment method according to any one of claims 1 to 3, further comprising the steps of: the first-level slave machine detects whether the second-level slave machine is in place through a second in-place line, and the method comprises the following steps:
the first-level slave machine detects whether an in-place input port of the first-level slave machine receives a level sent by the second-level slave machine through a second in-place line; the in-place input port is a port for connecting the first-stage slave machine with the second in-place line;
if the level is received, the first-level slave machine determines that the second-level slave machine is in place; otherwise, the first-level slave machine determines that the second-level slave machine is not in place.
5. A daisy chain connected master-slave communication address assignment method, comprising the steps of:
the nth-level slave machine obtains a communication address sent by the nth-1-level slave machine through the nth address line, and performs data communication with the host machine through the communication address; the communication address is acquired from the host when the nth-1-level slave machine detects that the nth-level slave machine is in place through an nth in-place line, the nth-level slave machine is connected with the nth-1-level slave machine through an nth address line and the nth in-place line, and n is an integer greater than 1;
when the nth-level slave machine detects that the (n + 1) th-level slave machine is in place through the (n + 1) th in-place bit line, the in-place information of the (n + 1) th-level slave machine is sent to the host machine in a data communication mode; the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line;
and the nth-level slave receives the communication address of the (n + 1) th-level slave returned by the host in a data communication mode, and sends the communication address of the (n + 1) th-level slave to the (n + 1) th-level slave through the (n + 1) th address line, so that the (n + 1) th-level slave performs data communication with the host by using the communication address.
6. A daisy chain connected master-slave communication address assignment method, comprising the steps of:
when the host detects that a first-level slave machine is in place through a first in-place line, a first communication address is distributed to the first-level slave machine, and the first communication address is sent to the first-level slave machine through a first address line, so that the first-level slave machine performs data communication with the host through the first communication address; the host and the first-level slave are connected through a first on-bit line and a first address line;
when the host receives information sent by the nth-level slave machine when the nth + 1-level slave machine detects that the nth + 1-level slave machine is in place through an n +1 th on-bit line, the host allocates an n +1 th communication address for the nth + 1-level slave machine and sends the n +1 th communication address to the nth-level slave machine in a data communication mode, so that the nth-level slave machine sends the n +1 th communication address to the n + 1-level slave machine through an n +1 th address line; the information is transmitted in a data communication mode, the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line, and n is an integer greater than or equal to 1.
7. A slave machine, wherein the slave machine is a first-level slave machine, comprising:
the communication establishing module is used for acquiring a first communication address sent by a host through a first address line and carrying out data communication with the host through the first communication address; the first communication address is a communication address allocated to a first-level slave machine when the host detects that the first-level slave machine is in place through a first in-bit line, and the host and the first-level slave machine are connected through the first address line and the first in-bit line;
the detection module is used for sending the in-place information of the second-level slave to the host in a data communication mode when detecting that the second-level slave is in place through a second in-place line; the second-level slave machine and the first-level slave machine are connected through a second bit line and a second address line;
and the communication address forwarding module is used for receiving a second communication address of the second-level slave machine returned by the host in a data communication mode, and sending the second communication address to the second-level slave machine through a second address line so as to enable the second-level slave machine to perform data communication with the host by using the second communication address.
8. A slave that is an nth-level slave, n being an integer greater than 1, comprising:
the communication establishing module is used for obtaining a communication address sent by the nth-1 level slave machine through the nth address line and carrying out data communication with the host machine through the communication address; the communication address is acquired from the host when the nth-1-level slave machine detects that the nth-level slave machine is in place through an nth in-place line, and the nth-level slave machine is connected with the nth-1-level slave machine through an nth address line and the nth in-place line;
the detection module is used for sending the in-place information of the (n + 1) th-level slave to the host in a data communication mode when the (n + 1) th-level slave is detected to be in place through the (n + 1) th in-place bit line; the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line;
and the communication address forwarding module is used for receiving the communication address of the (n + 1) th-level slave machine returned by the host machine in a data communication mode, and sending the communication address of the (n + 1) th-level slave machine to the (n + 1) th-level slave machine through an (n + 1) th address line so as to enable the (n + 1) th-level slave machine to carry out data communication with the host machine through the communication address of the (n + 1) th-level slave machine.
9. A host, comprising:
the first communication establishing module is used for allocating a first communication address to a first-level slave machine when detecting that the first-level slave machine is in place through a first in-place line, and sending the first communication address to the first-level slave machine through a first address line so that the first-level slave machine performs data communication with a host machine through the first communication address; the host and the first-level slave are connected through a first on-bit line and a first address line;
the second communication establishing module is used for allocating an n +1 th communication address to the n +1 th slave and sending the n +1 th communication address to the n +1 th slave in a data communication mode when receiving information sent by the n +1 th slave when the n +1 th slave detects that the n +1 th slave is in place through an n +1 th in-place line, so that the n +1 th communication address is sent to the n +1 th slave by the n +1 th slave; the information is transmitted in a data communication mode, the nth-level slave machine and the (n + 1) th-level slave machine are connected through an (n + 1) th address line and a bit line, and n is an integer greater than or equal to 1.
10. A daisy chain connected master-slave communication address distribution system comprises a master machine and an N-level slave machine, and is characterized in that the master machine is connected with a first level slave machine through a first on bit line and a first address line, and an nth level slave machine is connected with an N +1 th level slave machine through an N +1 th on bit line and an N +1 th address line; n is an integer of 1 or more and less than N;
when the host detects that the first-level slave machine is in place through a first in-place line, a first communication address is distributed to the first-level slave machine, and the first communication address is sent to the first-level slave machine through a first address line;
the first-level slave machine obtains the first communication address and carries out data communication with the host machine through the first communication address;
when the nth-level slave machine detects that the (n + 1) th-level slave machine is in place through the (n + 1) th in-place bit line, the in-place information of the (n + 1) th-level slave machine is sent to the host machine in a data communication mode;
when the host receives the in-place information of the (n + 1) th-level slave, allocating an (n + 1) th communication address to the (n + 1) th-level slave, and sending the (n + 1) th communication address to the nth-level slave in a data communication mode;
the nth-level slave machine sends the n + 1-th communication address to the n + 1-level slave machine through an n + 1-th address line;
the (n + 1) th slave computer obtains the (n + 1) th communication address, and performs data communication with the host computer by using the (n + 1) th communication address.
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 CN107133188A (en) 2017-09-05
CN107133188B true 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)

Families Citing this family (15)

* 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
CN109067633B (en) * 2018-10-22 2024-04-16 泛亚电子工业(无锡)有限公司 Power management system and method based on Ethernet daisy chain communication network topology
CN109672600B (en) * 2018-12-27 2021-11-16 北京航天飞腾装备技术有限责任公司 On-missile single-machine interconnection system
CN110267220B (en) * 2019-04-30 2021-11-02 泉州维盾电气有限公司 System and method for serial networking data communication of single-host wireless equipment
CN110290227B (en) * 2019-05-28 2022-07-29 广州大学 Dynamic distribution method, system and storage medium for integrated circuit bus address
CN110247997B (en) * 2019-06-26 2020-12-15 三维通信股份有限公司 Method, device and storage medium for IP address allocation and topology management in DAS system
CN110647478B (en) * 2019-09-26 2021-03-02 北京兴达智联科技有限公司 Method and system for setting serial communication equipment address
CN110647127B (en) * 2019-10-17 2021-05-11 厦门高瑞特电气自动化有限公司 Module combined power process control device and initialization configuration method thereof
CN111541597B (en) * 2020-04-20 2022-03-11 广州致远电子有限公司 Automatic numbering method and system for parallel connection
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
CN115580596B (en) * 2022-11-24 2023-03-10 合肥华思系统有限公司 Automatic battery cluster address distribution system and method based on chain connection
CN116582520B (en) * 2023-07-13 2023-11-14 天津宜科自动化股份有限公司 Address information distribution system based on RS485 protocol
CN116684389B (en) * 2023-08-02 2023-10-31 苏州路之遥科技股份有限公司 Address automatic allocation method and host, slave and communication equipment with same

Citations (4)

* 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
CN103246627A (en) * 2012-02-03 2013-08-14 施耐德电器工业公司 Multi-stage subordinate serial communication system and method capable of automatically allocating addresses
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

Family Cites Families (3)

* 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
CN102868780A (en) * 2012-09-07 2013-01-09 深圳睿立方智能科技有限公司 RS-485 slave computer addressing network system and addressing method thereof
US20150104673A1 (en) * 2013-10-10 2015-04-16 Datang Nxp Semiconductors Co., Ltd. Daisy-chain communication bus and protocol

Patent Citations (4)

* 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
CN103246627A (en) * 2012-02-03 2013-08-14 施耐德电器工业公司 Multi-stage subordinate serial communication system and method capable of automatically allocating addresses
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

Also Published As

Publication number Publication date
CN107133188A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
CN107133188B (en) Daisy chain connected master-slave communication address distributing method, system and slave computer and master computer
CN112291387B (en) Method, device and equipment for automatically addressing master and slave machines and storage medium
CN107590099A (en) A kind of more main frames access method, expanding unit and the storage medium of slave
CN105786736A (en) Method, chip and device for multi-chip cascading
JPH0675894A (en) Method for transmitting signal and data
CN107734082B (en) Address allocation method and system
CN103412838B (en) A kind of expanding system, communication means, address configuration method, equipment and device
KR102187040B1 (en) Method and program for virtual wifi network setting using plurality of virtual operation system configuration
CN115203092A (en) Single-master multi-slave single-wire communication method, device and equipment
CN104123188A (en) Resource allocating method and related devices
CN112422704B (en) Address allocation method and device for multiple devices and storage medium
CN115865866B (en) Address allocation method and device
CN105630727A (en) Access method, apparatus and system among multi-SoC nodes
CN216599654U (en) System for realizing address distribution to slave equipment through RS-485 bus
KR100916665B1 (en) Air-conditioner and operating method thereof
CN106559299A (en) Serial communication device, serial communication system and serial communication method
CN115334041A (en) Method for automatically allocating addresses to communication equipment of master station and slave station, master station, slave station and system
CN106028303B (en) Intelligent device discovery method and device
CN111309482B (en) Hash algorithm-based block chain task allocation system, device and storable medium
CN113949628B (en) Automatic equipment adding method and system
CN113438781A (en) Control method, control device and lighting system
CN113938471B (en) Automatic device adding method, device, system, device and storage medium
KR101543148B1 (en) Automatic searching method of sub-module for direct digital control device
CN117614940B (en) Method and system for automatic configuration of serial communication equipment address
KR0179882B1 (en) Communication parameter setting method of plc

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

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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
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.

CP01 Change in the name or title of a patent holder