CN107800600A - Slave computer election, Activiation method and host computer and slave computer - Google Patents
Slave computer election, Activiation method and host computer and slave computer Download PDFInfo
- Publication number
- CN107800600A CN107800600A CN201710930397.8A CN201710930397A CN107800600A CN 107800600 A CN107800600 A CN 107800600A CN 201710930397 A CN201710930397 A CN 201710930397A CN 107800600 A CN107800600 A CN 107800600A
- Authority
- CN
- China
- Prior art keywords
- slave computer
- slave
- data frame
- computer
- election
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/407—Bus networks with decentralised control
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of election of slave computer, Activiation method and host computer and slave computer, wherein slave computer electoral machinery to include:At multiple slave computers, the slave computer election data frame of host computer broadcast is received;In response to the slave computer election data frame, in multiple slave computers, each slave computer is set according to the delay of itself carries out timing, wherein, the delay of each slave computer sets difference;In the timing course, each slave computer monitors the election responsive data frame of other slave computers in multiple slave computers, and wherein other slave computers are the slave computer in addition to itself in multiple slave computers;If the slave computer in multiple slave computers does not hear the election responsive data frame of other slave computers in itself timing course, the slave computer broadcasts election responsive data frame at the end of itself timing, to be received at host computer and other slave computers.The present invention solves the technical problem that a slave computer is elected in multiple zero-address slave computers.
Description
Technical field
The present invention relates to communication technical field, in particular to a kind of election of slave computer, Activiation method and host computer and
Slave computer.
Background technology
In correlation technique, slave computer of the multiple identicals of carry without device address, system are normal on same data/address bus
A slave computer is generally activated during running, and remaining slave computer is in a dormant state.In this case, because slave computer is without setting
Standby address, when host computer sends instructions down on the data bus, all slave computers can all be activated simultaneously, can not realize in multiple nothings
A slave computer is activated in the slave computer of device address.
Elected for multiple unaddressed slave computers in correlation technique, the technical problem of one slave computer of activation, at present still
Do not it is proposed to efficiently solve scheme.
The content of the invention
The invention provides a kind of election of slave computer, Activiation method and host computer and slave computer, at least to solve related skill
A problem of slave computer in multiple unaddressed slave computers is elected and activated in art.
A kind of in order to solve the above technical problems, one side according to embodiments of the present invention, there is provided slave computer election side
Method, including:At multiple slave computers, the slave computer election data frame of host computer broadcast is received;Number is elected in response to the slave computer
According to frame, each slave computer sets according to the delay of itself and carries out timing in multiple slave computers, wherein, the delay of each slave computer is set
Put difference;In the timing course, each slave computer monitors the election responsive data frame of other slave computers in multiple slave computers, its
In other slave computers be slave computer in addition to itself in multiple slave computers;If the slave computer in multiple slave computers is counted at itself
When during do not hear the election responsive data frames of other slave computers, the slave computer is broadcasted election at the end of itself timing and rung
Data frame is answered, to be received at host computer and other slave computers.
In one embodiment, the above method also includes:If the slave computer in multiple slave computers is in itself timing course
In listen to the election responsive data frames of other slave computers, the slave computer terminates timing and does not broadcast election responsive data frame.
In one embodiment, the above method also includes:At multiple slave computers, the roll-call data of host computer broadcast are received
Frame;The slave computer broadcast roll-call responsive data frame being active in multiple slave computers, to be received at host computer.
A kind of in order to solve the above technical problems, other side according to embodiments of the present invention, there is provided slave computer activation
Method, including:To multiple slave computer broadcast point name data frames;Monitor the roll-call response data of the slave computer in multiple slave computers
Frame;If listening to roll-call responsive data frame, determine the slave computer being active in multiple slave computers be present.
In one embodiment, the above method also includes:If not hearing roll-call responsive data frame, to multiple slave computers
Broadcast slave computer election data frame;Monitor the election responsive data frame of the slave computer in multiple slave computers;If listen to choosing
Lift responsive data frame, broadcast point name data frame.
In order to solve the above technical problems, another aspect according to embodiments of the present invention, there is provided a kind of slave computer, bag
Include:First receiving module, the slave computer election data frame of multiple slave computers is broadcast to for receiving host computer;Timing module, use
In in response to slave computer election data frame, set according to delay and carry out timing, wherein each slave computer in the multiple slave computer
Delay set it is different;Module is monitored, for monitoring the election that other slave computers are broadcasted in multiple slave computers in timing course
Responsive data frame;First broadcast module, if for not hearing election responsive data frame in the timing course, counted at itself
When at the end of broadcast election responsive data frame, to be received at host computer and other slave computers.
In one embodiment, above-mentioned slave computer also includes:Second receiving module, for receiving the roll-call of host computer broadcast
Data frame;Second broadcast module, if be active for slave computer itself, roll-call response data is broadcasted to host computer
Frame.
In one embodiment, above-mentioned timing module, if described under other for being listened in the timing course
First response message of position machine, terminates timing.
In order to solve the above technical problems, another aspect according to embodiments of the present invention, there is provided a kind of host computer, bag
Include:Broadcast module, for multiple slave computer broadcast point name data frames;Module is monitored, for monitoring in the multiple slave computer
The roll-call responsive data frame of slave computer broadcast;Processing module, if for listening to roll-call responsive data frame, determine multiple bottoms
The slave computer being active in machine be present.
In one embodiment, broadcast module, if being additionally operable to not hear roll-call responsive data frame, to multiple slave computers
Broadcast slave computer election data frame;The monitoring module, it is additionally operable to monitor the election response of the slave computer in multiple slave computers
Data frame;Broadcast module, if being additionally operable to listen to election responsive data frame, broadcast point name data frame.
In the present invention, realize and elected in multiple unaddressed slave computers, activate a slave computer.
Brief description of the drawings
Fig. 1 is the schematic diagram of communication system 100 provided in an embodiment of the present invention;
Fig. 2 is the structured flowchart of slave computer provided in an embodiment of the present invention;
Fig. 3 is the structured flowchart of host computer provided in an embodiment of the present invention;
Fig. 4 is the flow chart of slave computer electoral machinery provided in an embodiment of the present invention;And
Fig. 5 is the flow chart of slave computer Activiation method provided in an embodiment of the present invention.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is the schematic diagram of communication system 100 provided in an embodiment of the present invention.As shown in figure 1, the communication system 100 is wrapped
Including host computer 10 and multiple slave computers, (mark is 1 to slave computer n) in Fig. 1, host computer 10 and slave computer 1 to slave computer
N is communicated by data/address bus 20.In the communication system 100, slave computer 1 to slave computer n can be zero-address slave computer.Host computer
10 select a slave computer activation from slave computer 1 into slave computer n.
The embodiments of the invention provide a kind of slave computer.As shown in Fig. 2 slave computer includes:First receiving module 20, is used for
Receive the slave computer election data frame that host computer is broadcast to multiple slave computers;Timing module 21, it is connected with the first receiving module 20,
For in response to slave computer election data frame, carrying out timing according to being delayed to set, each slave computer in plurality of slave computer
Delay sets different;Module 22 is monitored, timing module 21 is connected, for monitoring multiple bottoms in the timing course of timing module 21
The election responsive data frame that other slave computers are broadcasted in machine;First broadcast module 23, with timing module 21 and the monitoring phase of module 22
Even, if for not hearing election responsive data frame in the timing course, the broadcast election response at the end of itself timing
Data frame, to be received at host computer and other slave computers.
In the present embodiment, multiple slave computers are set by different delays, and are not hearing other slave computers
Slave computer responsive data frame is responded in the case of electing response frame, realizes one slave computer of selection from multiple slave computers.
In one embodiment, slave computer may also include:Second receiving module, for receiving the point concrete number of host computer broadcast
According to frame;Second broadcast module, it is connected with the second receiving module, if be active for slave computer itself, to host computer
Broadcast roll-call responsive data frame.By the embodiment, the slave computer for finding to be activated in multiple slave computers is realized.
In one embodiment, above-mentioned timing module 21, if for listening to other slave computers in timing course
Responsive data frame is elected, terminates timing and does not broadcast election responsive data frame.
The embodiment of the present invention additionally provides a kind of host computer.As shown in figure 3, host computer may include:Broadcast module 30, is used for
To multiple slave computer broadcast point name data frames;Module 31 is monitored, is connected with broadcast module 30, under monitoring in multiple slave computers
The roll-call responsive data frame of position machine broadcast;Processing module 32, if for listening to roll-call responsive data frame, determine multiple bottoms
The slave computer being active in machine be present.By the embodiment, realize and find to have activated down from multiple slave computers
Position machine.
In one embodiment, broadcast module 30, if being additionally operable to not hear roll-call responsive data frame, to multiple bottoms
Machine broadcasts slave computer election data frame;Module 31 is monitored, is additionally operable to monitor the election response of the slave computer in multiple slave computers
Data frame;Broadcast module 30, if being additionally operable to listen to election responsive data frame, broadcast point name data frame.By the embodiment,
Realize one slave computer of election from multiple slave computers.
The embodiment of the present invention additionally provides a kind of slave computer electoral machinery.As shown in figure 4, the method comprising the steps of S401 is extremely
Step S404.
Step S401, at multiple slave computers, receive the slave computer election data frame of host computer broadcast.
Step S402, in response to the slave computer election data frame, each slave computer prolonging according to itself in multiple slave computers
When set carry out timing.
Wherein, the delay of each slave computer sets different.The delay of each slave computer sets and can be randomly provided, as long as protecting
The delay for demonstrate,proving each slave computer sets difference.But the embodiment of the present invention is not limited to this.
Step 403, in the timing course, each slave computer monitors the election response of other slave computers in multiple slave computers
Data frame.
Wherein, other slave computers are the slave computer in addition to itself in multiple slave computers.
Step 404, if the slave computer in multiple slave computers does not hear other slave computers in itself timing course
Responsive data frame is elected, the slave computer broadcasts election responsive data frame at the end of itself timing, with host computer and other
Received at the machine of position.
By the embodiment of the present invention, multiple slave computers set different delays, and are only being delayed in timing course not
When listening to the election responsive data frame of other slave computers, just responsive data frame is elected in broadcast at the end of timing, so as to avoid
Multiple slave computers response slave computers elections, and then realize one slave computer of selection from multiple slave computers.
In one embodiment, if the slave computer in multiple slave computers listens to other bottoms in itself timing course
The election responsive data frame of machine, the slave computer can terminate timing and not broadcast election responsive data frame.
In one embodiment, the above method also includes:At multiple slave computers, the roll-call data of host computer broadcast are received
Frame;The slave computer broadcast point name data frame being active in multiple slave computers, to be received at host computer.Pass through the reality
Example is applied, realizes the slave computer for finding to have activated from multiple slave computers.
The embodiment of the present invention additionally provides a kind of slave computer Activiation method.As shown in figure 5, the method comprising the steps of S501 is extremely
Step S503.
Step S501, to multiple slave computer broadcast point name data frames.
Step S502, monitor the roll-call responsive data frame of the slave computer in multiple slave computers.
In the present embodiment, as it was previously stated, multiple slave computers can receive the roll-call data frame of host computer broadcast, it is in
The slave computer of state of activation broadcasts roll-call responsive data frame when receiving roll-call frame.
Step S503, if listening to roll-call responsive data frame, determine there is what is be active in multiple slave computers
Slave computer.
In one embodiment, if not hearing roll-call responsive data frame, also slave computer can be broadcasted to multiple slave computers
Election data frame, and monitor the election responsive data frame of the slave computer in multiple slave computers;If listen to election number of responses
According to frame, broadcast point name data frame.
On the device in above-described embodiment, wherein unit, module performs the concrete mode of operation relevant
It is described in detail in the embodiment of this method, explanation will be not set forth in detail herein.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or
Person's adaptations follow the general principle of the present invention and the common knowledge in the art do not invented including the present invention
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (10)
- A kind of 1. slave computer electoral machinery, it is characterised in that including:At multiple slave computers, the slave computer election data frame of host computer broadcast is received;In response to the slave computer election data frame, in the multiple slave computer each slave computer according to the delay of itself set into Row timing, wherein, the delay of each slave computer sets difference;In the timing course, each slave computer monitors the election response data of other slave computers in the multiple slave computer Frame, wherein other described slave computers are the slave computer in addition to itself in the multiple slave computer;If the slave computer in the multiple slave computer does not hear the election of other slave computers in itself timing course Responsive data frame, the slave computer broadcasted at the end of itself timing election responsive data frame, with the host computer and it is described its Received at his slave computer.
- 2. the method as described in claim 1, it is characterised in that also include:If the election that the slave computer in the multiple slave computer listens to other slave computers in itself timing course rings Data frame is answered, the slave computer terminates timing and do not broadcast election responsive data frame.
- 3. method as claimed in claim 1 or 2, it is characterised in that also include:At the multiple slave computer, the roll-call data frame of the host computer broadcast is received;The slave computer broadcast roll-call responsive data frame being active in the multiple slave computer, with the quilt at the host computer Receive.
- A kind of 4. slave computer Activiation method, it is characterised in that including:To multiple slave computer broadcast point name data frames;Monitor the roll-call responsive data frame of the slave computer in the multiple slave computer;If listening to roll-call responsive data frame, determine the slave computer being active in the multiple slave computer be present.
- 5. method as claimed in claim 4, it is characterised in that also include:If not hearing roll-call responsive data frame, slave computer election data frame is broadcasted to the multiple slave computer;Monitor the election responsive data frame of the slave computer in the multiple slave computer;If listening to election responsive data frame, broadcast point name data frame is broadcasted.
- A kind of 6. slave computer, it is characterised in that including:First receiving module, the slave computer election data frame of multiple slave computers is broadcast to for receiving host computer;Timing module, in response to the slave computer election data frame, being set according to the delay of itself and carrying out timing, wherein institute The delay for stating each slave computer in multiple slave computers sets difference;Module is monitored, for monitoring the election of other slave computers broadcast broadcast in the multiple slave computer in the timing course Responsive data frame;First broadcast module, if for not hearing election responsive data frame in the timing course, in itself timing knot Broadcast broadcast election responsive data frame during beam, to be received at the host computer and other described slave computers.
- 7. slave computer as claimed in claim 6, it is characterised in that also include:Second receiving module, for receiving the roll-call data frame of the host computer broadcast;Second broadcast module, if be active for slave computer itself, roll-call response data is broadcasted to the host computer Frame.
- 8. slave computer as claimed in claims 6 or 7, it is characterised in that the timing module, if in the timing The election responsive data frame of other slave computers is listened in journey, terminates timing.
- A kind of 9. host computer, it is characterised in that including:Broadcast module, for multiple slave computer broadcast point name data frames;Module is monitored, for monitoring the roll-call responsive data frame that slave computer is broadcasted in the multiple slave computer;Processing module, if for listening to roll-call responsive data frame, determine exist in the multiple slave computer in activation shape The slave computer of state.
- 10. host computer as claimed in claim 9, it is characterised in thatThe broadcast module, if being additionally operable to not hear roll-call responsive data frame, slave computer is broadcasted to the multiple slave computer Election data frame;The monitoring module, it is additionally operable to monitor the election responsive data frame of the slave computer in the multiple slave computer;The broadcast module, if being additionally operable to listen to election responsive data frame, broadcast point name data frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710930397.8A CN107800600A (en) | 2017-10-09 | 2017-10-09 | Slave computer election, Activiation method and host computer and slave computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710930397.8A CN107800600A (en) | 2017-10-09 | 2017-10-09 | Slave computer election, Activiation method and host computer and slave computer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107800600A true CN107800600A (en) | 2018-03-13 |
Family
ID=61533886
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710930397.8A Pending CN107800600A (en) | 2017-10-09 | 2017-10-09 | Slave computer election, Activiation method and host computer and slave computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107800600A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS55118249A (en) * | 1979-03-05 | 1980-09-11 | Yokogawa Hokushin Electric Corp | Data communication control system |
CN104483955A (en) * | 2015-01-16 | 2015-04-01 | 成都鼎智汇科技有限公司 | Energy consumption remote monitoring and early warning system |
CN104954214A (en) * | 2015-06-24 | 2015-09-30 | 珠海格力电器股份有限公司 | Method and system for improving RS485 communication extensibility |
CN106302066A (en) * | 2016-08-26 | 2017-01-04 | 珠海格力电器股份有限公司 | Without master-slave communication method and device |
CN107036233A (en) * | 2017-03-27 | 2017-08-11 | 青岛海尔空调电子有限公司 | The indoor unit and outdoor unit means of communication, device and the air conditioner of air conditioning multi-couple unit |
-
2017
- 2017-10-09 CN CN201710930397.8A patent/CN107800600A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS55118249A (en) * | 1979-03-05 | 1980-09-11 | Yokogawa Hokushin Electric Corp | Data communication control system |
CN104483955A (en) * | 2015-01-16 | 2015-04-01 | 成都鼎智汇科技有限公司 | Energy consumption remote monitoring and early warning system |
CN104954214A (en) * | 2015-06-24 | 2015-09-30 | 珠海格力电器股份有限公司 | Method and system for improving RS485 communication extensibility |
CN106302066A (en) * | 2016-08-26 | 2017-01-04 | 珠海格力电器股份有限公司 | Without master-slave communication method and device |
CN107036233A (en) * | 2017-03-27 | 2017-08-11 | 青岛海尔空调电子有限公司 | The indoor unit and outdoor unit means of communication, device and the air conditioner of air conditioning multi-couple unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210351834A1 (en) | Method for beam failure recovery, method for beam failure handling, terminal, and network-side device | |
CN113242607B (en) | Random access method, equipment and terminal | |
JP2021503212A5 (en) | ||
EP3952180A1 (en) | Search space configuration method and apparatus, and communication device | |
WO2012067942A3 (en) | Discovery of electronic devices in a combined network | |
CN105099763B (en) | Equipment goes offline based reminding method and device | |
CN111278151B (en) | Random access method, network side equipment and terminal | |
CN102882704A (en) | Link protection method and apparatus in soft restart upgrade process of ISSU (in-service software upgrade) | |
WO2019095919A1 (en) | Csi transmission method and device | |
CN108391325B (en) | Method, device and terminal for managing wireless connection | |
CN107800600A (en) | Slave computer election, Activiation method and host computer and slave computer | |
FI3683678T3 (en) | Computer-implemented method, computer program and data processing system | |
CN111836398B (en) | Transmission method, terminal equipment and network side equipment | |
CN108617003A (en) | The method, apparatus and user equipment of quick random access | |
CA2578551A1 (en) | Method of accelerating control link loss detection | |
CN103634925B (en) | Method and access point, the website of association are set up in WLAN | |
CN116208269A (en) | Information transmission method and equipment | |
JP2000269988A (en) | Multiple address data transmission system | |
CN108391326B (en) | Method, device and terminal for managing wireless connection | |
CA2354177A1 (en) | Polling using multiple dynamically updated lists | |
CN114286428B (en) | Channel detection method, device and user equipment | |
CN103716875B (en) | Method, device and radio tuning system for synchronous transfer Cross Talk data | |
CN115208529B (en) | Signal transmission method, terminal and network side equipment | |
KR20200014223A (en) | Active stylus detection method | |
CN105309023A (en) | Resources broadcasting method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180313 |