CN104811339A - Intelligent networking method based on arbitration-free bus - Google Patents
Intelligent networking method based on arbitration-free bus Download PDFInfo
- Publication number
- CN104811339A CN104811339A CN201510195934.XA CN201510195934A CN104811339A CN 104811339 A CN104811339 A CN 104811339A CN 201510195934 A CN201510195934 A CN 201510195934A CN 104811339 A CN104811339 A CN 104811339A
- Authority
- CN
- China
- Prior art keywords
- machine
- roll
- main frame
- response
- networking
- 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
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses an intelligent networking method based on an arbitration-free bus. The intelligent networking method comprises the following steps: (1) when all networking equipment is started and enters respective delaying, sending roll calling messages when the delaying is finished, and determining a hoist according to a rule; (2) sending the roll calling messages by the host according to an initial ID sequence from small to large, and responding the received roll calling messages consistent to the ID when the secondary delaying of the host is finished; and networking according to the rule. The method disclosed by the invention has high intelligence and reliability, does not consume hardware cost and is free of maintenance; the method has a communication fault self-diagnosis function and really realizes configuration-free and operation-free networking communication; the intelligent networking method is particularly suitable for the fields with bad maintenance fields, complicated configuration and uneven quality of constructors.
Description
Technical field
The invention belongs to group-net communication field, relate to a kind of constructing communication network method.
Background technology
The current usual manner without arbitration bus networking is: before equipment network, just carries out address assignment to each equipment, and assigns one as main frame, and the communication dominant right of this network administered by this main frame.The advantage of the method is that address arranges intuitively, clearly can know which address which equipment corresponds to, shortcoming is once the number of devices of networking is larger, then arrange workload to be also multiplied, if arrange mistake in address allocation procedure, find that there is conflict after later stage powers on, also must re-start investigation, and reset.
Existing method is after device power, carry out MANET according to address and complete networking operation, if in running, have equipment to be damaged, need to change one with current normal operational outfit in can the networking operation of finishing equipment without the new equipment of repeat to address (RA).Also there is following shortcoming in said method:
1. if cannot know the address of current every platform equipment, just can not arrange effective address to newly entering equipment, also just very likely can cause address conflict, networking collapse or address arrange the other problemses such as spilling.
2. in networking equipment running, if desired add new equipment, then can find the problem the same with problem 1, just must know the address of all current devices, otherwise cannot networking operation be completed, even networking collapse.
3., in networking equipment running, need to change if main frame breaks down, during hostdown, whole ad-hoc network collapses because lacking host schedules.
4. in actual field construction running, because field condition is severe; Engineering construction personnel do not possess and arrange networking knowledge or dislike trouble; Many times, be all that device power is run, but and could not group net operation, wasted electric energy, due social value can not have been played.
Summary of the invention
technical problem:the invention provides one and there is highly intelligent and reliability, do not consume hardware cost, non-maintaining, and have communication failure self-diagnostic function based on the intelligent networking method without arbitration bus.
technical scheme:of the present invention based on the intelligent networking method without arbitration bus, comprise the following steps:
1) all networking equipments start and enter respective time delay, send roll-call message, and determine main frame according to the following rules at the end of time delay:
If an equipment does not receive the roll-call message of other equipment in its whole time delay process, then think it himself is main frame, and after time delay terminates, send roll-call message;
If an equipment receives the message of other equipment in its time delay process, then think it himself is from machine, cancel and send roll-call message, enter secondary random delay, and enter by roll-call wait;
2) main frame is according to the ascending transmission roll-call message of initial ID order, replys, and carry out networking according to the following rules from machine at the end of secondary delay to the roll-call message consistent with its ID received:
For legal response from machine, then this is being taken ID as it from machine region from the ID of machine;
If one from machine find secondary delay process himself ID and other reply and repeat from the ID of machine, then cancel response, enter spare area and wait for and calling the roll, and its ID is updated to unduplicatedly in spare area takies ID;
If response be less than host id from machine ID, then main frame is reduced to from machine, its ID is updated to and unduplicatedly in spare area takies ID, entering and being waited for by roll-call, and this response is restarted to send roll-call message and response after machine is upgraded to main frame;
Main frame completes to all after the roll-call of machine ID, if having to be allocated from machine in spare area, then continues to carry out roll-call response in spare area, until complete networking, otherwise directly completes networking.
In the preferred version of the inventive method, step 2) in rule also comprise:
If main frame does not receive legal response message within the response time limit, then repeat the roll-call message sending this ID, until receive after legal response or number of repetition exceed fault-tolerant number of times, then send the roll-call message of next ID.
In the preferred version of the inventive method, step 2) in carry out in spare area the calling the roll specific rules of response be:
Main frame, according to the ascending transmission roll-call message of the initial ID in spare area order, is replied from machine the roll-call message consistent with its ID received, and:
For legal response from machine, then this is revised as from machine ID and there is no occupied ID from machine region.
In the preferred version of the inventive method, also comprise step 3), particular content is:
Main frame is to online from machine successively poll, and inquire about slave status and parameter, reply after machine receives polling message, after main frame receives response, if find that there is from machine fault, then record trouble is from the ID of machine;
Networking agreement is immediate from machine as backup host with host id using No. ID, described backup host detecting host polling message, if detecting is less than polling message, then thinks that main frame does not exist, restarts networking after this backup host is upgraded to main frame.
In the preferred version of the inventive method, also comprise step 4), particular content is:
Detecting that bus has data interaction in random delay process after new equipment powers on, its ID is updated to and unduplicatedly in spare area takies ID, main frame is regularly according to the ascending transmission roll-call message of the initial ID in spare area order, and the new equipment in spare area replys the roll-call message of main frame;
After main frame receives response, this response is taken ID from the spare area of machine and be updated to and unduplicatedly from machine region take ID.
In the present invention, power on smart host identification, and the intelligence that powers on sorts from machine, in running, real-time judge is with or without newly adding from machine and completing networking, real-time judge Host Status, after main frame breaks down, whole ad-hoc network can be taken over by automatically selecting from machine new main frame.
The inventive method is useful on USBs such as including but are not limited to Rs485, Rs232, M-bus, is applied to and needs to carry out group-net communication, and networking controls, the multiple occasions such as unattended operation is non-maintaining.After completing networking according to the inventive method, can the communications status of Real-Time Monitoring current networking member: newly redistribute new address and without the need to any setting from machine or the new slave devices that adds to what change because there being fault, namely be no matter because of fault renew new for machine, or what then add because number of devices is not enough is new for machine, networking can be carried out to these new equipments by main frame intelligence, and without the need to any setting.Simultaneously to the situation of the urban district networking maincenter because of hostdown, by the main frame that can make new advances in the selection of intelligence from machine, and whole networking can not be caused to collapse because lacking maincenter host computer control, namely after the main frame in networking is because of fault damage, remaining slave system can Intellisense, and therefrom selects a new main frame to take over whole ad-hoc network.
The present invention can realize: intelligent bus main process equipment is arbitrated, and intelligent slave devices distributes, and intelligence adds from machine and exits, and intelligence is put forward power from machine and controlled and restore funcitons.After being connected by many indifferences (or having part variation) terminal bus, intelligent specifically will require that carrying out main frame screens automatically as requested, sort from machine, in the process run, whether whether Real-Time Monitoring has new entering from machine, have fault to exit from machine, put forward power the need of after hostdown from machine, really achieve and exempt to arrange, without the group-net communication of operation.Be specially adapted to safeguard that occasion is severe, complexity is set, the uneven occasion of workmen's quality.
beneficial effect:the present invention compared with prior art, has the following advantages:
During traditional device power, during master-slave response according to the ID(address that equipment has set) carry out communication, namely, want the networking of all devices, the process that a nothing repeats setting must be carried out to ID, if ID is identical, then have no idea, by the similarities and differences of ID differentiation equipment, naturally also just to have no idea to carry out master-slave response.
The present invention devises the mode of a kind of automatic amendment ID of powering on, and without the need to manually arranging device id before making to power on, time particularly number of devices is more again, greatly simplify the setting steps that powers on, really having accomplished plug and play.Before device power, arrange without the need to any networking, after completing the physical connection of communication, can autonomous networking.
No matter equipment is newly add equipment, equipment replacement in running, or hostdown, all can automatically complete networking process, without the need to artificial participation, time saving and energy saving.
The place severe to field condition, do not possess parameters condition, traditional method just can not adapt to this requirement again, and the present invention only need complete all physical connections powers on.
Accompanying drawing explanation
Fig. 1 is the inventive method flow chart.
Fig. 2 is the system schematic of the embodiment of the present invention 1.
Embodiment
Below in conjunction with embodiment and Figure of description, the present invention is further illustrated.
Embodiment 1:
For certain exhibit halls, Intelligent infrared controller for detection is installed, exhibition room have little exhibition room room several, each little exhibition room room diverse location need install Intelligent infrared controller for detection, to ensure that this room is without dead angle.For ensureing that communication is normal and reliable and stable, between Intelligent infrared controller for detection, all carry out bus connection by enhancement mode Rs485, and final by main frame summary information, pass exhibition room control room back by wireless network and carry out monitoring and controlling.
Power on after all devices physical connection completes, because factory-default ID is 1(extreme case, all device id is number all identical), now, by the method, networking is carried out to all Intelligent infrared controller for detections.
After all devices unification powers on, enter random delay, after time delay terminates, send roll-call message to bus, time delay terminates slower terminal can find that bus has roll-call message, then cancel sending roll-call message, enters by wait roll-call.Now, the terminal (namely not receiving the terminal of other equipment message in its whole time delay process) sending roll-call message is at first main frame, and all the other are by the state of calling the roll from machine.
Every enter from machine by the state of calling the roll from machine enter second time random delay, after time delay terminates, reply roll-call message, if find that there is message and oneself ID double sign of reply, then cancelling calls the roll replys, enter spare area get ID for subsequent use at random can not other repeat from the ID that takies of machine with spare area as oneself the ID(that takies).
After main frame has all been called the roll, from machine district some take the lead in replying from machine, now, these construct an initialization networking from machine and main frame.
When spare area carries out roll-call response, main frame timing roll-call spare area ID, according to the ascending transmission roll-call message of the initial ID in spare area order, from machine, the roll-call message consistent with its ID received is replied, and the spare area of legal response to be changed into from machine district No. ID (this No. ID can not with repeating from machine of having taken before) from No. ID of machine, after spare area ID has all called the roll, in all device id Jun Congji district ID, networking has completed.
Main frame is had and from machine, whole network state is sent to exhibition room control room by self telecommunication chip by main frame in the system that the method builds.
Invention preferred embodiment in, in system cloud gray model, if because of device damage change or new equipment add, then new equipment powers on and can detect that bus has communication state, then change the ID of oneself in spare area unduplicated ID.
Main frame is in running, except each state from machine of poll and issuing control command, also timing is looked into newly to spare area, according to the ascending transmission roll-call message of the initial ID in spare area order, the roll-call message of the new equipment response main frame in spare area, if find, spare area ID has reply, then change this of replying into from machine region unduplicated ID(and original not repeating from machine ID), complete new equipment and add networking process.
In another preferred embodiment of invention, in system cloud gray model, if main frame is damaged, then former from machine minimum No. ID be upgraded to main frame from machine (backup host), and carry out networking process again to all from machine, flow process is as above.Like this, just complete hostdown automatic rejection, automatically the function of substitute.
Above-described embodiment is only the preferred embodiment of the present invention; be noted that for those skilled in the art; under the premise without departing from the principles of the invention; some improvement and equivalent replacement can also be made; these improve the claims in the present invention and are equal to the technical scheme after replacing, and all fall into protection scope of the present invention.
Claims (5)
1., based on the intelligent networking method without arbitration bus, it is characterized in that, the method comprises the following steps:
1) all networking equipments start and enter respective time delay, send roll-call message, and determine main frame according to the following rules at the end of time delay:
If an equipment does not receive the message of other equipment in its whole time delay process, then think it himself is main frame, and after time delay terminates, send roll-call message;
If an equipment receives the roll-call message of other equipment in its time delay process, then think it himself is from machine, cancel and send roll-call message, enter secondary random delay, and enter by roll-call wait;
2) main frame is according to the ascending transmission roll-call message of initial ID order, replys, and carry out networking according to the following rules from machine at the end of secondary delay to the roll-call message consistent with its ID received:
For legal response from machine, then this is being taken ID as it from machine region from the ID of machine;
If one from machine find secondary delay process himself ID and other reply and repeat from the ID of machine, then cancel response, enter spare area and wait for and calling the roll, and its ID is updated to unduplicatedly in spare area takies ID;
If response be less than host id from machine ID, then main frame is reduced to from machine, its ID is updated to and unduplicatedly in spare area takies ID, entering and being waited for by roll-call, and this response is restarted to send roll-call message and response after machine is upgraded to main frame;
Main frame completes to all after the roll-call of machine ID, if having to be allocated from machine in spare area, then continues to carry out roll-call response in spare area, until complete networking, otherwise directly completes networking.
2. according to claim 1ly to it is characterized in that based on the intelligent networking method without arbitration bus, described step 2) in rule also comprise:
If main frame does not receive legal response message within the response time limit, then repeat the roll-call message sending this ID, until receive after legal response or number of repetition exceed fault-tolerant number of times, then send the roll-call message of next ID.
3. according to claim 1ly to it is characterized in that based on the intelligent networking method without arbitration bus, described step 2) in carry out in spare area the calling the roll specific rules of response be:
Main frame, according to the ascending transmission roll-call message of the initial ID in spare area order, is replied from machine the roll-call message consistent with its ID received, and:
For legal response from machine, then this is revised as from machine ID and there is no occupied ID from machine region.
4. according to claim 1,2 or 3 based on the intelligent networking method without arbitration bus, it is characterized in that, the method also comprises step 3), and particular content is:
Main frame is to online from machine successively poll, and inquire about slave status and parameter, reply after machine receives polling message, after main frame receives response, if find that there is from machine fault, then record trouble is from the ID of machine;
Networking agreement is immediate from machine as backup host with host id using No. ID, described backup host detecting host polling message, if detecting is less than polling message, then thinks that main frame does not exist, restarts networking after this backup host is upgraded to main frame.
5. according to claim 4 based on the intelligent networking method without arbitration bus, it is characterized in that, the method also comprises step 4), and particular content is:
Detect in random delay process that bus has data interaction after new equipment powers on, its ID is updated to and unduplicatedly in spare area takies ID, main frame is regularly according to the ascending transmission roll-call message of the initial ID in spare area order, and the new equipment in spare area replys the roll-call message of main frame;
After main frame receives response, this response is taken ID from the spare area of machine and be updated to and unduplicatedly from machine region take ID.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510195934.XA CN104811339A (en) | 2015-04-23 | 2015-04-23 | Intelligent networking method based on arbitration-free bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510195934.XA CN104811339A (en) | 2015-04-23 | 2015-04-23 | Intelligent networking method based on arbitration-free bus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104811339A true CN104811339A (en) | 2015-07-29 |
Family
ID=53695850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510195934.XA Pending CN104811339A (en) | 2015-04-23 | 2015-04-23 | Intelligent networking method based on arbitration-free bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104811339A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105979490A (en) * | 2016-07-20 | 2016-09-28 | 浙江昱能科技有限公司 | Communication setting modification method for wireless communication networking |
CN106230961A (en) * | 2016-08-11 | 2016-12-14 | 上海思妙物联网科技有限公司 | The lamp wireless roll-call quickly networking mode of networking |
CN106550421A (en) * | 2016-10-27 | 2017-03-29 | 新疆美特智能安全工程股份有限公司 | A kind of method of Internet of Things 433M wireless device networkings |
CN106982156A (en) * | 2017-06-08 | 2017-07-25 | 广州日滨科技发展有限公司 | Priority method to set up, device, communication system, equipment and readable storage medium storing program for executing |
CN107547305A (en) * | 2017-07-19 | 2018-01-05 | 上海因士环保科技有限公司 | A kind of network communicating system and method |
CN108848199A (en) * | 2018-05-28 | 2018-11-20 | 浙江嘉宏电力科技有限公司 | A kind of peer-to-peer network automatic seeking main system and method |
CN109361585A (en) * | 2018-12-22 | 2019-02-19 | 沈阳阿尔特科技发展有限公司 | A kind of method that child node baud rate and address is arranged in host node automatically |
CN109936491A (en) * | 2019-03-06 | 2019-06-25 | 珠海格力电器股份有限公司 | For improving the means of communication of communication efficiency |
CN114097588A (en) * | 2021-10-29 | 2022-03-01 | 瀚云科技有限公司 | Networking method and device for irrigation device |
CN115277284A (en) * | 2022-05-26 | 2022-11-01 | 广东逸动科技有限公司 | Communication method, communication device, communication system, and computer-readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404604A (en) * | 2008-11-03 | 2009-04-08 | 浪潮电子信息产业股份有限公司 | 485 bus type monitoring system and its high extendibility method |
CN101494383A (en) * | 2008-01-23 | 2009-07-29 | 力博特公司 | Control method for parallel connection system of inverter |
CN102684923A (en) * | 2012-05-24 | 2012-09-19 | 江苏华德电力科技有限公司 | Self-healing networking method for half-duplex asynchronous communication |
-
2015
- 2015-04-23 CN CN201510195934.XA patent/CN104811339A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101494383A (en) * | 2008-01-23 | 2009-07-29 | 力博特公司 | Control method for parallel connection system of inverter |
CN101404604A (en) * | 2008-11-03 | 2009-04-08 | 浪潮电子信息产业股份有限公司 | 485 bus type monitoring system and its high extendibility method |
CN102684923A (en) * | 2012-05-24 | 2012-09-19 | 江苏华德电力科技有限公司 | Self-healing networking method for half-duplex asynchronous communication |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105979490B (en) * | 2016-07-20 | 2019-05-07 | 浙江昱能科技有限公司 | A kind of communications setting amending method of wireless communication network |
CN105979490A (en) * | 2016-07-20 | 2016-09-28 | 浙江昱能科技有限公司 | Communication setting modification method for wireless communication networking |
CN106230961A (en) * | 2016-08-11 | 2016-12-14 | 上海思妙物联网科技有限公司 | The lamp wireless roll-call quickly networking mode of networking |
CN106550421A (en) * | 2016-10-27 | 2017-03-29 | 新疆美特智能安全工程股份有限公司 | A kind of method of Internet of Things 433M wireless device networkings |
CN106982156B (en) * | 2017-06-08 | 2019-11-15 | 日立楼宇技术(广州)有限公司 | Priority setting method, device, communication system, equipment and readable storage medium storing program for executing |
CN106982156A (en) * | 2017-06-08 | 2017-07-25 | 广州日滨科技发展有限公司 | Priority method to set up, device, communication system, equipment and readable storage medium storing program for executing |
CN107547305A (en) * | 2017-07-19 | 2018-01-05 | 上海因士环保科技有限公司 | A kind of network communicating system and method |
CN108848199A (en) * | 2018-05-28 | 2018-11-20 | 浙江嘉宏电力科技有限公司 | A kind of peer-to-peer network automatic seeking main system and method |
CN109361585A (en) * | 2018-12-22 | 2019-02-19 | 沈阳阿尔特科技发展有限公司 | A kind of method that child node baud rate and address is arranged in host node automatically |
CN109936491A (en) * | 2019-03-06 | 2019-06-25 | 珠海格力电器股份有限公司 | For improving the means of communication of communication efficiency |
CN114097588A (en) * | 2021-10-29 | 2022-03-01 | 瀚云科技有限公司 | Networking method and device for irrigation device |
CN114097588B (en) * | 2021-10-29 | 2023-10-31 | 瀚云科技有限公司 | Networking method and device of irrigation device |
CN115277284A (en) * | 2022-05-26 | 2022-11-01 | 广东逸动科技有限公司 | Communication method, communication device, communication system, and computer-readable storage medium |
CN115277284B (en) * | 2022-05-26 | 2024-04-09 | 广东逸动科技有限公司 | Communication method, communication device, communication system, and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104811339A (en) | Intelligent networking method based on arbitration-free bus | |
CN111147619B (en) | Method and system for realizing automatic address allocation of RS485 slave equipment locally | |
CN104954213A (en) | Arbitration bus-free networking system applicable to intelligent capacitor | |
CN109450662B (en) | Ad hoc network communication manager, networking method and ad hoc network communication system | |
US6587950B1 (en) | Cluster power management technique | |
CN109040184B (en) | Host node election method and server | |
CN101447894B (en) | Identification of physical address of partial node, network configuration and maintaining method, and network system | |
CN102684923A (en) | Self-healing networking method for half-duplex asynchronous communication | |
WO2019196455A1 (en) | Air-conditioning communication system and method, storage medium and electronic apparatus | |
DE102013210265A1 (en) | communication system | |
CN107453929A (en) | Group system is from construction method, device and group system | |
CN103475742B (en) | Method and system for determining master control node in cloud computing environment | |
CN102236340A (en) | Multi-equipment management method and device | |
CN105812504B (en) | A kind of intelligent mailing address coding method | |
CN109361585A (en) | A kind of method that child node baud rate and address is arranged in host node automatically | |
CN105389278A (en) | CAN bus based serial communication method for master and slave machines | |
CN106532960B (en) | A kind of adaptive SCADA monitoring methods being suitable for field of power distribution | |
CN107071873B (en) | Coordinator of tree sensor network ad hoc network | |
CN105045224B (en) | The method and apparatus of data transfer | |
JP2018068017A (en) | Communication method, central control device, and individual control device | |
CN114285695A (en) | Communication method, device, equipment, system and storage medium | |
CN113658351A (en) | Product production method and device, electronic equipment and storage medium | |
CN106506193A (en) | UPS network monitorings communication system and method | |
CN103825781B (en) | System communication scheduling algorithm based on Canbus | |
CN113179507B (en) | Bluetooth mesh-based self-distribution networking method and system without main equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150729 |
|
RJ01 | Rejection of invention patent application after publication |