CN104954214B - Method and system for improving RS485 communication expansibility - Google Patents
Method and system for improving RS485 communication expansibility Download PDFInfo
- Publication number
- CN104954214B CN104954214B CN201510353973.8A CN201510353973A CN104954214B CN 104954214 B CN104954214 B CN 104954214B CN 201510353973 A CN201510353973 A CN 201510353973A CN 104954214 B CN104954214 B CN 104954214B
- Authority
- CN
- China
- Prior art keywords
- roll
- unknown
- call
- unknown device
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 51
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000004044 response Effects 0.000 claims abstract description 46
- 238000000605 extraction Methods 0.000 claims description 18
- 238000003860 storage Methods 0.000 claims description 13
- 239000000284 extract Substances 0.000 claims description 11
- 230000006855 networking Effects 0.000 claims description 7
- 238000012795 verification Methods 0.000 claims description 3
- 238000004064 recycling Methods 0.000 claims 1
- 230000003993 interaction Effects 0.000 abstract description 5
- 230000007246 mechanism Effects 0.000 abstract description 5
- 238000012544 monitoring process Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 230000008859 change Effects 0.000 description 7
- 238000004378 air conditioning Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 3
- 238000010200 validation analysis Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008846 dynamic interplay Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and a system for improving the RS485 communication expansibility. The method comprises the following steps: in each roll calling cycle, roll calling all the existing equipment and then roll calling newly-accessed unknown equipment based on an additional frame; extracting the address of the corresponding unknown equipment in the reply information based on the reply information returned by the clicked unknown equipment in response to the roll name; based on the extracted address of the unknown device, roll calling the corresponding unknown device again to check the unknown device corresponding to the address; and confirming the existence of the corresponding unknown equipment and adding the unknown equipment into the known equipment list according to the received information replied by the response of the unknown equipment to the roll calling again. The invention solves the problem of plug and play in the network by dynamically and directly adding any new equipment in the network through improving the communication interaction mechanism, and improves the expansibility of the RS485 communication network. The invention also provides a system for improving the RS485 communication expansibility.
Description
Technical field
The present invention relates to remote monitoring dynamic communications to extend field, more particularly to the method for improving RS485 communication autgmentabilities
And system.
Background technology
Currently, large-size air conditioning set remote monitoring is based on RS485 communication modes, the air-conditioning of the RS485 communication modes
Bus topolopy is as shown in Figure 1, whole network has stringent host and slave processors relationship, the host computer (computer disposals such as band CPU
The host of performance) timing one slave computer (slave, slave computer 1-5 as shown) of roll-call, the slave computer reply number arrived by roll-call
According to (response), other slave computers are in listening state, and the sequential for the control network that this mode can be fairly simple avoids existing
The case where network data conflicts.
But when having the drawback that when newly increasing an equipment in the network if necessary, such as increasing slave computer 6, on
Position machine must change program, increase roll-call slave computer 6, otherwise slave computer 6 can not just send out data, if being further added by slave computer 7
When, must change primary again again, and such network design may result in and must change once once there is new equipment that host computer is added
Program calls the roll to new equipment, and network expansion is poor, and then the dynamic communication expansion efficiency of the remote monitoring of the air-conditioning system
Lowly.
Invention content
It is logical to solve the main purpose of the present invention is to provide the method and system that a kind of raising RS485 communicates autgmentability
Cross directly carried out with the unknown new equipment that arbitrarily increases in network communication interaction mechanism that communication interact, new realize it is dynamically straight
It connects and adds the problem of executing monitoring in the new equipment to network topology, so that the large-size air conditioning machine under RS485 communication modes
The network expansion performance of group is highly improved, and realizes equipment plug and play in a network, the purpose of dynamic interaction.
One aspect of the present invention provides a kind of method of raising RS485 communication autgmentabilities, including:In each cycle of calling the roll, point
The unknown device newly to be networked based on additional frame roll-call after all existing devices of name;Based on the unknown device response called the roll
The return information of the roll-call and return, extracts the address of the corresponding unknown device in return information;Based on the unknown of extraction
The address of equipment, corresponding unknown device of calling the roll again, to check the corresponding unknown device of described address;According to receiving not
Know the information that equipment replys the response called the roll again, confirms that corresponding unknown device exists and adds it to known device
List.
Preferably, it is newly networked based on additional frame roll-call in each cycle of calling the roll, after all known devices of calling the roll unknown
Equipment further includes:All known devices include that related information storage is accessed when that can be called the roll and be recycled with its address
In known device list;It has been called the roll after all known devices according to the address of known device in known device list, it is attached to increase by one
Add frame, the unknown device for being not stored in the known device list and newly networking of calling the roll in a network.
Preferably, it calls the roll and is called the roll the unknown device newly to network based on additional frame after all known devices, further include:Then
One section of inquiry instruction is also sent, to carry out response by the unknown device called the roll.
It is preferably based on the return information that the unknown device called the roll responds the roll-call and return, extraction is replied
The address of corresponding unknown device in information further includes:The return information includes relevant with the address of unknown device
Identification information;When one or more unknown devices response roll-call returns to return information, then every time according to response
Time extracts an address in a return information by random manner, is used with call the roll again.
Preferably, one or more unknown devices respond the roll-call and return to return information, further include:It is called the roll not
Know that equipment energy random delay returns again to return information afterwards for a period of time;When multiple unknown devices need be added network when, it is described with
Machine, which is delayed, distinguishes the time of each unknown device return information, can receive to avoid information overlap and correctly reply letter
Breath.
It is preferably based on the address of the unknown device of extraction, corresponding unknown device of calling the roll again, to check described address
Corresponding unknown device further includes:The described address of unknown device according to extraction reopens frame roll-call, to check
It states address and is corresponding with the unknown device newly to network.
Preferably, the information replied the response called the roll again according to the unknown device received, confirmation are corresponding not
Know that equipment has and add it to known device list, further includes:If unknown device makes a response to calling the roll again to return
Multiple normal communication information, then after receiving normal communication information, confirm that corresponding unknown device is newly added in network, and will be new
The information of the equipment of addition is added to known device list as the known device in network, updates list of devices.
Preferably, further include:Based on the unknown device that additional frame roll-call newly networks, reply letter is not received over time
Breath continues next round roll-call cycle then when next roll-call recycles beginning;And/or if unknown device to calling the roll again not
It makes a response, does not receive normal communication information over time, then when next roll-call recycles beginning, continue next round point
Name cycle.
Another aspect of the present invention provides a kind of system of raising RS485 communication autgmentabilities, including:First calling device is used
In each roll-call cycle, called the roll the unknown device that newly networks based on additional frame after all existing devices of calling the roll;Extraction element,
The return information returned for responding the roll-call based on the unknown device called the roll extracts the correspondence in return information
Unknown device address;Second calling device is used for the address of the unknown device based on extraction, calls the roll again corresponding unknown
Equipment, to check the corresponding unknown device of described address;Updating device, for according to the unknown device that receives to calling the roll again
The information replied of response, confirm that corresponding unknown device exists and adds it to known device list.
Preferably, the first calling device further includes:All known devices include related information storage with its address
In the known device list accessed when that can be called the roll and be recycled;It has been called the roll institute according to the address of known device in known device list
After having known device, increase by an additional frame, calling the roll in a network is not stored in the known device list and newly networks not
Know equipment.
Preferably, the first calling device further includes:It calls the roll to call the roll based on additional frame after all known devices and newly network
Unknown device then also sends one section of inquiry instruction, to carry out response by the unknown device called the roll.
Preferably, extraction element further includes:The return information includes true with the relevant identity in the address of unknown device
Recognize information;When one or more unknown devices response roll-call when returning to return information, then every time according to response the time or
An address in a return information is extracted by random manner, is used with call the roll again.
Preferably, one or more unknown devices respond the roll-call and return to return information, further include:It is called the roll not
Know that equipment energy random delay returns again to return information afterwards for a period of time;When multiple unknown devices need be added network when, it is described with
Machine, which is delayed, distinguishes the time of each unknown device return information, can receive to avoid information overlap and correctly reply letter
Breath.
Preferably, the second calling device further includes:The described address of unknown device according to extraction reopens a frame point
Name, the unknown device newly to network is corresponding with to check described address.
Preferably, updating device further includes:If unknown device is believed with communication back to normal calling the roll to make a response again
Breath, then after receiving normal communication information, confirm that corresponding unknown device is newly added in network, and by the equipment being newly added
Information is added to known device list as the known device in network, updates list of devices.
Preferably, further include:First calling device, the unknown device for newly being networked based on additional frame roll-call, at one section
Return information is not received after time, then when next roll-call recycles beginning, continues next round roll-call cycle;And/or second point
Name device does not receive normal communication information, then over time if do not made a response for unknown device to calling the roll again
When next roll-call recycles beginning, continue next round roll-call cycle.
Scheme according to the present invention realizes new equipment and enters RS485 communication architectures by new communication interaction mechanism
Network in have the function of plug and play, so as to simply and easily in having network new equipment can be arbitrarily added
A new equipment need not often be increased, primary change all is done to the monitoring software of host computer and corresponding data, effectively improved
The autgmentability of RS485 communications.It improves network which overcome the defect of such network expansion difference in the prior art as a result, and opens up
Malleability, and overcome the new and old product of host computer and improve the old and new's production because the equipment newly increased leads to defect that cannot be general
The compatibility of product, also, reduce which obviate cumbersome change host computer monitoring software and corresponding data software change and
The workload of maintenance, the dynamic communication expansion efficiency for improving remote monitoring.Especially, the solution of the present invention can be used for various big
Type network system, such as:Air-conditioner set etc. in the large-scale dynamic expansion for needing remote monitoring, saves human cost and promotes work
Make efficiency.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and constitutes the part of the present invention, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the air-conditioning bus network topology of RS485 communication modes;
Fig. 2 is the flow chart of an embodiment of the method for improving RS485 communication autgmentabilities of the present invention;
Fig. 3 is the schematic diagram of an embodiment of the host computer roll-call sequential of the method for the present invention;
Fig. 4 is shown in RS485 communication network dynamics newly added equipment effectively expand network one using the solution of the present invention
Example;
Fig. 5 is the structure diagram of an embodiment of the system for improving RS485 communication autgmentabilities of the present invention.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the specific embodiment of the invention and
Technical solution of the present invention is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under the premise of creative work, shall fall within the protection scope of the present invention.
According to an embodiment of the invention, a kind of method of raising RS485 communication autgmentabilities is provided.
The flow chart of an embodiment of the method for autgmentability is communicated below in conjunction with raising RS485 of the invention shown in Fig. 2,
And the schematic diagram of an embodiment of the host computer roll-call sequential of method of the invention shown in Fig. 3, the method for describing the present invention.
In step S110, in each cycle of calling the roll, host computer call the roll called the roll based on additional frame after all existing devices it is new
The unknown device of networking.
In one embodiment, host, that is, host computer in the monitoring of large-size air conditioning system remote, can be according to database
Or the stored explicitly known i.e. slave computer of the slave being added in RS483 communication networks is (various in other words in data list
Equipment) carry out remote monitoring.Wherein, include being called the roll to call the roll to the equipment in network at interval of one section of predetermined time to follow
Ring.Wherein, all equipment includes that related information (facility information) is stored in and can be generalized what machine accessed with its address
In database or list, storage is known as known device list with the database of these facility informations or list.
Such as:Shown in the roll-call time diagram of Fig. 3, it is known that list of devices 302, including all known device, that is, equipment
1, equipment 2 ... equipment N.
In one embodiment, host computer is according to already existing device address in known device list, to address institute
Corresponding equipment is called the roll.The roll-call is to transmit a signal to corresponding equipment by address in a manner of frame, and then can obtain
Obtain response (such as various feedback signals and/or the data of corresponding equipment:It has been opened that, closed, is online, is standby, fault data etc.).Needle
The list of devices accessed it, host computer are called the roll all existing devices.
Such as:Shown in the roll-call time diagram of Fig. 3, from all known devices included by known device list 302
That is equipment 1, equipment 2 ... equipment N, successively these equipment 301 of roll-call list of devices.
In one embodiment, host computer is improved in a program, in the sequence process that monitoring is called the roll, to complete
After the roll-call of all known devices, an additional frame is increased newly, roll-call is newly linked into one or more of network unknown device,
Such as:The unknown device newly to network present in network is scanned by RS485 communication modes.Further, host computer is in network
After the unknown device newly to network is called the roll, one section of inquiry instruction is then also sent, so that the unknown device called the roll by this is answered
It answers.
Such as:Shown in the roll-call time diagram of Fig. 3, roll-call unknown device 303.
Wherein, network design fully considers new addition equipment, and host computer is in each roll-call cycle in addition to known to roll-call
Outside equipment, also increases by a frame and do not network the roll-call of other equipment.
In step S120, the reply that host computer responds the roll-call based on the unknown device called the roll and returns is believed
Breath extracts the address of the corresponding unknown device in return information.
In one embodiment, host computer calls the roll to the one or more unknown devices newly to network in network, after roll-call
One section of inquiry instruction can be sent, corresponding unknown device carries out response for inquiry instruction, which returned to host computer
Return information includes the relevant information of the identity validations such as the address of corresponding unknown device in return information, such as:Return information
It can be identity validation frame information etc..
In one embodiment, if it is multiple unknown device responses, then every time according to response time or random side
Formula extracts an address, which will make in follow-up call the roll again as the identified equipment progress of energy being added in network
With.
Further, the unknown device called the roll can reply identity validation frame information afterwards for a period of time with random delay.Here,
Random purpose is, when there is multiple unknown devices to need to be added, if all replying data simultaneously will be overlapped, cause host computer without
Method identifies and can not receive correct data, but by the method for random delay, then can reply multiple new unknown devices
The time point of data is staggered, to have correctly received data.
Further, if without response after the unknown device delay a period of time called the roll, host computer does not receive reply yet
Information, then host computer can be when next roll-call recycles beginning, and continuation next round, which is called the roll, to be recycled, existing device of first calling the roll, point
It is called the roll unknown device by additional frame after name is complete.
Such as:Shown in the roll-call time diagram of Fig. 3, whether unknown device replys 304, after a time delay,
It does not reply and does not receive response (N), then host computer is recycled into next roll-call, returns to the roll-call 301 to known device;And
If receiving the response (Y) from unknown device, in the return information (identification information) for extracting unknown device return
The address 305 of unknown device.
In step S130, the address of unknown device of the host computer based on extraction, corresponding unknown device of calling the roll again, with core
Unknown device corresponding to described address.
In one embodiment, host computer is receiving the return information of any unknown device and is extracting address therein
Afterwards, a frame is reopened according to the address to call the roll, it is similar with the equipment roll-call to having networked, it is corresponding with to check the address
The unknown device newly to network.
Such as:Shown in the roll-call time diagram of Fig. 3, called the roll corresponding new addition equipment 306 using the address, so as to
Check the case where network is added in the equipment.
In the information that step S140, host computer reply the response called the roll again according to the unknown device received, really
Recognize corresponding unknown device to exist and add it to known device list.
In one embodiment, unknown device makes a response to calling the roll again, and (i.e. known to set according to normal response
Standby response is called the roll) mode, reply and communicate related information (such as:Communication data), host computer upon receiving this information, can
To confirm that the unknown device of the new networking is existing, in turn, the related information such as the equipment and its address is all deposited into
Know list of devices, updates list of devices, hereafter, will all call the roll the equipment in the communication in future, as known equipment
Carry out Distant supervision and control.
Further, if the unknown device (i.e. new equipment) corresponding to roll-call address does not make response sound to calling the roll again
It answers, then comes then when next roll-call cycle opportunity, host computer can enter next roll-call and recycle, existing device of first calling the roll,
Pass through the process of additional frame roll-call unknown device after having called the roll.
Such as:Shown in the roll-call time diagram of Fig. 3, whether new equipment replys is called the roll 307 again, is prolonged in certain time
It lags, does not reply and do not receive response (N), then host computer is recycled into next roll-call, returns to the roll-call to known device
301;And if receiving the response (Y) from unknown device, according to the normal communication data updating device of new equipment return
The new equipment is added to 309 in list of devices, equipment N+1 is increased in the list by list 308.
The machine to be networked as a result, by the additional frame roll-call unknown device after conventional call the roll, verification unknown device of calling the roll twice
New equipment can be arbitrarily added in its network and just remove host computer of modification without one equipment of every increase for system
Software has effectively achieved the network extension of dynamic high-efficiency rate.
Fig. 5 schematically shows the knot of an embodiment of the system of raising RS485 communication autgmentabilities according to the present invention
Structure block diagram.Shown in Figure 5, which may include:
First calling device 510, in cycle of each calling the roll, host computer to be called the roll after all existing devices based on additional
The unknown device that frame roll-call newly networks.The concrete function of the device and processing are referring to step S110.
Extraction element 520 responds time of the roll-call and return for host computer based on the unknown device called the roll
Complex information extracts the address of the corresponding unknown device in return information.The concrete function of the device and processing are referring to step
S120。
Second calling device 530 is used for the address of unknown device of the host computer based on extraction, calls the roll again corresponding unknown
Equipment, to check the corresponding unknown device of described address.The device concrete function and processing are referring to step S130.
Updating device 540, the letter that the response called the roll again is replied according to the unknown device received for host computer
Breath, confirms that corresponding unknown device exists and adds it to known device list.The device concrete function and processing are referring to step
Rapid S140.
The processing and function realized by the system of the present embodiment essentially correspond to earlier figures 1~method shown in Fig. 3
Embodiment and concrete application example, therefore not detailed place in the description of the present embodiment, may refer to the phase in previous embodiment
It speaks on somebody's behalf bright, this will not be repeated here.
More clearly to illustrate that its new communication interaction mechanism brings efficient plug and play dynamic to the solution of the present invention
State is expanded and monitoring advantage, applies the solution of the present invention in RS485 communication network dynamic newly added equipments below in conjunction with shown in Fig. 4
An example for effectively expanding network, further explains.
By example shown in Fig. 4, it is assumed that known slave computer only has 1 (address of slave computer in network when just starting design
0x01), slave computer 2 (address 0x10), slave computer 3 (address 0x34), slave computer 4 (address 0x80), 5 (address of slave computer
0xc0).In communication cycle (cycle of calling the roll), the sequence that host computer is once called the roll is the address of first 5 known devices, then
Unknown device (the unknown device address is unknown), when newly increasing a new equipment slave computer 6 (assuming that address 0x25),
S1:Host computer roll-call unknown device;
S2:Slave computer 6 will reply the data for including Self address after random delay 6-100ms;
S3:Host computer receives first frame and replys data, will be used as preliminary confirmation message, and extract effective address information
0x25;
S4:Host computer is again depending on the corresponding equipment of new equipment address information 0x25 roll-calls just received;
S5:Slave computer 6 replys actual data;
S6:Host computer receives correct information, and new equipment address 0x25 is stored in known device list, slave computer 6
Just become a full member of in communication network.
The method and system of the present invention realizes in RS485 communication networks equipment i.e. by improving communication interaction mechanism
The access of plug-and-play formula can be optionally added new equipment in having network and can quickly be identified and be added to known device list
In, the software of host computer is all changed without increasing new equipment every time, be ensure that the efficiency of remote dynamic monitoring and is improved it
The expansion of network.Also, its is easy to operate, reduces the workload that software is safeguarded in change, and only related to equipment is added
Connection, also avoids the not general drawback that new and old product occurs by newly added equipment in host computer, ensure that new and old Products Compatibility.This hair
Bright method and system can be used for various large-scale network systems, such as:This kind of large size such as air-conditioner set needs the dynamic of remote monitoring
It is simple to operate in state extension, it effectively saves human cost and promotes working efficiency.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus
Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include non-temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
There is also other identical elements in the process of element, method, commodity or equipment.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
Example the above is only the implementation of the present invention is not intended to restrict the invention, for those skilled in the art
For member, the invention may be variously modified and varied.Any modification made by all within the spirits and principles of the present invention,
Equivalent replacement, improvement etc., should be included within scope of the presently claimed invention.
Claims (16)
1. a kind of method that air-conditioner set improves RS485 communication autgmentabilities, which is characterized in that including:
It each calls the roll in recycling, the unknown device newly to be networked based on additional frame roll-call after all existing devices of calling the roll;
The return information for responding the roll-call based on the unknown device called the roll and returning, extracts the correspondence in return information
Unknown device address;
The address of unknown device based on extraction, corresponding unknown device of calling the roll again, verification described address is corresponding unknown to be set
For to confirm that it whether there is;Wherein, corresponding unknown device of calling the roll again is similar with to existing device roll-call;
According to the information that the unknown device received replys the response called the roll again, confirm that corresponding unknown device exists simultaneously
Add it to known device list.
2. the method as described in claim 1, which is characterized in that in each cycle of calling the roll, base after all known devices of calling the roll
In the unknown device that additional frame roll-call newly networks, further include:
All known devices include the known device that related information storage is accessed when that can be called the roll and be recycled with its address
In list;
It has been called the roll after all known devices according to the address of known device in known device list, has increased by an additional frame, in network
The middle unknown device for being not stored in the known device list and newly networking of calling the roll.
3. method as claimed in claim 1 or 2, which is characterized in that called the roll based on additional frame after all known devices of calling the roll
The unknown device newly to network further includes:
Then one section of inquiry instruction is also sent, to carry out response by the unknown device called the roll.
4. the method as described in claim 1, which is characterized in that based on the unknown device response roll-call called the roll
The return information of return extracts the address of the corresponding unknown device in return information, further includes:
The return information includes and the relevant identification information in the address of unknown device;
When one or more unknown devices response roll-call when returning to return information, then every time according to response the time or by with
The mode of machine extracts an address in a return information, is used with call the roll again.
5. method as claimed in claim 4, which is characterized in that one or more unknown devices respond the roll-call and return back
Complex information further includes:
The unknown device energy random delay called the roll returns again to return information afterwards for a period of time;
When multiple unknown devices need that network is added, the random delay distinguishes the time of each unknown device return information,
Correct return information can be received to avoid information overlap.
6. method as described in claim 1, which is characterized in that the address of the unknown device based on extraction is called the roll corresponding again
Unknown device further includes to check the corresponding unknown device of described address:
The described address of unknown device according to extraction reopens frame roll-call, and new networking is corresponding with to check described address
Unknown device.
7. the method as described in claim 1, which is characterized in that according to the unknown device received to the response institute called the roll again
The information of reply confirms that corresponding unknown device has and add it to known device list, further includes:
If unknown device makes a response to calling the roll again with communication information back to normal, after receiving normal communication information,
Confirm that corresponding unknown device is newly added in network, and using the information for the equipment being newly added be added to known device list as
Known device in network updates list of devices.
8. the method as described in claim 1, which is characterized in that further include:
Based on the unknown device that additional frame roll-call newly networks, return information is not received over time, then in next roll-call
When cycle starts, continue next round roll-call cycle;And/or
If unknown device does not make a response to calling the roll again, normal communication information is not received over time, then next
When a roll-call cycle starts, continue next round roll-call cycle.
9. the system that a kind of air-conditioner set improves RS485 communication autgmentabilities, which is characterized in that including:
First calling device is newly networked for being called the roll based on additional frame in each cycle of calling the roll, after all existing devices of calling the roll
Unknown device;
Extraction element, the return information returned for being responded the roll-call based on the unknown device called the roll are extracted back
The address of corresponding unknown device in complex information;
Second calling device is used for the address of the unknown device based on extraction, corresponding unknown device of calling the roll again, described in verification
The corresponding unknown device in address is to confirm that it whether there is;Wherein, call the roll again corresponding unknown device with to existing device point
Name is similar;
Updating device, the information for being replied the response called the roll again according to the unknown device received confirm corresponding
Unknown device exists and adds it to known device list.
10. system as claimed in claim 9, which is characterized in that the first calling device further includes:
All known devices include the known device that related information storage is accessed when that can be called the roll and be recycled with its address
In list;
It has been called the roll after all known devices according to the address of known device in known device list, has increased by an additional frame, in network
The middle unknown device for being not stored in the known device list and newly networking of calling the roll.
11. the system as described in claim 9 or 10, which is characterized in that the first calling device further includes:
It calls the roll and is called the roll the unknown device newly to network based on additional frame after all known devices, then also send one section of inquiry and refer to
It enables, to carry out response by the unknown device called the roll.
12. system as claimed in claim 9, extraction element further includes:
The return information includes and the relevant identification information in the address of unknown device;
When one or more unknown devices response roll-call when returning to return information, then every time according to response the time or by with
The mode of machine extracts an address in a return information, is used with call the roll again.
13. system as claimed in claim 12, which is characterized in that one or more unknown devices respond the roll-call and return
Return information further includes:
The unknown device energy random delay called the roll returns again to return information afterwards for a period of time;
When multiple unknown devices need that network is added, the random delay distinguishes the time of each unknown device return information,
Correct return information can be received to avoid information overlap.
14. system as claimed in claim 9, which is characterized in that the second calling device further includes:
The described address of unknown device according to extraction reopens frame roll-call, and new networking is corresponding with to check described address
Unknown device.
15. system as claimed in claim 9, which is characterized in that updating device further includes:
If unknown device makes a response to calling the roll again with communication information back to normal, after receiving normal communication information,
Confirm that corresponding unknown device is newly added in network, and using the information for the equipment being newly added be added to known device list as
Known device in network updates list of devices.
16. system as claimed in claim 9, which is characterized in that further include:
First calling device, the unknown device for newly being networked based on additional frame roll-call do not receive reply letter over time
Breath continues next round roll-call cycle then when next roll-call recycles beginning;And/or
Second calling device does not receive normal over time if do not made a response for unknown device to calling the roll again
Communication information continues next round roll-call cycle then when next roll-call recycles beginning.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510353973.8A CN104954214B (en) | 2015-06-24 | 2015-06-24 | Method and system for improving RS485 communication expansibility |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510353973.8A CN104954214B (en) | 2015-06-24 | 2015-06-24 | Method and system for improving RS485 communication expansibility |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104954214A CN104954214A (en) | 2015-09-30 |
CN104954214B true CN104954214B (en) | 2018-10-30 |
Family
ID=54168587
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510353973.8A Active CN104954214B (en) | 2015-06-24 | 2015-06-24 | Method and system for improving RS485 communication expansibility |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104954214B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105743757B (en) * | 2016-01-27 | 2018-07-20 | 南京埃斯顿自动化股份有限公司 | The method of the free networking of RS485 communicating terminals |
CN107800600A (en) * | 2017-10-09 | 2018-03-13 | 珠海格力电器股份有限公司 | Lower computer election and activation method, upper computer and lower computer |
CN109140684B (en) * | 2018-08-21 | 2020-08-25 | 珠海格力电器股份有限公司 | Air conditioner, communication fault detection method and device thereof and storage medium |
CN112929465A (en) * | 2021-03-12 | 2021-06-08 | 珠海格力电器股份有限公司 | Bus address allocation method and bus system |
CN115930377B (en) * | 2022-12-12 | 2024-12-13 | 珠海格力电器股份有限公司 | Air conditioning communication control method, device, air conditioning unit and remote control equipment |
Citations (2)
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 |
CN203071954U (en) * | 2012-12-29 | 2013-07-17 | 佛山市顺德区瑞德电子实业有限公司 | Networking apparatus for household appliance local area network |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101163075B (en) * | 2006-10-10 | 2011-05-11 | 中兴通讯股份有限公司 | Method of implementing embedded device address installation by RS 485 bus competition |
US7668998B2 (en) * | 2008-01-08 | 2010-02-23 | Parata Systems, Llc | Methods, systems, and devices for providing an interrupt scheme in automated pharmaceutical dispensing machines without centralized arbitration |
CN103825781B (en) * | 2014-02-27 | 2017-02-22 | 全天自动化能源科技(东莞)有限公司 | System communication scheduling algorithm based on Canbus |
CN104410557A (en) * | 2014-12-25 | 2015-03-11 | 深圳中科讯联科技有限公司 | Dynamic networking method and communication method based on RS-485 |
-
2015
- 2015-06-24 CN CN201510353973.8A patent/CN104954214B/en active Active
Patent Citations (2)
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 |
CN203071954U (en) * | 2012-12-29 | 2013-07-17 | 佛山市顺德区瑞德电子实业有限公司 | Networking apparatus for household appliance local area network |
Also Published As
Publication number | Publication date |
---|---|
CN104954214A (en) | 2015-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104954214B (en) | Method and system for improving RS485 communication expansibility | |
CN110673941B (en) | Migration method of micro-services in multiple computer rooms, electronic equipment and storage medium | |
CN102684923A (en) | Self-healing networking method for half-duplex asynchronous communication | |
CN102868780A (en) | RS-485 slave computer addressing network system and addressing method thereof | |
CN103780679A (en) | Long time delay remote invocation method based on HTTP protocol | |
EP3764699B1 (en) | Wireless networking method and apparatus for air-conditioning system | |
EP3993338A1 (en) | Device binding method and apparatus, and electronic device | |
JP2023508210A (en) | Data processing method, device, device and computer program based on blockchain | |
US20210342557A1 (en) | Passive near field communication (nfc) device, method and system | |
CN104144095A (en) | Terminal authentication method and interchanger | |
CN104767756A (en) | Equipment information processing method, client side device and server side device | |
CN114285695B (en) | Communication method, device, apparatus, system and storage medium | |
CN204157061U (en) | A kind of networking control system of ZigBee equipment | |
CN113436631A (en) | Voice information processing method and system and device for voice information processing | |
CN103368944A (en) | Memory shared network architecture and protocol specifications for same | |
CN111917886B (en) | Intelligent device data migration method and device and intelligent device | |
CN117061147A (en) | Industrial control honey pot and application method thereof | |
CN113765904B (en) | Authentication method and device | |
CN109976168B (en) | Decentralized intelligent home control method and system | |
CN109413641B (en) | Network system, communication method, device, equipment and storage medium based on MESH | |
CN105357243A (en) | Remote interaction method and apparatus with device in the Internet of things | |
CN102571620B (en) | Method and device for carrying out webpage communication, and webpage server | |
CN105607594A (en) | Method for searching equipment in server memory based on smart home | |
CN110597854A (en) | Data classification method based on FE industrial internet and related products | |
CN104133788A (en) | CAN bus data transmission method in active filter system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |