1. A relay node for managing control data for relaying communication data, the relay node functioning as a master node or a slave node, the relay node comprising:
a status monitoring means for monitoring a status of a connection belonging to a connection group related to the communication data;
an update requesting means for transmitting a first update request to a first node upon the relay node receiving first communication data while the relay node functioning as the slave node, the first update request requesting to update first control data for relaying the first communication data, the first node functioning as the master node;
a master transferring means for
determining whether to transfer authority of the master node to a second node in accordance with a status of a first connection belonging to a first connection group related to second communication data upon the relay node receiving a second update request from the second node while the relay node functioning as the master node, the second node functioning as the slave node, the second update request requesting to update second control data for relaying the second communication data, and
transmitting a first master transfer notification to the second node upon determining to transfer the authority of the master node to the second node, the first master transfer notification indicating that the authority of the master node is to be transferred to the second node; and
a master accepting means for preparing for the relay node to become the master node upon the relay node receiving a second master transfer notification while the relay node functioning as the slave node, the second master transfer notification indicating that the authority of the master node is to be transferred to the relay node.
2. The relay node according to claim 1, wherein
the master transferring means determines to transfer the authority of the master node to the second node when the status monitoring means does not monitor the first connection.
3. The relay node according to claim 1, wherein
the master transferring means determines to transfer the authority of the master node to the second node when no communication through the first connection is performed for more than a predetermined time period.
4. The relay node according to claim 1,
wherein each connection group includes a data connection and a control connection, and
wherein the master transferring means determines to transfer the authority of the master node to the second node upon the relay node receiving the second update request from the second node treating a data connection belonging to the first communication group while the relay node not treating a data connection belonging to the first communication group but treating a control connection belonging to the first communication group.
5. The relay node according to claim 1,
wherein the status monitoring means calculates an expected data size of communication data to be relayed subsequently by the relay node on the basis of a data size of received communication data,
wherein the second update request is accompanied by information indicating an expected data size of communication data to be relayed subsequently by the second node, and
wherein the master transferring means determines to transfer the authority of the master node to the second node when the expected data size of communication data to be relayed by the second node is larger than the expected data size of communication data to be relayed by the relay node.
6. The relay node according to claim 5, wherein
the master transferring means determines to transfer the authority of the master node to the second node when the expected data size of communication data to be relayed by the second node is larger than a predefined value.
7. A relay node for managing control data for relaying communication data, the relay node functioning as a master node or a slave node, the relay node comprising:
a processor configured to execute a procedure, the procedure comprising:
monitoring a status of a connection belonging to a connection group related to the communication data;
transmitting a first update request to a first node upon receiving first communication data while the relay node functioning as the slave node, the first update request requesting to update first control data for relaying the first communication data, the first node functioning as the master node;
determining whether to transfer authority of the master node to a second node in accordance with a status of a first connection belonging to a first connection group related to second communication data upon receiving a second update request from the second node while the relay node functioning as the master node, the second node functioning as the slave node, the second update request requesting to update second control data for relaying the second communication data;
transmitting a first master transfer notification to the second node upon determining to transfer the authority of the master node to the second node, the first master transfer notification indicating that the authority of the master node is to be transferred to the second node; and
preparing to become the master node upon receiving a second master transfer notification while the relay node functioning as the slave node, the second master transfer notification indicating that the authority of the master node is to be transferred to the relay node.
8. A computer-readable, non-transitory medium storing a program causing a computer functioning as a master node or a slave node to execute a procedure for managing control data for relaying communication data, the procedure comprising:
monitoring a status of a connection belonging to a connection group related to the communication data;
transmitting a first update request to a first node upon receiving first communication data while the computer functioning as the slave node, the first update request requesting to update first control data for relaying the first communication data, the first node functioning as the master node;
determining whether to transfer authority of the master node to a second node in accordance with a status of a first connection belonging to a first connection group related to second communication data upon receiving a second update request from the second node while the computer functioning as the master node, the second node functioning as the slave node, the second update request requesting to update second control data for relaying the second communication data;
transmitting a first master transfer notification to the second node upon determining to transfer the authority of the master node to the second node, the first master transfer notification indicating that the authority of the master node is to be transferred to the second node; and
preparing to become the master node upon receiving a second master transfer notification while the computer functioning as the slave node, the second master transfer notification indicating that the authority of the master node is to be transferred to the computer.
9. A method executed by a relay node for managing control data for relaying communication data, the relay node functioning as a master node or a slave node, the method comprising:
monitoring a status of a connection belonging to a connection group related to the communication data;
transmitting a first update request to a first node upon receiving first communication data while the relay node functioning as the slave node, the first update request requesting to update first control data for relaying the first communication data, the first node functioning as the master node;
determining, by the relay node, whether to transfer authority of the master node to a second node in accordance with a status of a first connection belonging to a first connection group related to second communication data upon receiving a second update request from the second node while the relay node functioning as the master node, the second node functioning as the slave node, the second update request requesting to update second control data for relaying the second communication data;
transmitting a first master transfer notification to the second node upon determining to transfer the authority of the master node to the second node, the first master transfer notification indicating that the authority of the master node is to be transferred to the second node; and
preparing to become the master node upon receiving a second master transfer notification while the relay node functioning as the slave node, the second master transfer notification indicating that the authority of the master node is to be transferred to the relay node.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A circuit device, used to control a plurality of light-emitting devices disposed on an object, comprising:
a motion actuated switch, used to generate a trigger signal in response to a motion of the object;
a controller, electrically coupled to the motion actuated switch; and
a battery, used to supply the motion actuated switch, the controller, and the plurality of light-emitting devices with electrical power;
wherein each light-emitting device comprises two light-emitting diodes connected oppositely in polarities, upon the controller receiving the trigger signal, the controller drives the plurality of light-emitting devices to light in a predetermined way by altering the output voltage polarities or values from the controller to the plurality of light-emitting devices.
2. The circuit device of claim 1, wherein lighting in the predetermined way is that the plurality of light-emitting devices respectively light for two times in a sequence to form a lighting cycle, and then repeats the lighting cycle for N times, wherein the N is a natural number.
3. The circuit device of claim 1, wherein lighting in the predetermined way is that the plurality of light-emitting devices respectively light for one time in a forward sequence and then respectively light for one time in a reverse sequence to form a lighting cycle, and then repeats the lighting cycle for N times, wherein the N is a natural number.
4. The circuit device of claim 1, wherein lighting in the predetermined way is that the plurality of light-emitting devices respectively light for one time in a sequence which is repeatedly for two times to form a lighting cycle, and then repeats the lighting cycle for N times, wherein the N is a natural number.
5. The circuit device of claim 1, wherein the two light-emitting diodes connected oppositely in polarities is that each light-emitting diode has a positive pole and a negative pole, the positive pole of the light-emitting diode is connected to the negative pole of the other light-emitting diode, and the negative pole of the light-emitting diode is connected to the positive pole of the other light-emitting diode.
6. The circuit device of claim 1, wherein the controller comprises a first pin and a plurality of second pins, the first pin is coupled to each light-emitting device respectively, each second pin is coupled to the corresponding light-emitting device respectively, and the output voltage polarities or values altered by the controller are the output voltage polarities or values between the first pin and the second pin.
7. A object embedding a circuit device to control a plurality of light-emitting devices, comprising:
a motion actuated switch, used to generate a trigger signal in response to a motion;
a controller, electrically coupled to the motion actuated switch, wherein the controller drives the plurality of light-emitting devices to light according to the trigger signal; and
a battery, used to supply the motion actuated switch, the controller, and the plurality of light-emitting devices with electrical power;
wherein each light-emitting device comprises two light-emitting diodes which are coupled to the controller and connected oppositely in polarities, and the controller drives the plurality of light-emitting devices to light by altering the output voltage polarities or values to the plurality of light-emitting devices.
8. The object of claim 7, wherein each light-emitting device comprises a first terminal, a second terminal, and a first color light-emitting diode and a second color light-emitting diode which are connected oppositely in polarities and positioned between the first terminal and the second terminal, the controller drives the plurality of light-emitting devices to light in a predetermined way by selectively altering the output voltage polarities or values between the first terminal and the second terminal.
9. The object of claim 8, wherein lighting in the predetermined way is that the first color light-emitting diode and the second color light-emitting diode in each light-emitting device to light sequentially.
10. The object of claim 8, wherein lighting in the predetermined way is that the first color light-emitting diode of each light-emitting device respectively lights for one time in a forward sequence and then the second color light-emitting diode of each light-emitting device respectively lights for one time in the forward sequence.
11. The object of claim 8, wherein lighting in the predetermined way is that the first color light-emitting diode of each light-emitting device respectively lights for one time in a forward sequence and then the second color light-emitting diode of each light-emitting device respectively lights for one time in a reverse sequence.
12. The object of claim 7, wherein the first terminal of each light-emitting device is coupled to a corresponding LED pin of the controller respectively, the second terminal of each light-emitting device is collectively coupled to a common pin of the controller, the controller drives the plurality of light-emitting devices to light by selectively altering the output voltage polarities or values between the corresponding LED pin and the common pin.
13. A circuit device, comprising:
a motion actuated switch, used to generate a trigger signal in response to a motion; and
a controller, electrically coupled to the motion actuated switch, wherein the controller comprises a plurality of LED pins and a common pin, each LED pin is respectively coupled to a first terminal of a first color light-emitting diode and a second terminal of a second color light-emitting diode, a second terminal of each first color light-emitting diode and a first terminal of each second color light-emitting diode are collectively coupled to the common pin, and the controller selectively alters the output voltage polarities or values between the LED pin and the common pin according to the trigger signal.
14. The circuit device of claim 13, wherein the first terminal of the first color light-emitting diode and the first terminal of the second color light-emitting diode are positive pole, and the second terminal of the first color light-emitting diode and the second terminal of the second color light-emitting diode are negative pole.