CN103248543B - Code verification method, code verification control equipment and code verification equipment - Google Patents

Code verification method, code verification control equipment and code verification equipment Download PDF

Info

Publication number
CN103248543B
CN103248543B CN201310144980.8A CN201310144980A CN103248543B CN 103248543 B CN103248543 B CN 103248543B CN 201310144980 A CN201310144980 A CN 201310144980A CN 103248543 B CN103248543 B CN 103248543B
Authority
CN
China
Prior art keywords
code
equipment
control device
message
new
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.)
Expired - Fee Related
Application number
CN201310144980.8A
Other languages
Chinese (zh)
Other versions
CN103248543A (en
Inventor
董晨
姜彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310144980.8A priority Critical patent/CN103248543B/en
Publication of CN103248543A publication Critical patent/CN103248543A/en
Application granted granted Critical
Publication of CN103248543B publication Critical patent/CN103248543B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a code verification method, code verification control equipment and code verification equipment. The code verification method comprises the steps as follows: the code verification control equipment receives a code verification admission notice message, which is sent out after at least one adjacent equipment receives an indication message broadcasted by new equipment, and the adjacent equipment is member equipment having the same type port with the new equipment; and the code verification control equipment selects one of the at least one adjacent equipment as specific adding equipment, and specific information is sent to the specific adding equipment to trigger the specific added equipment and the new equipment for code verification. With the adoption of the scheme, electricity saving of member equipment is facilitated, and network transmission resources and own resources of member equipment are saved.

Description

One kind is to code method, to code control device and to decoding apparatus
Technical field
The present invention relates to communication technical field is and in particular to one kind is to code method, to code control device and to decoding apparatus.
Background technology
With home network application, the growing of bandwidth demand and user are increased to service variation requirement, base Mixing isomery household network technology in ieee1905.1 standard is arisen at the historic moment, and becomes the Main Trends of The Development of home network.? The equipment holding 1905.1 standards is referred to as 1905.1 equipment, and this equipment at least has 1905.1 ports, and each port is supported A kind of basic Floor layer Technology, such as power line communication technology, coaxial multimedia technology, ethernet technology, the bottom such as wireless technology Layer technology.
Referring to Fig. 1, show a kind of schematic diagram of the mixing isomery household network based on 1905.1 standards, this home network It is made up of n sub- network, each sub-network is made up of the equipment (or port of equipment) supporting identical Floor layer Technology, these equipment Can be single port device or multi bri device.Multi bri device, as bridge device, is responsible for connecting different subnets Network, provides bridges forward for the data in different sub-network network.For example, for sub-network 2, three identical bottoms of support are comprised The port of the single port device 2,3,4 of technology and the bridge device 1,5 of two identical Floor layer Technologies of support, and sub-network 2 can pass through Bridge device 1 is communicated with sub-network 1, is communicated with sub-network n by bridge device 5.It should be noted that being successfully joined in network Single port device and multi bri device be referred to as the member device of network.
When adding new equipment in needing to a mixing isomery household network, existing code operational approach is added newly sets Standby process can be summarized as follows:
User selects a member device as adding equipment (equipment 1 as in sub-network 1) in hybrid network, respectively Triggering interpolation equipment and new equipment (equipment 8 as in sub-network n) (on the equipment that all supports operate to code, have one to code key Individual to code key), start to code process, interpolation equipment 1 and new equipment 8 can be broadcasted one in network respectively and be represented that it is triggered Start the instruction message to code process, so that the two is mutually intercepted, carry out code is operated.
However, in prior art, if interpolation equipment and new equipment do not support identical Floor layer Technology (as equipment 1 is supported Power line communication technology, new equipment 8 supports coaxial multimedia technology), then the instruction message adding equipment transmission can only be by its institute Intercepted in other member devices of sub-network, the instruction message that new equipment sends also can only be supported identical Floor layer Technology with it Other member devices intercept, between interpolation equipment and new equipment cannot normal interception data, correspondingly, the two is also just no Method carry out follow-up to code operating process.For this reason, existing interpolation equipment send instruction message after, also to generate one right Code event notification message is broadcast in network, because this notification message is a level of abstraction message, therefore can in a network any Transmit between member device.
Meanwhile, existing all member devices receive above-mentioned level of abstraction to code event notification message after, can be by it The port that can communicate with miscellaneous equipment in its affiliated sub-network is all set to open mode, and forwards this by these ports Message, also can start to code process under the triggering of this message simultaneously, and search in its affiliated sub-network whether there is new equipment. As above-mentioned example, when code event notification message is forwarded to the member device 7 in sub-network n, equipment 7 is triggered to code Process, as interpolation equipment and the mutual interception data of new equipment 8, and then can execute follow-up code is operated.
This existing code method is had the disadvantage in that
1. it is unfavorable for member device power saving.Generally, for power saving, some ports of member device (refer specifically to this The port that member device is communicated with member devices other in sub-network) sleep state (power save) can be entered or close shape State (power off), however, it is necessary to by its port translation extremely after member device receives to code event notification message Forwarding this message, this is obviously unfavorable for the power saving of equipment to power on state.
2. pair code event notification message multitransmission causes transmission resource waste.From above-mentioned introduction, receive to code thing The member device of part notification message can meet at it and forwards this message on port of condition, and the port meeting condition refers to first The secondary port receiving this message and certification success (can carry out key encrypted transmission), meets the shape of the port of condition certainly State is also necessarily in power on state.After multitransmission, code event notification message will be passed in whole hybrid network Defeated, and some member devices are also possible to receive this message more than once, for example, the equipment 4 in sub-network 2 may be received The message forwarding to equipment 2 and/or 3 forwards, it is also possible to receive sub-network 3 by bridge device 3, the message of coming.This substantial amounts of disappear Breath repeating process will certainly cause the waste of network transmission resource.
3. unrelated member device is triggered startup to code process, wastes the resource of member device and network further Transfer resource.As above-mentioned example, in addition to member device 1 and member device 7, the other member devices in network are right with this Code process is completely irrelevant, does not only have any help to the addition of new equipment 8, also can cause the wasting of resources.This is primarily due to After these member devices start to code process, instruction message will be sent, or search other sets in its affiliated sub-network The instruction message that preparation is sent, judges to whether there is new equipment in this sub-network, these all can cause network transmission resource and equipment The waste of own resource.
Content of the invention
The embodiment of the present invention to code method, to code control device and to decoding apparatus, in order to realize economizing on electricity and to save money The purpose in source.
For this reason, the embodiment of the present invention following technical scheme of offer:
In a first aspect, embodiments providing one kind to code method, methods described includes:
To code control device receive by least one neighbor device send to code add notification message, described to code addition Notification message is that described neighbor device sends after receiving the instruction message of new device broadcasts, and described neighbor device is new with described Equipment has the member device of same type of ports;
Described code control device is chosen from least one neighbor device described one as specify interpolation equipment, and to Described specified interpolation equipment sends specify information, is carried out to code with described new equipment with triggering described specified interpolation equipment;
Wherein, the described Global Topological information to code control device with hybrid network and at least two different types of Port.
In the first possible implementation of first aspect, choose from least one neighbor device described described Before one as specifying interpolation equipment, methods described also includes:
Judge whether described new equipment is legal, if described new equipment is legal, then executes and set from least one neighbour described Standby one step as specifying interpolation equipment of middle selection.
In conjunction with the first possible implementation of first aspect, in the possible implementation of second, if described Code control device is preserved with the characteristic of legitimate device, then described judges whether described new equipment is legal, comprising:
Judging whether the characteristic that described new equipment has is consistent with the characteristic of described legitimate device, if be consistent, judging Described new equipment is legal.
In conjunction with the first possible implementation of first aspect, in the third possible implementation, if described Code control device is preserved legal to code time interval, then described judge whether described new equipment legal, comprising:
Described described logical to code addition to the time of code event notification message and reception to the acquisition of code control device record Know the time of message, described code event notification message is used for representing that the original interpolation equipment that user specifies has been turned on to code, institute Stating original interpolation equipment is to be successfully joined network and randomly choosed by user and be pressed by the user its equipment to code key;
Described to code control device judge obtain the described time to code event notification message with receive described to code addition Interval between the time of notification message whether meet described legal to code time interval, if met, judge described newly to set Standby legal.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, described to code Control device obtain described to code event notification message, comprising:
If described to code control device be described original interpolation equipment, described code control device is obtained itself produce Described to code event notification message;Otherwise described code control device is received with described original interpolation equipment sends described to code Event notification message.
The third or the 4th kind of possible implementation in conjunction with first aspect, in the 5th kind of possible implementation In, after the described new equipment of described judgement is legal, methods described also includes:
Judge whether the port type of described original interpolation equipment is identical with the port type of described new equipment;
The then described specified interpolation equipment of one conduct of selection from least one neighbor device described, comprising:
If the port type of described original interpolation equipment is identical with the port type of described new equipment, choose described former Beginning interpolation equipment is as described specified interpolation equipment;If it is different, then choosing a work from least one neighbor device described For described specified interpolation equipment.
Second aspect, embodiments provides one kind to code method, methods described includes:
Decoding apparatus are received with the instruction message of new device broadcasts, and adds notice to disappear code to sending to code control device Breath;
Described specify information that code control device is sent described to decoding apparatus reception, and as specified interpolation equipment and institute State new equipment to carry out to code;
Wherein, the described Global Topological information to code control device with hybrid network and at least two different types of Port.
In the first possible implementation of second aspect, described decoding apparatus are received described is sent out to code control device After the specify information sent, methods described also includes:
Described have message to decoding apparatus broadcast, can receive the described miscellaneous equipment indicating message and stops to described to control To code control device send described to code add notification message.
In the possible implementation of the second of second aspect, the described instruction receiving new device broadcasts to decoding apparatus disappears After breath, methods described also includes:
Described to decoding apparatus with can receive described indicate message miscellaneous equipment competitive resource, if described competing to decoding apparatus Strive acquisition described resource, then broadcast add prepare message, with forbid described miscellaneous equipment to described to code control device send institute State and notification message is added to code.
The third aspect, embodiments provides one kind to code control device, described equipment includes:
Receiving unit, adds notification message for receiving by what at least one neighbor device sent to code, described to code plus Entering notification message is that described neighbor device sends after receiving the instruction message of new device broadcasts, described neighbor device be with described New equipment has the member device of same type of ports;
Choose unit, for choosing one from least one neighbor device described as specified interpolation equipment;
Transmitting element, for sending specify information to the described described specified interpolation equipment choosing unit selection, to trigger Described specified interpolation equipment and described new equipment are carried out to code;
Wherein, the described Global Topological information to code control device with hybrid network and at least two different types of Port.
In the first possible implementation of the third aspect, described equipment also includes:
First judging unit, whether legal for judging described new equipment, if described new equipment is legal, triggering is described Choose unit and choose one from least one neighbor device described as specified interpolation equipment.
In conjunction with the first possible implementation of the third aspect, in the possible implementation of second, described first Judging unit includes:
First storage unit, for preserving the characteristic of legitimate device;
First judgment sub-unit, for judging characteristic that described new equipment the has characteristic phase whether with described legitimate device Symbol, if be consistent, judges that described new equipment is legal.
In conjunction with the first possible implementation of the third aspect, in the third possible implementation, described first Judging unit includes:
Second storage unit, for preserve legal to code time interval;
Obtaining unit, for obtaining to code event notification message, described is used for representing that user refers to code event notification message Fixed original interpolation equipment has been turned on to code, and described original interpolation equipment is to be successfully joined network and randomly choosed simultaneously by user It is pressed by the user its equipment to code key;
Recording unit, obtains the described time to code event notification message and described connects for recording described obtaining unit Receive unit and receive the described time that code is added with notification message;
Second judgment sub-unit, for judge to obtain the described time to code event notification message with receive described to code plus Interval between the time entering notification message whether meet described legal to code time interval, if met, judge described new Equipment is legal.
In conjunction with the third possible implementation of the third aspect, in the 4th kind of possible implementation, if described To code control device be described original interpolation equipment, then described obtaining unit, specifically for obtain itself generation described to code Event notification message;Otherwise described obtaining unit, specifically for receive that described original interpolation equipment sends described to code event Notification message.
The third or the 4th kind of possible implementation in conjunction with the third aspect, in the 5th kind of possible implementation In, described equipment also includes:
Second judging unit, after judging that described new equipment is legal in described first judging unit, judges described former Whether the port type of beginning interpolation equipment is identical with the port type of described new equipment, if identical, triggers described selection single Unit chooses described original interpolation equipment as described specified interpolation equipment;If it is different, then triggering described selection unit is from described One is chosen as described specified interpolation equipment at least one neighbor device.
Fourth aspect, embodiments provide a kind of to decoding apparatus, described equipment includes:
First receiving unit, for receiving the instruction message of new device broadcasts;
Transmitting element, for after described receiving unit receives described instruction message, right to sending to code control device Code adds notification message;
Second receiving unit, for receiving the described specify information that code control device is sent, and makes this that decoding apparatus are made For specifying interpolation equipment and described new equipment to carry out to code;
Wherein, the described Global Topological information to code control device with hybrid network and at least two different types of Port.
In the first possible implementation of fourth aspect, described decoding apparatus are also included:
First radio unit, after receiving described specify information in described second receiving unit, there is message in broadcast, With control can receive described instruction message miscellaneous equipment stop to described to code control device send described to code addition notice Message.
In the possible implementation of the second of fourth aspect, described decoding apparatus are also included:
Competitive unit, after receiving described instruction message in described first receiving unit, and can receive described finger Show the miscellaneous equipment competitive resource of message;
Second radio unit, after competing and obtain described resource in described competitive unit, broadcast adds preparation message, With forbid described miscellaneous equipment to described to code control device send described to code add notification message.
The embodiment of the present invention to code method, to code control device and to decoding apparatus, start wide to code process in new equipment After broadcasting instruction message, from the equipment (i.e. the neighbor device of new equipment) that can intercept this message to sending to code control device to code plus Enter notification message, to code control device application mandate;Correspondingly, then can be from least one neighbor device to code control device Select one as specify interpolation equipment, and start this specified interpolation equipment to code process so as to complete to code with new equipment. So, it is no need for making the port of all devices in network be in open mode, be conducive to equipment to economize on electricity;In addition, only control referring to Surely add equipment to start to code process, both can prevent information from being forwarded in a large number in a network, and also can avoid unrelated one-tenth in network Member's equipment starts to code process, and this obviously can also effectively save network transmission resource and equipment own resource.
Brief description
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments described in application, for those of ordinary skill in the art, can also obtain other according to these accompanying drawings Accompanying drawing.
Fig. 1 is the schematic diagram of mixing isomery household network;
Fig. 2 is the schematic diagram of the level of abstraction of ieee1905.1 standard definition;
Fig. 3 is the flow chart in prior art to code method;
Fig. 4 is the flow chart to code control device to code embodiment of the method 1 for the present invention;
Fig. 5 is the flow chart to code control device to code embodiment of the method 2 for the present invention;
Fig. 6 is a kind of flow chart of the implementation judging new equipment legitimacy in the present invention;
Fig. 7 is the flow chart to code control device to code embodiment of the method 3 for the present invention;
Fig. 8 is the flow chart to decoding apparatus to code embodiment of the method 1 for the present invention;
Fig. 9 is the flow chart to decoding apparatus to code embodiment of the method 2 for the present invention;
Figure 10 is the flow chart to decoding apparatus to code embodiment of the method 3 for the present invention;
Figure 11 is a kind of schematic diagram of application home network to code method for the present invention;
Figure 12 is a kind of Signalling exchange schematic diagram of concrete application to code method for the present invention;
Figure 13 is the schematic diagram of the application another kind of home network to code method for the present invention;
Figure 14 is the Signalling exchange schematic diagram of another kind of concrete application to code method for the present invention;
Figure 15 is a kind of implementation that in the present invention, classification caching adds notification message to code;
Figure 16 is the schematic diagram to code control device embodiment 1 for the present invention;
Figure 17 is the schematic diagram to code control device embodiment 2 for the present invention;
Figure 18 is the schematic diagram to code control device embodiment 3 for the present invention;
Figure 19 is the schematic diagram to decoding apparatus embodiment 1 for the present invention;
Figure 20 is the schematic diagram to decoding apparatus embodiment 2 for the present invention;
Figure 21 is the schematic diagram to decoding apparatus embodiment 3 for the present invention;
Figure 22 is that the present invention constitutes schematic diagram to the hardware of code control device;
Figure 23 is that the present invention constitutes schematic diagram to the hardware of decoding apparatus.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the accompanying drawings with embodiment to this Inventive embodiments are described in further detail.
First the application scenarios of technical solution of the present invention are explained below.
The home network that ieee1905.1 standard is different defines a unified level of abstraction, signal shown in Figure 2 Figure, level of abstraction is located at mac (media access control, media intervene key-course) sublayer and the llc (logical of layer 2 Link control, logic link control) between sublayer, have unique mac address mark and at least one 1905.1 ports, each 1905.1 port corresponds to a kind of Floor layer Technology, and the Floor layer Technology that schematic diagram shown in Fig. 2 is supported has: electric power Line communication standard ieee 1901, coaxial multimedia standardization moca 1.1, ethernet standard ieee 802.3, wireless technology is wi- Fi/ieee 802.11, in the example present, equipment supports 4 kinds of Floor layer Technologies, and level of abstraction also just possesses 4 inhomogeneities accordingly 1905.1 ports of type.
There is two kinds of control message: one kind is Floor layer Technology in the blended family's network being made up of 1905.1 equipment Control message (hereafter referred to collectively as bottom message), this message can only support identical Floor layer Technology equipment between transmit, As being in communication with each other by bottom message between the equipment 2,3,4 in sub-network 2.Another kind is the control message of level of abstraction (hereafter referred to collectively as level of abstraction message), this message is a kind of control message being produced by level of abstraction controlled entity, disappears with bottom Breath is different, and level of abstraction message can be transmitted between any equipment in whole hybrid network, can be received by any equipment and know Not, this level of abstraction message is used for the management to blended family's network.
Because blended family's network comprises multiple sub-networks supporting different Floor layer Technologies, in order that user sets not knowing about In the case of standby port type, (new equipment refers to present application and is added to net conveniently to add new equipment in network 1905.1 equipment in network, such as the equipment 8 in schematic diagram shown in Fig. 1), it is widely used that in prior art to code operation side Method, can be described as follows referring to its process of Fig. 3:
Step 101, user press new equipment to code key (have one on the equipment that all supports operate to code to code key, Code key can be in the user interface on an entity button or the equipment display interface on equipment, such as drop-down Menu or dialog box etc.), new equipment is triggered startup to code process, broadcast the first instruction message (this first finger in network Show that message is a bottom message, can only be received by the equipment with new equipment with same type of ports).
Step 102, user presses interpolation equipment in predetermined time interval, and (interpolation equipment is that user randomly chooses The individual member device being successfully joined in network, can be embodied as arbitrary single port device or arbitrary bridge device, for example, use Family selects the equipment 1 in schematic diagram shown in Fig. 1 as interpolation equipment) to code key, add equipment code process is also triggered, Start to search for the first instruction message that new equipment sends.
In addition, after starting to code process, interpolation equipment also can produce a push button event (to code event notification message, this is a level of abstraction message to notification, therefore can be by any one member device in network Received and identified), then on its all port meeting condition, this message is sent.Meet the port tool of condition Body can be presented as: certification successfully non-802.11 ports, the ap port of certification successful 802.11, certification successfully but 802.11 Site Ports being not yet associated with ap.
Its all of the port, after the other member devices in network receive to code event notification message, is first changed by step 103 To power on state, and being judged as receiving for the first time this message and forwarded this message on the successful port of certification, This message is made to transmit on all equipment meeting condition in hybrid network.It should be noted that notifying to disappear to code event Breath triggering under, all receive this message and support to code operation member device all can be triggered startup to code process, (new interpolation equipment is relatively to produce for the original interpolation equipment of code event notification message, former to become new interpolation equipment Beginning interpolation equipment i.e. user carry out the equipment selecting when code is operated, and are embodied as equipment 1 in this example), search First instruction message.
Step 104, when original interpolation equipment produce to code event notification message with miscellaneous equipment forwarding (referring to figure Arrow shown in 1) reach the sub-network that should belong to of new equipment after, miscellaneous equipment (as equipment 7) in this sub-network to code process Will be triggered.So equipment 7 will act as new interpolation equipment search the first instruction message, and it is right to judge that equipment 7 is triggered Whether the time of code and its interval of searching between the time of the first instruction message meet the requirements, if meet then it is assumed that this Secondary is that user authorizes to code process, namely new equipment is to add network through legal authorization, and so, equipment 7 will be to newly setting (identification number of such as network, some keys of network etc., particular content regards the specific essential information of standby 8 some networks of offer Depending on different Floor layer Technologies, do not repeat) herein.After new equipment successfully gets above-mentioned specific essential information so that it may To add in hybrid network accordingly, so far just complete to code process.
In addition, stopping to code in order that having been turned on the miscellaneous equipment to code process in network, equipment 7 also will produce one Push button join notification (adds notification message to code, this message is also a level of abstraction message, therefore can Received and identified by any one member device in network) broadcast to network, so that the equipment listening to this broadcast stops To code process.
It should be noted that if the user while when determining interpolation equipment choose is exactly equipment 7, being then triggered in equipment 7 After code process, it is the first instruction message that can search new device broadcasts, such equipment 7 can directly judge the time Whether interval meets preset requirement, and then sends the specific essential information of network when satisfactory to new equipment.Similarly, In this case, equipment 7 also will produce and broadcast one and add notification message to code, so that having been turned in network to code process Miscellaneous equipment stop to code.
In addition, it is necessary to explanation, the first of original interpolation equipment search indicates that message is not necessarily new device broadcasts First instruction message, depending on being specifically dependent upon the Floor layer Technology of original interpolation equipment.When original interpolation equipment and new equipment belong to During same subnet network, the first instruction message of original interpolation equipment search is exactly the first instruction message of new device broadcasts;When former When beginning interpolation equipment and new equipment are not belonging to same subnet network, the first instruction message of original interpolation equipment search is not new equipment First instruction message of broadcast, but in the affiliated sub-network of original interpolation equipment, other starts the device broadcasts to code process.
Above-mentioned to judging during code whether time interval meets preset requirement and carried out by interpolation equipment, adding herein Oil (gas) filling device can be original interpolation equipment can also be new interpolation equipment.
In addition, it is necessary to explanation, above-mentioned is by adding to judging during code whether time interval meets preset requirement Equipment is carried out, and interpolation equipment herein can be original interpolation equipment can also be new interpolation equipment.In addition, according to equipment The difference of the Floor layer Technology supported, the third party device that also can should be belonged to by new equipment in sub-network is realized.Corresponding this scheme, former Beginning interpolation equipment or new interpolation equipment, after starting to code process, do not search for the first instruction message of new device broadcasts, and It is broadcast the second instruction message in network, concrete hunting action is then realized by third party device.Further, third party device Also to judge whether the time interval that it searches between the first instruction message and the second instruction message meets preset requirement, if Meet, then send the specific essential information of network from third party device to new equipment, so that new equipment is added in network.Herein Third party device is also a kind of member device being successfully joined network, is forwarded to newly with to code event notification message the whole network After the sub-network that equipment should belong to, third party device is triggered and bears the functions such as search judgement.
Seen from the above description, the problem that code method be there is with not power saving and waste of resource of the prior art, this Bright is to solve this problem, proposition a kind of new to code method, now carry out description below explanation.
Referring to Fig. 4, show the flow chart to code control device to code embodiment of the method 1 for the present invention, methods described bag Include:
Step 201, receives to code control device and adds notification message by what at least one neighbor device sent to code, described Notification message is added to be that described neighbor device sends after receiving the instruction message of new device broadcasts code, described neighbor device is There is the member device of same type of ports with described new equipment.
The present invention to code method, on the basis of existing hybrid network arrange a third party device, that is, to code control Equipment, is controlled by realizing to code operating process, this equipment has the feature that
(1) there is the Global Topological information of hybrid network, that is, know the path with any one equipment communication in network, That is, can any one equipment communication directly or indirectly and in network to code control device.Correspondingly, the equipment in network In order to communicate with to code control device, it is also to be understood that knowing the control identity to code control device and present position.
(2) there are multiple different types of ports, support multiple Floor layer Technologies.Specifically can be presented as:
One kind is to comprise the sub-network of several types in hybrid network, just should at least have several species to code control device The port of type, this be a kind of ideal to code control device;
Another kind is that have the corresponding port type of part sub-network to code control device, and this requires setting in network Standby can be communicated with to code control device by certain path.
When there being new equipment to add, user press new equipment to code key, start new equipment to code process, new equipment is Broadcast one can indicate message in network.From above-mentioned introduction, indicate that message is a kind of bottom message, it can be had with it The member device having same type of ports receives and identifies, and with reference to above-mentioned, prior art is understood to the description of code process, The interpolation equipment sending the specific essential information of network to new equipment eventually (can optionally be presented as original interpolation equipment or new adding Oil (gas) filling device) necessarily there is the equipment of same type of ports with new equipment, therefore, the present invention just by this point, in new equipment After broadcast instruction message, by the neighbor device that can listen to this instruction message, (so-called neighbor device refers to there is phase with new equipment The member device of same type port, or it can be appreciated that the member device of Floor layer Technology identical with new equipment support) to right Code control device reports one to add notification message to code, informs to two aspect information below code control device with this:
One is, presently, there are the new equipment that request adds network, and this new equipment has been turned on to code process;
One is, this reports the neighbor device for new equipment for the equipment that code is added with notification message, directly can enter with new equipment Row bottom communication, is as the preferred equipment adding equipment.
It should be noted that the new entity that code control device can be independently of with hybrid network in the present invention sets Certain member device that is standby or transforming in hybrid network obtains, and the present invention does not limit to this, as long as making tool in network There is such equipment.In addition, for for code control device, it can be by the member device election in network Produce and (for example, judge in network which or which member device is as characterized above, you can therefrom one conduct of election is to code control Control equipment) produce it is also possible to high-rise configuration is passed through by user, the present invention does not also limit to this.
Step 202, described code control device is chosen from least one neighbor device described one as specify add Equipment, and send specify information to described specified interpolation equipment, carried out with described new equipment with triggering described specified interpolation equipment To code.
Through, after step 201, code control device just being known with currently which can have as the equipment that interpolation equipment uses A bit, thus its can arbitrarily select one as specify interpolation equipment, and by send specify information by way of notify this neighbour Equipment, so as to triggering starts to code process, sends the specific essential information of network to new equipment, so that new equipment is added according to these information Enter in network.
Select to specify a kind of optimal way of interpolation equipment as to code control device, can be according to itself and at least one neighbour The path of equipment communication determines, in order to save the communication resource, can be using corresponding for the shortest communication path neighbor device as finger Surely add equipment, be sent to specify information.
The present invention to code method, directly from the data that can intercept new equipment transmission neighbor device active to code control Equipment reports and adds notification message to code, informs that to code control device it can be carried out as interpolation equipment and new equipment using this right Code;So, code control device just can be selected from least one neighbor device with one as specifying interpolation equipment, control refers to Surely add equipment to complete to code process with new equipment.Hinge structure for code method, the inventive method just possess with Lower benefit:
(1) hybrid network is conducive to economize on electricity.Have a directivity to code control device with specified interpolation equipment communication so as to New equipment is carried out to code, is on the one hand no need for making all member devices supporting code is operated in hybrid network all start to code mistake Journey;On the other hand because being to add equipment communication by certain path with specifying to code control device, therefore path is only needed to pass through Port be in power on state.These two aspects all can greatly save the power consumption of the network equipment.
(2) save network transmission resource.It is right that original interpolation equipment will be sent to code event notification message with having directivity Code control device, and to code control device with having directivity with specified interpolation equipment communication, also would not cause information mixed Close the forwarding on a large scale in network and repeat to receive, greatly reduce information transfer number of times, save the transmission of hybrid network Resource.
(3) save the resource of member device.Code control device is only triggered with the neighbours that necessarily can communicate with new equipment Equipment, is allowed to carry out to code with new equipment, is thus avoided that in hybrid network and starts to code with the member device unrelated to code Process, also avoids the device resource that this few members' device broadcasts indicates that message or search instruction message consume.
Referring to Fig. 5, show the flow chart to code control device to code embodiment of the method 2 for the present invention, methods described bag Include:
Step 301, receives to code control device and adds notification message by what at least one neighbor device sent to code, described Notification message is added to be that described neighbor device sends after receiving the instruction message of new device broadcasts code, described neighbor device is There is the member device of same type of ports with described new equipment.
Step 302, described whether described new equipment legal to be judged to code control device, if described new equipment is legal, Execution step 303.
Step 303, described code control device is chosen from least one neighbor device described one as specify add Equipment, and send specify information to described specified interpolation equipment, carried out with described new equipment with triggering described specified interpolation equipment To code.
In order to ensure the legitimacy of new equipment adding procedure, the embodiment of the present invention also will carry out legitimacy to new equipment and sentence Disconnected, judge that whether new equipment is that user authorizes and is added in hybrid network, step 301 in the present embodiment, 303 with enforcement Step 201 in example 1,202 identical, here is omitted.
Judge in step 302 new equipment legitimacy implementation can be embodied as following two.
First kind of way, the described characteristic that code control device is preserved with legitimate device, then the described new equipment of described judgement Legitimacy include: judge whether the characteristic that described new equipment has is consistent with the characteristic of described legitimate device, if be consistent, Judge that described new equipment is legal.
User can will be used for judging the legitimate device of new equipment legitimacy by way of arranging blacklist or white list Characteristic stores in code control device, to stop illegality equipment from being added to hybrid network.Taking arrange blacklist as a example, characteristic can To be presented as: the mac address of illegality equipment, the ip address of illegality equipment or some illegal feature descriptions are (for example with transport-type Or the information such as transmitted data amount carry out illegal feature description etc.).So, neighbor device carries the characteristic of new equipment to code Add in notification message and report to code control device, make code control device is obtained after the characteristic that has of new equipment so that it may straight The characteristic connecing the legitimate device being stored with it is compared and is judged the legitimacy of new equipment, if legal, can perform follow-up To code operating process, if illegally, this new equipment is not allowed to add.
The second way, described code control device is preserved legal to code time interval, referring to Fig. 6, judge described new The mode of the legitimacy of equipment is:
Step 401 is described described right to the time of code event notification message and reception to the acquisition of code control device record Code add notification message time, described to code event notification message be used for represent that the original interpolation equipment that user specifies has been turned on To code;
Step 402, described described with reception to the code control device judgement acquisition described time to code event notification message To code add notification message time between interval whether meet described legal to code time interval, if met, judge Described new equipment is legal.
This mode is primarily adapted for use in the scene with original interpolation equipment it is contemplated that compatibility with prior art, this Scheme of the invention also can select an equipment as original interpolation equipment by user before to code from hybrid network, and triggers former Beginning interpolation equipment and new equipment to code key, so that the two is respectively started to code process.For original interpolation equipment, it is wide After broadcasting instruction message, also can produce one and code event notification message is sent to code control device, to code control device just Need to record it and receive the time of this message.Accordingly, after new device broadcasts instruction message, the neighbours of new equipment Equipment also can add notification message to sending one to code control device to code, also needs record to receive this code control device The time of bar message, after being processed as, to new equipment, validity judgement can be carried out to code control device, process can embody such as Under:
Because user may first trigger new equipment and trigger original interpolation equipment again it is also possible to first trigger original interpolation equipment again Triggering new equipment, therefore, if on the basis of code control device is obtained with the time to code event notification message, closed When method judges, can determine whether whether to receive in time window [- t, t] to code addition notification message, for all in this time window Inside receive adds the corresponding new equipment of notification message to code, can be assumed that it is legal new equipment, can perform and subsequently code is grasped Make process.
If it should be noted that user knows which equipment is to code control device in advance, also can be chosen to former Beginning interpolation equipment, so user triggering to code control device to code key after, its record to code event notification message Time is exactly that it produces the time of this message.
In addition, it is necessary to explanation, in the above-mentioned scene with original interpolation equipment, first kind of way also can be applied to enter Row validity judgement, or comprehensive two ways carries out validity judgement, and the present invention does not limit to this.
For the above-mentioned scene with original interpolation equipment, this original interpolation equipment possible and new equipment have identical Type port, so original interpolation equipment can use directly as specified interpolation equipment, need not to code control device more again Specify a neighbor device simultaneously so that it is started to code process, for this reason, present invention also offers a kind of to code control device to code The flow chart of embodiment of the method 3, referring to Fig. 7, methods described includes:
Step 501, receives to code control device and adds notification message by what at least one neighbor device sent to code, described Notification message is added to be that described neighbor device sends after receiving the instruction message of new device broadcasts code, described neighbor device is There is the member device of same type of ports with described new equipment.
Step 502 is described described right to the time of code event notification message and reception to the acquisition of code control device record Code add notification message time, described to code event notification message be used for represent that the original interpolation equipment that user specifies has been turned on To code.
Step 503, described described with reception to the code control device judgement acquisition described time to code event notification message To code add notification message time between interval whether meet described legal to code time interval, if met, judge Described new equipment is legal, continues executing with step 504;Otherwise judge that described new equipment is illegal, do not allow this new equipment to add.
Step 501 is identical with the step 201 shown in Fig. 4, step 502,503 with the step 401 shown in Fig. 6,402 identical, Here is omitted.
Step 504, the described port type that code control device is judged with described original interpolation equipment and described new equipment Whether port type is identical, if it is different, then execution step 505;If identical, choose described original interpolation equipment as institute State specified interpolation equipment, so that described original interpolation equipment and described new equipment is carried out to code.
To code control device before selecting to specify interpolation equipment, first judge the port of the original interpolation equipment that user selects Whether type is identical with the port type of new equipment, if identical, represent original interpolation equipment and supports identical with new equipment Floor layer Technology, can directly carry out bottom communication, therefore code control device can directly be chosen with original interpolation equipment and add as specifying Oil (gas) filling device, is completed to code process with new equipment.So, it is no need for again from the other neighbor devices in addition to original interpolation equipment Select one as specify interpolation equipment, it is to avoid restart an equipment to code process, just can preferably economize on electricity and save Resource.
If it should be noted that original interpolation equipment and new equipment have same type of ports, original interpolation equipment That is to say one of numerous neighbor device of new equipment, then original interpolation equipment is listening to the instruction message of new device broadcasts Afterwards, also to sending to code control device, notification message can be added to code.For in this case, optimal case is to code control It is to specify interpolation equipment that equipment chooses original interpolation equipment from numerous neighbor devices.
Step 505, described code control device is chosen from least one neighbor device described one as specify add Equipment, and send specify information to described specified interpolation equipment, carried out with described new equipment with triggering described specified interpolation equipment To code.
Above from the angle to code control device, to code method, explanation is explained to the present invention, below again from The angle of neighbor device explains.
Referring to Fig. 8, show the flow chart to decoding apparatus to code embodiment of the method 1 for the present invention, methods described includes:
Decoding apparatus are received the instruction message of new device broadcasts by step 601, and to sending to code control device, code are added Notification message.
When there being new equipment to add, user press new equipment to code key, start new equipment to code process, new equipment is Broadcast one can indicate message in network, this instruction message is a bottom message, therefore, only has identical with new equipment The equipment of type port just can listen to.Listen to instruction message to decoding apparatus, be on the one hand to be successfully joined hybrid network Member device, on the other hand also support identical Floor layer Technology with new equipment, this to institute in decoding apparatus as above-mentioned Fig. 4-7 The neighbor device claiming.
Decoding apparatus are known to code control device present position, therefore after it receives instruction message, that is, can be by certain Path, to code control device is sent with a pair yard of addition notification message, is informed in the current network to code control device by this message There is the new equipment that request adds, and this can carry out bottom communication with this new equipment to decoding apparatus, this is awarded to decoding apparatus by request Weigh as specifying interpolation equipment, carry out to code with new equipment.
Step 602, described specify information that code control device is sent described to decoding apparatus reception, and add as specifying Equipment and described new equipment are carried out to code.
What code control device was received with least one sends to decoding apparatus (i.e. the neighbor device of new equipment) adds to code After notification message, therefrom select one to decoding apparatus as specified interpolation equipment, and it is right to inform that this is selected by specify information Decoding apparatus, or it can be appreciated that decoding apparatus are authorized so as to carry out with new equipment to selected by specify information To code, specific for network essential information is sent to new equipment.
Select to specify a kind of optimal way of interpolation equipment as to code control device, can will be corresponding for the shortest communication path To decoding apparatus as specified interpolation equipment.
Referring to Fig. 9, show the flow chart to decoding apparatus to code embodiment of the method 2 for the present invention, methods described includes:
Decoding apparatus are received the instruction message of new device broadcasts by step 701, and to sending to code control device, code are added Notification message.
Step 702, described specify information that code control device is sent described to decoding apparatus reception, and add as specifying Equipment and described new equipment are carried out to code.
Step 701,702 with step 601,602 identical, here is omitted.
Step 703, described have message to decoding apparatus broadcast, to control the miscellaneous equipment that can receive described instruction message to stop Only described notification message is added to code to described transmission to code control device.
Because there may be in hybrid network more than one can listen to new device broadcasts instruction message to decoding apparatus, These equipment all can add notification message it is desirable to can be awarded to sending to code control device to code after listening to instruction message Weigh as specifying interpolation equipment.However, new equipment finally only can be carried out to code to decoding apparatus with one, therefore at certain, decoding apparatus are connect Receive after specify information becomes specified interpolation equipment, one will be broadcasted in its affiliated sub-network and there is message, this presence disappears Breath is also a kind of bottom message, thus can make the other listening to instruction message to decoding apparatus, in the presence of there is message Stop, to sending to code control device to code addition notification message, saving network transmission resource as far as possible.
Referring to Figure 10, show the flow chart to decoding apparatus to code embodiment of the method 3 for the present invention, methods described includes:
Step 801, to decoding apparatus receive new device broadcasts instruction message, and with can receive described indicate message other Equipment competitive resource, if described decoding apparatus are competed obtains described resource, broadcast adds and prepares message, with forbid described its Its equipment adds notification message to the transmission of code control device to code.
Step 802, described to decoding apparatus to described to code control device send described to code add notification message.
Step 803, described specify information that code control device is sent described to decoding apparatus reception, and add as specifying Equipment and described new equipment are carried out to code.
For the saving network transmission resource of maximum possible, and only need to add with one in view of new equipment in practical application Oil (gas) filling device is carried out to code, thus all instruction message listening to new device broadcasts to decoding apparatus to code control device ask Before mandate, first carry out channel competition, only competition obtains that channel is usufructuary that decoding apparatus just can be sent out to code control device Send and notification message is added to code, this just can be avoided two or more that decoding apparatus are all sent out to code control device from root Send wasting of resources code being added notification message cause, farthest save network transmission resource.
With reference to concrete application, the present invention is realized the process of code is carried out to code control device and neighbor device interaction Illustrate.
As a kind of implementation of the present invention, select original interpolation equipment without user, as long as its triggering new equipment enters Enter to code process, below so that new equipment 8 is added to network as a example, this implementation is explained, specifically can join See Figure 11, schematic diagram shown in 12.
Step 901, when there being new equipment to add, user press new equipment to code key, trigger new equipment and start to code mistake Journey.The message format of the Floor layer Technology agreement that new equipment is supported with its port, the sub-network that should belong to it (refers in this example Sub-network n) broadcasts the one first bottom skill indicating that message, the particular content of this message and form are supported depending on new equipment Art, does not do excessive introduction herein.
Step 902, the neighbor device of new equipment 8 (refers to single port device 7, bridge device 5, bridge device m) detect in this example After hearing the first instruction message of new device broadcasts, produce 1905.1 level of abstraction message respectively, add notice to disappear code Breath push button join notification, and this control message is sent to code control device.
It should be noted that neighbor device to code control device send to code add notification message mode, Ke Yishi Directly transmit it is also possible to forward through the single port device in bridge device and other sub-network as shown in figure 11, the present invention is to this not Limit.
Step 903, judges that to code control device whether it be to receive that new equipment 8 is corresponding to add notice to disappear code for the first time Breath, if it is, execution step 904 carries out validity judgement;Otherwise abandon this message.
Step 904, judges to code control device whether new equipment is legitimate device.Concrete mode is: if to code control Device configuration has blacklist, then check the mac address of new equipment 8 whether on the blacklist, if, judge this new equipment as Illegality equipment;Otherwise judge this new equipment as legitimate device.If white list is configured with to code control device, check that this newly sets Standby 8 mac address whether on white list, if judging this new equipment as legitimate device;Otherwise judge this new equipment as Illegality equipment.
Step 905, is receiving when adding notification message to code of neighbor device transmission to code control device, just can know The level of abstraction mac address (this address with neighbor device correspond) of each neighbor device, is therefore judging new equipment as legal After equipment, by corresponding for certain level of abstraction mac address neighbor device, specified interpolation equipment can be chosen to be to code control device, and To one specify information of this device replied, in this example, by equipment 7, specified interpolation equipment can be chosen to be to code control device, It is sent to specify information.
It should be noted that when step 904 judges that new equipment is legal, specify information can be sent to code control device;As Fruit new equipment is illegality equipment, then can should belong to sub-network broadcast one to new equipment to code control device and represent that new equipment is illegal Message, the neighbor device making new equipment with this stops adding notification message to the transmission of code control device to code.As this expression A kind of preferred version of the illegal message of new equipment, it can comprise three below parameter: the port mac address (tool of new equipment Body refers to the mac address that new equipment carries out the port to code), result of determination, illegal reason.Wherein, " illegal reason " can concrete body Now exceed for time interval and legal code time interval or new equipment characteristic are not corresponded with the characteristic of legitimate device.So, adjacent Occupy equipment upon receiving the message, not only can stop to code control device is sent out to code add notification message, further The new equipment that also illegal reason can not corresponded for characteristic be added on this equipment blacklist in so that in this new equipment next time When request adds network, directly ignore its request.It is to code time interval beyond legal for illegal reason, because it is probably Caused by user presses to artificial origin during code key, therefore whether new equipment is added in blacklist in this case, the present invention is not Do and limit further.
Or, in order to simplify the instruction of the present invention program application, after step 904 judges new equipment legitimacy, no matter newly Whether equipment is legal, code control device is all selected with a specified interpolation equipment, and is sent to a specify information.As finger Determine a kind of preferred version of information, it can comprise following four parameter: the port mac address of new equipment (refers specifically to new equipment Carry out the mac address of the port to code), result of determination, illegal reason (when new equipment is legal this parameter be sky, in new equipment For illegal when this parameter be presented as one of above two concrete reason), specify interpolation equipment level of abstraction mac address.
Step 906, after member device 7 receives specify information, broadcasts one to sub-network n and there is message, make sub-network n Middle miscellaneous equipment stops after receiving this message adding notification message to the transmission of code control device to code.
For though whether above-mentioned new equipment legal all send out specify information in the case of for, if the judgement in specify information Result represents that new equipment is illegal, then specify interpolation equipment also can broadcast one in sub-network n and there is message, and by new equipment Port mac address, result of determination, three parameters of illegal reason are carried on exists in message, and such neighbor device also can be illegal New equipment record is in this equipment, and optionally illegal new equipment is added in blacklist.
Step 907 starts to code process it is intended that adding equipment, completes to code with new equipment.
Consider and the existing compatibling problem to code method, present invention also offers another kind of implementation, in which Under, need also exist for user and select an original interpolation equipment in hybrid network, and trigger original interpolation equipment respectively and newly set For making the two enter to code process, if the original interpolation equipment that user selects is the equipment 1 in sub-network 1, new equipment 8 adds The implementation entering to network can be found in Figure 13, schematic diagram shown in 14.
Step 1001, when there being new equipment to add, user press new equipment to code key, trigger new equipment and start to code mistake Journey.The message format of the Floor layer Technology agreement that new equipment is supported with its port, should belong to sub-network to it and (refer to son in this example Network n) broadcasts the one first bottom skill indicating that message, the particular content of this message and form are supported depending on new equipment Art, does not do excessive introduction herein.
Step 1002, user press in specific time interval original interpolation equipment to code key, trigger original interpolation and set Standby startup is to code process.Original interpolation equipment can search for new equipment in its affiliated sub-network (referring to sub-network 1 in this example) First instruction message of broadcast.In this example, equipment 1 startup that is triggered disappears to also will producing a level of abstraction after code process Breath, sends to code control device to code event notification message push button event notification.
It should be noted that above-mentioned steps 1001 and 1002 execution sequence can exchange, namely which user first set by Standby no affects on code process on the present invention on code key.
Step 1003, new equipment 8 neighbor device (refer in this example single port device 7, bridge device 5 with new equipment 8 The port of same type, the port with new equipment 8 same type of bridge device m) listen to new device broadcasts first instruction disappear After breath, produce 1905.1 level of abstraction message respectively, notification message push button join is added to code Notification, and send the message to code control device.
It should be noted that original interpolation equipment sends to code event notification message, neighbor device to code control device Send, to code control device, the mode that code is added with notification message, can be to directly transmit it is also possible to as shown in figure 13 through bridge Single port device in equipment and other sub-network forwards, and the present invention does not limit to this.But, the information in the present invention forwards Process is not in the situation that in prior art, the whole network forwards, and neighbor device can be fixed by the shortest path between code control device Forward message to ground, also can be forwarded by the message that the port that other in network has been in power on state is oriented, but No matter forwarding message in which way, being all original interpolation equipment and the directed message between code control device is not forwarded, and not Occur that in prior art, the whole network forwards and the situation of reception is repeated several times.
Step 1004, often receives one and code is added notification message can mode pair as shown in Figure 15 to code control device It carries out classification caching, in case subsequent process uses.
Step 1005, after code control device being received with original interpolation equipment sends to code event notification message, Begin to process that it receives adds notification message to code, to judge the legitimacy of new equipment.
To receive the time point to code event notification message as reference point, judge whether receive in time window [- t, t] right Code adds notification message, if received then it is assumed that new equipment is legitimate device, continues executing with step 1006;Otherwise add to original Oil (gas) filling device returns one and represents to code failure, so that original interpolation equipment is stopped to code, additionally, also may be used to code control device In example, the illegal result judging is informed that here is omitted to the neighbor device of new equipment as shown in Figure 11,12.
If adding request code is added it should be noted that receiving in time window [- t, t] and representing multiple new equipments Notification message, then it is believed that this multiple new equipment is legal new equipment.That is, user can in triggering one original add Trigger multiple new equipments while oil (gas) filling device, realize the new equipment adding procedure of one-to-many.The multiple new equipment of above-mentioned triggering is permissible It is interpreted as triggering multiple stage physical equipment it is understood that being one physical equipment with multiple dissimilar ports of triggering, this In the case of kind, the physical equipment application that this has multiple dissimilar ports is added to different sub-networks respectively, therefore right Multiple new equipments can be regarded as during code.
Step 1006, in order to save Internet resources, original interpolation equipment and new equipment under code control device will be judged ( I.e. neighbor device) whether there is the port of same type.If do not had, execution step 1007;If it has, then choosing former Beginning interpolation equipment, as specified interpolation equipment, is directly carried out to code with new equipment.
The mode judging port type to code control device is:
Code control device is obtained from receive to code event notification message with the level of abstraction mac ground of original interpolation equipment Location, and judge that this level of abstraction mac address whether there is in " the level of abstraction mac address of the neighbor device " list shown in Figure 15. If it is present judging that original interpolation equipment and neighbor device (namely new equipment) have the port of same type;Otherwise judge The two does not have the port of same type.
Step 1007, chooses a specified interpolation equipment to code control device from least one neighbor device.Specifically side Formula is: to code control device from Figure 15 shown in " the level of abstraction mac address of neighbor device " list select new equipment a certain Individual neighbor device as specified interpolation equipment, and to this neighbor device send a level of abstraction message, i.e. specify information, for example to Bridge device 5 sends specify information.
Step 1008, sends a result to code control device to original interpolation equipment and indicates message, inform original interpolation Equipment is currently selected and is specified interpolation equipment, and original interpolation equipment can stop to code process.Certainly, if to code control device not Select specified interpolation equipment, and original interpolation equipment can not carry out bottom communication with new equipment, then to code control device also again Original interpolation equipment can be made to stop to code process by way of sending out result and indicating message.
Step 1009, after bridge device 5 receives specify information, using its Floor layer Technology message format in sub-network n Middle broadcast one there is message, make other neighbor devices of new equipment stop to code control device send to code addition notice disappear Breath.
Step 1010 starts to code process it is intended that adding equipment, completes to code with new equipment.
It should be noted that in Figure 12, the example shown in 14, in order to save network transmission resource further, in new equipment After broadcast the first instruction message, the neighbor device of new equipment wants competitive channel resource, and only competition obtains the neighbours of channel resource Equipment could add notification message to sending to code control device to code, namely code control device can only be received with neighbours set What preparation was sent adds notification message to code.So, can directly this neighbor device mandate be to enter with new equipment to code control device The specified interpolation equipment to code for the row.
Based on the scheme of above-mentioned competitive channel resource, present invention also offers a kind of side that need not arrange to code control device Case, still so that new equipment 8 asks to add network as a example explains below.
First, when there being new equipment to add, user press new equipment to code key, trigger new equipment and start to code process. The message format of the Floor layer Technology agreement that new equipment is supported with its port, should belong to sub-network to it and (refer to subnet in this example Network n) broadcasts one first Floor layer Technology indicating that message, the particular content of this message and form are supported depending on new equipment, Do not do excessive introduction herein.
Secondly, new equipment neighbor device (refer in this example single port device 7, bridge device 5 identical with new equipment 8 The port of type, the port with new equipment 8 same type of bridge device m) listen to new device broadcasts first instruction message after, Start competitive channel, and broadcast one by the neighbor device (hereinafter referred to as first neighbor device) obtaining channel resource to add preparation Message, so that other neighbor device stops competitive channel and transmission addition prepares message.
Then, the first neighbor device passes through its user interface to user feedback customizing messages, with point out user its have been received by The first of new device broadcasts indicates message, and it can use as specified interpolation equipment.
Specifically, the first neighbor device can embody to the mode of user feedback customizing messages as follows:
If user interface is the light sources such as LED lamp, can point out to use by the mode such as opening, closing, flash Family;
If user interface is the sound source devices such as loudspeaker, tone etc. can be specified by playback, stopping playback, broadcasting Mode points out user;
If user interface is the display devices such as display screen, can point out to use by modes such as word, given pattern Family.
Finally, the first neighbor device accepts user's mandate and becomes specified interpolation equipment, namely receives the first neighbours in user So that it may be to specify interpolation equipment by this equipment choice after equipment feedack, directly press it to code key, triggering is specified and added Oil (gas) filling device starts to code process, completes to code with new equipment.
Referring to Figure 16, show the schematic diagram to code control device embodiment 1 for the present invention, described equipment includes:
Receiving unit 1101, adds notification message by what at least one neighbor device sent to code for receiving, described right Code add notification message be that described neighbor device sends after receiving the instruction message of new device broadcasts, described neighbor device be with Described new equipment has the member device of same type of ports.
Choose unit 1102, for choosing one from least one neighbor device described as specified interpolation equipment.
Transmitting element 1103, for sending specify information to the described described specified interpolation equipment choosing unit selection, with Trigger described specified interpolation equipment to carry out to code with described new equipment.
Referring to Figure 17, show the schematic diagram to code control device embodiment 2 for the present invention, described equipment includes:
Receiving unit 1201, adds notification message by what at least one neighbor device sent to code for receiving, described right Code add notification message be that described neighbor device sends after receiving the instruction message of new device broadcasts, described neighbor device be with Described new equipment has the member device of same type of ports.
First judging unit 1202, whether legal for judging described new equipment, if described new equipment is legal, notify Choose unit and choose one from least one neighbor device described as specified interpolation equipment.
Choose unit 1203, set as described specified interpolation for choosing one from least one neighbor device described Standby.
Transmitting element 1204, for sending specify information to the described described specified interpolation equipment choosing unit selection, with Trigger described specified interpolation equipment to carry out to code with described new equipment.
Corresponding with embodiment of the method, the first judging unit can be presented as following two specific implementations.
In first kind of way, described first judging unit includes:
First storage unit, for preserving the characteristic of legitimate device;
First judgment sub-unit, for judging characteristic that described new equipment the has characteristic phase whether with described legitimate device Symbol, if be consistent, judges that described new equipment is legal.
In the second way, described first judging unit includes:
Second storage unit, for preserve legal to code time interval;
Obtaining unit, for obtaining to code event notification message, described is used for representing that user refers to code event notification message Fixed original interpolation equipment has been turned on to code;
Recording unit, obtains the described time to code event notification message and described connects for recording described obtaining unit Receive unit and receive the described time that code is added with notification message;
Second judgment sub-unit, for judge to obtain the described time to code event notification message with receive described to code plus Interval between the time entering notification message whether meet described legal to code time interval, if met, judge described new Equipment is legal.
It should be noted that in the second way of above-mentioned validity judgement, obtain described to code event notification message Mode be:
If described is described original interpolation equipment to code control device, described obtaining unit, specifically in user Produce after triggering described to code event notification message;Otherwise described obtaining unit, specifically for receiving described original interpolation equipment Send described to code event notification message.
Based on the second way of above-mentioned validity judgement, referring to Figure 18, show that the present invention is implemented to code control device The schematic diagram of example 3, described equipment includes:
Receiving unit 1301, adds notification message by what at least one neighbor device sent to code for receiving, described right Code add notification message be that described neighbor device sends after receiving the instruction message of new device broadcasts, described neighbor device be with Described new equipment has the member device of same type of ports.
Second storage unit 1302, for preserve legal to code time interval.
Obtaining unit 1303, for obtaining to code event notification message, described code event notification message is used for representing use The original interpolation equipment that family is specified has been turned on to code.
Recording unit 1304, obtains the described time to code event notification message and institute for recording described obtaining unit State receiving unit and receive the described time that code is added with notification message.
Second judgment sub-unit 1305 is described right with reception for judging the acquisition described time to code event notification message Code add notification message time between interval whether meet described legal to code time interval, if met, judge institute State new equipment legal.
Second judging unit 1306, for when described second judgment sub-unit judges that described new equipment is legal, judging institute Whether the port type stating original interpolation equipment is identical with the port type of described new equipment.
Choose unit 1307, for when described second judging unit judges that port type is identical, choosing described original add Oil (gas) filling device is as described specified interpolation equipment;From at least one neighbor device described, otherwise choose one add as described specifying Oil (gas) filling device.
Transmitting element 1308, for sending specify information to the described described specified interpolation equipment choosing unit selection, with Trigger described specified interpolation equipment to carry out to code with described new equipment.
Referring to Figure 19, show the schematic diagram to decoding apparatus embodiment 1 for the present invention, described equipment includes:
First receiving unit 1401, for receiving the instruction message of new device broadcasts.
Transmitting element 1402, for, after described receiving unit receives described instruction message, sending out to code control device Send and notification message is added to code.
Second receiving unit 1403, for receiving the described specify information that code control device is sent, and makes this that code is set Standby conduct specifies interpolation equipment and described new equipment to carry out to code.
Referring to Figure 20, show the schematic diagram to decoding apparatus embodiment 2 for the present invention, described equipment includes:
First receiving unit 1501, for receiving the instruction message of new device broadcasts.
Transmitting element 1502, for, after described receiving unit receives described instruction message, sending out to code control device Send and notification message is added to code.
Second receiving unit 1503, for receiving the described specify information that code control device is sent, and makes this that code is set Standby conduct specifies interpolation equipment and described new equipment to carry out to code.
First radio unit 1504, after receiving described specify information in described second receiving unit, broadcast exists Message, with control can receive described instruction message miscellaneous equipment stop to described to code control device send described to code addition Notification message.
Referring to Figure 21, show the schematic diagram to decoding apparatus embodiment 3 for the present invention, described equipment includes:
First receiving unit 1601, for receiving the instruction message of new device broadcasts.
Competitive unit 1602, after receiving described instruction message in described first receiving unit, and can receive institute State the miscellaneous equipment competitive resource of instruction message;
Second radio unit 1603, after competing and obtain described resource in described competitive unit, broadcast adds preparation Message, with forbid described miscellaneous equipment to described to code control device send described to code add notification message.
Transmitting element 1604, after competing and obtain described resource in described competitive unit, sends out to code control device Send and notification message is added to code.
Second receiving unit 1605, for receiving the described specify information that code control device is sent, and makes this that code is set Standby conduct specifies interpolation equipment and described new equipment to carry out to code.
It should be noted that the second radio unit broadcast add the time preparing message can send to code with transmitting element plus The time entering notification message is identical, also can be different, and the present invention does not limit to this, as long as after competition obtains channel resource, Complete this two operational motions.
Further, the embodiment of the present invention also each provides to code control device and the hardware of decoding apparatus is constituted.Can Including at least one processor (such as cpu), at least one network interface or other communication interface, memorizer, and at least one Individual communication bus, for realizing the connection communication between these devices.Processor is used for executing in memorizer the executable of storage Module, such as computer program.Memorizer may comprise high-speed random access memory (ram:random access Memory) it is also possible to also include non-labile memorizer (non-volatile memory), for example, at least one disk is deposited Reservoir.This system gateway and at least one other network element are realized by least one network interface (can be wired or wireless) Between communication connection, it is possible to use the Internet, wide area network, LAN, Metropolitan Area Network (MAN) etc..
For for code control device, referring to Figure 22, in some embodiments, the program that stores in memorizer refers to Order, programmed instruction can be executed by processor, and wherein, programmed instruction includes receiving unit 1101, chooses unit 1102, sends list Unit 1103, each unit implement the corresponding units that can be found in disclosed in Figure 16.Or programmed instruction may also include Figure 17,18 Disclosed other units, repeat no more here.
For for decoding apparatus, referring to Figure 23, in some embodiments, in memorizer, store programmed instruction, journey Sequence instruction can be executed by processor, and wherein, programmed instruction includes the first receiving unit 1401, transmitting element 1402, second connects Receive unit 1403, each unit implement the corresponding units that can be found in disclosed in Figure 19.Or programmed instruction may also include figure 20th, the other units disclosed in 21, repeat no more here.
The present invention program can be described in the general context of computer executable instructions, such as Program unit.Usually, program unit includes executing particular task or realizes the routine of particular abstract data type, program, right As, assembly, data structure etc..The present invention program can also be put into practice in a distributed computing environment, in these Distributed Calculation In environment, execute task by the remote processing devices connected by communication network.In a distributed computing environment, program Unit may be located in the local and remote computer-readable storage medium including storage device.
Each embodiment in this specification is all described by the way of going forward one by one, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiments.Real especially for device For applying example, because it is substantially similar to embodiment of the method, so describing fairly simple, referring to embodiment of the method in place of correlation Part illustrate.Device embodiment described above is only schematically, wherein said illustrates as separating component Unit can be or may not be physically separate, as the part that unit shows can be or may not be Physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to the actual needs Select the purpose to realize this embodiment scheme for some or all of module therein.Those of ordinary skill in the art are not paying In the case of creative work, you can to understand and to implement.
Above the embodiment of the present invention is described in detail, specific embodiment used herein is carried out to the present invention Illustrate, the explanation of above example is only intended to help and understands the method for the present invention and equipment;Simultaneously for this area one As technical staff, according to the present invention thought, all will change in specific embodiments and applications, to sum up institute State, this specification content should not be construed as limitation of the present invention.

Claims (18)

1. one kind to code method it is characterised in that methods described includes:
To code control device receive by least one neighbor device send to code add notification message, described to code add notify Message is that described neighbor device sends after receiving the instruction message of new device broadcasts, and described neighbor device is and described new equipment There is the member device of same type of ports;
Described code control device is chosen from least one neighbor device described with one as specifying interpolation equipment, and to described Specified interpolation equipment sends specify information, is carried out to code with described new equipment with triggering described specified interpolation equipment;
Wherein, the described Global Topological information to code control device with hybrid network and at least two different types of ends Mouthful.
2. method according to claim 1 is it is characterised in that choose one described from least one neighbor device described Before interpolation equipment is specified in individual conduct, methods described also includes:
Judge whether described new equipment is legal, if described new equipment is legal, then execute from least one neighbor device described Choose a step as specifying interpolation equipment.
If 3. method according to claim 2 is it is characterised in that described preserve legitimate device to code control device Characteristic, then described judge whether described new equipment is legal, comprising:
Judging whether the characteristic that described new equipment has is consistent with the characteristic of described legitimate device, if be consistent, judging described New equipment is legal.
If method according to claim 2 it is characterised in that described code control device is preserved legal to code when Between be spaced, then described judge whether described new equipment legal, comprising:
Described code control device record obtained to time of code event notification message and receive and described add notice to disappear code Breath time, described to code event notification message be used for represent that the original interpolation equipment that user specifies has been turned on to code, described former Beginning interpolation equipment is to be successfully joined network and randomly choosed by user and be pressed by the user its equipment to code key;
Described to code control device judge obtain the described time to code event notification message with receive described to code add notify Interval between the time of message whether meet described legal to code time interval, if met, judge that described new equipment closes Method.
5. method according to claim 4 it is characterised in that described to code control device obtain described to code event notify Message, comprising:
If described is described original interpolation equipment to code control device, the described institute that code control device is obtained with itself generation State to code event notification message;Otherwise described code control device is received with described original interpolation equipment sends described to code event Notification message.
6. the method according to claim 4 or 5 it is characterised in that described judgement described new equipment legal after, described Method also includes:
Judge whether the port type of described original interpolation equipment is identical with the port type of described new equipment;
Then
The described specified interpolation equipment of one conduct of selection from least one neighbor device described, comprising:
If the port type of described original interpolation equipment is identical with the port type of described new equipment, choose described original add Oil (gas) filling device is as described specified interpolation equipment;If it is different, then choosing one from least one neighbor device described as institute State specified interpolation equipment.
7. one kind to code method it is characterised in that methods described includes:
Decoding apparatus are received with the instruction message of new device broadcasts, and to sending to code control device, notification message is added to code;
Described the described specify information that code control device is sent is received to decoding apparatus, and new with described as specifying interpolation equipment Equipment is carried out to code;
Wherein, the described Global Topological information to code control device with hybrid network and at least two different types of ends Mouthful.
8. method according to claim 7 it is characterised in that described to decoding apparatus receive described to code control device send Specify information after, methods described also includes:
Described have message to decoding apparatus broadcast, to control the miscellaneous equipment that can receive described instruction message to stop to described to code Control device transmission is described to add notification message to code.
9. method according to claim 7 it is characterised in that described to decoding apparatus receive new device broadcasts instruction message Afterwards, methods described also includes:
Described to decoding apparatus with can receive described indicate message miscellaneous equipment competitive resource, if described to decoding apparatus compete obtain Described resource, then broadcast add prepare message, with forbid described miscellaneous equipment to described to code control device send described right Code adds notification message.
10. one kind to code control device it is characterised in that described equipment includes:
Receiving unit, adds notification message for receiving by what at least one neighbor device sent to code, described code is added logical Know that message is that described neighbor device sends after receiving the instruction message of new device broadcasts, described neighbor device is newly to set with described Get everything ready and have the member device of same type of ports;
Choose unit, for choosing one from least one neighbor device described as specified interpolation equipment;
Transmitting element, for sending specify information to the described described specified interpolation equipment choosing unit selection, described to trigger Specified interpolation equipment and described new equipment are carried out to code;
Wherein, the described Global Topological information to code control device with hybrid network and at least two different types of ends Mouthful.
11. according to claim 10 to code control device it is characterised in that described equipment also includes:
First judging unit, whether legal for judging described new equipment, if described new equipment is legal, trigger described selection Unit chooses one as specified interpolation equipment from least one neighbor device described.
12. according to claim 11 to code control device it is characterised in that described first judging unit includes:
First storage unit, for preserving the characteristic of legitimate device;
First judgment sub-unit, for judging whether the characteristic that described new equipment has is consistent with the characteristic of described legitimate device, If be consistent, judge that described new equipment is legal.
13. according to claim 11 to code control device it is characterised in that described first judging unit includes:
Second storage unit, for preserve legal to code time interval;
Obtaining unit, for obtaining to code event notification message, described is used for representing what user specified to code event notification message Original interpolation equipment has been turned on to code, described original interpolation equipment be be successfully joined network and randomly choosed by user and by with Its equipment to code key is pressed at family;
Recording unit, obtains the described time to code event notification message and described reception list for recording described obtaining unit Unit receives the described time that code is added with notification message;
Second judgment sub-unit, for judging to obtain the described time to code event notification message and receiving described logical to code addition Interval between the time knowing message whether meet described legal to code time interval, if met, judge described new equipment Legal.
14. according to claim 13 to code control device it is characterised in that
If described is described original interpolation equipment to code control device, described obtaining unit is produced specifically for obtaining itself Raw described to code event notification message;Otherwise described obtaining unit, specifically for receiving what described original interpolation equipment sent Described to code event notification message.
15. according to claim 13 or 14 to code control device it is characterised in that described equipment also includes:
Second judging unit, after judging that described new equipment is legal in described first judging unit, judges described original add Whether the port type of oil (gas) filling device is identical with the port type of described new equipment, if identical, triggers described selection unit choosing Take described original interpolation equipment as described specified interpolation equipment;If it is different, then triggering described selection unit from described at least One is chosen as described specified interpolation equipment in one neighbor device.
16. a kind of to decoding apparatus it is characterised in that described equipment includes:
First receiving unit, for receiving the instruction message of new device broadcasts;
Transmitting element, for after described receiving unit receives described instruction message, to sending to code control device to code plus Enter notification message;
Second receiving unit, for receiving the described specify information that code control device is sent, and makes this to decoding apparatus as finger Surely add equipment to carry out to code with described new equipment;
Wherein, the described Global Topological information to code control device with hybrid network and at least two different types of ends Mouthful.
17. according to claim 16 to decoding apparatus it is characterised in that described also include to decoding apparatus:
First radio unit, after receiving described specify information in described second receiving unit, there is message in broadcast, to control System can receive described instruction message miscellaneous equipment stop to described to code control device transmission described to code addition notification message.
18. according to claim 16 to decoding apparatus it is characterised in that described also include to decoding apparatus:
Competitive unit, after receiving described instruction message in described first receiving unit, disappears with receiving described instruction The miscellaneous equipment competitive resource of breath;
Second radio unit, after competing and obtain described resource in described competitive unit, broadcast adds preparation message, to prohibit Only described miscellaneous equipment described adds notification message to code to described transmission to code control device.
CN201310144980.8A 2013-04-24 2013-04-24 Code verification method, code verification control equipment and code verification equipment Expired - Fee Related CN103248543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310144980.8A CN103248543B (en) 2013-04-24 2013-04-24 Code verification method, code verification control equipment and code verification equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310144980.8A CN103248543B (en) 2013-04-24 2013-04-24 Code verification method, code verification control equipment and code verification equipment

Publications (2)

Publication Number Publication Date
CN103248543A CN103248543A (en) 2013-08-14
CN103248543B true CN103248543B (en) 2017-01-25

Family

ID=48927773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310144980.8A Expired - Fee Related CN103248543B (en) 2013-04-24 2013-04-24 Code verification method, code verification control equipment and code verification equipment

Country Status (1)

Country Link
CN (1) CN103248543B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330723B (en) * 2015-06-15 2020-03-13 中兴通讯股份有限公司 Discovery method and device of network neighbor equipment
CN105072212B (en) * 2015-08-19 2018-08-24 肖杨 To code method and to code system
CN106341869A (en) * 2016-10-31 2017-01-18 Tcl集团股份有限公司 Code pairing method and apparatus
CN110113175B (en) * 2018-02-01 2021-11-09 华为技术有限公司 Network security access method and home network equipment
CN108901016B (en) * 2018-09-14 2022-04-26 锐捷网络股份有限公司 Bridging pairing method, terminal, system, terminal device and medium
CN110943824B (en) * 2019-11-14 2021-02-23 中国科学院半导体研究所 Key circuit based on single bus protocol
CN112738783B (en) * 2020-12-29 2023-09-15 锐迪科微电子科技(上海)有限公司 Equipment networking method and device and electronic equipment
CN113872642B (en) * 2021-10-26 2023-09-01 成都康特电子科技股份有限公司 Code matching method and device for power line communication

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662772A (en) * 2009-09-01 2010-03-03 北京星谷科技有限公司 One-key corresponding code network accessing control method aiming at Zigbee network
CN102932214A (en) * 2012-10-29 2013-02-13 深圳市奋达科技股份有限公司 Discovery polymerization method of home network heterogeneous media equipment
CN102983892A (en) * 2012-11-19 2013-03-20 深圳市文鼎创数据科技有限公司 Method and system for bluetooth pairing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8812657B2 (en) * 2010-04-15 2014-08-19 Qualcomm Incorporated Network-assisted peer discovery

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662772A (en) * 2009-09-01 2010-03-03 北京星谷科技有限公司 One-key corresponding code network accessing control method aiming at Zigbee network
CN102932214A (en) * 2012-10-29 2013-02-13 深圳市奋达科技股份有限公司 Discovery polymerization method of home network heterogeneous media equipment
CN102983892A (en) * 2012-11-19 2013-03-20 深圳市文鼎创数据科技有限公司 Method and system for bluetooth pairing

Also Published As

Publication number Publication date
CN103248543A (en) 2013-08-14

Similar Documents

Publication Publication Date Title
CN103248543B (en) Code verification method, code verification control equipment and code verification equipment
CN102461288B (en) The enhanced debugging of Radio Network System
CN106211205B (en) Configuration method and system, household electrical appliance, mobile terminal and server
CN102118837B (en) Configuration acquiring method, zero configuration access point and neighbor access point
CN105392181B (en) A kind of networking method of smart machine, apparatus and system
CN105338595B (en) Intelligent terminal Adding Way, apparatus and system based on intelligent terminal system
CN105766016B (en) Method and apparatus for inter-profile debugging in a network
CN107682857B (en) Data sharing method of Zigbee network, gateway equipment and Zigbee network system
CN103200601B (en) The fat or thin mode switching method of WAP
US9008041B2 (en) Processing method supporting handover, communication apparatus, and communication system
CN103874114B (en) A kind of AP fault handling methods, AP equipment and AC equipment
CN102710811B (en) Realize method and the switch of dhcp address safety distribution
CN109996314A (en) A kind of methods, devices and systems to distribution net equipment access network hotspot equipment
TWI651978B (en) Communication system and communication method
CN102137395A (en) Method, device and system for configuring access device
CN104539504A (en) Event triggering method and device
CN109168150B (en) Bluetooth rapid networking method
CN106413033A (en) Method and device for configuring new device network access through adoption of device in network
CN111176130B (en) Equipment control method, equipment control method and equipment control system
US10432476B2 (en) Method, apparatus, and system for joining node to network
US20160081019A1 (en) Method and apparatus to reduce power consumption in wireless devices
WO2019057011A1 (en) Method for processing network slice template, and management device
CN106162817A (en) The method for building up of wireless backhaul links, device and communication system
CN113316147A (en) Network distribution method, terminal device and readable storage medium
CN105812185B (en) A kind of communication connecting method of playback equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170125

Termination date: 20190424

CF01 Termination of patent right due to non-payment of annual fee