JP2010145276A - Communication terminal device and computer program - Google Patents

Communication terminal device and computer program Download PDF

Info

Publication number
JP2010145276A
JP2010145276A JP2008323845A JP2008323845A JP2010145276A JP 2010145276 A JP2010145276 A JP 2010145276A JP 2008323845 A JP2008323845 A JP 2008323845A JP 2008323845 A JP2008323845 A JP 2008323845A JP 2010145276 A JP2010145276 A JP 2010145276A
Authority
JP
Japan
Prior art keywords
acceleration
mobile phone
moving speed
calculated
calculating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008323845A
Other languages
Japanese (ja)
Inventor
Daisuke Ikushima
Koichi Izu
Takashi Nomura
Juri Sugiyama
Kouichi Urazoe
晃一 伊豆
樹利 杉山
浩一 浦添
大祐 生嶋
隆司 野村
Original Assignee
Sharp Corp
シャープ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp, シャープ株式会社 filed Critical Sharp Corp
Priority to JP2008323845A priority Critical patent/JP2010145276A/en
Publication of JP2010145276A publication Critical patent/JP2010145276A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a cellular phone unit capable of detecting an acceleration, without causing increase of hardware volume and cost and degradation of maintainability. <P>SOLUTION: The cellular phone unit 100 includes: an antenna 104 for receiving a radio-wave signal transmitted from a communication base station 200, by using a carrier wave having a prescribed frequency; a telephone network communicating section 124 which contains an oscillator control section 154 or the like for calculating a frequency offset value between the received radio-wave signal and an oscillation signal of an oscillator 156 on the basis of the received radio-wave signal, and controlling the oscillator 156 so as to lessen the calculated frequency offset value; and a CPU 130 having a moving speed calculating function of calculating a moving speed of the cellular phone unit 100 on the basis of the frequency offset value, and an acceleration calculating function of calculating the acceleration on the basis of the calculated moving speed. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

  The present invention relates to a technology in a communication terminal apparatus having an AFC (Automatic frequency control) function, and more particularly to a communication terminal apparatus and a computer program for detecting acceleration.

  2. Description of the Related Art In recent years, there have been frequent traffic accidents that occur because a driver of a car operates various functions of a mobile phone device such as a voice call function, a mail function, and a 1 seg (1 seg) function while driving. In order to prevent such a traffic accident, a technique related to a speed detection function for detecting the moving speed of the mobile phone device has been proposed.

  For example, a CDMA (Code Division Multiple Access) mobile phone device disclosed in Patent Document 1 described later uses a frequency offset amount calculated to realize an AFC (Automatic frequency control) function. Is calculated. Here, the AFC function is a function for automatically controlling and stabilizing the frequency of the local oscillation signal in accordance with the frequency of the received radio signal.

  In addition, a speed detection device mounted on a wireless device disclosed in Patent Document 2 described below is a monotonous method in which the phase difference per unit time of a digital demodulated signal demodulated and controlled by an AFC device is proportional to the phase. The correlation value is calculated by converting into an increasing function or a monotonically decreasing function, and the speed is detected based on the calculated correlation value.

  Further, the communication terminal device disclosed in Patent Document 3 described later is acceleration data detected by hardware by a dedicated acceleration detection unit, or a value of change rate data of received electric field strength measured by a reception unit. Based on the above, it is determined whether or not the communication terminal device is moving at high speed.

According to the techniques disclosed in Patent Documents 1 to 3, it is determined whether or not the mobile phone device is moving at high speed using the speed detection function described above, and the mobile phone device is based on the determination result. Operation control of various functions can be performed. This makes it possible to reduce the number of traffic accidents that occur due to operating various functions of the mobile phone device during driving.
JP 2001-157263 A JP 2007-208398 A JP-A-10-243465

  In the technique disclosed in Patent Document 3, the acceleration detection unit includes, for example, an acceleration sensor such as a piezoelectric acceleration sensor and an inductance acceleration sensor, and detects three-dimensional acceleration data by measuring a reaction due to inertia. When such an acceleration sensor is mounted, the number of parts of the mobile phone device increases, so that there is a problem that the amount of hardware and cost increase and the maintainability deteriorates. Further, Patent Literature 1 and Patent Literature 2 do not disclose a technique for detecting the acceleration of the mobile phone device.

  The present invention has been made in view of the above-described problems, and an object thereof is a communication terminal device and a computer capable of detecting acceleration without causing an increase in hardware amount and cost and deterioration in maintainability. Is to provide a program.

  A communication terminal apparatus according to a first aspect of the present invention includes a receiving unit that receives a radio signal transmitted from a communication base station using a carrier wave having a predetermined frequency, an oscillation signal from an oscillator based on the received radio signal, and a received radio wave. A communication terminal device including an automatic frequency control unit that calculates a frequency offset amount with respect to a signal and controls the oscillator so that the calculated frequency offset amount is small, and a moving speed of the communication terminal device based on the frequency offset amount The moving speed calculating means for calculating the acceleration and the acceleration calculating means for calculating the acceleration based on the calculated moving speed.

  As described above, the moving speed of the communication terminal apparatus is calculated based on the frequency offset amount calculated by the automatic frequency control means provided in the conventional communication terminal apparatus, and the acceleration is calculated based on the calculated moving speed. The acceleration of the communication terminal device can be calculated without providing new parts. Therefore, it is possible to provide a communication terminal device capable of detecting acceleration without causing an increase in hardware amount and cost and deterioration in maintainability.

  Preferably, the communication terminal apparatus determines whether or not the acceleration calculated by the acceleration calculating means is equal to or greater than a predetermined threshold, and determines that the acceleration is equal to or higher than a predetermined threshold by the determination means. And an operation switching means for switching the operation of the communication terminal device based on the number of times the communication is performed.

  As described above, since the operation of the communication terminal apparatus is switched based on the number of times that the acceleration is determined to be equal to or greater than the predetermined threshold, the operation of the communication terminal apparatus is switched according to the movement state of the communication terminal apparatus. Can do. Therefore, the operation of the communication terminal device can be easily switched.

  More preferably, the operation switching unit does not switch the operation of the communication terminal device when the determination unit determines that the acceleration is not equal to or greater than a predetermined threshold value.

  As described above, when the acceleration is smaller than the predetermined threshold value, the operation of the communication terminal device is not switched. Therefore, the operation of the communication terminal device according to the movement state of the communication terminal device is changed. This can be done more reliably.

  More preferably, the moving speed calculating means calculates a Doppler frequency based on the frequency offset amount, and calculates a moving speed based on the calculated Doppler frequency.

  Thus, since the moving speed of the communication terminal apparatus is calculated based on the Doppler frequency, a more accurate moving speed can be calculated.

  A computer program according to a second aspect of the present invention includes a receiving unit that receives a radio signal transmitted from a communication base station using a carrier wave having a predetermined frequency, an oscillation signal of an oscillator based on the received radio signal, and a received radio signal. And a computer program for causing a computer to function as an acceleration detection device in a communication terminal device including an automatic frequency control means for controlling an oscillator so that the calculated frequency offset amount is small, The computer is caused to function as a moving speed calculating unit that calculates a moving speed of the communication terminal device based on the frequency offset amount, and an acceleration calculating unit that calculates an acceleration based on the calculated moving speed.

  As described above, the moving speed of the communication terminal apparatus is calculated based on the frequency offset amount calculated by the function as the automatic frequency control means provided in the conventional communication terminal apparatus, and the acceleration is calculated based on the calculated moving speed. Therefore, the acceleration of the communication terminal device can be calculated without providing new parts. Therefore, it is possible to provide a communication terminal device capable of detecting acceleration without causing an increase in hardware amount and cost and deterioration in maintainability.

  According to the present invention, the moving speed of the communication terminal apparatus is calculated based on the frequency offset amount calculated by the automatic frequency control means provided in the conventional communication terminal apparatus, and the acceleration is calculated based on the calculated moving speed. Therefore, the acceleration of the communication terminal device can be calculated without providing new parts. Therefore, it is possible to provide a communication terminal device capable of detecting acceleration without causing an increase in hardware amount and cost and deterioration in maintainability.

  In the following description and drawings, the same reference numerals and names are assigned to the same components. Their functions are also the same. Therefore, detailed description thereof will not be repeated each time.

  FIG. 1 is a diagram showing a configuration of a wireless communication system 300 including a mobile phone device 100 according to an embodiment of the present invention. Referring to FIG. 1, a wireless communication system 300 includes a mobile phone device 100 and a communication base station 200. In the present embodiment, mobile phone device 100 and communication base station 200 perform wireless communication using a W-CDMA (Wideband Code Division Multiple Access) method.

-Mobile phone device 100-
<Hardware configuration>
FIG. 2 is a block diagram showing a configuration of the mobile phone device 100 according to one embodiment of the present invention. Referring to FIG. 2, mobile phone device 100 includes antenna 104 provided on the upper end surface of a substantially rectangular parallelepiped-shaped casing (not shown) whose vertical length is longer than the horizontal length, and is provided on the front of the casing. Operation unit 106 and display unit 108, and a power source unit (not shown) provided on the back of the housing. On the front side of the housing, an earpiece is formed at the upper part, and a mouthpiece is formed at the lower part.

  The cellular phone device 100 further includes a CPU (Central Processing Unit) 130. The CPU 130 is electrically connected to a mask ROM (Read-Only Memory) 132, a RAM (Random Access Memory) 134, and a flash ROM 136.

  Mask ROM 132 is a read-only memory that stores data that is necessary for the operation of mobile phone device 100 and that is not rewritten. The mask ROM 132 stores, for example, a kana-kanji conversion dictionary.

  The RAM 134 is a temporary storage memory in which a computer program (hereinafter referred to as “program”) in the flash ROM 136 is expanded or used as a working memory when the CPU 130 executes various programs. That is, various data such as image data and moving speed data indicating the moving speed of the mobile phone device 100 are temporarily stored in the RAM 134, and the oldest data is erased or the latest data is overwritten. As a result, various data are temporarily stored.

  The flash ROM 136 is a memory from which data is read or written as necessary. In the present embodiment, the flash ROM 136 includes a program for executing and controlling the operation of each component of the mobile phone device 100, image data such as standby screen data, telephone number information, and mail address information. A program for executing the operation switching process is stored together with various data. The program structure for realizing the operation switching process in this program will be described later.

  The flash ROM 136 also stores missed call information. Missed call information is information stored when a response operation is not performed by the user when receiving an incoming signal, and includes source information such as a source number included in the incoming signal.

  The flash ROM 136 further stores mail history information. In the mail history information, mail sender information including the sender name of the mail and the mail address of the sender, etc., and mail content information including the subject and text are stored in association with each other in the order of mail reception. .

  The flash ROM 136 further stores music information. In the music information, music data and information related to music data such as a music number, a music title, and a singer name are stored in association with each other.

  The flash ROM 136 further stores a predetermined threshold value to be used in a swing motion detection process described later. In the present embodiment, this threshold value is determined in advance by experiments. Here, the swing operation indicates an operation in which the mobile phone device 100 is shaken by the user, and includes, for example, an operation in which the mobile phone device 100 is shaken only once, an operation in which the shake is continued.

  The CPU 130 executes various programs in accordance with a control signal according to a user instruction output from the operation unit 106 or the like, thereby operating each component of the mobile phone device 100, wireless communication with the communication base station 200, or the like. The desired process is executed. The various programs described above are stored in advance in the flash ROM 136, and are read from the flash ROM 136 and transferred to the RAM 134 when desired processing is executed. The CPU 130 reads and interprets a program instruction from an address in the RAM 134 specified by a value stored in a register (not shown) called a program counter in the CPU 130. CPU 130 also reads data necessary for the operation from the address specified by the read instruction, and executes an operation corresponding to the instruction on the data. The execution result is also stored in an address specified by an instruction, such as a register in the RAM 134, the flash ROM 136, and the CPU 130.

  Further, the operation unit 106, the drive circuit 138, the telephone network communication unit 124, the voice input / output unit 126, the vibrator unit 140, and the imaging unit 142 are electrically connected to the CPU 130.

  An operation unit 106 is a user interface used as an input device for inputting various instructions from a user, and is a numeric keypad for inputting a telephone number and an e-mail address, a power source for turning on / off the power. It includes a button and a plurality of keys such as a clear key for deleting missed call information, mail history information, music information, and the like. The operation unit 106 outputs control signals corresponding to various instructions given by the user's input operation to the CPU 130, thereby realizing various processes according to the user's input operation.

  The drive circuit 138 is electrically connected to the display unit 108, drives the display unit 108 in accordance with a control signal input from the CPU 130, and displays an image such as image data stored in the RAM 134 or the flash ROM 136 on the display unit 108. Let The drive circuit 138 is displayed when, for example, the mobile phone device 100 is powered on and other functions are not operated (hereinafter referred to as “standby state”). The standby screen based on the standby screen data stored in the flash ROM 136 is displayed on the unit 108. Other functions of the mobile phone device 100 include a function for performing wireless communication with the communication base station 200, a standby screen, or content information of a received electronic mail (hereinafter simply referred to as “mail”). 108, a function for reproducing music based on music information, a shooting function by the imaging unit 142, a voice call function by the telephone network communication unit 124 and the voice input / output unit 126, a function for increasing the call volume, and a call There is a function to put the status on hold.

  The display unit 108 is a user interface used as an output device for outputting various information to the user. The display unit 108 includes, for example, a liquid crystal display (LCD (Liquid Crystal Display), EL (Electro Luminescence) panel, or the like.

  The antenna 104 is electrically connected to the telephone network communication unit 124. The antenna 104 mutually converts a radio wave signal and an analog signal transmitted from the communication base station 200 using a carrier wave having a predetermined frequency in order to perform wireless communication with the communication base station 200. The telephone network communication unit 124 is a baseband circuit for performing telephone communication and data communication wirelessly through the antenna 104, and includes a demodulation unit (not shown in FIG. 2) for realizing a modem function. A modulation unit (not shown) is included. When receiving a radio signal from the communication base station 200, the antenna 104 outputs an analog signal based on the received radio signal to the telephone network communication unit 124. The telephone network communication unit 124 converts the input analog signal into a digital signal in the demodulation unit and demodulates it. The demodulated digital signal is output to the audio input / output unit 126. When transmitting a radio signal to the communication base station 200, the telephone network communication unit 124 converts the digital signal input from the voice input / output unit 126 into an analog signal and modulates the digital signal. The modulated analog signal is output from the telephone network communication unit 124 to the antenna 104, and the antenna 104 transmits a radio signal based on the input analog signal to the communication base station 200. The telephone network communication unit 124 further includes a configuration (not shown in FIG. 2) for realizing the AFC function. This configuration will be described later.

  A speaker 120 and a microphone 122 are electrically connected to the audio input / output unit 126. The speaker 120 is provided inside the housing so as to face the earpiece, and converts an electrical signal (hereinafter referred to as “voice signal”) input from the voice input / output unit 126 during a call into voice and outputs the voice. The microphone 122 is provided so as to face the mouthpiece inside the housing, and converts the user's voice into a voice signal and gives it to the voice input / output unit 126 during a call. The voice input / output unit 126 has a channel codec function. When receiving a radio signal from the communication base station 200, the voice input / output unit 126 performs predetermined digital processing on the demodulated digital signal input from the telephone network communication unit 124 and controls the digital signal as a voice signal. Separated into signal. The separated audio signal is output to the speaker 120, and the control signal is output to the CPU 130. When transmitting a radio signal to the communication base station 200, the voice input / output unit 126 receives a control signal input from the CPU 130, a voice signal input from the microphone 122, and a noise signal reduced by a noise suppressor (not shown). And a predetermined digital process. The digital signal after the digital processing is output to the telephone network communication unit 124.

  Vibrator unit 140 includes a vibrator motor and a weight. Vibrator unit 140 generates vibration by driving a vibrator motor and rotating a weight in accordance with a control signal input from CPU 130.

  The imaging unit 142 includes an imaging lens, an imaging device such as a CCD (Charge Coupled Device) image sensor or a CMOS (Complementary Metal-Oxide Semiconductor) image sensor, a color filter, an amplification unit, an analog / digital (A / D) conversion unit, and And a signal processing unit (none of which is shown). The imaging unit 142 converts the light reflected by the subject and incident on the imaging lens into RGB three-color light through three color filters of RGB (R: red, G: green, B: blue), and converts the RGB three-color light respectively. It converts into the electrical signal corresponding to RGB with an image pick-up element. The converted electrical signal is amplified by the amplifying unit, then converted into a digital signal by the A / D converting unit, and output to the signal processing unit as image data. The signal processing unit performs signal processing such as pixel interpolation processing on the input image data. The image data after the signal processing is stored in the flash ROM 136.

  The imaging unit 142 also performs shooting according to each shooting mode such as a macro mode, a distant view shooting mode, and a moving body shooting mode set according to a control signal input from the CPU 130. Here, the macro mode is a mode for shooting a subject at a close distance, the far-field shooting mode is a mode for shooting a subject at a distance such as landscape, and the moving body shooting mode is actually This is a mode for shooting a moving subject.

  The power supply unit (not shown) is formed of a battery such as a secondary battery, for example, and supplies power to each component of the mobile phone device 100 in accordance with a control signal input from the CPU 130. The power supply to the CPU 130 is started by an input operation from the power button of the operation unit 106 by a user or the like.

  FIG. 3 is a diagram showing a configuration for realizing the AFC function provided in the telephone network communication unit 124. Referring to FIG. 3, telephone network communication unit 124 includes a frequency conversion unit 150, a demodulation unit 152, an oscillator control unit 154, and an oscillator 156 as a configuration for realizing the AFC function. The frequency conversion unit 150 performs frequency conversion processing by mixing an analog signal input from the antenna 104 and an oscillation signal having a predetermined frequency input from the oscillator 156. By this frequency conversion process, the input analog signal is converted into an analog signal having a predetermined frequency. The demodulator 152 converts the analog signal after frequency conversion into a digital signal and demodulates it. The demodulated digital signal is output to the audio input / output unit 126 and the oscillator control unit 154. The oscillator control unit 154 detects the frequency offset amount (frequency error amount) of the demodulated digital signal within a predetermined time, and based on the detected frequency offset amount, the oscillator control unit 154 reduces the frequency offset amount from the oscillator 156. The frequency of the output oscillation signal is feedback controlled. The oscillator control unit 154 also outputs an offset information signal indicating the detected frequency offset amount to the CPU 130. The oscillator 156 outputs an oscillation signal having a predetermined frequency according to the feedback control by the oscillator control unit 154 to the frequency conversion unit 150.

<Software configuration>
(Operation switching process)
4 and 5 are diagrams showing a control structure of a program for realizing the operation switching process in a flowchart format. As described above, the program stored in the flash ROM 136 is programmed to execute the operation switching process. This program is realized by the cooperation of the hardware and the computer program by the CPU 130 controlling the operation of each component of the mobile phone device 100 according to the program, and the moving speed calculation function, the acceleration calculation function, and the determination It is executed by a function and an operation switching function. The moving speed calculation function is a function for calculating the moving speed of the mobile phone device 100 based on the frequency offset amount, and the acceleration calculating function is the mobile phone device 100 based on the calculated moving speed. The determination function is a function for performing various determinations such as determination as to whether or not the acceleration of the mobile phone device 100 is equal to or higher than a predetermined threshold value, and the operation switching The function is a function for switching the operation of the mobile phone device 100 based on the number of times that the acceleration of the mobile phone device 100 is determined to be equal to or greater than a predetermined threshold.

  The program for realizing the operation switching process is activated when the power of the mobile phone device 100 is turned on, and is terminated when the power is turned off.

  Referring to FIG. 4, this program is executed after step S100 for executing a swing motion detection process described later and after the process of step S100, and determines whether or not mobile phone device 100 is in a standby state. Step S101 for diverging the flow of control according to the result, and when it is determined in step S101 that it is in a standby state (in the case of YES), it is executed based on the missed call information stored in the flash ROM 136. Step S102 that determines whether or not there is an incoming call and branches the control flow according to the determination result.

  This program is further executed when it is determined in step S102 that there is a missed call (in the case of YES), and the vibrator unit 140 is driven to drive the vibrator motor to rotate the weight, thereby allowing the mobile phone device to rotate. Step S103 for vibrating 100. If it is determined in step S102 that there is no missed call (NO), the control returns to step S100.

  This program is further executed when it is determined in step S101 that it is not in the standby state (in the case of NO), and it is determined whether or not the mail content information is displayed on the display unit 108, and the determination result In step S104 for branching the control flow according to the above, the mail history information stored in the flash ROM 136 is executed when it is determined in step S104 that the mail content information is displayed (in the case of YES). Based on this, the display unit 108 includes step S105 for displaying the content information of the mail received next to the mail whose content information is currently displayed.

  Further, this program is executed when it is determined in step S104 that the content information of the mail is not displayed (in the case of NO), it is determined whether or not the music is being played back, and according to the determination result. Step S106 for diverting the flow of control, and when it is determined in step S106 that the music is being played (in the case of YES), the music currently being played based on the music information stored in the flash ROM 136 And step S107 for starting reproduction of the music corresponding to the next music number.

  This program is further executed when it is determined in step S106 that the music is not being played back (in the case of NO), and it is determined whether or not the imaging unit 142 is shooting, and control is performed according to the determination result. Step S108 for branching, and Step S108, which is executed when it is determined that shooting is in progress (in the case of YES), includes Step S109 for setting the shooting mode to the macro mode.

  Referring to FIG. 5, this program is further executed in step S108 when it is determined that shooting is not being performed (in the case of NO), and it is determined whether or not a voice call is being performed, and according to the determination result. In step S110 for branching control and in step S110, a swing state flag (hereinafter referred to as “Flag”) that is executed when it is determined that a voice call is in progress (in the case of YES) and indicates the state of the swing operation of the mobile phone device 100. And step S111 for determining whether or not 1 is 1 and branching the flow of control according to the determination result. A flag of 1 indicates that the mobile phone device 100 is shaken only once, and a flag of 2 indicates that the mobile phone device 100 is continuously shaken.

  The program is further executed when it is determined in Step S111 that Flag is 1 (in the case of YES), and the call volume is increased by increasing the volume output from the speaker 120. Step S111 is executed when it is determined that Flag is not 1 (in the case of NO), that is, when Flag is 2, and includes Step S113 for placing the call on hold.

(Swing motion detection process)
FIG. 6 is a flowchart showing the control structure of the program for realizing the swing motion detection process in step S100 of FIG. Referring to FIG. 6, the program for realizing the swing motion detection process includes step S200 in which 0 is substituted for variable i and 0 is substituted for variable t. Here, the variable i is a value indicating the number of times that the acceleration of the mobile phone device 100 is determined to be greater than or equal to a predetermined threshold value in step S202 to be described later, and the variable t is a variable in step S207 to be described later. This is a value indicating the number of times i is determined to be 1.

  This program further determines whether or not the acceleration of the mobile phone device 100 calculated in the acceleration detection process is greater than or equal to a predetermined threshold value stored in the flash ROM 136 in step S201 for executing an acceleration detection process described later. Step S202 for determining and branching the control according to the determination result, and when it is determined that the acceleration is equal to or greater than a predetermined threshold value in Step S202 (in the case of YES), the variable i is increased by 1. Step S203.

  This program is further executed after the process of step S203 or when it is determined in step S202 that the acceleration is not equal to or greater than a predetermined threshold value (in the case of NO), whether or not the variable i is smaller than 2. When the variable i is determined not to be smaller than 2 in step S204 for branching the control flow according to the determination result and step S204 (in the case of NO), that is, the variable i is 2. And step S205 for substituting 2 for Flag.

  This program is further executed when it is determined in step S204 that the variable i is smaller than 2 (in the case of YES), that is, when the variable i is 0 or 1, and whether or not the variable t is smaller than 5. And when the variable t is determined to be smaller than 5 (in the case of YES), the control i is executed, and whether or not the variable i is 1 is determined. Step S207 for branching the control according to the determination result, and Step S208 that is executed when the variable i is determined to be 1 (in the case of YES) in Step S207 and increases the variable t by 1. including. If it is determined in step S207 that the variable i is not 1 (NO), that is, if the variable i is 0, or after the processing in step S208, the control returns to step S201.

  The program further determines that the variable t is not smaller than 5 in step S206 (in the case of NO), that is, the number of times that the variable i is determined to be 1 in step S207 is 5. Step S209 is executed and includes substituting 1 for Flag.

(Acceleration detection processing)
FIG. 7 is a flowchart showing the control structure of the program for realizing the acceleration detection process in step S201 of FIG. Referring to FIG. 7, the program for realizing the acceleration detection process assigns 0 to a value (hereinafter referred to as “Num”) indicating how many times the moving speed is calculated (step S300). including. If Num is 0, it indicates that the first, that is, the first moving speed is calculated, and if Num is 1, it indicates that the second moving speed is being calculated.

  This program is further executed in step S301 that waits until the offset information signal is input from the oscillator control unit 154, and when it is determined in step S301 that the offset information signal is input (in the case of YES), the offset information is And step S302 of calculating the moving speed of the mobile phone device 100 based on the frequency offset amount included in the signal. The moving speed calculation method used in step S302 is not particularly limited as long as it is a method generally used in the field. For example, the Doppler frequency is calculated based on the frequency offset amount, and the calculated Doppler frequency is calculated. There is a method of calculating the moving speed based on the above. By using such a calculation method, a more accurate movement speed can be calculated.

  This program further includes a step S303 of storing movement speed data indicating the calculated movement speed in Speed [Num] of the array Speed having two elements in the RAM 134. In step S303, the moving speed data is stored in Speed [0] when the moving speed is calculated for the first time, and is stored in Speed [1] when the moving speed is calculated for the second time.

  This program further determines whether or not Num is 0, and if it is determined in Step S304 that branches the flow of control according to the determination result and Num is 0 in Step S304 (in the case of YES) ) And substituting 1 for Num, step S305 and step S306 waiting for 100 milliseconds. After the process of step S306, control returns to step S301.

  The program is further executed in step S304 when it is determined that Num is not 0 (in the case of NO), that is, when Num is 1, and the moving speed data stored in Speed [1] and Speed Calculating a difference value from the moving speed data stored in [0], and calculating an acceleration that is a change rate of the moving speed per unit time of the mobile phone device 100 based on the calculated difference value; Including.

<Operation>
1 to 7, mobile phone device 100 according to the present embodiment operates as follows during AFC processing, acceleration detection processing, swing motion detection processing, and operation switching processing. To do. The operations for realizing the general functions of the mobile phone device 100 except the operations at the time of each processing described above are the same as the operations in the conventional mobile phone device.

  First, the user turns on the mobile phone device 100 by an input operation from the power button of the operation unit 106. When the power is turned on, a standby screen based on the standby screen data stored in the flash ROM 136 is displayed on the display unit 108.

(Operation during AFC processing)
The telephone network communication unit 124 always repeats the following operation. That is, the frequency converter 150 performs frequency conversion processing by mixing an analog signal input from the antenna 104 and an oscillation signal of a predetermined frequency input from the oscillator 156, and converts the input analog signal to a predetermined frequency. Convert to frequency analog signal. The demodulator 152 converts the demodulated analog signal into a digital signal and demodulates it, and outputs the demodulated digital signal to the audio input / output unit 126 and the oscillator controller 154. The oscillator control unit 154 detects the frequency offset amount of the demodulated digital signal within a predetermined time, and based on the detected frequency offset amount, the oscillation signal output from the oscillator 156 decreases. The feedback frequency is controlled. An AFC function is realized by this feedback control. The oscillator control unit 154 outputs an offset information signal indicating the detected frequency offset amount to the CPU 130 in synchronization with the feedback control. The oscillator 156 outputs an oscillation signal having a predetermined frequency according to the feedback control by the oscillator control unit 154 to the frequency conversion unit 150.

(Operation during acceleration detection processing (see FIG. 7))
CPU 130 repeats the following operation at regular intervals. That is, the CPU 130 first substitutes 0 for Num (S300), and waits until an offset information signal is input from the oscillator control unit 154 (S301). When the offset information signal is input, the CPU 130 calculates the moving speed of the mobile phone device 100 based on the frequency offset amount included in the offset information signal (S302). The movement speed data indicating the movement speed calculated for the first time is stored in Speed [0] in the RAM 134 (S303).

  When the first moving speed data is stored, the CPU 130 substitutes 1 for Num (S305) and waits for 100 milliseconds (S306). When the offset information signal is input after waiting for 100 milliseconds (S301), the CPU 130 again calculates the moving speed of the mobile phone device 100 based on the frequency offset amount included in the offset information signal (S302). The movement speed data indicating the movement speed calculated for the second time is stored in Speed [1] in the RAM 134 (S303).

  CPU 130 calculates a difference value between the movement speed data stored in Speed [1] and the movement speed data stored in Speed [0], and based on the calculated difference value, calculates the acceleration of mobile phone device 100. Calculate (S307). In the present embodiment, the rate of change in moving speed per millisecond of mobile phone device 100 is calculated as acceleration.

(Operation during swing motion detection processing)
The CPU 130 repeats the following operation according to the state of the swing operation. Hereinafter, in the swing motion detection process, an operation that is executed when the mobile phone device 100 is not shaken, an operation that is executed only when the mobile phone device 100 is shaken, and a case where the mobile phone device 100 is continuously shaken. The operation to be executed will be described with reference to FIG.

-When the mobile phone device 100 is not shaken-
The CPU 130 executes a program whose control structure is shown in FIG. When this program is activated, 0 is substituted into variables i and t in S200. When the mobile phone device 100 is not shaken, the acceleration value detected in S201 is equal to or less than the threshold value. Therefore, the determination in S202 is NO. Since no value is added to the variable i, the value of the variable i remains 0. Since the value of the variable i remains 0, the determination result in S207 is NO. As a result, the process of S208 is not executed, and the value of the variable t remains 0. Accordingly, the determination results in S204 and S206 are both YES, and the determination results in S202 and S207 are both NO. In this state, the processes in S201 to S207 are repeatedly executed.

-Operation when mobile phone device 100 is shaken only once-
In this case, among the repetitions of the program of FIG. 6 described above, the determination result in S202 becomes YES only once. The process of S203 is executed, and the value of the variable i increases by 1. Since i = 1, the determination result in S204 is still YES. Since the variable t is 0, the determination result in S206 is still YES. However, in this case, the determination result in S207 is YES, S208 is executed, and the value of the variable t is incremented by one.

  Since the mobile phone device 100 is shaken only once, the acceleration value detected in step S201 is less than the threshold value. In this case, the determination result in S202 is NO. At this time, the variable i is 1 and the variable t is 1. Accordingly, the determination results of S204, S206, and S207 in FIG. 6 are all YES, S208 is executed, and the value of the variable t is increased by 1 to 2. Thereafter, if the processing of S201 to S208 described above is repeated three times without the acceleration value exceeding the threshold value, the value of the variable i remains 1 and the value of the variable t becomes 5. As a result, in the next iteration, the determination result of S204 is YES, the determination result of S206 is NO, the process of S209 is executed, and 1 is substituted for Flag.

-Operation when the mobile phone device 100 is continuously shaken-
In this case, unlike the case where the mobile phone device 100 is shaken only once, after the value of the variable i is 1 and the value of the variable t is 1, the acceleration is further determined to be greater than or equal to the threshold value in S202. Will be. Therefore, the process of S203 is executed and the value of the variable i becomes 2. The determination result in S204 is NO, the process of S205 is executed, and 2 is assigned to Flag.

(Operation switching process (see FIGS. 4 and 5))
When the mobile phone device 100 is shaken once by the user while the standby screen is displayed on the display unit 108, the CPU 130 shakes the mobile phone device 100 only once during the above-described swing motion detection process. The operation in the case of the failure is executed (S100). Thereafter, the CPU 130 determines that the mobile phone device 100 is in a standby state (S101), and determines whether there is a missed call based on the missed call information stored in the flash ROM 136 (S102). If it is determined that there is a missed call, the vibrator unit 140 is vibrated by driving the vibrator motor and rotating the weight (S103). On the other hand, when it is determined that there is no missed call, the above processing for vibrator unit 140 is not performed. Thereby, the user can know whether or not there is a missed call by shaking the mobile phone device 100 once in the standby state.
Even when the mobile phone device 100 is continuously shaken by the user while the standby screen is displayed on the display unit 108, the operation when the mobile phone device 100 is continuously shaken in S100 is executed. Except for this point, the same operation as described above is executed.

In addition, when the mobile phone device 100 is shaken once by the user while the mail content information is displayed on the display unit 108, the CPU 130 causes the mobile phone device 100 to be executed once during the above-described swing motion detection process. The operation in the case of only being shaken is executed (S100). Thereafter, the CPU 130 determines that the mail content information is displayed on the display unit 108 (S104), and the current content information is displayed on the display unit 108 based on the mail history information stored in the flash ROM 136. The contents information of the received mail is displayed next to the existing mail (S105). Thereby, the user can browse the content of the next received mail by shaking the mobile phone device 100 once when browsing the content of the mail.
Even when the mobile phone device 100 is continuously shaken by the user while the mail content information is displayed on the display unit 108, the operation in the case where the mobile phone device 100 is continuously shaken in S100 is executed. Except for this point, the same operation as described above is executed.

Further, when the mobile phone device 100 is shaken once by the user during the reproduction of the music, the CPU 130 executes the operation when the mobile phone device 100 is shaken only once during the above-described swing motion detection process. (S100). Thereafter, the CPU 130 determines that the music is being reproduced (S106), and based on the music information stored in the flash ROM 136, the music corresponding to the next music number of the music number corresponding to the music currently being reproduced. Reproduction is started (S107). Thereby, the user can reproduce the music corresponding to the next music number by shaking the mobile phone device 100 once during the music reproduction.
In addition, even when the mobile phone device 100 is continuously shaken by the user during the reproduction of the music, the same operation as described above is performed except that the operation when the mobile phone device 100 is continuously shaken in S100 is executed. The action is executed.

In addition, when the mobile phone device 100 is shaken once by the user during shooting by the imaging unit 142, the CPU 130 performs an operation when the mobile phone device 100 is shaken only once during the above-described swing motion detection process. Execute (S100). Thereafter, the CPU 130 determines that shooting is being performed by the imaging unit 142 (S108), and sets the shooting mode to the macro mode (S109). Thereby, the user can set the photographing mode to the macro mode by shaking the mobile phone device 100 once during photographing by the imaging unit 142.
It should be noted that, even when the mobile phone device 100 is continuously shaken by the user during shooting by the imaging unit 142, the above is performed except that the operation when the mobile phone device 100 is continuously shaken in S100 is executed. A similar operation is performed.

  Further, when the mobile phone device 100 is shaken once by the user during a voice call, the CPU 130 executes the operation when the mobile phone device 100 is shaken only once during the above-described swing motion detection process ( S100). Thereafter, the CPU 130 determines that the voice call is in progress (S110) and determines that the Flag is 1 (S111), and increases the volume of the call by increasing the volume output from the speaker 120 (S112). . Thereby, the user can increase the call volume by shaking the mobile phone device 100 once during the voice call.

  In addition, when the mobile phone device 100 is continuously shaken by the user during a voice call, the CPU 130 executes the operation when the mobile phone device 100 is continuously shaken during the swing motion detection process described above (S100). Thereafter, the CPU 130 determines that the voice call is in progress (S110), determines that the flag is 2 (S111), and places the call on hold (S113). Thereby, the user can put the call on hold by continuously shaking the mobile phone device 100 during the voice call.

  The user ends the use of the mobile phone device 100 by turning off the power of the mobile phone device 100 by an input operation from the power button of the operation unit 106.

(Action / Effect)
According to the present embodiment, mobile phone device 100 receives antenna signal from radio base station 200 that receives a radio signal transmitted by a carrier having a predetermined frequency, and receives an oscillation signal from oscillator 156 based on the received radio signal. A communication terminal device including a telephone network communication unit 124 including an oscillator control unit 154 that calculates a frequency offset amount with respect to the radio signal and controls the oscillator 156 so as to reduce the calculated frequency offset amount. It includes a CPU 130 having a movement speed calculation function for calculating the movement speed of the mobile phone device 100 based on the offset amount, and an acceleration calculation function for calculating an acceleration based on the calculated movement speed.

  As described above, the moving speed of the mobile phone device 100 is calculated based on the frequency offset amount calculated by the configuration for realizing the AFC function provided in the conventional mobile phone device, and the acceleration is calculated based on the calculated moving speed. Therefore, the acceleration of the mobile phone device 100 can be calculated without providing new parts. Therefore, it is possible to provide the mobile phone device 100 capable of detecting the acceleration without causing an increase in hardware amount and cost and a deterioration in maintainability.

  Further, according to the present embodiment, the CPU 130 determines whether or not the acceleration calculated by the acceleration calculation function is equal to or greater than a predetermined threshold, and the threshold for which the acceleration is predetermined by the determination function. An operation switching function for switching the operation of the mobile phone device 100 based on the number of times determined as above is further provided.

  As described above, since the CPU 130 switches the operation of the mobile phone device 100 based on the number of times that the acceleration is determined to be equal to or greater than a predetermined threshold value, the mobile phone device 100 is changed according to the moving state of the mobile phone device 100. Can be switched. Therefore, the operation of the mobile phone device 100 can be easily switched.

  Further, according to the present embodiment, the operation switching function of CPU 130 does not switch the operation of mobile phone device 100 when the determination function determines that the acceleration is not equal to or greater than a predetermined threshold value. Switching of the operation of the mobile phone device 100 according to the moving state of the phone device 100 can be performed more reliably.

  Further, according to the present embodiment, the threshold value is determined so that the moving speed of the mobile phone device 100 is the same as that of the mobile phone device 100 when the acceleration calculated by the acceleration calculation function of the CPU 130 is equal to or greater than the threshold value. Since the speed is set so as to be shaken by the user, the user can switch the operation of the mobile phone device 100 by shaking the mobile phone device 100. Therefore, the operation of the mobile phone device 100 can be switched more easily.

  In the above-described embodiment, the CDMA mobile phone device 100 is used. However, the present invention is not limited to such an embodiment. For example, a GSM (Global System for Mobile Communications) type mobile phone device, an HSPA (High-Speed Downlink Packet Access) type mobile phone device, an LTE (Long Term Evolution) type mobile phone device, etc. may be used.

  Moreover, in the said embodiment, although the mobile telephone apparatus 100 was used as an example of a communication terminal device, this invention is not limited to such embodiment. For example, instead of the mobile phone device 100, a communication terminal device such as a PHS (Personal Handyphone System) phone device, a PDA device (Personal Digital Assistant), or a notebook personal computer may be used.

  The embodiment disclosed this time is merely an example, and the present invention is not limited to the embodiment described above. The scope of the present invention is indicated by each claim in the scope of claims after taking into account the description of the detailed description of the invention, and all modifications within the meaning and scope equivalent to the wording described therein are included. Including.

It is a figure which shows the structure of the radio | wireless communications system containing the mobile telephone apparatus which concerns on one embodiment of this invention. It is a block diagram which shows the structure of the mobile telephone apparatus which concerns on one embodiment of this invention. It is a figure which shows the structure for implement | achieving the AFC function provided in a telephone network communication part. It is a figure which shows the control structure of the program for implement | achieving operation | movement switching processing in the flowchart format. It is a figure which shows the control structure of the program for implement | achieving operation | movement switching processing in the flowchart format. It is a figure which shows the control structure of the program for implement | achieving the swing motion detection process in FIG.4 S100 in a flowchart format. It is a figure which shows the control structure of the program for implement | achieving the acceleration detection process in FIG.6 S201 in a flowchart format.

Explanation of symbols

DESCRIPTION OF SYMBOLS 100 Cellular phone apparatus 104 Antenna 106 Operation part 108 Display part 120 Speaker 122 Microphone 124 Telephone network communication part 126 Voice input / output part 130 CPU
132 Mask ROM
134 RAM
136 Flash ROM
138 Drive circuit 140 Vibrator unit 142 Imaging unit 150 Frequency conversion unit 152 Demodulation unit 154 Oscillator control unit 156 Oscillator 200 Communication base station 300 Wireless communication system

Claims (5)

  1. Receiving means for receiving a radio signal transmitted from a communication base station using a carrier wave of a predetermined frequency;
    Automatic frequency control means for calculating a frequency offset amount between an oscillation signal of an oscillator and the received radio signal based on the received radio signal, and controlling the oscillator so that the calculated frequency offset amount is reduced. A communication terminal device,
    A moving speed calculating means for calculating a moving speed of the communication terminal device based on the frequency offset amount;
    And an acceleration calculating means for calculating an acceleration based on the calculated moving speed.
  2. Determination means for determining whether the acceleration calculated by the acceleration calculation means is equal to or greater than a predetermined threshold;
    The operation switching means for switching the operation of the communication terminal apparatus based on the number of times that the determination means determines that the acceleration is equal to or greater than a predetermined threshold value. Communication terminal device.
  3.   The communication according to claim 2, wherein the operation switching unit does not switch the operation of the communication terminal device when the determination unit determines that the acceleration is not equal to or greater than a predetermined threshold value. Terminal device.
  4.   The moving speed calculation means calculates a Doppler frequency based on the frequency offset amount, and calculates the moving speed based on the calculated Doppler frequency. The communication terminal device according to one.
  5. Receiving means for receiving a radio signal transmitted from a communication base station using a carrier wave of a predetermined frequency;
    Automatic frequency control means for calculating a frequency offset amount between an oscillation signal of an oscillator and the received radio signal based on the received radio signal, and controlling the oscillator so that the calculated frequency offset amount is reduced. In a communication terminal device, a computer program for causing a computer to function as an acceleration detection device,
    A moving speed calculating means for calculating a moving speed of the communication terminal device based on the frequency offset amount;
    A computer program that functions as acceleration calculation means for calculating acceleration based on the calculated moving speed.
JP2008323845A 2008-12-19 2008-12-19 Communication terminal device and computer program Pending JP2010145276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008323845A JP2010145276A (en) 2008-12-19 2008-12-19 Communication terminal device and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008323845A JP2010145276A (en) 2008-12-19 2008-12-19 Communication terminal device and computer program

Publications (1)

Publication Number Publication Date
JP2010145276A true JP2010145276A (en) 2010-07-01

Family

ID=42565866

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008323845A Pending JP2010145276A (en) 2008-12-19 2008-12-19 Communication terminal device and computer program

Country Status (1)

Country Link
JP (1) JP2010145276A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013168776A (en) * 2012-02-15 2013-08-29 Fujita Corp Remote control system
JP2015135615A (en) * 2014-01-17 2015-07-27 京セラ株式会社 Electronic apparatus and information display method for electronic apparatus
CN105721706A (en) * 2016-03-01 2016-06-29 惠州Tcl移动通信有限公司 Frequency shift monitoring and reminding method and system based on mobile terminal
US9385861B2 (en) 2014-06-09 2016-07-05 Fujitsu Limited Wireless device and method for controlling wireless device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013168776A (en) * 2012-02-15 2013-08-29 Fujita Corp Remote control system
JP2015135615A (en) * 2014-01-17 2015-07-27 京セラ株式会社 Electronic apparatus and information display method for electronic apparatus
US9385861B2 (en) 2014-06-09 2016-07-05 Fujitsu Limited Wireless device and method for controlling wireless device
CN105721706A (en) * 2016-03-01 2016-06-29 惠州Tcl移动通信有限公司 Frequency shift monitoring and reminding method and system based on mobile terminal
CN105721706B (en) * 2016-03-01 2019-06-04 惠州Tcl移动通信有限公司 A kind of method and system of frequency displacement monitoring and prompting based on mobile terminal

Similar Documents

Publication Publication Date Title
US20170127355A1 (en) Apparatus and method for reducing power consumption in portable terminal
KR101106800B1 (en) Electronic apparatus and display method in electronic apparatus
KR100771944B1 (en) E-mail handling method for portable telephone and portable telephone using said handling method
CA2469692C (en) Folding communication terminal apparatus
JP4318370B2 (en) Mobile phone equipment
JP4262712B2 (en) Portable terminal device, mouse application program, and method of using portable terminal device as wireless mouse device
JP4508169B2 (en) Hands-free device
JP4101213B2 (en) Voice call method, voice call program, and voice call device
JP5226074B2 (en) Communication equipment
JP4198875B2 (en) Mobile communication terminal
EP1675361B1 (en) Mobile communication terminal with different operation modes selected by the opening direction of folder cover and method thereof
EP2355596B1 (en) Apparatus and method for reducing power consumption using packet filtering in portable terminal
JP2008512894A (en) Motion-based user input for wireless communication devices
US8046030B2 (en) Methods, devices and computer program products for operating mobile devices responsive to user input through movement thereof
JP4111988B1 (en) Open / close communication terminal device and video switching method
US20070091847A1 (en) Method and apparatus for controlling scanning period in a mobile communication terminal
KR101572847B1 (en) Method and apparatus for motion detecting in portable terminal
JP3392831B2 (en) Foldable communication terminal device and imaging control method
US9055164B2 (en) Mobile terminal device, time control method, and timer control program
US20100285844A1 (en) Cellular phone and display orientation control program of cellular phone
JP2010118834A (en) Portable terminal, power saving control method of portable terminal and power saving control program of portable terminal
US8350671B2 (en) Method and apparatus for controlling new message alert in portable wireless terminal
JP5473799B2 (en) Mobile communication terminal device
GB2341514A (en) Incoming call notification for a multimode radio device
GB2376155A (en) Mobile telephone