This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2012-259403, filed on Nov. 28, 2012, the entire contents of which are incorporated herein by reference.
This technique relates to a control technique of plural arithmetic units (or processing units).
For example, there are wireless phones that have high performance by using plural Central Processing Units (CPUs) such as a modem-side CPU that mainly performs wireless communication and application-side CPU that executes an application program and a display processing.
In such wireless phones, the application-side CPU is resumed from a suspended state to an operational state by an interrupt by the modem-side CPU. The application-side CPU has an input terminal to receive an interrupt signal from the modem-side CPU.
When a phone call or e-mail arrives, the application-side CPU is resumed by the interrupt by the modem-side CPU to the operational state. Then, the resumed application-side CPU receives notification of the incoming call or the like, and executes a processing of an application corresponding to the incoming call etc.
Moreover, in addition to the incoming call etc, in response to notification from the modem-side CPU, the application-side CPU executes a processing of an application. For example, in case of receiving notification of Received Signal Strength Indication (RSSI), the application-side CPU executes a processing of an application. RSSI represents strength of received signals, and is measured periodically. The application-side CPU displays a mark representing receiving strength according to the measured RSSI.
As for an application for the aforementioned RSSI, the modem-side CPU operates according to a state of the application-side CPU. In case where the application-side CPU is in an operational state, the modem-side CPU notifies the application-side CPU of RSSI, and the application-side CPU executes a processing of an application according to the notification of RSSI.
On the other hand, if the processing of the application regarding RSSI is not performed in case where the application-side CPU is in a suspended state, the modem-side CPU may not notify the application-side CPU of RSSI.
Thus, in an information processing apparatus having plural CPUs, one CPU may operate according to a state of the other CPU. In such a case, by an operation to notify one CPU of the state of the other CPU, the information processing apparatus consumes the power.
In other words, there is no conventional technique to effectively suppress the power consumption relating to operations executed by plural arithmetic units or processing units included in the information processing apparatus.
An information processing apparatus relating to a first aspect of this technique includes: a first processing unit; and a second processing unit that is in either of an operational state and a suspended state. The first processing unit and the second processing unit are coupled each other by a first signal line through which a first signal that represents a state of the second processing unit passes and by a second signal line through which a second signal that causes an interrupt to the second processing unit passes. Then, the second processing unit outputs the first signal through the first signal line according to a state of the second processing unit. The first processing unit determines, based on the first signal received through the first signal line, whether or not the first processing unit causes the second processing unit to resume to the operational state, and upon determining that the first processing unit causes the second processing unit to resume to the operational state, the first processing unit outputs the second signal through the second signal line. The second processing unit resumes to the operational state, upon receiving the second signal through the second signal line.
An information processing apparatus relating to a second aspect of this technique includes: a first processing unit; a second processing unit that is in either of an operational state and a suspended state; and a measurement device that measures an input current to the second processing unit and determines a state of the second processing unit. The first processing unit and the second processing unit are coupled each other by a signal line through which an interrupt signal to the second processing unit passes. Then, the first processing unit obtains a state of the second processing unit from the measurement device, and determines, based on the obtained state of the second processing unit, whether or not the first processing unit causes the second processing unit to resume to the operational state. Upon determining that the first processing unit causes the second processing unit to resume to the operational state, the first processing unit outputs the interrupt signal through the signal line. The second processing unit resumes to the operational state in response to receipt of the interrupt signal from the signal line.
The object and advantages of the embodiment will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the embodiment, as claimed.
First, a comparative example of a communication apparatus that has plural CPUs will be explained.
The modem-side system 103 is a system for mainly performing wireless communication. The modem-side system 103 has a CPU 131, memory device 133, Universal Serial Bus (USB) device 135, General Purpose Input/Output (GPIO) device 137, User Identity Module (UIM) device 139 and wireless device 141. The CPU 131, memory device 133, USB device 135, GPIO device 137, UIM device 139 and wireless device 141 are connected through a bus 143.
The CPU 131 executes a program for mainly performing wireless communication. The memory device 133 stores the program for performing the wireless communication and data for the wireless communication. The USB device 135 performs data communication by USB. The GPIO device 137 has an input terminal 173 that receives a signal in response to an instruction of the program executed in the CPU 131 and an output terminal 171 that outputs a signal. The UIM device 139 controls a UIM card for identifying personal information of a user such as a telephone number of a portable phone. The wireless device 141 is used for the wireless communication such as the phone call or mail of the portable phone.
The application-side system 105 is a system to mainly execute an application program. The application-side system 105 has a CPU 151, memory device 153, USB device 155, GPIO device 157, input device 159, voice device 161 and display device 163. Moreover, the CPU 151, memory device 153, USB device 155, GPIO device 157, input device 159, voice device 161 and display device 163 are connected through a bus 165.
The CPU 151 mainly executes an application program. The memory device 153 stores the application program and data concerning the application program. The USB device 155 performs data communication by USB. The GPIO device 157 has an input terminal 181 that receives a signal in response to an instruction from the application program executed by the CPU 151, and an output terminal 183 that outputs a signal. The input device 159 receives an instruction from a user. The input device 159 is a set of keys or touch panel, for example. The voice device 161 performs an input or output of the voice. The display device 163 displays a screen image.
The USB device 135 of the modem-side system 103 and the USB device 155 of the application-side system 105 are connected through a serial bus 195 for performing data communication.
The output terminal 171 provided in the GPIO device 137 in the modem-side system 103 and the input terminal 181 provided in the GPIO device 157 in the application-side system 105 are connected through a first signal line 191. The first signal line 191 is mainly used to output an interrupt signal for resuming the CPU 151 in the application-side system 105 from the suspended state to the operational state from the CPU 131 of the modem-side system 103.
Moreover, the input terminal 173 provided in the GPIO device 137 in the modem-side system 103 and the output terminal 183 provided in the GPIO device 157 in the application-side system 105 are connected through a second signal line 193. The second signal line 193 is mainly used to output an interrupt signal for resuming the CPU 131 of the modem-side system 103 from the suspended state to the operational state from the CPU 151 of the application-side system 105.
In this comparative example, a state flag to manage, in the modem-side system 103, a state of the CPU 151 in the application-side system 105 is stored in the memory device 133. Then, when the CPU 151 in the application-side system 105 resumes from the suspended state to the operational state, the CPU 151 notifies the CPU 131 in the modem-side system 103 of its own resume. Then, the CPU 131 of the modem-side system 103 updates the state flag to “ON”.
Moreover, when the CPU 151 of the application-side system 105 stops and the state of the CPU 151 changes from the operational state to the suspended state, the CPU 151 notifies the CPU 131 of the modem-side system 103 of its own stop. Then, the CPU 131 of the modem-side system 103 updates the state flag to “OFF”. However, the stop in this case means stop of a part of functions in the CPU. Functions for the resume in response to the interrupt signal are operating even after they stopped once.
On the other hand, when the state of the CPU 151 of the application-side system 105 shifts from the operational state to the suspended state by stopping the CPU 151, the CPU 151 of the application-side system 105 switches the signal level of the second signal line 193 from LOW (low level) to HIGH as illustrated by an arrow 207. When the CPU 131 of the modem-side system 103 detects the signal level of the second signal line 193 is HIGH as illustrated by an arrow 209, the CPU 131 resumes by itself. Thus, the state of the CPU 131 of the modem-side system 103 shifts from the suspended state to the operational state. Then, as illustrated by an arrow 211, the CPU 151 of the application-side system 105 notifies that the CPU 151 will stop through the USB connection path 195. Thus, the state flag of the modem-side system 103 is updated to “OFF”. The state of the CPU 131 of the modem-side system 103 shifts to the suspended state again, when there is no processing later. Then, the state of the CPU 151 of the application-side system 105 shifts from the operational state to the suspended state.
Next, an operation at the incoming call or the like will be explained. When receiving an incoming call, an application program will be executed even if the CPU 151 of the application-side system 105 is operating or being suspended. Therefore, the CPU 131 of the modem-side system 103 causes the CPU 151 of the application-side system 105 that is being suspended to resume to the operational state. However, when the CPU 151 of the application-side system 105 is operating and the CPU 151 receives an interrupt signal for the resume from the CPU 131 of the modem-side system 103, any particular processing is not performed because the CPU 151 has already resumed.
Then, as illustrated by an arrow 309, the CPU 131 of the modem-side system 103 notifies the CPU 151 of the application-side system 105 of the incoming call event through the USB connection path. After that, the CPU 151 of the application-side system 105 performs a processing of an application program according to the incoming call event.
Next, a case where a RSSI event occurs will be explained. The RSSI event occurs when the strength of the signal received by the wireless device 141 is measured. According to the measure RSSI value, display of a receiver sensitivity (e.g. radio field intensity) is made. For example, the receiver sensitivity is displayed on a screen of the display device 163. Only when the CPU 151 of the application-side system 105 is operating, the display of the receiver sensitivity is performed. When the CPU 151 of the application-side system 105 is suspended, the display of the receiver sensitivity is not performed. By controlling such a manner, wasteful power consumption is suppressed.
By using
Next, by using
Thus, depending on a type of the event and the state of the CPU 151 in the application-side system 105, control is made so as to resume or so as not to resume the CPU 151 of the application-side system 105 by the CPU 131 of the modem-side system 103. Thus, it is possible to omit a wasteful operation to reduce the power consumption. However, in this comparative example, as illustrated in
Similarly to
The GPIO device 601 includes a first output terminal 611, first input terminal 613, second output terminal 615 and second input terminal 617. The GPIO device 603 includes a first input terminal 631, first output terminal 633, second input terminal 635 and second output terminal 637.
Then, the first output terminal 611 of the GPIO device 601 and the first input terminal 631 of the GPIO device 603 are connected through a first signal line 651. The first input terminal 613 of the GPIO device 601 and the first output terminal 633 of the GPIO device 603 are connected through a second signal line 653. The second output terminal 615 of the GPIO device 601 and the second input terminal 635 of the GPIO device 603 are connected through a third signal line 655. The second input terminal 617 of the GPIO device 601 and the second output terminal 637 of the GPIO device 603 are connected through a fourth signal line 657.
The first signal line 651 is mainly used to output an interrupt signal for resuming the CPU 151 of the application-side system 105 from the suspended state to the operational state. The second signal line 653 is mainly used to output an interrupt signal for resuming the CPU 131 of the modem-side system 103 from the suspended state to the operational state. The third signal line 655 is mainly used to output a signal representing a state of the CPU 131 of the modem-side system 103 to the CPU 151 of the application-side system 105. The fourth signal line 657 is mainly used to output a signal representing a state of the CPU 151 of the application-side system 105 to the CPU 131 of the modem-side system 103.
Thus, in this embodiment, in addition to a signal line to interrupt another CPU, a signal line to notify a state of its own CPU is provided. In the following, a state transition in this embodiment will be explained.
First, a state transition at the resume and stop of the CPU 151 in the application-side system 105 in this embodiment will be explained by using
Next, a state transition when an incoming call event occurs in this embodiment will be explained by using
The incoming call event occurs when a connection request is received by the wireless device 141. When the incoming call event occurs in the modem-side system 103, the CPU 131 of the modem-side system 103 switches the signal level of the first signal line 651 from LOW to HIGH as illustrated by an arrow 801. When the CPU 151 of the application-side system 105 detects that the signal level of the first signal line 651 is HIGH as illustrated by an arrow 803, the CPU 151 returns to the operational state by itself. As illustrated by an arrow 805, the CPU 151 of the application-side system 105 switches the signal level of the fourth signal line 657 from LOW to HIGH. Thus, it is represented that the CPU 151 of the application-side system 105 is operating. Then, as illustrated by an arrow 807, the CPU 131 of the modem-side system 103 notifies the CPU 151 of the application-side system 105 of the incoming call event through the USB connection path. Then, the CPU 151 of the application-side system 105 executes a processing of an application program according to the incoming call event.
Next, a state transition when the RSSI event occurs in this embodiment will be explained. Similarly to the aforementioned example, only when the CPU 151 of the application-side system 105 is operating, the display of the receiver sensitivity is made. When the CPU 151 of the application-side system 105 is suspended, the display of the receiver sensitivity is not carried out.
By using
Next, a state transition when the RSSI event occurs in the suspended state of the CPU 151 in the application-side system 105 will be explained by using
Next, sequences in this embodiment will be explained. First, a sequence at the resume and stop of the CPU 151 in the application-side system 105 in this embodiment will be explained by using
It is assumed that the state of the CPU 151 in the application-side system 105 is suspended (1103). In response to an input of an interrupt signal or the like, the CPU 151 of the application-side system 105 is resumed (1105). Then, as illustrated by an arrow 1107, the main controller 1101 of the application-side system 105 switches the signal level of the fourth signal line 657 to HIGH through the second output terminal 637 of the application-side system 105. Thus, the state of the CPU 151 of the application-side system 105 shifts to the operational state (1109).
Moreover, when the main controller 1101 of the application-side system 105 stops by itself, the main controller 1101 switches the signal level of the fourth signal line 657 to LOW through the second output terminal 637 of the application-side system 105 as illustrated by an arrow 1111. Then, when the main controller 1101 of the application-side system 105 stops (1113), the state of the CPU 151 of the application-side system 105 shifts to the suspended state (1115). Thus, the state of the CPU 151 of the application-side system 105 reflects to the fourth signal line 657.
Next, a sequence when the incoming call event occurs in the first embodiment will be explained by using
It is assumed that the state of the CPU 151 of the application-side system 105 is the operational state or suspended state (1205). In case of the operational state or suspended state, the sequence is the same. The state of the CPU 131 of the modem-side system 103 is the operational state. When the incoming call event occurred (1207), the main controller 1201 of the modem-side system 103 examines the occurrence of the event (1209). Because the incoming call event occurred, it is determined that the notification of the examination result is required. In the following, a sequence when the event that occurred is the incoming call event will be explained.
As illustrated by an arrow 1211, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 651 to HIGH through the first output terminal 611 of the modem-side system 103. This is an interrupt signal to resume the CPU 151 of the application-side system 105.
Then, as illustrated by an arrow 1213, when the main controller 1101 of the application-side system 105 detects that the signal level of the first signal line 651 is HIGH through the first input terminal 631 of the application-side system 105, the CPU 151 of the application-side system 105 is resumed (1215). However, when the CPU 151 has already been operating, no particular processing is executed.
As illustrated by an arrow 1217, the main controller 1101 of the application-side system 105 switches the signal level of the fourth signal line 657 to HIGH through the second output terminal 637 of the application-side system 105. Thus, it is represented that the CPU 151 of the application-side system 105 is operating.
As illustrated by an arrow 1219, the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 653 to HIGH through the first output terminal 633 of the application-side system 105. This is an interrupt signal for the resume to the CPU 131 of the modem-side system 103, however, the CPU 131 of the modem-side system 103 is operating, so it is not substantially effective. This is a processing to surely perform the operation.
As illustrated by an arrow 1221, the main controller 1201 of the modem-side system 103 detects that the signal level of the second signal line 653 is HIGH through the first input terminal 613 of the modem-side system 103. However, no particular processing is carried out.
As illustrated by an arrow 1223, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 651 to LOW through the first output terminal 611 of the modem-side system 103. Thus, the interrupt signal represented by the arrow 1211 is terminated.
As illustrated by an arrow 1225, the main controller 1201 of the modem-side system 103 switches the signal level of the third signal line 655 to HIGH through the second output terminal 615 of the modem-side system 103. Thus, it is represented that the CPU 131 of the modem-side system 103 is operating.
As illustrated by an arrow 1227, the main controller 1101 of the application-side system 105 detects that the signal level of the third signal line 655 is HIGH through the second input terminal 635 of the application-side system 105. Thus, it is determined that the CPU 131 of the modem-side system 103 is resumed, and as illustrated by an arrow 1229, the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 653 to LOW through the first output terminal 633 of the application-side system 105. Thus, an interrupt signal outputted at a timing of the arrow 1219 is terminated.
Next, a next sequence to the sequence when the incoming call event occurs in this embodiment will be explained by using
The communication controller 1203 is realized by executing program modules by the CPU 151 of the application-side system 105. The program modules for realizing the communication controller 1203 are stored, for example, in the memory device 153, and the CPU 151 reads out and executes instruction codes for the program modules in sequence.
The communication controller 1205 is achieved by executing program modules by the CPU 131 of the modem-side system 103. The program modules for achieving the communication controller 1205 are stored, for example, in the memory device 133, and the CPU 131 reads out and executes instruction codes for the program modules in sequence.
As illustrated by an arrow 1231, the main controller 1201 of the modem-side system 103 activates the USB device 135 of the modem-side system 103. Then, as illustrated by an arrow 1233, the main controller 1201 of the modem-side system 103 receives an ACK (i.e. response) from the USB device 135 of the modem-side system 103.
As illustrated by an arrow 1235, the main controller 1201 of the modem-side system 103 resumes the communication controller 1205 of the modem-side system 103 from the suspended state to the operational state. The communication controller 1205 of the modem-side system 103 instructs the USB device 135 of the modem-side system 103 to start communication, and the communication controller 1205 of the modem-side system 103 receives an ACK from the USB device 135 of the modem-side system 103. As illustrated by an arrow 1237, the main controller 1201 of the modem-side system 103 receives an ACK from the communication controller 1205 of the modem-side system 103.
As illustrated by an arrow 1241, the main controller 1101 of the application-side system 105 resumes the USB device 155 of the application-side system 105 from the suspended state to the operational state. As illustrated by an arrow 1243, the main controller 1101 of the application-side system 105 receives an ACK from the USB device 155 of the application-side system 105.
As illustrated by an arrow 1245, the main controller 1101 of the application-side system 105 resumes the communication controller 1203 of the application-side system 105 from the suspended state to the operational state. The communication controller 1203 of the application-side system 105 instructs the USB device 155 to start communication, and the communication controller 1203 of the application-side system 105 receives an ACK from the USB device 155 of the application-side system 105. Then, as illustrated by an arrow 1247, the main controller 1101 of the application-side system 105 receives an ACK from the communication controller 1203 of the application-side system 105. At this timing, the connection between the USB device 135 of the modem-side system 103 and the USB device 155 of the application-side system 105 is established, in other words, the state shifts to a connection state 1249.
Then, as illustrated by an arrow 1251, the main controller 1201 of the modem-side system 103 receives notification of connection completion from the USB device 135 of the modem-side system 103 through the communication controller 1205 of the modem-side system 103.
Similarly, as illustrated by an arrow 1253, the main controller 1101 of the application-side system 105 receives notification of connection completion from the USB device 155 of the application-side system 105 through the communication controller 1203 of the application-side system 105.
When the connection has been established, the main controller 1101 of the application-side system 105 sends notification 1255 representing the communication is possible to the main controller 1201 of the modem-side system 103 through the USB connection path.
When receiving the notification 1255 representing that the communication is possible, the main controller 1201 of the modem-side system 103 sends incoming call event notification 1257 to the main controller 1101 of the application-side system 105 through the USB connection path.
The main controller 1101 of the application-side system 105 performs examination (or determination) 1259 of the event. Here, it is determined that the event is the incoming call event, the main controller 1101 of the application-side system 105 performs a processing 1261 for the call application.
In the processing 1261 for the call application, the main controller 1101 of the application-side system 105 communicates call data 1265 with a process 1263 for call in modem in the main controller 1201 through the USB connection path. The call data 1265 is data concerning call such as phone number of an opposite party or the like. The processing 1261 for the call application and the processing 1263 for call in modem are similar to those in the conventional art.
By using
As illustrated by an arrow 1275, the main controller 1201 of the modem-side system 103 switches the signal level of the third signal line 655 to LOW through the second output terminal 615 of the modem-side system 103. Thus, it is represented that the CPU 131 of the modem-side system 103 is in the suspended state.
As illustrated by an arrow 1277, the main controller 1101 of the application-side system 105 switches the signal level of the fourth signal line 657 to LOW through the second output terminal 637 of the application-side system 105. Thus, it is represented that the CPU 151 of the application-side system 105 is in the suspended state.
As illustrated by an arrow 1279, the main controller 1201 of the modem-side system 103 stops the communication controller 1205 of the modem-side system 103. Furthermore, as illustrated by an arrow 1281, the main controller 1201 of the modem-side system 103 stops the USB device 135 of the modem-side system 103.
Moreover, as illustrated by an arrow 1283, the main controller 1101 of the application-side system 105 stops the communication controller 1203 of the application-side system 105. Furthermore, as illustrated by an arrow 1285, the main controller 1101 of the application-side system 105 stops the USB device 155 of the application-side system 105. Then, the connection between the USB device 135 of the modem-side system 103 and the USB device 155 of the application-side system 105 becomes a disconnection state 1287.
Next, a sequence when the RSSI event occurs in the first embodiment will be explained by using
The main controller 1201 of the modem-side system 103 performs an examination (or determination) 1307 of an event that occurred and the state of the CPU 151 in the application-side system 105. Here, the RSSI event occurred, and the state of the CPU 151 in the application-side system 105 is the operational state. Therefore, it is determined that notification of the examination result is required. Hereinafter, a sequence when the RSSI event occurred and the state of the CPU 151 in the application-side system 105 is the operational state will be explained.
As illustrated by an arrow 1309, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 651 to HIGH through the first output terminal 611 of the modem-side system 103. This is an interrupt signal for resuming the CPU 151 of the application-side system 105. However, because the CPU 151 of the application-side system 105 is the operational state, switching to HIGH has no substantial meaning. This is a processing to surely perform an operation.
As illustrated by an arrow 1311, the main controller 1101 of the application-side system 105 detects that the signal level of the first signal line 651 is HIGH through the first input terminal 631 of the application-side system 105. However, the CPU 151 of the application-side system 105 is in the operational state, so no particular processing is performed.
As illustrated by an arrow 1313, the main controller 1101 of the application-side system 105 switches the signal level of the fourth signal line 657 to HIGH through the second output terminal 637 of the application-side system 105. Accordingly, it is represented that the CPU 151 of the application-side system 105 is in the operating state.
As illustrated by an arrow 1315, the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 653 to HIGH through the first output terminal 633 of the application-side system 105. This is an interrupt signal for resuming the CPU 131 of the modem-side system 103. However, because the CPU 131 of the modem-side system 103 is in the operational state, the switching the signal level has no substantial meaning. This is a processing to surely perform an operation.
As illustrated by an arrow 1317, the main controller 1201 of the modem-side system 103 detects that the signal level of the second signal line 653 is HIGH through the first input terminal 613 of the modem-side system 103. The CPU 131 of the modem-side system 103 is in the operational state, so the detection has no substantial meaning.
As illustrated by an arrow 1319, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 651 to LOW through the first output terminal 611 of the modem-side system 103. Thus, an interrupt signal outputted at the arrow 1309 is terminated.
As illustrated by an arrow 1321, the main controller 1201 of the modem-side system 103 switches the signal level of the third signal line 655 to HIGH through the second output terminal 615 of the modem-side system 103. Thus, it is represented that the CPU 131 of the modem-side system 103 is operating.
As illustrated by an arrow 1323, when the main controller 1101 of the application-side system 105 detects that the signal level of the third signal line 655 is HIGH though the second input terminal 635, the main controller 1101 switches the signal level of the second signal line 653 to LOW through the first output terminal 633 as illustrated by an arrow 1325. Accordingly, an interrupt signal outputted by the arrow 1315 is terminated.
A next sequence to the sequence when the RSSI event occurs in this embodiment will be explained by using
Next, a sequence when the RSSI event occurs in the suspended state of the CPU 151 in the application-side system 105 will be explained by using
When the RSSI event 1403 occurs, the main controller 1201 of the modem-side system 103 obtains the signal level of the fourth signal line 657 through the second input terminal 617 of the modem-side system 103 as illustrated by an arrow 1405. At this time, LOW is set to the signal level of the fourth signal line 657 by the main controller 1101 of the application-side system 105. This represents the state of the CPU 151 of the application-side system 105 is the suspended state.
The main controller 1201 of the modem-side system 103 performs an examination 1407 of the event that occurred and the state of the CPU 151 in the application-side system 105. Here, the RSSI event occurred, and the state of the CPU 151 of the application-side system 105 is the suspended state. Therefore, notification of the examination result (or determinations result) is not required. In such a case, without resuming the CPU 151 of the application-side system 105 from the suspended state to the operational state, the processing ends.
Next, a processing of the main controller 1201 of the modem-side system 103 in this embodiment will be explained by using
On the other hand, when it is determined that the type of the event that occurred is the RSSI event, the main controller 1201 of the modem-side system 103 obtains a signal level of the fourth signal line 657 through the second input terminal 617 of the modem-side system 103 (S1605). This corresponds to the arrow 1305 illustrated in
Returning to the processing in
The main controller 1201 of the modem-side system 103 obtains the signal level of the second signal line 653 through the first input terminal 613 (S1703). The main controller 1201 of the modem-side system 103 determines whether the signal level of the second signal line 653 is HIGH or LOW (S1705). When it is determined that the signal level of the second signal line 653 is LOW, the processing returns to S1703. This processing is repeated until it is determined that the signal level of the second signal line 653 is HIGH. This corresponds to the arrow 1221 illustrated in
The main controller 1201 of the modem-side system 103 sets LOW to the signal level of the first signal line 651 (S1707). This corresponds to the arrow 1223 illustrated in
The main controller 1201 of the modem-side system 103 sets HIGH to the signal level of the third signal line 655 (S1709). This corresponds to the arrow 1225 illustrated in
Returning to the processing in
The main controller 1201 of the modem-side system 103 waits for receipt of an ACK from the USB device 135 of the modem-side system 103 (S1803). This corresponds to the arrow 1233 illustrated in
After receiving the ACK, the main controller 1201 of the modem-side system 103 activates a communication function by the communication controller 1205 of the modem-side system 103 (S1805). Thus, the state of the communication controller 1205 of the modem-side system 103 becomes the operational state. This corresponds to the arrow 1235 illustrated in
The main controller 1201 of the modem-side system 103 waits for receipt of an ACK from the communication controller 1205 of the modem-side system 103 (S1807). This corresponds to the arrow 1237 illustrated in
After receiving the ACK, the main controller 1201 of the modem-side system 103 waits for notification of the connection completion from the communication controller 1205 of the modem-side system 103 (S1809). This corresponds to the arrow 1251 illustrated in
After receiving the notification, the main controller 1201 of the modem-side system 103 waits for receipt of notification representing that the communication is possible from the main controller 1101 of the application-side system 105 (S1811). This corresponds to the arrow 1255 illustrated in
Returning to the processing in
The main controller 1201 of the modem-side system 103 determines whether a type of the notified event is the incoming call event or RSSI event (S1511). When it is determined that the type of the notified event is the incoming call event, the main controller 1201 of the modem-side system 103 performs a processing for call in modem (S1513).
This corresponds to the processing 1263 for call in modem, which is illustrated in
After receiving the disconnection notification, the main controller 1201 of the modem-side system 103 transmits a response to the disconnection notification to the main controller 1101 of the application-side system 105 through the USB connection path (S1903). This corresponds to the arrow 1273 illustrated in
The main controller 1201 of the modem-side system 103 sets LOW as the signal level of the third signal line 655 through the second output terminal 615 of the modem-side system 103 (S1905). This corresponds to the arrow 1275 illustrated in
The main controller 1201 of the modem-side system 103 stops the communication function by the communication controller 1205 of the modem-side system 103 (S1907). This corresponds to the arrow 1279 illustrated in
The main controller 1201 of the modem-side system 103 stops the USB function by the USB device 135 of the modem-side system 103 (S1909). This corresponds to the arrow 1281 illustrated in
When the first modem-side disconnection processing ends, the processing in
Next, a processing in the application-side system 105 will be explained. The state of the CPU 151 of the application-side system 105 shifts from the suspended state to the operational state, when it is detected through the first input terminal 631 of the application-side system 105 that the signal level of the first signal line 651 is HIGH, as illustrated in
A processing by the main controller 1101 of the application-side system 105 in this embodiment will be explained by using
The main controller 1101 of the application-side system 105 sets HIGH as the signal level of the fourth signal line 657 through the second output terminal 637 (S2103). This corresponds to the arrow 1217 illustrated in
The main controller 1101 of the application-side system 105 sets HIGH as the signal level of the second signal line 653 through the first output terminal 633 (S2105). This corresponds to the arrow 1219 illustrated in
The main controller 1101 of the application-side system 105 obtains the signal level of the third signal line 655 through the second input terminal 635 (S2107). This corresponds to the arrow 1227 illustrated in
The main controller 1101 of the application-side system 105 determines whether the signal level of the third signal line 655 is HIGH or LOW (S2109). When it is determined that the signal level of the third signal line 655 is LOW, the processing returns to S2107. This processing is repeated until it is determined that the signal level of the third signal line 655 is HIGH. This corresponds to the arrow 1227 illustrated in
The main controller 1101 of the application-side system 105 sets LOW as the signal level of the second signal line 653 through the first output terminal 633 (S2111). This corresponds to the arrow 1229 illustrated in
Returning to the processing in
The main controller 1101 of the application-side system 105 waits for receipt of the ACK from the USB device 155 of the application-side system 105 (S2203). This corresponds to the arrow 1243 illustrated in
After receiving the ACK, the main controller 1101 of the application-side system 105 activates the communication function by the communication controller 1203 of the application-side system 105 (S2205). By this step, the communication controller 1203 of the application-side system 105 becomes operating. This corresponds to the arrow 1245 illustrated in
The main controller 1101 of the application-side system 105 waits for the receipt of the ACK from the communication controller 1203 of the application-side system 105 (S2207). This corresponds to the arrow 1247 illustrated in
After receiving the ACK, the main controller 1101 of the application-side system 105 waits for notification of the connection completion from the communication controller 1203 of the application-side system 105 (S2209). This corresponds to the arrow 1253 illustrated in
After receiving the notification, the main controller 1101 of the application-side system 105 transmits the notification representing that the communication is possible to the main controller 1201 of the modem-side system 103 (S2211). This corresponds to the arrow 1255 illustrated in
Returning to the processing in
After receiving the event notification, the main controller 1101 of the application-side system 105 determines whether a type of the notified event is the incoming call event or RSSI event (S2007). When it is determined that the type of the notified event is the incoming event, the main controller 1101 of the application-side system 105 performs the processing for the call application (S2009). This corresponds to the processing for the call application 1261, which is illustrated in
When it is determined that the type of the notified event is the RSSI event, the main controller 1101 of the application-side system 105 performs the processing for the display application (S2011). This corresponds to the processing 1333 for the display application, which is illustrated in
The main controller 1101 of the application-side system 105 performs the first application-side disconnection processing (S2013). This corresponds to the processing from the arrow 1271 to arrow 1285, which are illustrated in
The main controller 1101 of the application-side system 105 waits for receipt of a response from the main controller 1201 of the modem-side system 103 through the USB connection path (S2303). This corresponds to the arrow 1273 illustrated in
After receiving the response, the main controller 1101 of the application-side system 105 sets LOW to the signal level of the fourth signal line 657 through the second output terminal 637 of the application-side system 105 (S2305). This corresponds to the arrow 1277 illustrated in
The main controller 1101 of the application-side system 105 stops the communication function by the communication controller 1203 of the application-side system 105 (S2307). This corresponds to the arrow 1283 illustrated in
The main controller 1101 of the application-side system 105 stops the USB function by the USB device 155 of the application-side system 105 (S2309). This corresponds to the arrow 1285 illustrated in
When the first application-side disconnection processing ends, the processing in
In the aforementioned comparative example, as illustrated in
On the other hand, in this embodiment, as illustrated in
Thus, because the state of the application-side CPU 151 is informed to the modem-side CPU 131 through the fourth signal line 657, the number of times of the resume of the modem-side CPU 131 is reduced, and the consumed power is suppressed.
Moreover, when the application-side CPU 151 is operating, the notification of the RSSI event is made, and when the application-side CPU 151 is suspended, the application-side CPU 151 is not resumed to the operational state, and the notification of the RSSI event is omitted, Therefore, it is possible to suppress the power consumption according to the state of the application-side CPU 151.
Moreover, when the application-side CPU 151 is suspended and the incoming call event occurs in the modem-side system 103, the application-side CPU 151 is resumed and the notification of the incoming call event is made. Therefore, it is possible to suspend the application-side CPU 151 in a situation that there is a possibility of receiving the incoming call, and it is also possible to suppress the power consumption of the application-side CPU 151 in the waiting state.
In this embodiment, an example will be explained in which its own CPU state is informed to the other CPU by using a signal line for outputting the interrupt signal for resuming the other CPU from the suspended state to the operational state together.
The hardware configuration of the communication apparatus 101 in this embodiment is similar to that in
However, as for either of the first signal line 191 and second signal line 193, the detection of the interrupt signal is performed by a trigger-method. In other words, an interrupt occurs at a timing when the signal level shifts from LOW to HIGH.
Moreover, as for either of the first signal line 191 and second signal line 193, the signal level being HIGH represents that the state of the CPU is the operational state, and the signal level being LOW represents the state of the CPU is the suspended state.
When the CPU 131 of the modem-side system 103 detects that the signal level of the second signal line 193 is HIGH, the CPU 131 resumes by itself as illustrated by an arrow 2403. Thus, the CPU 131 of the modem-side system 103 shifts from the suspended state to the operational state.
Then, as illustrated by an arrow 2405, the CPU 131 of the modem-side system 103 switches the signal level of the first signal line 191 to HIGH in order to represent its own CPU 131 is operating. After that, when no processing is carried out, the CPU 131 of the modem-side system 103 returns the signal level of the first signal line 191 to LOW as illustrated by an arrow 2407.
On the other hand, when the state of the CPU 151 of the application-side system 105 shifts from the operational state to the suspended state because the CPU 151 stops, the CPU 151 of the application-side system 105 switches the signal level of the second signal line 193 from HIGH to LOW as illustrated by an arrow 2409.
Similarly to the first embodiment, when the incoming call is received, an application program is executed even when the CPU 151 of the application-side system 105 is operating or suspended. Therefore, the CPU 131 of the modem-side system 103 resumes the CPU 151 of the application-side system 105, which is in the suspended state, to the operational state. In a state that the CPU 151 of the application-side system 105 is operating, when the interrupt signal for the resume is received from the CPU 131 of the modem-side system 103, no particular processing is carried out because the CPU 151 has already been resumed.
When the CPU 151 of the application-side system 105 detects that the signal level of the first signal line 191 is HIGH, the CPU 151 resumes by itself as illustrated by an arrow 2503. Then, as illustrated by an arrow 2505, the CPU 151 of the application-side system 105 switches the signal level of the second signal line 193 from LOW to HIGH.
As illustrated by an arrow 2507, the CPU 131 of the modem-side system 103 detects that the signal level of the second signal line 193 is HIGH. However, the CPU 131 has already been resumed, so no particular processing is conducted.
As illustrated by an arrow 2509, the CPU 131 of the modem-side system 103 transmits notification of the incoming call event to the CPU 151 of the application-side system 105 through the USB connection path. Then, the CPU 151 of the application-side system 105 performs a processing for the application program according to the incoming call event.
When the call ends and the CPU 131 of the modem-side system 103 suspends, the CPU 131 switches the signal level of the first signal line 191 from HIGH to LOW as illustrated by an arrow 2511. Moreover, when the CPU 151 of the application-side system 105 suspends, the CPU 151 switches the signal level of the second signal line 193 from HIGH to LOW as illustrated by an arrow 2513.
Next, a state transition when the RSSI event occurs in this embodiment will be explained. Similarly to the aforementioned embodiment and also in this embodiment, only when the CPU 151 of the application-side system 105 is operating, display of the receiver sensitivity is carried out. When the CPU 151 of the application-side system 105 is suspended, the display of the receiver sensitivity is not carried out.
A state transition when the RSSI event occurs while the CPU 151 of the application-side system 105 is operating will be explained by using
Then, as illustrated by an arrow 2601, the CPU 131 of the modem-side system 103 transmits notification of the RSSI event to the CPU 151 of the application-side system 105 through the USB connection path. After that, the CPU 151 of the application-side system 105 perform a processing for an application program according to the RSSI event.
Next, a state transition when the RSSI event occurs while the CPU 151 of the application-side system 105 is suspended will be explained by using
In the following, sequences in this embodiment will be explained. First, a sequence at the resume and stop of the CPU 151 in the application-side system 105 in this embodiment will be explained by using
It is assumed that the state of the CPU 131 of the modem-side system 103 is being suspended (2801), and the state of the CPU 151 of the application-side system 105 is being suspended (2803). When, in response to an input of the interrupt signal or the like, the CPU 151 of the application-side system 105 is resumed (2805), the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 193 to HIGH through the output terminal 183 of the application-side system 105 as illustrated by an arrow 2807. Thus, the state of the CPU 151 of the application-side system 105 shifts to the operational state (2809).
On the other hand, as illustrated by an arrow 2811, when the main controller 1201 of the modem-side system 103 detects that the signal level of the second signal line 193 is HIGH through the input terminal 173 of the modem-side system 103, the CPU 131 of the modem-side system 103 is resumed (2813). However, when the CPU 131 has already been operating, no particular processing is carried out.
As illustrated by an arrow 2815, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 191 through the output terminal 171 of the modem-side system 103. After that, when no processing is carried out, the main controller 1201 of the modem-side system 103 returns the signal level of the first signal line 191 to LOW through the output terminal 171 of the modem-side system 103, as illustrated by an arrow 2817.
Then, the main controller 1201 of the modem-side system 103 stops the CPU 131 (2819). By this step, the state of the CPU 131 of the modem-side system 103 becomes the suspended state 2821.
When the main controller 1101 of the application-side system 105 stops by itself, the main controller 1101 switches the signal level of the second signal line 193 to LOW through the output terminal 183 of the application-side system 105.
Then, when the main controller 1101 of the application-side system 105 stops the CPU 151 (2825), the state of the CPU 151 of the application-side system 105 shifts to the suspended state 2827.
Next, a sequence when the incoming call event occurs in this embodiment will be explained by using
It is assumed that the state of the CPU 151 of the application-side system 105 is the operational state or suspended state 2901. The sequence is the same even in case of the operational state and even in case of the suspended state. The state of the CPU 131 of the modem-side system 103 is the operational state. The main controller 1201 of the modem-side system 103 examines an event that occurred (2905), when the incoming call event occurred (2903). Because the incoming call event occurred, “notification required” is set as the examination result (which corresponds to determination result). In the following, a sequence when the event that occurred is the incoming call event will be explained.
As illustrated by an arrow 2907, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 191 from LOW to HIGH through the output terminal 171 of the modem-side system 103. This is an interrupt signal for resuming the CPU 151 of the application-side system 105.
Then, as illustrated by an arrow 2909, when it is detected that the signal level of the first signal line 191 is switched from LOW to HIGH through the input terminal 181 of the application-side system 105, the CPU 151 of the application-side system 105 is resumed (2911). However, when the CPU 151 has already been resumed, no particular processing is performed.
As illustrated by an arrow 2913, the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 193 from LOW to HIGH through the output terminal 183 of the application-side system 105. With this step, it is represented by the CPU 151 of the application-side system 105 is operating.
As illustrated by an arrow 2915, the main controller 1201 of the modem-side system 103 detects that the signal level of the second signal line 193 shifts from LOW to HIGH through the input terminal 173 of the modem-side system 103. This switch of the signal level corresponds to an interrupt for resuming the CPU 151 of the application-side system 105 from the suspended state to the operational state. However, the CPU 151 of the application-side system 105 has already been operating, so no particular processing is carried out.
The subsequent processing of
When the processing 1261 for the call application ends, the main controller 1101 of the application-side system 105 transmits disconnection notification 2921 to the main controller 1201 of the modem-side system 103 through the USB connection path.
When the main controller 1201 of the modem-side system 103 receives the disconnection notification 2921, the main controller 1201 transmits a response 2923 to the main controller 1101 of the application-side system 105 through the USB connection path. After this, the main controller 1201 of the modem-side system 103 and the main controller 1101 of the application-side system 105 shift to a disconnection processing.
As illustrated by an arrow 2925, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 191 to LOW through the output terminal 171 of the modem-side system 103. With this step, it is represented that the CPU 131 of the modem-side system 103 is suspended.
As illustrated by an arrow 2927, the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 193 to LOW through the output terminal 183 of the application-side system 105. With this step, it is represented that the CPU 151 of the application-side system 105 is suspended.
As illustrated by an arrow 2929, the main controller 1201 of the modem-side system 103 stops the communication controller 1205 of the modem-side system 103. Furthermore, as illustrated by an arrow 2931, the main controller 1201 of the modem-side system 103 stops the USB device 135 of the modem-side system 103.
As illustrated by an arrow 2933, the main controller 1101 of the application-side system 105 stops the communication controller 1203 of the application-side system 105. Furthermore, as illustrated by an arrow 2935, the main controller 1101 of the application-side system 105 stops the USB device 155 of the application-side system 105. Then, the connection between the USB device 135 of the modem-side system 103 and the USB device 155 of the application-side system 105 is disconnected (2937).
Next, a sequence when the RSSI event occurs in this embodiment will be explained by using
It is assumed that the state of the CPU 151 of the application-side system 105 is the operational state 3001. The state of the CPU 131 of the modem-side system 103 is the operational state. When the RSSI event 3003 occurs, the main controller 1201 of the modem-side system 103 obtains the signal level of the second signal line 193 through the input terminal 173 of the modem-side system 103 as illustrated by an arrow 3005. At this time, as the signal level of the second signal line 193, HIGH is set by the main controller 1101 of the application-side system 105. This represents that the state of the CPU 151 of the application-side system 105 is the operational state.
The main controller 1201 of the modem-side system 103 examines the event that occurred and the state of the CPU 151 of the application-side system 105 (3007). Here, because the RSSI event occurred and the state of the CPU 151 of the application-side system 105 is the operational state, “notification required” is set as the examination result (which corresponds to the determination result). In the following, a sequence when the RSSI event occurred and the state of the CPU 151 of the application-side system 105 is the operational state will be explained.
As illustrated by an arrow 3009, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 191 to HIGH through the output terminal 171 of the modem-side system 103. This is a signal representing the state of the CPU 131 of the modem-side system 103, and also an interrupt for resuming the CPU 151 of the application-side system 105 from the suspended state to the operational state. However, the CPU 151 of the application-side system 105 is operating, so the signal does not function as the interrupt.
As illustrated by an arrow 3011, the main controller 1101 of the application-side system 105 detects that the signal level of the first signal line 191 is HIGH through the input terminal 181 of the application-side system 105. However, the CPU 151 of the application-side system 105 is operating, so no particular processing is carried out.
As illustrated by an arrow 3013, the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 193 to HIGH through the output terminal 183 of the application-side system 105. This is a signal representing the state of the CPU 151 of the application-side system 105, and also an interrupt for resuming the CPU 131 of the modem-side system 103. However, the CPU 131 of the modem-side system 103 is operating, so the signal does not function as the interrupt.
As illustrated by an arrow 3015, the main controller 1201 of the modem-side system 103 detects that the signal level of the second signal line 193 is HIGH through the input terminal 173 of the modem-side system 103. However, the CPU 131 of the modem-side system 103 is operating, so no particular processing is carried out.
A subsequence sequence of
Next, a sequence when the CPU 151 of the application-side system 105 is suspended and the RSSI event occurred will be explained by using
When the RSSI event 3103 occurred, the main controller 1201 of the modem-side system 103 obtains the signal level of the second signal line 193 through the input terminal 173 of the modem-side system 103 as illustrated by an arrow 3105. At this time, LOW is set as the signal level of the second signal line 193 by the main controller 1101 of the application-side system 105. This represents that the state of the CPU 151 of the application-side system 105 is suspended.
The main controller 1201 of the modem-side system 103 examines the event that occurred and the state of the CPU 151 of the application-side system 105 (3107). Here, because the RSSI event occurred and the state of the CPU 151 of the application-side system 105 is the suspended state, “notification not required” is set as the examination result (which corresponds to the determination result). In such a case, without resuming the CPU 151 of the application-side system 105 from the suspended state to the operational state, the processing ends.
Next, a processing by the main controller 1201 of the modem-side system 103 in this embodiment will be explained by using
On the other hand, when it is determined that the type of the event that occurred is the RSSI event, the main controller 1201 of the modem-side system 103 obtains the signal level of the second signal line 193 through the input terminal 173 of the modem-side system 103 (S3301). This corresponds to the arrow 3005 illustrated in
The main controller 1201 of the modem-side system 103 determines whether the signal level of the second signal line 193 is HIGH or LOW (S3303). When it is determined that the signal level of the second signal line 193 is HIGH, the main controller 1201 sets “notification required” as the determination result (i.e. examination result) (S1603). When it is determined that the signal level of the second signal line 193 is LOW, the main controller 1201 of the modem-side system 103 sets “notification not required” as the determination result (S1609).
Returning to the processing in
The main controller 1201 of the modem-side system 103 obtains the signal level of the second signal line 193 through the input terminal 173 (S1703). The main controller 1201 of the modem-side system 103 determines whether the signal level of the second signal line 193 is HIGH or LOW (S1705). When it is determined that the signal level of the second signal line 193 is LOW, the processing returns to S1703. This processing is repeated until it is determined that the signal level of the second signal line 193 is HIGH. This corresponds to the arrow 2915 illustrated in
Returning to the processing in
The main controller 1201 of the modem-side system 103 transmits event notification (S1509). This corresponds to the arrow 1257 illustrated in
The main controller 1201 of the modem-side system 103 determines whether a type of the notified event is the incoming call event or RSSI event (S1511). When it is determined that the type of the notified event is the incoming call event, the main controller 1201 of the modem-side system 103 performs the processing for call in modem (S1513). This corresponds to the processing 1263 for call in modem, which is illustrated in
When the processing for the call application by the main controller 1101 of the application-side system 105 ends, the main controller 1201 of the modem-side system 103 ends the processing for call in modem (S1513), and performs a second modem-side disconnection processing instead of the aforementioned first modem-side disconnection processing (S3205).
When it is determined at S1511 that the type of the notified event is the RSSI event, the processing shifts to the second modem-side disconnection processing. The second modem-side disconnection processing corresponds to the processing from the arrow 2921 to arrow 2937, which are illustrated in
After receiving the disconnection notification, the main controller 1201 of the modem-side system 103 transmits a response to the disconnection notification to the main controller 1101 of the application-side system 105 through the USB connection path (S1903). This corresponds to the arrow 2923 illustrated in
The main controller 1201 of the modem-side system 103 sets LOW as the signal level of the first signal line 191 through the output terminal 171 of the modem-side system 103 (S3501). This corresponds to the arrow 2925 illustrated in
The main controller 1201 of the modem-side system 103 stops the communication function by the communication controller 1205 of the modem-side system 103 (S1907). This corresponds to the arrow 2929 illustrated in
The main controller 1201 of the modem-side system 103 stops the USB function by the USB device 135 of the modem-side system 103 (S1909). This corresponds to the arrow 2931 illustrated in
When the second modem-side disconnection processing ends, the processing in
Next, the processing in the application-side system 105 will be explained. As illustrated in
The processing by the main controller 1101 of the application-side system 105 in the second embodiment will be explained by using
The main controller 1101 of the application-side system 105 sets HIGH as the signal level of the second signal line 193 through the output terminal 183 of the application-side system 105 (S3701). This corresponds to the arrow 2913 illustrated in
Returning to the processing in
The main controller 1101 of the application-side system 105 waits for receipt of the event notification (S2005). This corresponds to the arrow 1257 illustrated in
After receiving the event notification, the main controller 1101 of the application-side system 105 determines whether a type of the notified event is the incoming call event or RSSI event (S2007). When it is determined that the type of notified event is the incoming call event, the main controller 1101 of the application-side system 105 performs the processing for the call application (S2009). This corresponds to the processing for the call application 1261, which is illustrated in
When the type of the notified event is the RSSI event, the main controller 1101 of the application-side system 105 performs the processing for the display application (S2011). This corresponds to the processing for the display application 1333, which is illustrated in
When the processing for the call application or display application ends, the main controller 1101 of the application-side system 105 performs a second application-side disconnection processing instead of the aforementioned first application-side disconnection processing (S3603). This corresponds to the processing from the arrow 2921 to arrow 2935, which are illustrated in
The main controller 1101 of the application-side system 105 waits for receipt of a response from the main controller 1201 of the modem-side system 103 through the USB connection path (S2303). This corresponds to the arrow 2923 illustrated in
The main controller 1101 of the application-side system 105 sets LOW as the signal level of the second signal line 193 through the output terminal 183 of the application-side system 105 (S3801). This corresponds to the arrow 2927 illustrated in
The main controller 1101 of the application-side system 105 stops the communication function by the communication controller 1203 of the application-side system 105 (S2307). This corresponds to the arrow 2933 illustrated in
The main controller 1101 of the application-side system 105 stops the USB function by the USB device 155 of the application-side system 105 (S2309). This corresponds to the arrow 2935 illustrated in
When the second application-side disconnection processing ends, the processing in
According to this embodiment, by using the second signal line 193 provided to deliver the interrupt signal for resuming the modem-side CPU 131 to the operational state by the application-side CPU 151, it is possible to inform the modem-side CPU 131 of the state of the application-side CPU 151. Therefore, the number of signal lines is reduced, and the configuration of the communication apparatus 101 is simplified.
In the aforementioned embodiments, the state of the CPU is passed through the signal line. However, in this embodiment, an example will be explained in which the state of the CPU is determined by measuring a value of a current inputted to the CPU.
In this embodiment, the application-side system 105 further has a power supply device 3901 and measurement device 3903. The power supply device 3901 supplies the power to the CPU 151. The measurement device 3903 measures a value of a current inputted to the CPU 151 from the power supply device 3901. Then, the measurement device 3903 determines, based on the measured current value, whether the CPU 151 of the application-side system 105 is operating or stopped. For example, when the measured current value exceeds a predetermined threshold, the measurement device 3903 determines that the CPU 151 is operating, and when the measured current value is equal to or less than the predetermined threshold, the measurement device 3903 determines that the CPU 151 is being stopped.
The modem-side system 103 further has a measurement device 3905. The measurement device 3905 of the modem-side system 103 and the measurement device 3903 of the application-side system 105 are connected via a signal line, bus or the like. The CPU 131 obtains a determination result representing whether the CPU 151 of the application-side system 105 is operating or stopping from the measurement device 3903 of the application-side system 105 through the measurement device 3905 of the modem-side system 103.
The first signal line 191 and second signal line 193 are used for sending the interrupt signal for the resume, similarly to the aforementioned comparative example.
Next, a sequence when the incoming call event occurs in this embodiment will be explained using
As illustrated by an arrow 4007, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 191 from LOW to HIGH through the output terminal 171 of the modem-side system 103. This is an interrupt signal for resuming the CPU 151 of the application-side system 105.
Then, as illustrated by an arrow 4009, when the CPU 151 of the application-side system 105 detects that the signal level of the first signal line 191 is switched from LOW to HIGH through the input terminal 181 of the application-side system 105, the CPU 151 of the application-side system 105 is resumed (4011). However, when the CPU 151 of the application-side system 105 has already been resumed, no particular processing is performed.
As illustrated by an arrow 4013, the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 193 from LOW to HIGH through the output terminal 183 of the application-side system 105. This is an interrupt signal for the resume to the CPU 131 of the modem-side system 103. However, the CPU 131 of the modem-side system 103 has already been operating, so this signal does not function substantially.
As illustrated by an arrow 4015, the main controller 1201 of the modem-side system 103 detects that the signal level of the second signal line 193 is HIGH through the input terminal 173 of the modem-side system 103. However, the CPU 131 of the modem-side system 103 has already been operating, so no particular processing is carried out.
As illustrated by an arrow 4017, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 191 through the output terminal 171 of the modem-side system 103. Therefore, the interrupt signal outputted at the timing of the arrow 4007 is terminated.
When the main controller 1101 of the application-side system 105 detects that the signal level of the first signal line 191 is switched to LOW through the input terminal 181 of the application-side system 105 as illustrated by an arrow 4019, the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 193 to LOW through the output terminal 183 of the application-side system 105 as illustrated by an arrow 4021. With this step, the interrupt signal outputted at the timing of the arrow 4013 is terminated.
A next sequence to the sequence illustrated in
When the main controller 1101 of the application-side system 105 ends the processing 1261 for the call application, the main controller 1101 sends disconnection notification 4031 to the main controller 1201 of the modem-side system 103 through the USB connection path.
When the main controller 1201 of the modem-side system 103 receives the disconnection notification 4031, the main controller 1201 sends a response 4033 to the main controller 1101 of the application-side system 105 through the USB connection path. After this step, the processing by the main controller 1201 of the modem-side system 103 and the main controller 1101 of the application-side system 105 shifts to a processing for the disconnection.
As illustrated by an arrow 4035, the main controller 1201 of the modem-side system 103 stops the communication controller 1205 of the modem-side system 103. Furthermore, as illustrated by an arrow 4037, the main controller 1201 of the modem-side system 103 stops the USB device 135 of the modem-side system 103.
As illustrated by an arrow 4039, the main controller 1101 of the application-side system 105 stops the communication controller 1203 of the application-side system 105. Furthermore, as illustrated by an arrow 4041, the main controller 1101 of the application-side system 105 stops the USB device 155 of the application-side system 105. Then, the connection between the USB device 135 of the modem-side system 103 and the USB device 155 of the application-side system 105 is disconnected (4043).
Next, a sequence when the RSSI event occurs in this embodiment will be explained by using
The measurement device 3903 of the application-side system 105 measures the value of the current inputted into the CPU 151 of the application-side system 105, and determines the state of the CPU 151 of the application-side system 105. Then, the measurement device 3903 informs the main controller 1201 of the modem-side system 103 of a measurement result representing whether the state of the CPU 151 of the application-side system 105 is operating or suspended, through the measurement device 3905 as illustrated by an arrow 4107.
The main controller 1201 of the modem-side system 103 examines the event that occurred and the state of the CPU 151 of the application-side system 105 (4109). Here, when the RSSI event occurs, and the state of the CPU 151 of the application-side system 105 is the operational state, “notification required” is set as the examination result (i.e. determination result). In the following, a sequence when the RSSI event occurs and the state of the CPU 151 of the application-side system 105 is the operational state will be explained.
As illustrated by an arrow 4111, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 191 to HIGH through the output terminal 171 of the modem-side system 103. This is an interrupt signal for resuming the CPU 151 of the application-side system 105 from the suspended state to the operational state. However, because the CPU 151 of the application-side system 105 is already operating, this signal does not function substantially.
As illustrated by an arrow 4113, the main controller 1101 of the application-side system 105 detects the signal level of the first signal line 191 is HIGH through the input terminal 181 of the application-side system 105. However, because the CPU 151 of the application-side system 105 has already been operating, no particular processing is performed.
As illustrated by an arrow 4115, the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 193 to HIGH through the output terminal 183 of the application-side system 105. This is an interrupt signal for resuming the CPU 131 of the modem-side system 103 from the suspended state to the operational state. However, because the CPU 131 of the modem-side system 103 is operating, the signal does not affect substantially.
As illustrated by an arrow 4117, the main controller 1201 of the modem-side system 103 detects the signal level of the second signal line 193 is HIGH through the input terminal 173 of the modem-side system 103. However, the CPU 131 of the modem-side system 103 has already been operating, so no particular processing is performed.
As illustrated by an arrow 4119, the main controller 1201 of the modem-side system 103 switches the signal level of the first signal line 191 to LOW through the output terminal 171 of the modem-side system 103. Thus, the interrupt signal outputted at the timing of the arrow 4111 is terminated.
As illustrated by an arrow 4121, when the main controller 1101 of the application-side system 105 detects the signal level of the first signal line 191 is switched to LOW through the input terminal 181 of the application-side system 105, the main controller 1101 of the application-side system 105 switches the signal level of the second signal line 193 to LOW through the output terminal 183 of the application-side system 105. Thus, the interrupt signal outputted at the timing of the arrow 4115 is terminated.
A sequence subsequent to the sequence illustrated in
When the RSSI event 4203 occurs, the main controller 1201 of the modem-side system 103 requests the measurement device 3903 of the application-side system 105 for the measurement through the measurement device 3905 of the modem-side system 103 as illustrated by an arrow 4205.
The measurement device 3903 of the application-side system 105 measures the value of the current inputted to the CPU 151 of the application-side system 105, and examines the state of the CPU 151 of the application-side system 105. Then, the measurement device 3903 sends the measurement result representing whether the state of the CPU 151 of the application-side system 105 is the operational state or the suspended state to the main controller 1201 of the modem-side system 103 through the measurement device 3905 as illustrated by an arrow 4207.
The main controller 1201 of the modem-side system 103 examines the event that occurred and the state of the CPU 151 of the application-side system 105 (4209). Here, because the RSSI event occurred and the state of the CPU 151 of the application-side system 105 is the suspended state, “notification not required” is set as the examination result (i.e. determination result). In this case, without resuming the CPU 151 of the application-side system 105 from the suspended state to the operational state, the processing ends.
Next, a processing by the main controller 1201 of the modem-side system 103 in this embodiment will be explained by using
On the other hand, when the type of the event that occurred is the RSSI event, the main controller 1201 of the modem-side system 103 requests the measurement device 3903 of the application-side system 105 for the measurement through the measurement device 3905 of the modem-side system 103 (S4401).
Then, the main controller 1201 of the modem-side system 103 obtains the measurement result from the measurement device 3903 of the application-side system 105 through the measurement device 3905 of the modem-side system 103 (S4403). The main controller 1201 of the modem-side system 103 determines whether the measurement result represents the CPU 151 is operating or being stopped (S4405). When it is determined that the measurement result represents the CPU 151 is operating, the main controller 1201 sets “notification required” as the determination result (i.e. examination result) (S1603). When it is determined that the measurement result represents the CPU 151 is being stopped, the main controller 1201 sets “notification not required” as the determination result (i.e. examination result) (S1609).
Returning to the processing in
The main controller 1201 of the modem-side system 103 obtains the signal level of the second signal line 193 through the input terminal 173 (S4503). The main controller 1201 of the modem-side system 103 determines whether the signal level of the second signal line 193 is HIGH or LOW (S4505). When it is determined that the signal level of the second signal line 193 is LOW, the processing returns to S4503. This processing is repeated until it is determined that the signal level of the second signal line 193 is HIGH. This corresponds to the arrow 4015 illustrated in
The main controller 1201 of the modem-side system 103 sets LOW as the signal level of the first signal line 191 through the output terminal 171 (S4507). This corresponds to the arrow 4017 illustrated in
Returning to the processing in
The main controller 1201 of the modem-side system 103 determines whether a type of the notified event is the incoming call event or RSSI event (S1511). When it is determined that the type of the notified event is the incoming call event, the main controller 1201 of the modem-side system 103 performs the processing for call in modem (S1513). This corresponds to the processing 1263 for call in modem, which is illustrated in
When the processing for the call application by the main controller 1101 of the application-side system 105 ends, the main controller 1201 of the modem-side system 103 ends the processing for call in modem (S1513), and performs the third modem-side disconnection processing instead of the first modem-side disconnection processing (S1515) illustrated in
After receiving the disconnection notification, the main controller 1201 of the modem-side system 103 transmits a response to the disconnection notification to the main controller 1101 of the application-side system 105 through the USB connection path (S1903). This corresponds to the arrow 4033 illustrated in
The main controller 1201 of the modem-side system 103 stops the connection function by the communication controller 1205 of the modem-side system 103. This corresponds to the arrow 4035 illustrated in
The main controller 1201 of the modem-side system 103 stops the USB function by the USB device 135 of the modem-side system 103 (S1907). This corresponds to the arrow 4037 illustrated in
When the third modem-side disconnection processing ends, the processing in
Next, a processing by the application-side system 105 will be explained. As illustrated in
The processing by the main controller 1101 of the application-side system 105 in this embodiment will be explained. The main controller 1101 of the application-side system 105 performs a third application-side resume processing instead of the first application-side resume processing illustrated in
The main controller 1101 of the application-side system 105 sets HIGH as the signal level of the second signal line 193 through the output terminal 183 (S4803). This corresponds to the arrow 4013 illustrated in
The main controller 1101 of the application-side system 105 obtains the signal level of the first signal line 191 through the input terminal 181 (S4805). The main controller 1101 of the application-side system 105 determines whether the signal level of the first signal line 191 is HIGH or LOW (S4807). When it is determined that the signal level of the first signal line 191 is HIGH, the processing returns to S4805. This processing is repeated until it is determined that the signal level of the first signal line 191 is LOW. This corresponds to the arrow 4019 illustrated in
The main controller 1101 of the application-side system 105 sets LOW as the signal level of the second signal line 193 through the output terminal 183 (S4809). This corresponds to the arrow 4021 illustrated in
Returning to the processing in
The main controller 1101 of the application-side system 105 waits for receipt of the event notification (S2005). This corresponds to the arrow 4031 illustrated in
When it is determined that the type of the notified event is the RSSI event, the main controller 1101 of the application-side system 105 performs the processing for the display application (S2011). This corresponds to the processing 1333 for the display application, which is illustrated in
The main controller 1101 of the application-side system 105 performs a third application-side disconnection processing instead of the aforementioned first and second application-side disconnection processing (S4703). This corresponds to the processing from the arrow 4031 to arrow 4041, which are illustrated in
The main controller 1101 of the application-side system 105 waits for receipt of the response from the main controller 1201 of the modem-side system 103 through the USB connection path (S2303). This corresponds to the arrow 4033 illustrated In
After receiving the response, the main controller 1101 of the application-side system 105 stops the communication function by the communication controller 1203 of the application-side system 105 (S2307). This corresponds to the arrow 4039 illustrated in
The main controller 1101 of the application-side system 105 stops the USB function by the USB device 155 of the application-side system 105 (S2309). This corresponds to the arrow 4041 illustrated in
When the third application-side disconnection processing ends, the processing in
According to this embodiment, it is determined whether or not the application-side CPU is resumed to the operational state, based on the measurement result of the inputted current to the application-side CPU. Therefore, the notification regarding the state from the application-side CPU is not required, and the number of times of the resume of the modem-side CPU is reduced to suppress the power consumption.
In the aforementioned example, an example of the incoming call was explained, however, the embodiments may be applied to the mail arrival. In such a case, the main controller 1101 of the application-side system 105 may perform a processing for mail receiving application instead of the processing for the call application, which is illustrated in
Although the embodiments of this technique were explained, these techniques are not limited to those. For example, the aforementioned functional block configuration do not always corresponds to a program module configuration.
Furthermore, as for the processing flow, as long as the processing results do not change, the turn of the steps may be exchanged. Furthermore, the steps may be executed in parallel.
The aforementioned embodiments are outlined as follows:
An information processing apparatus relating to a first aspect of the embodiments includes: a first processing unit (or arithmetic unit); and a second processing unit (or arithmetic unit) that is in either of an operational state and a suspended state. The first processing unit and the second processing unit are coupled each other by a first signal line through which a first signal that represents a state of the second processing unit passes and by a second signal line through which a second signal that causes an interrupt to the second processing unit passes. Then, the second processing unit outputs the first signal through the first signal line according to a state of the second processing unit. The first processing unit determines, based on the first signal received through the first signal line, whether or not the first processing unit causes the second processing unit to resume to the operational state, and upon determining that the first processing unit causes the second processing unit to resume to the operational state, the first processing unit outputs the second signal through the second signal line. The second processing unit resumes to the operational state, upon receiving the second signal through the second signal line.
With this configuration, in the information processing apparatus in which the first processing unit resumes the second processing unit depending on the state of the second processing unit, the first signal representing the state of the second processing unit is passed through the first signal line. Therefore, the number of times of the resume of a processing unit relating to the control among the plural processing units that are cooperating, and it is possible to suppress the power consumption.
Moreover, the first processing unit may perform a data communication processing with the second processing unit, when a first signal received before the data communication processing represents the operational state of the second processing unit. The first processing unit may determine that the second processing unit is not resumed to the operational state to omit the data communication processing, when the first signal received before the data communication processing represents the suspended state of the second processing unit.
With this configuration, when the second processing unit is operating, the data communication processing is performed, and when the second processing unit is suspended, the second processing unit is not resumed and the data communication is omitted. Therefore, it is possible to suppress the power consumption depending on the state of the second processing unit.
Moreover, the first signal line may be a signal line through which an interrupt signal that causes the first processing unit to resume to the operational state from the second processing unit to the first processing unit.
With this configuration, it is possible to inform the first processing unit of the state of the second processing unit, by using the signal line provided for informing the interrupt signal for resuming the first processing unit to the operational state by the second processing unit. Therefore, the number of signal lines is reduced, and the configuration of the information processing apparatus is simplified.
An information processing apparatus relating to a second aspect of the embodiments includes: a first processing unit; a second processing unit that is in either of an operational state and a suspended state; and a measurement device that measures an input current to the second processing unit and determines a state of the second processing unit. The first processing unit and the second processing unit are coupled each other by a signal line through which an interrupt signal to the second processing unit passes. Then, the first processing unit obtains a state of the second processing unit from the measurement device, and determines, based on the obtained state of the second processing unit, whether or not the first processing unit causes the second processing unit to resume to the operational state. Upon determining that the first processing unit causes the second processing unit to resume to the operational state, the first processing unit outputs the interrupt signal through the signal line. The second processing unit resumes to the operational state in response to receipt of the interrupt signal from the signal line.
With this configuration, in the information processing apparatus in which the first processing unit resumes the second processing unit depending on the state of the second processing unit, it is determined whether or not the second processing unit is resumed to the operational state, based on the measurement result of the input current into the second processing unit. Therefore, the number of times of the resume of a processing unit relating to the control among the plural processing units that are cooperating, and it is possible to suppress the power consumption.
Moreover, the first processing unit may perform a data communication processing with the second processing unit, when a state of the second processing unit, which was obtained before the data communication processing, is the operational state. In such a case, the first processing unit may determine that the first processing unit causes the second processing unit not to resume to the operational state to omit the data communication processing, when the state of the second processing unit, which was obtained before the data communication processing, is the suspended state.
With this configuration, when the second processing unit is operating, the data communication processing is performed, and when the second processing unit is suspended, the second processing unit is not resumed and the data communication is omitted. Therefore, it is possible to suppress the power consumption depending on the state of the second processing unit.
Furthermore, the first processing unit may connect with a wireless device. In such a case, the data communication processing may include a communication processing of data relating to measurement of radio field intensity by the wireless device, and the second processing unit may perform a processing based on the data relating to the measurement of the radio field intensity.
With this configuration, when the second processing unit is operating, the processing based on the data relating to the measurement of the radio field intensity is carried out, and when the second processing unit is suspended, the processing based on the data relating to the measurement of the radio field intensity is omitted. Therefore, it is possible to suppress the power consumption depending on the state of the second processing unit.
Incidentally, it is possible to create a program causing a processor to execute the aforementioned processing, and such a program is stored in a computer readable storage medium or storage device such as a flexible disk, CD-ROM, DVD-ROM, magneto-optic disk, a semiconductor memory, and hard disk. In addition, the intermediate processing result is temporarily stored in a storage device such as a main memory or the like.
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present inventions have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2012-259403 | Nov 2012 | JP | national |