Plaque It!
Sponsored by: Flash of Genius |
[0001] 1. Field of the Invention
[0002] This invention relates to a communication system, a communication apparatus, and a communication control method preferably used particularly with various monitoring systems requiring continuous monitoring for many hours.
[0003] 2. Description of the Related Art
[0004] In recent years, development of open wireless communication systems, such as a radio LAN and Bluetooth (registered trademark), has been brisk. In the communication systems, fully wireless slaves are provided.
[0005] However, the communication systems assume that the use time of a slave at a time is short (about several hours); while the slave is used, it consumes power of about 10 mA if the slave is not in communications. Therefore, the communication systems are not fitted for applications where the slave is used continuously for along time, for example, the monitoring system field requiring long-hour monitoring.
[0006] On the other hand, a radio communication system for a monitoring system has been provided as an individual system (closed wireless communication system). Some attempt has been made to provide a fully wireless slave, but power consumption causes a bottle neck in realizing a fully wireless slave; a system is only realized wherein the communication start direction is one way, namely, only a communication start request sent from a slave to a master is enabled.
[0007] However, to advance the function of a monitoring system in the future, it will become very important to make it possible to establish communications between a slave and a master when either the slave or the master makes a communication start request at any time. That is, the system wherein only a communication start request in one way is enabled as described above will block advancing the function of a monitoring system in the future; this is a problem.
[0008] It is an object of the invention to provide a communication system that can start a slave in response to a start request made by a master while decreasing power consumption in the slave, a communication apparatus as the slave used with the communication system, and a communication control method.
[0009] According to a first aspect of the present invention, there is provided a communication system comprising a master and a slave that can communicate with each other, the master including a first communication section for transmitting a start request signal to the slave, the slave including a second communication section for receiving the start request signal transmitted by the master. The slave can take any of a start state in which the slave can communicate with the master, a communication control state in which at least the slave can receive the start request signal transmitted by the master and makes a transition to the start state upon reception of the start request signal, or a standby state in which power is less consumed than in the start state or the communication control state. The slave further includes a state control section for repeatedly operating so that the slave in the standby state is switched to the communication control state at a predetermined timing and is switched to the standby state when the communication control state continues for a predetermined time period without receiving the start request signal.
[0010] In the configuration, the slave can take any of the start state, the communication control state, or the standby state.
[0011] The start state is a state in which the slave can communicate with the master. For example, it is a state in which a processing sequence for communications can be executed in such a manner that data is transferred from the master to the slave or from the slave to the master based on a predetermined protocol and the slave or the master to which the data is transferred performs predetermined processing based on the transferred data and makes a response to the master or the slave transferring the data as required.
[0012] The communication control state is a state in which at least the slave can receive a start request signal transmitted by the master and makes a transition to the start state upon reception of the start request signal. This means that the communication control state is a state in which the slave monitors a start request sent from the master and makes a transition to the start state upon reception of the start request.
[0013] The standby state in which power is less consumed than in the start state or the communication control state. For example, it is a state in which power supply to the second communication section, a member for controlling communications in the second communication section, etc., is stopped and power is used almost only as power required for control of the state control section described later.
[0014] The slave includes the state control section. The state control section switches the slave in the standby state to the communication control state at a predetermined timing. When the communication control state continues for a predetermined time period without receiving the start request signal, the state control section switches the slave to the standby state. Further, the state control section switches the slave to the communication control state and after the expiration of the predetermined time period, switches the slave to the standby state. The state control section repeats this operation sequence, for example, periodically.
[0015] Accordingly, when communications between the slave and the master are not conducted, basically the slave can be placed in the standby mode for decreasing power consumption. The slave, which is in the standby state, is switched to the communication control state, for example, in a predetermined period under the control of the state control section and can monitor a start request sent from the master. Thus, if it becomes necessary for the master to communicate with the slave, the master can also transmit a start request signal at an independent timing of the slave for causing the slave to switch to the start state for conducting communications therebetween.
[0016] Therefore, according to the described configuration, the communication system that can start the slave in response to a start request made by the master while decreasing power consumption in the slave can be provided.
[0017] As the communication system according to a second aspect of the present invention, in the communication system of the first aspect of the present invention, communications between the master and the slave may be radio communications, the first communication section may transmit the start request signal by radio communications, and the second communication section may receive the start request signal by radio communications.
[0018] In the described configuration, communications between the master and the slave are radio communications, so that the master and the slave need not be connected by a communication wire. Since the communication system can decrease power consumption in the slave as described above, if a power supply line is not connected to the slave and the slave is driven by a battery, the slave can be operated for many hours.
[0019] Therefore, a communication system wherein a fully wireless slave to which neither a communication line nor a power supply line is connected can be operated can be provided.
[0020] As the communication system according to a third aspect of the present invention, the communication system of the first or second aspect of the present invention may include a plurality of the slaves, wherein the master may switch assignment time periods of communications with the slaves in order, thereby communicating with the slaves, and when the master transmits the start request signal, the master may transmit the start request signal in the assignment time period of communications with the slave to which the start request signal is transmitted.
[0021] In the described configuration, the master switches the assignment time periods of communications with the slaves in order, thereby communicating with the slaves as in polling processing started by the master, for example. The master can transmit the start request signal in the assignment time period of communications with the target slave as a part of polling processing, for example.
[0022] As the communication system according to a fourth aspect of the present invention, the communication system of the first or second aspect of the present invention may include a plurality of the slaves, wherein the master may switch assignment time periods of communications with the slaves in order, thereby communicating with the slaves, and when the master transmits the start request signal, the master may transmit the start request signal using a time period between the assignment time periods of communications with the slaves.
[0023] In the above-described configuration wherein the start request signal is transmitted in the assignment time period of communications with the slave to which the start request signal is transmitted, as the number of slaves grows, the start request signal transmission timing interval is enlarged inevitably. For the salve to promptly receive the start request signal transmitted at large intervals, it becomes necessary to set long the time period of the communication control state in the slave. This results in a reduction in the power consumption decrease effect in the slave.
[0024] Then, in the configuration, the master transmits the start request signal using the time period between the assignment time periods of communications with the slaves. Accordingly, if the number of slaves grows, enlarging of the start request signal transmission timing interval can be suppressed. Consequently, while the time period of the communication control state in the slave is set to a shorter time period, the slave can receive the start request signal promptly and can respond to a start request from the mater promptly.
[0025] As the communication system according to a fifth aspect of the present invention, in the communication system of the fourth aspect of the present invention, the start request signal may be a signal that can cause two or more slaves to make a transition from the communication control state to the start state.
[0026] In the described configuration, when the master causes the two or more slaves to make a transition to the start state, it can cause the two or more slaves to make a transition to the start state by a common start request signal.
[0027] As the communication system according a sixth aspect of the present invention, in the communication system of the fourth or fifth aspect of the present invention, preferably the time period between the state control section of each slave switching the slave to the communication control state and then switching the slave to the standby state is a time period that can include one of assignment time periods to the slaves in the master and the time required for the master to transmit the start request signal.
[0028] In the described configuration, when the slave makes a transition to the communication control state, if the master is in the assignment time period with each slave, the slave is still in the communication control state when the assignment time period terminates and a start signal is transmitted. Therefore, failing to receive a start request signal in the slave can be circumvented and the slave can be started reliably in response to a start request made by the master.
[0029] As the communication system according to a seventh aspect of the present invention, in the communication system of the fourth or fifth aspect of the present invention, when the master transmits the start request signal, preferably the master repeatedly transmits the start request signal for a longer time than the time required until, after the state control section of one of the slaves switches the slave to the communication control state, the state control section switches the slave to the standby state and further to the communication control state.
[0030] In the described configuration, when the slave makes a transition to the communication control state first after the master starts to transmit the start request signal, the master still repeats transmission of the start request signal. Accordingly, when the slave makes a transition to the communication control state first after the master starts to transmit the start request signal, it is made possible for the slave to make a transition to the start state. Therefore, if the master makes a start request, it is made possible to cause the slave to make a transition to the start state as quickly as possible.
[0031] According to the invention according to an eight aspect of the present invention, there is provided a communication apparatus as a slave that can communicate with a master, including a communication section, when the master transmits a start request signal to the communication apparatus, for receiving the start request signal. The communication apparatus can take any of a start state in which the communication apparatus can communicate with the master, a communication control state in which at least the communication apparatus can receive the start request signal transmitted by the master and makes a transition to the start state upon reception of the start request signal, or a standby state in which power is less consumed than in the start state or the communication control state. The the communication apparatus further includes a state control section for repeatedly operating so that the communication apparatus in the standby state is switched to the communication control state at a predetermined timing and is switched to the standby state when the communication control state continues for a predetermined time period without receiving the start request signal. The communication section may receive the start request signal by radio communications.
[0032] The communication apparatus can be used as the slave in the communication system, so that the communication system that can start the slave in response to a start request made by the master while decreasing power consumption in the slave can be provided.
[0033] According to the present invention of a ninth aspect of the present invention, there is provided a communication control method in a slave that can communicate with a master, the method comprising making the slave a start state in which the slave can communicate with the master, making the slave a communication control state in which at least the slave can receive a start request signal transmitted by the master and makes a transition to the start state upon reception of the start request signal, making the slave a standby state in which power is less consumed than in the start state or the communication control state, and performing repeatedly an operation of switching from the standby state to the communication control state at a predetermined timing and switching to the standby state when the communication control state continues for a predetermined time period without receiving the start request signal. The slave may receive the start request signal by radio communications.
[0034] The communication control method can be used as control of the slave in the communication system, so that the communication system that can start the slave in response to a start request made by the master while decreasing power consumption in the slave can be provided.
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046] Referring now to the accompanying drawings (FIGS.
[0047] (General Configuration)
[0048]
[0049] The monitoring system
[0050]
[0051] In
[0052] The monitoring system
[0053] The master
[0054] The radio communication section
[0055] The slave
[0056] The radio communication section
[0057] The slave
[0058] The battery unit
[0059] The sensor
[0060] On the other hand, when the slave
[0061] The timer
[0062] The sensor I/F
[0063] The power supply control section
[0064] (State Transition)
[0065]
[0066] To begin with, the master
[0067] Next, the slave
[0068] The standby state is a time limit state and when the timer
[0069] The standby state is a state in which power is less consumed than in the communication state or the communication link control state; it is a state of power consumption of about 200 μA, for example.
[0070] The communication link control state is a state in which the slave
[0071] If the slave
[0072] If the slave
[0073] Here, the communication link control state is defined as a state in which the slave
[0074] The communication state is a state in which the slave
[0075] In the communication state, a communication packet from the master
[0076] As described above, the slave
[0077] The slave
[0078] When the slave
[0079] The master
[0080] Therefore, the communication system
[0081] (Communication Scheme
[0082]
[0083] The slaves
[0084] The slave
[0085] However, the slave
[0086] The slave
[0087] The master
[0088] When the master
[0089] On the other hand, to transmit a start signal in polling the slave in any state other than the communication state, the start signal is transmitted in two polling periods at the minimum and a response signal as a reply packet is not returned within a given time, it is determined that the slave is in an abnormal condition of failure, etc. To transmit a null packet in polling the slave in any state other than the communication state, if a reply packet is not returned, it is not determined that the slave is in an abnormal condition, and usual processing is continued.
[0090] Thus, the master
[0091] When the slave
[0092] For example, if the slave
[0093] (Communication Scheme
[0094] In the scheme in
[0095] This causes a time lag (start signal detection delay) to occur in the slave
[0096] Further, in the scheme in
[0097] To more reliably detect the start signal from the master
[0098] To remedy this point, it is desirable that a scheme shown in
[0099] Thus, to transmit the start signal, it is desirable that the master
[0100] To also transmit a party specification polling packet as a usual communication packet, the master
[0101] Accordingly, the start signal detection delay in the slave
[0102] Referring to
[0103] As shown in
[0104] At this time, the average power consumption of the slave
[0105] On the other hand, as shown in
[0106] The reason why Ts=0.1 sec is as follows: The duration of the communication link control state of the slave
[0107] Therefore, as the duration of the communication link control state of the slave
[0108] Thus, it is desirable that the time period until the slave
[0109] At this time, the average power consumption of the slave
[0110] Thus, in the scheme in
[0111] Thus, the master
[0112] As described above, in the scheme in
[0113] The start signal transmitted as a broadcast polling packet may be intended for one slave, but may be intended for two or more slaves so that it can cause the two or more slaves to make a transition to the communication state at the same time. In this case, when the master causes the two or more slaves to make a transition to the start state, it can cause the two or more slaves to make a transition to the start state by a common start request signal. Whether the start signal is intended for one slave or two or more slaves can be determined by a communication protocol between the master
[0114] (Operation Flow of Slave)
[0115]
[0116] If T is 0 at step S
[0117]
[0118] First, a polling period counter is set to 1 (S
[0119] If the polling packet received at step S
[0120] If the polling packet received at step S
[0121] The purpose of a step
[0122] If the slave
[0123]
[0124] Upon reception of a polling packet (S
[0125] Communication termination indication from the high-level protocol is read (S
[0126] (Operation Flow of Master)
[0127]
[0128] First, a polling packet to slave n (slave n is any of the slaves
[0129] Whether or not a start signal was previously received from the slave n and a response signal needs to be sent to the slave n is determined by referencing response signal transmission request presence indication stored in the memory
[0130] If it is determined at step S
[0131] After step S
[0132] If a reply packet from the slave n is received at step S
[0133]
[0134] In the operation flow, basically the same processing as in
[0135] In the operation flow, steps S
[0136] If the request time is not in the start wait state until the next polling period at step S
[0137] The master
[0138] As described above, the communication link is established or opened by a stimulus from the high-level protocol using the communication system
[0139] As described above, the communication system
[0140] As described above, in the communication system according to first aspect of the present invention, the slave can take any of the start state in which the slave can communicate with the master, the communication control state in which at least the slave can receive a start request signal transmitted by the master and makes a transition to the start state upon reception of the start request signal, or the standby state in which power is less consumed than in the start state or the communication control state. The slave further includes the state control section for repeatedly operating so that the slave in the standby state is switched to the communication control state at a predetermined timing and is switched to the standby state when the communication control state continues for a predetermined time period without receiving the start request signal.
[0141] In the described configuration, when communications between the slave and the master are not conducted, basically the slave can be placed in the standby mode for decreasing power consumption. The slave, which is in the standby state, is switched to the communication control state, for example, in a predetermined period under the control of the state control section and can monitor a start request sent from the master. Thus, if it becomes necessary for the master to communicate with the slave, the master can also transmit a start request signal at an independent timing of the slave for causing the slave to switch to the start state for conducting communications therebetween.
[0142] Therefore, according to the described configuration, the communication system that can start the slave in response to a start request made by the master while decreasing power consumption in the slave can be provided.
[0143] As the communication system according to the second aspect of the present invention, in the communication system of the first aspect of the present invention, communications between the master and the slave may be radio communications, the first communication section may transmit the start request signal by radio communications, and the second communication section may receive the start request signal by radio communications.
[0144] In the described configuration, a communication system wherein a fully wireless slave to which neither a communication line nor a power supply line is connected can be operated can be provided.
[0145] As the communication system according to the third aspect of the present invention, the communication system of the first or second aspect of the present invention may include a plurality of the slaves, wherein the master may switch assignment time periods of communications with the slaves in order, thereby communicating with the slaves, and the master transmits the start request signal, the master may transmit the start request signal in the assignment time period of communications with the slave to which the start request signal is transmitted.
[0146] In the described configuration, the master switches the assignment time periods of communications with the slaves in order, thereby communicating with the slaves as in polling processing started by the master, for example. The master can transmit the start request signal in the assignment time period of communications with the target slave as a part of polling processing, for example.
[0147] As the communication system according to the fourth aspect of the present invention, the communication system of the first or second aspect of the present invention may include a plurality of the slaves, wherein the master may switch assignment time periods of communications with the slaves in order, thereby communicating with the slaves, and the master transmits the start request signal, the master may transmit the start request signal using a time period between the assignment time periods of communications with the slaves.
[0148] In the described configuration, the master transmits the start request signal using the time period between the assignment time periods of communications with the slaves. Accordingly, if the number of slaves grows, enlarging of the start request signal transmission timing interval can be suppressed.
[0149] Consequently, while the time period of the communication control state in the slave is set to a shorter time period, the slave can receive the start request signal promptly and can respond to a start request from the mater promptly.
[0150] As the communication system according to the fifth aspect of the present invention, in the communication system of the fourth aspect of the present invention, the start request signal may be a signal that can cause two or more slaves to make a transition from the communication control state to the start state.
[0151] In the described configuration, when the master causes the two or more slaves to make a transition to the start state, it can cause the two or more slaves to make a transition to the start state by a common start request signal.
[0152] As the communication system according to the sixth aspect of