Embodiment
(execution mode 1)
Fig. 1 represents the formation of the network system of present embodiment.The network system of present embodiment has control device (multi-cast terminal device) 10 and a plurality of terminals 20 that are connected with control device 10 via network 30.In this network system, a plurality of terminal installations that are connected with network 30 (control device 10 and terminal 20) communicate mutually.Control device 10 and terminal installation 20 such as use have for being connected to the interface of network 30 and the microcomputer such as memory, processor and forming.In addition, network 30 can be cable network, can be also wireless network.
Control device 10 carries out supervision and the control of each terminal 20.That is, control device 10 sends request signal (response request instruction) to each terminal 20.Request signal is that the control request for terminal 20, the state of terminal 20 are obtained the multicast packets such as set point change request of request and terminal 20.If terminal 20 receives request signal, carry out with the content of the request signal receiving and process accordingly.In addition, terminal 20 sends response signal to control device 10.Response signal such as meaning state notifying response signal that the control of having controlled this situation completes response signal, comprises status data, the change that the represents set point set point that completed this situation changed response signal etc.Control device 10 receives response signal from each terminal 20.
Control device 10 possesses the 1st communication unit the 101, the 1st functional unit 102 and the 1st control unit 103.Control device 10 also possesses probability setup unit 104, for sending request the 1st request unit 105, counting unit 106, number of terminals determining means 107, number of terminals updating block 108, number of terminals memory cell 109, binding hours determining means 110 of signal 40 (the 1st request signal 41) and for sending request the 2nd request unit 111 of signal 40 (the 2nd request signal 42).
The 1st communication unit 101 is the network interfaces for communicating by network 30 and terminal 20.The 1st communication unit 101 is stored in control device 10 by intrinsic address information.The 1st communication unit 101 is used the address information of storing to carry out network service.Address information is for example IP address and physical address (MAC Address).
The 1st functional unit 102 is configured to, and processing (action) corresponding to service (function of control device 10) providing with control device 10 is provided.In the present embodiment, the 1st functional unit 102 is configured to, and communicates by letter, thereby carry out the monitoring and controlling of terminal 20 via network 30 with terminal 20.
Terminal 20 is for example that lighting apparatus opens, cuts out and the lighting device of light modulation or the aircondition that air-conditioning equipment is moved.
Terminal 20 possesses the 2nd communication unit the 201, the 2nd functional unit 202 and the 2nd control unit 203.Terminal 20 also possesses the 1st response unit 204 for sending response signal 50 (the 1st response signal 51), stand-by time determining means 205 and for sending the 2nd response unit 206 of response signal 50 (the 2nd response signal 52).
The 2nd communication unit 201 is the network interfaces for communicating by network 30 and control device 10.The 2nd communication unit 201 is stored in each terminal 20 by intrinsic address information.The 2nd communication unit 201 is used the address information of storing to carry out network service.Address information is for example IP address and physical address (MAC Address).
The 2nd functional unit 202 is configured to, and processing (action) corresponding to service (function of terminal 20) providing with terminal 20 is provided.The 2nd functional unit 202 becomes monitored object and the control object of control device 10.In the situation that terminal 20 is lighting device, the 2nd functional unit 202 is the lighting mechanisms with the function that the lighting a lamp of lighting load (lighting apparatus), light-off and brightness are controlled.In the situation that terminal 20 is aircondition, the 2nd functional unit 202 is the air-conditioning controlling organizations with the function that the temperature of air-conditioning equipment is controlled.
In the 1st control unit 103 and the 2nd control unit 203, in order to realize object server function, enroll the software module that contains object (object).Object is used when the processing of service is provided carrying out.
Each object has 1 above interface (definition input and output).The control information that the service that interface definition provides with functional unit 102,202 (service that control device 10 and terminal 20 provide) is corresponding or monitor message (variable, function, event information or its combination).
To object, given inherently the intrinsic identifier of object (being called as required OID).Docking port has been given interface identifier (being called as required IID).To the combination of object and interface, given identifier.Giving identifier consists of OID and IID.Below, the content of giving identifier is represented with (OID+IID).
The 1st control unit 103 is as object controlling organization and response signal transmitting mechanism performance function.The 2nd control unit 203 is as generating and sending the request signal transmitting mechanism performance function of having used the request signal of giving identifier.
Object controlling organization in the situation that received and use the request signal of giving identifier, makes object action carry out the processing that control information is provided to functional unit 102 according to the content of request signal.In addition, object controlling organization is carried out the processing that obtains monitor message from functional unit 102.The execution of object controlling organization obtains the processing of the information relevant to object.Object controlling organization is carried out the processing that is provided for the function of indication action to functional unit 102.The execution of object controlling organization obtains the processing of variable of the current state of presentation function unit 102.There is to change the processing of the event information of this situation in the state that the execution of object controlling organization obtains presentation function unit 102.
The response signal of the result of the processing that response signal transmitting mechanism is carried out indicated object controlling organization sends to the terminal installation that has sent request signal.
Fig. 2 represents the formation of request signal 40.Request signal 40 comprises the intrinsic identifier 403 of operation code 401, interface identifier 402 and object.Operation code 401 represents the kind of response request instruction.The service that interface identifier 402 indicates to provide (function).The intrinsic identifier 403 of object represents control object or monitored object.In addition, request signal 40 comprises parameter 404 as required according to the kind difference of operation code 401.In the situation that the object that the interface identifier 402 that terminal 20 has given to be comprised by request signal 40 and the intrinsic identifier 403 of object are specifically given identifier, the 2nd communication unit 201 receives request signals 40.
Operation code 401 is for example " monitoring (Watch) ", " obtaining (Get) ", " (Set) is set ", " calling (Invoke) "." supervision " is for asking retrieval to have by the OID of request signal 40 appointments, whether the object of IID is present in the operation code on network 30." obtain " is to be endowed by the OID of request signal 40 appointments, the operation code of the value of the object of IID for asking to obtain." setting " is for asking being endowed the operation code by the object set point of OID, the IID of request signal 40 appointments." calling " is to move for asking to make to be endowed by the OID of request signal 40 appointments, the function of the object of IID, and the operation code of the action of control information is provided to functional unit 202.
In request signal 40, can use the asterisk wildcard (Wildcard) " * " that represents whole OID, IID.For example, suppose, the intrinsic identifier 403 of object and interface identifier 402 are " * ", and control device 10 has sent the request signal that operation code 401 is " supervision ".In this case, the whole terminal 20 that has received request signal sends the response signal of the combination that comprises object and interface to control device 10.
For example, suppose only to have interface identifier 402 for " * ", control device 10 has sent the request signal of operation code 401 for " supervision ".The response signal of the combination of the IID that the terminal 20 that in this case, has received request signal has OID and this OID of comprising by request signal appointment sends to control device 10.
For example, supposing only to have the intrinsic identifier 403 of object is " * ", and control device 10 has sent the request signal of operation code 401 for " supervision ".In this case, the terminal 20 that has received request signal sends to control device 10 comprising by the IID of request signal appointment and the response signal of combination with the OID of this IID.
In the present embodiment, by the intrinsic identifier 403 of the object of request signal 40 is used to " * ", can carry out multicast.
Fig. 3 represents response signal 50.Response signal 50 comprises operation code 501 and terminal identification information 502.Operation code 501 represents the kind of response signal 50.Terminal identification information 502 expressions have sent the identifying information (being the address of terminal 20 in the present embodiment) of the terminal 20 of response signal.In addition, response signal 50 comprises parameter 503 as required according to the kind difference of operation code.
For example, if terminal 20 has received the request signal 40 that operation code 401 is " supervisions ", the response signal 50 that terminal 20 transmit operation codes 501 are " (Provide) is provided ".The parameter 503 of the response signal 50 in this situation represents by the intrinsic identifier of object of request signal 40 appointments and the combination of interface identifier.
In addition, the identical interface (that is, having given the interface of identical IID) of definition content that the service relative that will provide with terminal installation is answered also can be provided a plurality of objects.
Agreement in the network system of present embodiment is OSI7 layer model.The application layer of upper layer be control device 10 and each terminal 20 software module and other-end device between carry out the object accesses agreement alone (Object Access Protocol=OAP) of transmitting-receiving use of each information of variable, event information, function.
The 1st control unit 103 in the situation that interface identifier 402 request signal 40 identical with object identifier 403 sent to terminal 20, first carries out sending request of the 1st request signal 41 to the 1st request unit 105.For the second time, the 1st control unit 103 carries out sending request of the 2nd request signal 42 to the 2nd request unit 112.
The 1st request unit 105 is configured to, if received sending request of the 1st request signal 41, the 1st communication unit 101 is controlled, so that the 1st communication unit 101 sends the 1st request signal 41 to a plurality of terminals 20.The 1st request unit 105 is configured to, and the 1st communication unit 101 is controlled, so that the 1st communication unit 101 sends the 1st request signal 41 every the stipulated time to a plurality of terminals 20.
The 1st request signal 41, as shown in Figure 4, comprises operation code 401, interface identifier 402, the intrinsic identifier 403 of object and probabilistic information 405.The 1st request signal 41 comprises parameter 404 as required according to the kind difference of operation code 401.Probabilistic information represents predefined probability (response probability).
Probability setup unit 104 is for inputting the input unit of response probability.Response probability has stipulated to receive the probability of terminal 20 transmission the 1st response signals 51 of the 1st request signal 41.That is, response probability is that the terminal 20 that has received the 1st request signal 41 is carried out the action corresponding with the operation code 401 of the 1st request signal 41, and to control device 10, sends the probability of the 1st response signal 51.The scope of response probability is 0~100 (%).If response probability is 100 (%), terminal 20 necessarily sends the 1st response signals 51.If response probability is 50 (%), terminal 20 sends the 1st response signal 51 with the probability of 50 (%).
The quantity of the 1st response signal 51 that can simultaneously receive according to the 1st communication unit 101 (can simultaneously receive number) is set response probability, so that the 1st communication unit 101 can be in the 1st communication unit 101 sends the stipulated time of 41 of the 1st request signals, the 1st response signal 51 that receiving terminal 20 sends whole.Can receive the content that number depends on the access control of carrying out in the communications device (transport) of network 30 simultaneously.For example, CDMA/CA mode if, the method for keeping out of the way in the time of can simultaneously receiving several precision according to carrier sense, carrier sense, the size of keeping out of the way, sending times and change.
; consider the communications device of network 30; response probability is set as to fully little value (for example 10%), so that can not there is packet loss when the transmission of the 1st response signal 51, and control device 10 can receive the 1st whole response signal 51 being sent out reliably.
The 1st response unit 204 is configured to, if the 2nd communication unit 201 has received the 1st request signal 41, the 2nd communication unit 201 is controlled, so that the 2nd communication unit 201 represents the 1st response signal 51 response probability with the probabilistic information 40 being included in the 1st request signal 41 sends to control device 10.The 1st response unit 204 is as object controlling organization and response signal transmitting mechanism and bring into play function.The 1st response signal 51 and response signal 50 are identical formation.
The 1st response unit 204 has the 1st random number generation module 2041, response judge module 2042 and the 1st Executive Module 2043.
The 1st random number generation module 2041 is configured to, and the scope 0~100 generates random number.The 1st random number generation module 2041 provides generated random number to response judge module 2042.
Response judge module 2042 is configured to, if the 2nd communication unit 201 has received the 1st request signal 41, to the 1st random number generation module 2041 requests, generates random number.Response judge module 2042 is configured to, if obtained random number from the 1st random number generation module 2041, the response probability random number obtaining from the 1st random number generation module 2041 and the probabilistic information 405 that is included in the 1st request signal 41 being represented compares.If random number is less than response probability, responds judge module 2042 and determine to send the 1st response signal 51.If random number more than response probability, responds judge module 2042 and determines not send the 1st response signal 51.
The 1st Executive Module 2043, in the situation that response judge module 2042 has determined to send the 1st response signal 51, makes the object action by operational order 401 appointments of the 1st request signal 41, and the 1st response signal 51 is sent.The 1st Executive Module 2043, in the situation that response judge module 2042 has determined not send the 1st response signal 51, does not make the object action by operational order 401 appointments of the 1st request signal 41, does not make the 1st response signal 51 send yet.
Counting unit 106 is configured to, and the quantity of the 1st response signal 51 that the 1st communication unit 101 is received is counted.Counting unit 106 sends the 1st request signal 41 from the 1st communication unit 101 and plays through till the stipulated time, and the quantity of the 1st response signal 51 that the 1st communication unit 101 is received is counted.If passed through the stipulated time, 106 of counting units provide the quantity of the 1st response signal 51 to number of terminals determining means 107.
Number of terminals determining means 107 is configured to, according to the quantity of the 1st response signal 51 obtaining from counting unit 106 be included in the maximum quantity (sum) that response probability that the probabilistic information the 1st request signal 41 represents is obtained the terminal 20 that control device 10 is responded.That is, number of terminals determining means 107 is obtained the 1st request signal 41 is responded and to control device 10, sends the maximum quantity of the terminal 20 of the 1st response signals 51.Number of terminals determining means 107 according to by the quantity of the 1st response signal 51 obtaining from counting unit 106 divided by the sum that is included in the value obtaining after the represented response probability of probabilistic information the 1st request signal 41 and obtains terminal 20.In the present embodiment, the unit of response probability is (%).Thus, the sum of number of terminals determining means 107 using following value as terminal 20, to by the quantity of the 1st response signal 51 obtaining from counting unit 106 divided by being included in the value obtaining after the represented response probability of probabilistic information the 1st request signal 41, be multiplied by 100 and the value that obtains.For example, at response probability, be 10 (%), in the situation that the quantity of the 1st response signal 51 is 10, terminal 20 add up to 100.
Number of terminals memory cell 109 is used to store the sum of the terminal 20 of being obtained by number of terminals determining means 107.
If number of terminals determining means 107 has determined the sum of terminal 20,108 sums that make number of terminals memory cell 108 storage terminals 20 of number of terminals updating block.In addition, number of terminals updating block 108 is configured to, if number of terminals determining means 107 has determined the sum of terminal 20 again, the sum that is stored in the terminal 20 in number of terminals memory cell 108 is updated to the sum by the number of terminals determining means 107 new terminals 20 that determine.
Binding hours determining means 110 is configured to, and according to the sum of the terminal of being obtained by number of terminals determining means 107, decides binding hours.Binding hours determining means 110 is configured to, and has stored after the sum of terminal 20 in number of terminals memory cell 109, uses the sum of the terminal 20 that is stored in number of terminals memory cell 109 to decide binding hours.
Binding hours is the 2nd needed time of response signal 52 that the 1st communication unit 101 receives stated number.Especially preferred, binding hours is the 2nd needed shortest time of response signal 52 that the 1st communication unit 101 receives stated number.In the present embodiment, the terminal 20 that binding hours is the total equal amount with the terminal 20 of being inferred out by number of terminals determining means 107 sends needed maximum time by the 2nd response signal 52 to control device 10.In other words, binding hours is the whole needed time that control device 10 receives the 2nd response signal 52 that the terminal 20 with the total equal amount of the terminal 20 of being inferred out by number of terminals determining means 107 sends.The transmitter using according to network 30 is set binding hours.When determining such binding hours, the communication speed of transmitter becomes problem.As described later, the random stand-by time that determines of terminal 20.Desirable, stand-by time distributes in the scope of binding hours 0.Yet in fact, stand-by time not distributes ideally.Therefore, binding hours to a certain degree need to be lengthened, so that not identical in a plurality of terminal 20 stand-by times.And, need to make binding hours become to using more than the communication speed of transmitter can complete the time from the communication of the terminal 20 as object.
In the present embodiment, the sum that described stated number is the terminal 20 obtained by number of terminals determining means 107.Therefore, in the present embodiment, binding hours determining means 110 is configured to, and the quantity of the 1st response signal 51 that the sum of the terminal of being obtained by number of terminals determining means 107 20 can be received divided by the 1st communication unit 101 time per units, decides binding hours thus.For example, the number that is made as the 1st response signal 51 that the 1st communication unit 101 time per units (for example 1 second) can receive is to be 10 (communication process of the communications device using in network 30 even can reach maximum 10 for every 1 second).In this case, the value (=10 (second)) obtaining after the number (=10) that binding hours is the 1st response signal 51 that the sum of the terminal of being obtained by number of terminals determining means 107 20 (=100) can be received divided by the 1st communication unit 101 time per units.
In addition, binding hours determining means 110 can also have the sum of terminal 20 of expression and the tables of data of the corresponding relation between binding hours.In this case, binding hours determining means 110 obtains the binding hours corresponding with the sum of the terminal 20 obtaining from number of terminals determining means 107 from described tables of data.
The 2nd request unit 111 is configured to, and the 1st communication unit 101 is controlled, so that the 1st communication unit 101 sends the 2nd request signal 42 (Fig. 5 reference) to a plurality of terminals 20.The 2nd request unit 111, if accepted sending request of the 2nd request signal 42, determines binding hours to 110 requests of binding hours determining means.110 responses of binding hours determining means, from the request of the 2nd request unit 111, determine binding hours according to the sum that is stored in the terminal 20 of number of terminals memory cell 109, and provide to the 2nd request unit 111.
The 2nd request signal 42, as shown in Figure 5, comprises operation code 401, interface identifier 402, the intrinsic identifier 403 of object and binding hours information 406.Binding hours information 406 represents the binding hours being determined by binding hours determining means 110.The 2nd request signal 42 comprises parameter 404 as required according to the kind difference of operation code 401.The intrinsic identifier 403 of the operation code 401 of the 2nd request signal 42, interface identifier 402 and object is identical with the intrinsic identifier 403 of operation code 401, interface identifier 402 and object of the 1st request signal 41.That is, the 2nd request unit 113 sends terminal 20 transmission the 2nd request signals 42 of the 1st response signal 51 to control device 10 to the 1st request signal 41 is responded.
Stand-by time determining means 205 is configured to, if the 2nd communication unit 201 has received the 2nd request signal 42, random time of selecting to be included in below the represented binding hours of binding hours information in the 2nd request signal 42, as stand-by time.Stand-by time determining means 205 comprises the 2nd random number generation module 2051 and stand-by time arithmetic element 2052.
The 2nd random number generation module 2051 is configured to, and in 0~100 scope, generates random number.The 2nd random number generation module 2051 provides generated random number to stand-by time computing module 2052.In addition, also can replace the 2nd random number generation module 2051 and use the 1st random number generation module 2041.In this case, can omit the 2nd random number generation module 2051.
Stand-by time computing module 2052 is configured to, if the 2nd communication unit 201 has received the 2nd request signal 42, to the 2nd random number generation module 2051 requests, generates random number.Stand-by time computing module 2052 is configured to, if obtained random number from the 2nd random number generation module 2051, stand-by time is carried out to computing.Stand-by time is, will be multiplied by the value that the value that obtains random number (random number obtaining from the 2nd random number generation module 2051) obtains divided by 100 to being included in the represented binding hours of binding hours information in the 2nd request signal 42.Like this, stand-by time determining means 205 random stand-by time that determines in 0~binding hours scope of (second).
The 2nd response unit 206 is configured to, and after stand-by time, the 2nd communication unit 201 is controlled, so that the 2nd communication unit 201 sends the 2nd response signal 52 to control device 10.The 2nd response unit 206 is as object controlling organization and response signal transmitting mechanism and bring into play function.The 2nd response unit 206 comprises timer module 2061 and the 2nd Executive Module 2062.Timer module 2061, if obtained stand-by time from stand-by time computing module 2052, starts timing and processes.If passed through stand-by time, 2061 of timer modules have been passed through stand-by time to the 2nd Executive Module 2062 notices.The 2nd Executive Module 2062, has passed through stand-by time if notified, makes the object action by operational order 401 appointments of the 2nd request signal 42, and the 2nd response signal 52 is sent.The 2nd response signal 52 and response signal 50 are identical formation.
Next, with reference to Fig. 6, the action of the network system of present embodiment is described.In addition, in the following description, in order to distinguish a plurality of terminals 20, use as required symbol 21,22 ..., 2n represents terminal 20.
Terminal 21 has the object that has been endowed the intrinsic identifier of object " OID1 ".The object that has been endowed " OID1 " has the interface of having been given respectively interface identifier " IID6 ", " IID7 ".
Terminal 22 has the object that has been endowed the intrinsic identifier of object " OID2 ".The object that has been endowed " OID2 " has the interface of having been given respectively interface identifier " IID3 ", " IID7 ".
In addition, other-end 20 also possesses the object with the interface that has been endowed interface identifier " IID7 ".
In control device 10, the 1st request unit 105 was controlled the 1st communication unit 101 every the stipulated time, thereby the 1st request signal 41 is sent (S10) to a plurality of terminals 20.For example, the operation code 401 of the 1st request signal 41 is " supervision ".The intrinsic identifier 403 of object is " * ".Interface identifier 402 is " IID7 ".The response message that probabilistic information represents is " 10% ".
The terminal 20 that the 1st request signal 41 is only had interface identifier " IID7 " receives.In having received the terminal 20 of the 1st request signal 41, the response probability that the 1st response unit 204 represents according to the probabilistic information of the 1st request signal 41, controls the 2nd communication unit 201.Thus, the response probability that the 1st response signal 51 represents according to the probabilistic information of the 1st request signal 41 is by control device 10 (S20).
The operation code 501 of the 1st response signal 51 is " providing ".Terminal identification information 502 is the address of terminal 20 of the transmission source of the 1st response signal 51.Parameter 503 has been carried out the combination of the intrinsic identifier of object of combination for interface identifier " IID7 " with interface identifier " IID7 ".
The parameter 503 of the 1st response signal 51 that for example, terminal 21 sends is the combination of interface identifier " IID7 " and the intrinsic identifier of object " OID1 ".The parameter 503 of the 1st response signal 51 that terminal 22 sends is the combination of interface identifier " IID7 " and the intrinsic identifier of object " OID2 ".
Here, suppose, the 1st request signal 41 is responded and sends the maximum quantity of the terminal 20 of the 1st response signal 51, that is, the quantity with the terminal 20 of the interface that has been endowed interface identifier " IID7 " is 100.The response probability representing due to the probabilistic information of the 1st request signal 41 is 10%, desirable, and 10 station terminals 20 send the 1st response signals 51.
In control device 10, the quantity of the 1st response signal 51 that 106 pairs of the 1st communication units 101 of counting unit receive is counted.Number of terminals determining means 107 is according to quantity and the response probability of the 1st response signal 51 obtaining from counting unit 106, decides the 1st request signal 41 is responded and sends the maximum quantity of the terminal 20 of the 1st response signal 51.That is, 107 decisions of number of terminals determining means have the maximum quantity of the terminal 20 of the interface that has been endowed interface identifier " IID7 ".In the situation that 10 station terminals 20 have sent the 1st response signal 51, the 1st communication unit 101 receives 10 the 1st response signals 51.Response probability is " 10% ".Thus, the sum of number of terminals determining means 107 using following numerical value as terminal 20, the value (=1) the quantity (=10) of the 1st response signal 51 that the 1st communication unit 101 is received being obtained after divided by response probability (=10%) is multiplied by 100 and the value (=100) that obtains.
The 2nd request unit 111, if accepted sending request of the 2nd request signal 42, determines binding hours to 110 requests of binding hours determining means.
The request from the 2nd request unit 111 of 110 pairs of binding hours determining meanss responds, and decides binding hours T10 according to the sum that is stored in the terminal 20 of number of terminals memory cell 109, and provides to the 2nd request unit 111.In the situation that is 10 in the quantity that adds up to the 1st response signal 51 that 100, the 1 communication unit 101 time per units can receive of the terminal 20 of being obtained by number of terminals determining means 107, binding hours T10 was 10 (seconds).
The 2nd 111 pairs of request units the 1st communication unit 101 is controlled, so that the 2nd request signal 42 is sent (S30) to a plurality of terminals 20.The 2nd request signal 42 has the operation code identical with the 1st request signal 41 (=" supervision ") 401, the intrinsic identifier of object (=" * ") 403 and interface identifier (=" IID7 ") 402.In addition, the 2nd request signal 42 has the binding hours information 406 that represents the binding hours determined by binding hours determining means 110.
The terminal 20 that the 2nd request signal 42 is only had interface identifier " IID7 " receives.In having received the terminal 20 of the 2nd request signal 42, the binding hours T10 that stand-by time determining means 205 represents according to the binding hours information of the 2nd request signal 42, decides stand-by time.The 2nd response unit 206, after the stand-by time through being determined by stand-by time determining means 205, makes the 2nd communication unit 201 send the 2nd response signal 52 (S40).In addition, the operation code 501 of the 2nd response signal 52 is " providing ".Terminal identification information 502 is the address of terminal 20 of the transmission source of the 2nd response signal 52.Parameter 503 has been carried out the combination of the intrinsic identifier of object of combination for interface identifier " IID7 " with interface identifier " IID7 ".
As described above, the network system of present embodiment possesses control device 10 and a plurality of terminals 20 that are connected with control device 10 via network 30.Control device 10 has the 1st communication unit the 101, the 1st request unit 105, counting unit 106, number of terminals determining means 107, binding hours determining means 110 and the 2nd request unit 111 for communicating by network 30 and terminal 20.Each terminal 20 has the 2nd communication unit the 201, the 1st response unit 204, stand-by time determining means 205 and the 2nd response unit 206 for communicating by network 30 and control device 10.The 1st request unit 105 is configured to, and the 1st communication unit 101 is controlled, so that the 1st communication unit 101 sends to a plurality of terminals 20 the 1st request signal 41 that comprises the probabilistic information that represents predefined probability.The 1st response unit 204 is configured to, if the 2nd communication unit 201 has received the 1st request signal 41, the 2nd communication unit 201 is controlled, so that the response probability that the 2nd communication unit 201 represents with the probabilistic information of the 1st request signal 41 sends the 1st response signals 51 to control device 10.Counting unit 106 is configured to, and the quantity of the 1st response signal 51 that the 1st communication unit 101 is received is counted.Number of terminals determining means 107 is configured to, and obtains the sum of the terminal 20 that the 1st request signal 41 is responded according to the quantity of the 1st response signal 51 obtaining from counting unit 106 and response probability.Binding hours determining means 110 is configured to, and according to the sum of the terminal 20 of being obtained by number of terminals determining means 107, decides binding hours.The 2nd request unit 111 is configured to, the 1st communication unit 101 is controlled, so that the 1st communication unit 101 sends to a plurality of terminals 20 the 2nd request signal 42 that comprises binding hours information, this binding hours information means the information of the binding hours being determined by binding hours determining means 110.Stand-by time determining means 205 is configured to, if the 2nd communication unit 201 has received the 2nd request signal 42, selects randomly the time below the represented binding hours of the binding hours information of the 2nd request signal 42, as stand-by time.The 2nd response unit 206 is configured to, and after stand-by time, the 2nd communication unit 201 is controlled, so that the 2nd communication unit 201 sends the 2nd response signal 52 to control device 10.
In the network system of such present embodiment, by each terminal 20, determine that randomly the terminal 20 that the 2nd request signal 42 of control device 10 multicasts transmissions is responded sends the moment of the 2nd response signals 52.This constantly, for example, distributes with interior (scope of 0~10 (second)) in the binding hours being determined by binding hours determining means 110 ideally equably.Therefore,, even in the situation that network 30 is used the communications device of low speed, also can reduce the packet loss that the conflict because of the 2nd response signal 52 causes.The 2nd response signal 52 for example, is all sent in the binding hours determining according to the quantity of terminal 20 (10 (seconds)).Thus, can not occur, compare binding hours with the quantity of terminal 20 and become shorter or compare with the quantity of terminal 20 situation that binding hours becomes longer.Thereby, between response signal, can not clash, and can improve communication efficiency.
In the network system of present embodiment, the quantity of the 1st response signal 51 that can simultaneously receive according to the 1st communication unit 101 is set response probability, so that the 1st communication unit 101 can send in the stipulated time of 41 of the 1st request signals at the 1st communication unit 101, whole receptions of the 1st response signal 51 that terminal 20 is sent.
Therefore, the situation of the 1st response signal 51 packet losses can not occur, and control device 10 can receive the 1st whole response signal 51 of sending reliably.
In the network system of present embodiment, number of terminals determining means 107 is configured to, the quantity of the 1st response signal 51 obtaining from counting unit 106, divided by the represented response probability of probabilistic information being included in the 1st request signal 41, is obtained to the sum of terminal 20.
Therefore, the sum of end 20 can be derived accurately.
In the network system of present embodiment, binding hours is the 2nd needed time of response signal 52 that the 1st communication unit 101 receives stated number.Stated number is the sum of the terminal 20 obtained by number of terminals determining means 107.Binding hours determining means 110 is configured to, and the quantity of the 1st response signal 51 that the sum of the terminal of being obtained by number of terminals determining means 107 20 can be received divided by the 1st communication unit 101 time per units, decides binding hours.
Therefore, can make binding hours become and carry out the communication process needed shortest time suitable with the sum of terminal 20.
In the network system of present embodiment, control device 10 has the total number of terminals memory cell 109 of storing the terminal 20 of being obtained by number of terminals determining means 107.Binding hours determining means 110 is configured to, and has stored after the sum of terminal 20 in number of terminals memory cell 109, uses the sum of the terminal 20 that is stored in number of terminals memory cell 109 to decide binding hours.Thus, the 2nd request unit 111 generates the 2nd request signal 42 that comprises binding hours information, and this binding hours information means the information of the binding hours that the sum of the terminal 20 of storing according to number of terminals memory cell 109 determines.The 1st communication unit 101 sends the 2nd request signal 42.
That is, control device 10 has the storing mechanism (number of terminals memory cell 109) of the information (sum of terminal 20) of the quantity of storing the 1st response signal 51 receiving based on the 1st communication unit 101.Control device 10 is configured to, and in storing mechanism, has stored after information, according to storing mechanism canned data, generates the 2nd request signal 42 and sends.
Control device 10 possesses the number of terminals memory cell 109 that the sum of the terminal 20 that the 1st request signal 41 is responded is stored as the information of the quantity of the 1st response signal 51 receiving based on the 1st communication unit 101.Thus, in number of terminals memory cell 109, stored after the sum of terminal 20, need to be for the sum of the terminal 20 that determines the 1st request signal 41 to respond and send the 1st request signal 41.Its result, need to be in order to obtain the 2nd response signal 52 from terminal 20, and send the 1st request signal 41 and the 2nd request signal 42 both at every turn.Thereby can reduce communication flows, and can shorten transmission processing.Especially applicable network system of not carrying out continually the quantity increase and decrease of terminal 20.
The 1st request signal 41 comprises gives identifier [OID+IID].Thus, just have with this terminal 20 of giving the corresponding object of identifier and send the 1st response signal 51.Therefore, number of terminals memory cell 109 is such such as pressing IID1:N1 platform, IID2:N2 platform, IID3:N3 platform, IID4:N4 platform etc., by the sum of the kind of the IID of each object (that is, by each by the class of giving identifier specifies) storage terminal 20.Binding hours determining means 110 can, by each by the class of giving identifier specifies, decide best binding hours T10.
Control device 10 has number of terminals updating block 108.The 1st request unit 105 is configured to, and the 1st communication unit 101 is controlled, so that the 1st communication unit 101 sends the 1st request signal 41 every the stipulated time to a plurality of terminals 20.Number of terminals updating block 108 is configured to, if number of terminals determining means 107 has determined the sum of terminal 20, the sum that is stored in the terminal 20 of number of terminals memory cell 109 is updated to the sum of the terminal 20 being determined by number of terminals determining means 107.
That is, control device 10 updates stored in the sum of the terminal 20 of number of terminals memory cell 110 with predetermined distance.Thus, can be corresponding with the variation of the formation (quantity of terminal 20) of network system.And then can make binding hours become the Best Times corresponding with the quantity of terminal 20.
Fig. 7 represents the formation of the network system of modified embodiment of the present embodiment.The network system of variation possesses control device 10A and a plurality of terminals 20 that are connected with control device 10A via network 30.To the formation that the network system of variation is common with the network system of execution mode 1, give identical symbol, and the description thereof will be omitted.
Control device 10A possesses the 1st communication unit the 101, the 1st functional unit 102 and the 1st control unit 103.Control device 10 also possesses probability setup unit 104, the 1st request unit 105, counting unit 106, number of terminals determining means 107, binding hours determining means 110, binding hours updating block 112, binding hours memory cell 113 and the 2nd request unit 111A.
Binding hours memory cell 113 is for storing the binding hours being determined by binding hours determining means 110.
If binding hours determining means 110 has determined binding hours, 112 of binding hours updating blocks make binding hours memory cell 1113 storage binding hourss.In addition, if binding hours determining means 110 has determined binding hours again, 112 of binding hours updating blocks are updated to the binding hours being stored in binding hours memory cell 113 by the new binding hours determining of binding hours determining means 110.
The 2nd request unit 111A, if accepted sending request of the 2nd request signal 42, obtains binding hours from binding hours memory cell 113.; the 2nd request unit 111A is configured to; in binding hours memory cell 113, stored after binding hours; the 1st communication unit 101 is controlled; so that the 1st communication unit 101 sends to a plurality of terminals 20 the 2nd request signal 42 that comprises binding hours information 406, this binding hours information means the information that is stored in the binding hours in binding hours memory cell 113.
In the network system of present embodiment, control device 10A possesses the binding hours memory cell 113 that the binding hours being determined by binding hours determining means 110 is stored as the information of the quantity of the 1st response signal 51 receiving based on the 1st communication unit 101.The 2nd request unit 111A, has stored after binding hours in binding hours determining means 113, generates the 2nd request signal 42 that comprises binding hours information, and this binding hours information means the information that is stored in the binding hours in binding hours memory cell 113.The 1st communication unit 101 sends the 2nd request signal 42.
Like this, in the network system of modified embodiment of the present embodiment, control device 10A has the storing mechanism (binding hours memory cell 113) of the information (binding hours) of the quantity of storing the 1st response signal 51 receiving based on the 1st communication unit 101.Control device 10A is configured to, in storing mechanism (binding hours memory cell 113), stored after information (binding hours), according to storing mechanism (binding hours memory cell 113) canned data (binding hours), generated the 2nd request signal 42 and send.
Therefore, in binding hours, be stored in after binding hours memory cell 113, need to do not send in order to determine binding hours the 1st request signal 41.Thus, need to not send in order to obtain the 2nd response signal 52 from terminal 20 both of the 1st request signal 41 and the 2nd request signal 42 at every turn.Thereby, can reduce communication flows, and can shorten transmission processing.Especially applicable network system of not carrying out continually the quantity increase and decrease of terminal 20.
The 1st request signal 41 comprises gives identifier [OID+IID].Thus, just have with this terminal 20 of giving the object that identifier is corresponding and send the 1st response signal 51.Thereby binding hours memory cell 113 is stored binding hours by the kind of the IID of each object (that is, by each by the class of giving identifier specifies).
Control device 10A has binding hours updating block 112.The 1st request unit 105 is configured to, and the 1st communication unit 101 is controlled, so that the 1st communication unit 101 sends the 1st request signal 41 by each stipulated time to a plurality of terminals 20.Binding hours updating block 112 is configured to, if binding hours determining means 110 has determined binding hours, the binding hours being stored in binding hours memory cell 113 is updated to the binding hours being determined by binding hours determining means 110.
That is, control device 10A updates stored in the binding hours in binding hours memory cell 113 with predetermined distance.Thus, can be corresponding with the variation of the formation (quantity of terminal 20) of network system, and can make binding hours become the corresponding best time of quantity with terminal 20.
(execution mode 2)
Fig. 8 represents the network system of present embodiment.The network system of present embodiment possesses control device 10B and a plurality of terminal 20B that are connected with control device 10B via network 30.To the formation that the network system of present embodiment is common with the network system of execution mode 1, give identical symbol, and the description thereof will be omitted.
Control device 10B has the 1st communication unit the 101, the 1st functional unit the 102, the 1st control unit 103, probability setup unit 104, the 1st request unit 105B, counting unit 106B, number of terminals determining means 107B, binding hours determining means 110B, the 2nd request unit 111B and response terminal memory cell 114.
Terminal 20B has the 2nd communication unit the 201, the 2nd functional unit the 202, the 2nd control unit the 203, the 1st response unit 204, stand-by time determining means 205B, the 2nd response unit 206 and sends confirmation unit 207.
The 1st request unit 105B is configured to, if accepted sending request of the 1st request signal 41, the 1st communication unit 101 is controlled, so that the 1st communication unit 101 sends the 1st request signal 41 to a plurality of terminal 20B.
Counting unit 106B is configured to, and sends the 1st request signal 41 play through till the stipulated time (handling time) from the 1st communication unit 101, and the quantity of the 1st response signal 51 that the 1st communication unit 101 is received is counted.Counting unit 106B provides the quantity of the 1st response signal 51 counting to get to number of terminals determining means 107B and binding hours determining means 110B.
Number of terminals determining means 107B is configured to, according to the quantity of the 1st response signal 51 obtaining from counting unit 106B be included in the maximum quantity (sum) that the represented response probability of probabilistic information 405 the 1st request signal 41 is obtained the terminal 20B that control device 10B is responded.Number of terminals determining means 107B notifies the sum of the terminal 20B obtaining to binding hours determining means 110B.
Binding hours determining means 110B decides binding hours according to the sum of the terminal 20B from number of terminals determining means 107B notice.Binding hours determining means 110B is configured to, the number obtaining the quantity of the 1st response signal 51 that the sum of the terminal 20B determining from number of terminals determining means 107B is deducted to counting unit 106B counting and obtain, the quantity of the 1st response signal 51 that can receive divided by the 1st communication unit 101 time per units, decides binding hours.
In the present embodiment, binding hours is to control device 10B, to send for the 2nd response signal 52 needed maximum time with the terminal 20B of following numerical value equal amount, and this numerical value is that the sum of the terminal 20 from being inferred out by number of terminals determining means 107B deducts counting unit 106B counting and the number that obtains the quantity of the 1st response signal 51 that obtains.
That is, in the present embodiment, described stated number is the quantity that does not send the terminal 20B of the 1st response signal 51.For example, the quantity of the 1st response signal 51 obtaining being counted by counting unit 106B is 10, the terminal 20B being obtained by number of terminals determining means 107B adds up to 100, in the situation that the quantity of the 1st response signal 51 that the 1st communication unit 101 time per units can receive is 10, binding hours was 9 (seconds).
Binding hours determining means 110B notifies the binding hours of obtaining to the 2nd request unit 111B.
Response terminal memory cell 114 is configured to, the terminal identification information 502 of the 1st response signal 51 that storage the 1st communication unit 101 receives.Response terminal memory cell 114 is configured to, till playing through the stipulated time (described handling time) from the 1st communication unit 101 transmission the 1st request signals 41, and the terminal identification information 502 of the 1st response signal 51 that storage the 1st communication unit 101 receives.That is, response terminal memory cell 14 is made the list of the 1st request signal 41 having been carried out to the terminal 20B of response.
The 2nd request unit 111B is configured to, if notified binding hours from binding hours determining means 110, the 1st communication unit 101 is controlled, so that the 1st communication unit 101 sends the 2nd request signal 42B (with reference to Fig. 9) to a plurality of terminal 20B.
The 2nd request signal 42B, except operation code 401, interface identifier 402, the intrinsic identifier 403 of object and binding hours information 406, also comprises response terminal list 407.Response terminal list 407 is for to be stored in the terminal identification information 502 in response terminal memory cell 114,, sent the list of terminal identification information 502 of the terminal 20B of the 1st response signal 51 that is.
In other words, whether control device 10B, by send the 2nd request signal 42B with response terminal list 407 to terminal 20B, completes to terminal 20B push-notification-answer.
Send confirmation unit 207 and be configured to, if the 2nd communication unit 201 has received the 2nd request signal 42B, confirm whether to exist the address information (terminal identification information) of the 2nd communication unit 201 storages in the response terminal list 407 of the 2nd request signal 42B.If there is not the address information of the 2nd communication unit 201 storages in the response terminal list 407 of the 2nd request signal 42B, send 207 of confirmation units and ask computing stand-by time to stand-by time computing module 2052B.If there is the address information of the 2nd communication unit 201 storages in the response terminal list 407 of the 2nd request signal 42B, send 207 of confirmation units and to stand-by time computing module 2052B, do not ask computing stand-by time.
If asked computing stand-by time from sending confirmation unit 207, stand-by time computing module 2052B asks the 2nd random number generation module 2051 to generate random number.If obtained random number from the 2nd random number generation module 2051, stand-by time computing module 2052B carries out computing to stand-by time.
Like this, terminal 20B, when there is not the address information of self storing in terminal list 407, (while control device 10B not being sent to the 1st response signal 51), does not carry out the computing of stand-by time.Its result, terminal 20B sends the 2nd response signal 52 to control device 10B.That is, receive the terminal 20B of the 2nd request signal 42B, if sent the 1st response signal 51 to control device 10B, do not sent the 2nd response signal 52, if do not send 51 of the 1st response signals to control device 10B, sent the 2nd response signal 52.
Next, the action of the network system of present embodiment is described.
In control device 10B, the 1st request unit 105B, if accepted sending request of the 1st request signal 41, controls the 1st communication unit 101.Thereby the 1st request signal 41 is sent to a plurality of terminal 20B.For example, the operation code 401 of the 1st request signal 41 is " supervision ".The intrinsic identifier 403 of object is " * ".Interface identifier 402 is " IID7 ".The response message that probabilistic information represents is " 10% ".
The terminal 20B that the 1st request signal 41 is only had interface identifier " IID7 " receives.In having received the terminal 20B of the 1st request signal 41, the 1st response unit 204 is controlled the 2nd communication unit 201 with the response probability of probabilistic information 405 expressions of the 1st request signal 41.Thereby the 1st response signal 51 is sent to control device 10B with the response probability of probabilistic information 405 expressions of the 1st request signal 41.
The operation code 501 of the 1st response signal 51 is " providing ".Terminal identification information 502 is the address of terminal 20B of the transmission source of the 1st response signal 51.Parameter 503 has been carried out the combination of the intrinsic identifier of object of combination for interface identifier " IID7 " with interface identifier " IID7 ".
In control device 10B, the quantity of the 1st response signal 51 that counting unit 106B receives the 1st communication unit 101 is counted.Number of terminals determining means 107B, according to quantity and the response probability of the 1st response signal 51 obtaining from counting unit 106B, decides the sum of the terminal 20B the 1st request signal 41 not being responded.In the situation that 10 station terminal 20B have sent the 1st response signal 51, the 1st communication unit 101 receives 10 the 1st response signals 51.Response probability is " 10% ".Thereby, the sum of number of terminals determining means 107B using following numerical value as terminal 20B, the value (=1) obtaining divided by response probability (=10%) from the quantity (=10) of the 1st response signal 51 that the 1st communication unit 101 is received, deducts the quantity (=10) of the 1st response signal 51 that the 1st communication unit 101 receives and the value (=90) that obtains.
Binding hours determining means 110B, decides binding hours T10 according to the sum of the terminal 20B coming from number of terminals determining means 107B notice, and to the 2nd request unit 111B notice.In the situation that is 10 in the quantity that adds up to the 1st response signal 51 that 90, the 1 communication unit 101 time per units can receive of the terminal 20B being obtained by number of terminals determining means 107B, binding hours T10 was 9 (seconds).Like this, binding hours T10 is shortened according to the quantity of the 1st request signal 41 having been carried out to the terminal 20B of response.
The terminal identification information 502 of the 1st response signal 51 that response terminal memory cell 114 storage the 1st communication units 101 receive.
The 2nd request unit 111B, if notified binding hours from binding hours determining means 110B, the 1st communication unit 101 is controlled, thereby the 2nd request signal 42B is sent to terminal 20B.The 2nd request signal 42B has the operation code identical with the 1st request signal 41 (=" supervision ") 401, the intrinsic identifier of object (=" * ") 403 and interface identifier (=" IID7 ") 402.In addition, the 2nd request signal 42B has the binding hours information 406 that represents the binding hours determined by binding hours determining means 110B and the response terminal list 407 that represents to be stored in the terminal identification information in response terminal memory cell 114.
The terminal 20B that the 2nd request signal 42B is only had interface identifier " IID7 " receives.In having received the terminal 20B of the 2nd request signal 42B, send confirmation unit 207 and be configured to, to whether existing the terminal identification information of the 2nd communication unit 201 storages to confirm in the response terminal list 407 at the 2nd request signal 42B.If there is not the address information of the 2nd communication unit 201 storages in the response terminal list 407 of the 2nd request signal 42B, send 207 of confirmation units and ask computing stand-by time to stand-by time computing module 2052B.Its result, the binding hours T10 that stand-by time determining means 205B represents according to the binding hours information of the 2nd request signal 42B, decides stand-by time.
In this case, the 2nd response unit 206, after the stand-by time through being determined by stand-by time determining means 205B, controls the 2nd communication unit 201.Thereby the 2nd response signal 52 is sent to control device 10B.In addition, the operation code 501 of the 2nd response signal 52 is " providing ".Terminal identification information 502 is the address of terminal 20B of the transmission source of the 2nd response signal 52.Parameter 503 for interface identifier " IID7 " and with interface identifier " IID7 " carried out combination the intrinsic identifier of object and combination.
On the other hand, if there is the address information of the 2nd communication unit 201 storages in the response terminal list 407 of the 2nd request signal 42B, send 207 of confirmation units and to stand-by time computing module 2052B, do not ask computing stand-by time.Its result, stand-by time determining means 205B does not determine stand-by time.In this case, terminal 20B does not send the 2nd response signal 52 to control device 10B.
In the network system of above-mentioned present embodiment, binding hours is the 2nd needed time of response signal 52 that the 1st communication unit 101 receives stated number.Described stated number is not for sending the quantity of the terminal 20B of the 1st response signal 51.Binding hours determining means 110B is configured to, the number obtaining the quantity of the 1st response signal 51 that the sum of the terminal 20B determining from number of terminals determining means 107B is deducted to counting unit 106B counting and obtain, the quantity of the 1st response signal 51 that can receive divided by the 1st communication unit 101 time per units, decides binding hours.Terminal 20B is configured to, if sent the 1st response signal 51 to control device 10B, does not send the 2nd response signal 52.
According to the network system of such present embodiment, the terminal 20B that the 1st request signal 41 has been carried out to response or not the 2nd request signal 42B.Therefore the terminal 20B, the 1st request signal 41 being responded and the terminal 20B that the 2nd request signal 42B is responded do not repeat.Thus, with the terminal 20B just the 1st request signal 41 not being responded, the terminal 20B that the 1st request signal 41 has been carried out to respond also sends the situation of the 2nd response signal 52 and compares, and its binding hours shortens.Its result, has improved communication efficiency.
In addition, the network system of execution mode 1,2 also can possess a plurality of control device 10,10A, 10B.In addition, control device 10,10A, 10B also can broadcast request signal.