EP1738566A1 - Measurement data collection method and portable information device - Google Patents

Measurement data collection method and portable information device

Info

Publication number
EP1738566A1
EP1738566A1 EP05770354A EP05770354A EP1738566A1 EP 1738566 A1 EP1738566 A1 EP 1738566A1 EP 05770354 A EP05770354 A EP 05770354A EP 05770354 A EP05770354 A EP 05770354A EP 1738566 A1 EP1738566 A1 EP 1738566A1
Authority
EP
European Patent Office
Prior art keywords
data
measurement data
collection
sensor
application
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.)
Withdrawn
Application number
EP05770354A
Other languages
German (de)
French (fr)
Other versions
EP1738566A4 (en
Inventor
Daisuke VOdafone K.K. TSUJINO
Yasuhiro VOdafone k.K. NISHIDE
Jun VodafoneK.K. YAMAZAKI
Hirohisa Vodafone K.K . KUSUDA
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
RPX Corp
Original Assignee
Vodafone KK
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 Vodafone KK filed Critical Vodafone KK
Publication of EP1738566A1 publication Critical patent/EP1738566A1/en
Publication of EP1738566A4 publication Critical patent/EP1738566A4/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C15/00Surveying instruments or accessories not provided for in groups G01C1/00 - G01C13/00
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1694Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports

Definitions

  • the present invention relates to a measurement data collection method and a portable information device and, more particularly, to a measurement data collection method of collecting measurement data from a sensor and notifying an application which uses the measurement data of it and a portable information device which uses the measurement data collection method.
  • portable information devices represented by cellular phone devices, which are capable of operating while moving, are widely used. Technologies of such portable information devices and, more particularly, cellular phone devices are progressing remarkably, and various kinds of applications including games are also installed.
  • a portable information device generally incorporates a current position measuring function.
  • a device includes a sensor to measure the acceleration acting on it and its attitude angle, and measurement data obtained by the sensor is used in an application.
  • a cellular phone device which comprises a sensor to measure the acceleration or angular velocity and displays, on a display means, data about the acceleration or angular velocity measured by the sensor (See patent reference l: to be referred to as "prior art 1" hereinafter).
  • Still another cellular phone device which comprises a geomagnetic sensor and can input a numerical value corresponding to a specific azimuth by directing the cellular phone main body to the specific azimuth (See patent reference 3: to be referred to as
  • Patent Reference 2 Japanese Patent publication No. 2002-169645
  • Patent Reference 3 Japanese Patent publication No. 2003- 111142
  • Prior arts 1 to 3 described above disclose excellent techniques of using a measurement result obtained by a sensor in a cellular phone device.
  • the references which disclose the techniques of prior arts 1 to 3 contain no mention of a method of collecting measurement data by the sensor.
  • an application which uses data corresponding to the measurement result by the sensor collects the measurement data in a form adapted to the use. For this purpose, the application probably executes processing of acquiring desired measurement data while directly controlling the sensor.
  • some kinds of applications only need to acquire one measurement data at a desired point of time, and other types of applications should acquire a plurality of measurement data reported from the sensor time- serially.
  • certain kinds of applications want to acquire measurement data that satisfy a desired condition such as a collection period or data value range.
  • the present invention has been made in consideration of the above situations, and has as its object to provide a measurement data collection method capable of reducing load on an application which uses measurement data from a. sensor.
  • a measurement data collection method for collecting measurement data corresponding to a measurement result from a sensor and notifying an application operating in a portable information device of the measurement data, the sensor being arranged in the portable information device and measuring attitude angles about three axial directions.
  • the method comprising: the condition designation step of causing the application to designate a data collection condition as a condition of measurement data to be collected; the data collection step of collecting measurement data which satisfies the data collection condition and storing the measurement data in temporary storage means; and the data report step of reporting, to the application, measurement data which is stored in the temporary storage means and satisfies a data report condition designated by the application as condition of measurement data to be reported to the application.
  • Measurement data is not raw measurement data which is directly output from the sensor.
  • Measurement data indicates data having a data format to notify the application, which is obtained by executing offset correction and physical quantity conversion of angles and accelerations for raw measurement data as needed. In this specification, the term “measurement data” is used in this sense.
  • the application designates a data collection condition as a condition of measurement data to be collected in measurement data from the sensor.
  • measurement data which satisfies the data collection condition is collected and stored in temporary storage means.
  • measurement data which is stored in the temporary storage means and satisfies a data report condition designated by the application is reported to the application.
  • the data collection condition and data report condition are separately defined, because they are either identical or different. For example, when the application issues a data request, a predetermined number of latest measurement data among measurement data collected until the point of time of the data request, should be reported to the application, the data collection condition and data report condition are different.
  • the application only needs to designate the data collection condition to collect measurement data for itself.
  • the application need not execute actual data collection. Only measurement data the application wants to acquire are reported to the application.
  • the application can acquire desired measurement data while reducing the load on the application.
  • the measurement data collection method of the present invention can further comprise the data request step of causing the application to issue a data request with the designated data report condition.
  • the data report step can be executed in response to the data request.
  • the data collection condition may be a collection period. In this case, after designation of the data collection condition, every time the collection period elapses, measurement data is collected and stored in the temporary storage means.
  • the data which satisfies the data report condition may be measurement data which is stored latest in the temporary storage means before the data request.
  • the application can acquire the latest measurement data which satisfies the data collection condition at the point of time of the data request.
  • the measurement data which satisfies the data report condition can be measurement data equal in number to the number of report data designated by the application in a reverse chronological order from a point of time of the data request.
  • the application may acquire recently collected measurement data equal in number to the desired number of reportable data.
  • the method can further comprise the number-of-reportable-data notification step of notifying the application of the number of reportable data, when a notification request of the number of reportable data including measurement data which are stored in the temporary storage means and exist in the temporary storage means is received from the application between a preceding point of time of the data request and a current point of time.
  • the application can know the number of reportable data in the temporary storage means before the data request. Accordingly, when reportable data equal to or more than a desired number are confirmed, and then a data request is issued while designating the desired number as the data report condition, the application can reliably acquire the desired number of measurement data.
  • the measurement data which satisfies the data report condition' can be, of reportable data which are measurement data stored in the temporary storage means later than measurement data reported in response to a preceding data request and existing in the temporary storage means, measurement data equal in number to the number of reportable data designated by the application in a chronological order from the oldest data.
  • the temporary storage means can be used as FIFO (First-In Fast-Out) storage means.
  • the method can further comprise the number-of-reportable-data notification step of notifying the application of the number of reportable data, when a notification request of the number of reportable data is received from the application.
  • the application can know the number of reportable data in the temporary storage means before the data request. Accordingly, when reportable data equal to or more than a desired number are confirmed, and then a data request is issued while designating the desired number as the data report condition, the application can reliably acquire the desired number of measurement data.
  • the data report condition in the condition designation step, can additionally be designated.
  • the application designates both of the data collection condition and the data report condition.
  • the data report step can be executed immediately after the measurement data which satisfies the data collection condition is newly stored in the temporary storage means, when the following requirements are satisfied: l) the measurement data which satisfies the data collection condition can be measurement data corresponding to a measurement result which is noticed from the sensor for the first time after designation of the data collection condition and the data report condition,' 2) the measurement data which satisfies the data report condition can be measurement data which satisfies the data collection condition.
  • the measurement data corresponding to the measurement result sent from the sensor for the first time is collected and immediately reported to the application.
  • the stored measurement data can immediately be reported to the application, when the following requirements are satisfied: l) the data collection condition can include threshold information indicating a data value range which is a range of a value of measurement data to be collected and one of a collection time and the number of collection data after designation of the data collection condition; 2) the measurement data which satisfies the data report condition can be measurement data which satisfies the data collection condition.
  • measurement data in the data value range defined by the threshold information is collected and immediately reported to the application during a period after the data collection condition and the data report condition are designated by the application in the condition designation step until one of the forward limit time and the maximum number of collection data, which is designated by a parameter in the data collection condition, is reached.
  • the method can further comprise the data request step of causing the application to issue a data request.
  • the data report step can be executed in response to the data request.
  • measurement data necessary for the application is reported in response to the data request issued by the application when it desires measurement data. For this reason, the application can acquire necessary measurement data at a necessary timing.
  • the data collection condition can include a collection period.
  • the measurement data which satisfies the data report condition can be one of measurement data collected within a limit time in a reverse chronological order from a point of time of the data request and measurement data within the maximum number of report data in the reverse chronological order from the point of time of the data request.
  • measurement data is collected and stored in the temporary storage means in the data collection step. Measurement data which satisfies the data report condition is then reported to the application.
  • the method may further comprise the number-of-reportable-data notification step of notifying the application of the number of reportable data, when a notification request of the number of reportable data including measurement data which are stored in the temporary storage means and exist in the temporary storage means, is received from the application between a preceding point of time of the data request and a current point of time.
  • the method may further comprise the data collection completion report step of reporting data collection completion to the application, when storage of the measurement data which satisfies the data collection condition in the temporary storage means is ended.
  • the application which has received the report of the data collection completion may issue the data request in the data request step.
  • the data collection completion is reported to the application in the data collection completion report step.
  • the application can recognize the data collection completion without monitoring the data collection completion.
  • the application which has recognized the data collection completion by the data collection completion report can acquire necessary measurement data at a timing convenient for itself.
  • the data collection condition can include a collection period and either a collection time or the number of collection data.
  • the measurement data which satisfies the data report condition can be measurement data which satisfies the data collection condition.
  • every time the collection period elapses measurement data is collected and stored in the temporary storage means in the data collection step.
  • the application is notified of the data collection completion in the data collection completion report step.
  • the measurement data stored in the temporary storage means are reported to the application in the data report step.
  • the data collection condition can include a collection period, start threshold information indicating a range of a value of measurement data as a condition for a start of data collection, and either a collection time or the number of collection data after designation of the data collection condition.
  • the measurement data which satisfies the data report condition can be measurement data which satisfies the data collection condition.
  • the measurement data is collected and stored in the temporary storage means every time the collection period elapses until the collection time or the number of collection data is reached.
  • the application is notified of the data collection completion in the data collection completion report step.
  • the measurement data stored in the temporary storage means are reported to the application in the data report step.
  • the data collection condition can include a collection period and end threshold information indicating a range of a value of measurement data as a condition for an end of data collection.
  • the measurement data which satisfies the data report condition may be one of measurement data collected within a limit time in a reverse chronological order from a point of the end of data collection and measurement data within the maximum number of data in the reverse chronological order from the point of time of the end of data collection.
  • measurement data is collected and stored in the temporary storage means in the data collection step.
  • the collection operation is ended.
  • the application is notified of the data collection completion in the data collection completion report step.
  • the application which has received the report issues a data request, of the measurement data stored in the temporary storage means, measurement data which satisfy the data report condition are reported to the application in the data report step.
  • the threshold information can contain a threshold value and information representing whether the value of measurement data to be collected is larger or smaller than the threshold value. In this case, the range of the value of measurement data desired by the application can finely be designated. When the measurement data contains a plurality of measurement results, threshold information can independently be designated for each of the plurality of measurement results.
  • the measurement data can be stored in the temporary storage means at a time interval corresponding to a value of a greatest common divisor related to values of the plurality of data collection periods. In this case, even when a plurality of data collection conditions having different parameter values of periods are designated, all measurement data to be collected can be collected and stored in the temporary storage means.
  • a basic processing part to manage the application can issue an instruction to stop execution of the data collection step.
  • the basic processing part stops the data collection step. Hence, continuous execution of unnecessary data collection can be prevented.
  • the measurement data collection method of the present invention can further comprise the sensor operation start instruction event detection step of detecting occurrence of a sensor operation start instruction event to instruct a start of an operation of the sensor, and the sensor operation start step of starting the operation of the sensor.
  • the operation of the sensor is started in the sensor operation start step in response to detection of the sensor operation start instruction event in the sensor operation start instruction event detection step.
  • the operation of the sensor can appropriately be started when it is assumed in advance that the operation start of the sensor is necessary or when the user determines that the operation start of the sensor is necessary.
  • the sensor operation start instruction event can include at least one event selected from the group consisting of an operation start request of the sensor from the application, activation of the application, a key operation to instruct to start the operation of the sensor, voice input to instruct to start the operation of the sensor, arrival of time at which the sensor should start the operation, and detection of a state to make the sensor operate depending on the shape of the device in which the sensor is implemented.
  • the "arrival of time” includes arrival of time when an elapse of a predetermined time from a point of time is designated at the point of time, and the predetermined time elapses, in addition to arrival of time explicitly designated in advance. In this specification, the term “arrival of time” is used in this sense.
  • the sensor operation start instruction event can include a call reception event.
  • a call reception event for example, an off-hook operation which is normally executed by the key operation after arrival can be executed by only causing the mobile communication terminal device to execute a motion in a predetermined form.
  • the measurement data collection method of the present invention can further comprise the sensor operation stop instruction event detection step of detecting occurrence of a sensor operation stop instruction event to instruct a stop of an operation of the sensor, and the sensor operation stop step of stopping the operation of the sensor.
  • the operation of the sensor is stopped in the sensor operation stop step in response to detection of the sensor operation stop instruction event in the sensor operation stop instruction event detection step.
  • the operation of the sensor can appropriately be stopped when it is assumed in advance or the user determines that the operation of the sensor is unnecessary. As a consequence, power consumption by unnecessary sensor operation can be prevented.
  • the sensor operation stop instruction event can include at least one event selected from the group consisting of an operation stop request of the sensor from the application, stop of the application, a key operation to instruct to stop the operation stop of the sensor, voice input to instruct to stop the operation of the sensor, arrival of time at which the sensor should stop the operation, and detection of a state to make the sensor stop the operation depending on the shape of the device in which the sensor is implemented.
  • the sensor operation stop instruction event can include a call reception event.
  • the operation of the sensor can be stopped before call reception processing with a high priority.
  • a portable information device comprising ⁇ a sensor which measures attitude angles about three axial directions perpendicular to each other and accelerations in at least two of the three axial directions," temporary storage means for temporarily storing measurement data," data collection means for collecting measurement data which satisfies a data collection condition designated by an application as a condition of data to be collected in the measurement data from the sensor and storing the measurement data in the temporary storage means," and data report means for notifying the application of the measurement data which is stored in the temporary storage means and satisfies a data report condition designated by the application.
  • the data collection means collects measurement data which satisfies the data collection condition designated by the application and stores the measurement data in the temporary storage means.
  • the data report means notifies the application of data which is stored in the temporary storage means and satisfies the data report condition.
  • the portable information device of the present invention can collect measurement data and report, to the application, measurement data to be reported by using the above-described measurement data collection method of the present invention.
  • the application can acquire desired measurement data while reducing the load on the application.
  • the data report means can notify the application of the data which is stored in the temporary storage means and satisfies the data report condition in response to a data request issued by the application.
  • the data report means notifies the application of necessary data in response to the data request issued by the application when measurement data is necessary.
  • the device can further comprise data collection completion report means for reporting data collection completion to the application, when storage of the measurement data which satisfies the data collection condition in the temporary storage means is ended.
  • the data collection completion report means reports the data collection completion to the application. For this reason, an environment which allows the application to recognize the data collection completion without monitoring the data collection completion can be provided. As a result, the application which has recognized the data collection completion by the data collection completion report can acquire necessary measurement data at a timing convenient for itself.
  • the portable information device of the present invention may further comprise sensor operation start means for starting an operation of the sensor when occurrence of a sensor operation start event to instruct a start of the operation of the sensor is detected.
  • the operation of the sensor can appropriately be started when it is assumed in advance or the user determines that the operation start of the sensor is necessary.
  • the sensor operation start instruction event can include at least one event selected from the group consisting of an operation start request of the sensor by the application, activation of the application, a key operation to instruct to start the operation of the sensor, voice input to instruct to start the operation of the sensor, arrival of time at which the sensor should start the operation, and detection of a state to make the sensor operate depending on the shape of the device in which the sensor is implemented.
  • the device can further comprise sensor operation stop means for stopping an operation of the sensor when occurrence of a sensor operation stop event to instruct a stop of the operation of the sensor is detected.
  • the operation of the sensor can appropriately be stopped when it is assumed in advance or the user determines that the operation of the sensor is unnecessary. As a consequence, power consumption by unnecessary sensor operation can be prevented.
  • the sensor operation stop instruction event can include at least one event selected frpm the group consisting of an operation stop request of the sensor by the application, stop of the application, a key operation to instruct to stop the operation of the sensor, voice input to instruct to stop the operation of the sensor, arrival of time at which the sensor should stop the operation, and detection of a state to make the sensor stop the operation depending on the shape of the device in which the sensor is implemented.
  • a call reception event can be used as the sensor operation start instruction event or sensor operation stop instruction event.
  • the portable information device of the present invention can further comprise a radio communication part to communicate with a base station of a mobile communication network. That is, the mobile terminal device of the present invention can be a mobile communication terminal device. As described above, according to the measurement data collection method of the present invention, the load on the application which uses measurement data from the sensor can be reduced.
  • the load on the application which uses measurement data from the sensor can be reduced.
  • Fig. IA is a view schematically showing the outer appearance of the front side of a cellular phone device according to an embodiment of the present invention
  • Fig. IB is a view schematically showing the outer appearance of the rear side of the cellular phone device according to the first embodiment of the present invention
  • Fig. 2 is a functional block diagram for explaining the arrangement of the cellular phone device according to the first embodiment of the present invention
  • Fig. 3 is a block diagram for explaining the arrangement of software to be executed by the control unit of the cellular phone device according to the first embodiment of the present invention
  • Fig. 4 is a sequence chart for explaining processing in acquisition operation #1;
  • Fig. 5 is a sequence chart for explaining processing in acquisition operation #2;
  • Fig. 6 is a view for explaining data collection in acquisition operation
  • Fig. 7 is a sequence chart for explaining processing in acquisition operation #3;
  • Fig. 8 is a view for explaining data collection in acquisition operation #3;
  • Fig. 9 is a sequence chart for explaining processing in acquisition operation #45
  • Fig. 10 is a sequence chart for explaining processing in acquisition operation #5;
  • Fig. 11 is a view for explaining data collection in acquisition operation
  • Fig. 12 is a sequence chart for explaining processing in acquisition operation #6;
  • Fig. 13 is a view for explaining data collection in acquisition operation #6;
  • Fig. 14 is a block diagram for explaining the arrangement of software to be executed by the control unit of a cellular phone device according to the second embodiment of the present invention.
  • Fig. 15 is a sequence chart for explaining processing in acquisition operation #7;
  • Fig. 16 is a view for explaining data collection in acquisition operation #7;
  • Fig. 17 is a sequence chart for explaining processing in acquisition operation #8;
  • Fig. 18 is a view for explaining data collection in acquisition operation
  • Fig. 19 is a sequence chart for explaining processing in acquisition operation #9;
  • Fig. 20 is a view for explaining data collection in acquisition operation
  • Fig. 21A is a front view showing the outer appearance of the cellular phone device; (l) for explaining a modification, *
  • Fig. 21B is a right side view showing the outer appearance of the cellular phone device; (l) for explaining a modification;
  • Fig. 21C is a rear view showing the outer appearance of the cellular phone device; (l) for explaining a modification!
  • Fig. 22A is a front view showing the outer appearance of the cellular phone device; (2) for explaining another modification
  • Fig. 22B is a right side view showing the outer appearance of the cellular phone device; (2) for explaining another modification; and
  • Fig. 22C is a rear view showing the outer appearance of the cellular phone device; (2) for explaining another modification.
  • Figs. IA and IB schematically show the outer appearance of a cellular phone device 10 serving as a mobile terminal device.
  • Fig. IA is a front view showing the outer appearance of the cellular phone device 10.
  • Fig. IB is a rear view showing the outer appearance of the cellular phone device 10.
  • the cellular phone device 10 comprises (a) a cellular phone main body 11, (b) an operation unit 12 having a ten-key pad to input a telephone number and function keys to input various kinds of instructions for, e.g., operation mode switching to a control unit 21 (to be described later; Fig. 2), and (c) a display unit 13 having a liquid crystal display device to display an operation guide, operation status, and received message.
  • the cellular phone device 10 also comprises (d) a talking speaker 14 which reproduces a voice signal sent from a communication partner in speech communication, (e) a microphone 15 to input sound in sound collection or voice in speech communication, (f) a guidance speaker 16 to generate a ringing tone or guidance sound, and (g) an antenna 17 to transmit/receive a radio signal to/from a base station.
  • a talking speaker 14 which reproduces a voice signal sent from a communication partner in speech communication
  • a microphone 15 to input sound in sound collection or voice in speech communication
  • a guidance speaker 16 to generate a ringing tone or guidance sound
  • an antenna 17 to transmit/receive a radio signal to/from a base station.
  • the cellular phone main body 11 incorporates (i) the control unit 21 which includes a timepiece device 29 and collectively controls the operation of the entire cellular phone device 10, (ii) a transmission/reception unit 22 which transmits/receives a radio signal to/from a base station through the antenna 17, and (iii) a storage unit 23 having, a read only memory (ROM) device or random access memory (RAM) device to store programs to be executed by the control unit 21 and various kinds of data.
  • the cellular phone main body 11 also incorporates (iv) a sensor unit 25 to measure the attitude angle of the cellular phone device 10 and an acceleration acting on it.
  • the storage, unit 23 includes a temporary storage area 24 to temporarily store collected measurement data.
  • the sensor unit 25 comprises a sensor part 26 which detects the attitude angle of the cellular phone device 10 and an acceleration acting on it and outputs the data as an analog voltage signal, and an analog-to- digital (AJO) converter 27 which converts the voltage value of the voltage signal from the sensor part 26 into a digital value.
  • AJO analog-to- digital
  • the digital data output from the A/D converter 27 is sent to the control unit 21 as measurement data.
  • the sensor unit 25 starts the operation in response to a measurement start instruction from the control unit 21 and stops the operation in response to a measurement stop instruction from the control unit 21.
  • the sensor part 26 defines the row direction of the matrix key array of the operation unit 12 as the X-axis and the column direction as the Y-axis.
  • the reference attitude is set such that the X-Y plane is parallel to the horizontal plane, and the +Y direction matches the true north.
  • the sensor part 26 detects a rotation angle (pitch angle ⁇ x) about the X- axis from the reference attitude, a rotation angle (roll angle ⁇ Y) about the Y-axis, and a rotation angle (yaw angle ⁇ z) about the Z-axis parallel to the vertical direction.
  • the sensor part 26 also detects an X-direction acceleration ( a x) and a Y-direction acceleration ( a Y).
  • the sensor unit 25 notifies the control unit 21 of, as measurement data, a set of pitch angle ⁇ x, roll angle ⁇ Y, yaw angle ⁇ z, X ⁇ direction acceleration a x, and Y"direction acceleration a Y detected at each measurement point.
  • the control unit 21 comprises a central processing unit (CPU) and a digital signal processor (DSP).
  • the control unit 21 executes various data processing operations and controls the operations of the remaining constituent elements described above to implement a general cellular phone function.
  • Fig. 3 shows the arrangement of software such as a program to be executed by the control unit 21.
  • the software to be executed by the control unit 21 includes (i) a basic processing part 31 which implements a speech communication function, mail function, and character input function, i.e., the basic functions of the cellular phone and controls the above-described various kinds of hardware resources, and (ii) an application 33 to provide various contents such as a game to the user.
  • the application 33 uses a measurement result obtained by the sensor unit 25.
  • the basic processing part 31 comprises a measurement data processing part 35.
  • the measurement data processing part 35 comprises (i) a collection/report control part 36 which processes commands from the application 33 and controls the measurement operation of the sensor unit 25 and the entire measurement data processing part 35, and (ii) a data collection part 37 which stores, in the temporary storage area 24 of the storage unit 23 described above, measurement data that satisfies a data collection condition designated by the application 33.
  • the measurement data processing part 35 also comprises (iii) a data report part 38 which reports, to the application 33, measurement data that satisfies a data report condition designated by the application 33, of the measurement data stored in the temporary storage area 24.
  • the data collection part 37 has offset correction information measured in advance, and physical quantity conversion information to convert offset- corrected data into data which directly reflects a physical quantity such as an angle or acceleration.
  • the data collection part 37 executes offset correction and physical quantity conversion sequentially for raw measurement data from the sensor unit 25, thereby calculating measurement data.
  • the data collection part 37 When collection of measurement data which satisfies the data collection condition is completed, the data collection part 37 notifies the collection/report control part 36 of it. Upon receiving the notification, the collection/report control part 36 reports the completion of collection of measurement data satisfying the data collection condition to the application 33 if it has been designated by the application 33 that the completion of data collection should be reported.
  • the data collection part 37 uses the temporary storage area 24 as a ring buffer. That is, the data collection part 37 sequentially updates the storage address of the temporary storage area 24 every time data is stored. When the data is stored up to the final address of the temporary storage area 24, data is newly stored from the start address of the temporary storage area 24.
  • the basic processing part 31 analyzes key input by the user.
  • the key input indicates the operation start instruction or operation stop instruction for the sensor unit 25, the collection/report control part 36 is notified of it.
  • the basic processing part 31 supports specific command input including the operation start instruction input and operation stop instruction input for the sensor unit 25 by user's voice input through the microphone 15.
  • the command input by voice indicates the operation start instruction or operation stop instruction for the sensor unit 25, the collection/report control part 36 is notified of it.
  • the collection/report control part 36 is notified of it. Setting of time count by the timepiece device 29 is done by user's key input or a request from the application 33.
  • the basic processing part 31 executes so-called task management and activates or stops the application.
  • application activation processing the basic processing part 31 determines on the basis of management information held by the application to be activated whether the application should use the sensor unit 25. If the determination result is affirmative, the collection/report control part 36 is notified that the sensor should be activated almost simultaneously with activation of the application. Even in application stop processing, the basic processing part 31 executes the same determination. If the determination result is affirmative, the collection/report control part 36 is notified that the sensor should be stopped almost simultaneously with stop of the application.
  • the application can use the sensor unit 25 by issuing, to the collection/report control part 36, an operation start request or stop request of the sensor unit 25.
  • the collection/report control part 36 sends a sensor operation start instruction or sensor operation stop instruction to the sensor unit 25.
  • the collection/report control part 36 is notified of the operation start instruction event during the operation of the sensor unit 25, no new sensor operation start instruction is sent to the sensor unit 25.
  • the collection/report control part 36 is notified of the operation stop instruction event in the stopped state of the sensor unit 25, no new sensor operation stop instruction is sent to the sensor unit 25.
  • the application 33 sends, to the measurement data processing part 35, an acquisition operation #1 setting instruction containing an application identifier as a parameter.
  • the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition is the first measurement data obtained after the acquisition operation #1 setting instruction.
  • the measurement data processing part 35 is notified that measurement data which satisfies the data report condition is the first measurement data stored in the temporary storage area 24 after the acquisition operation #1 setting instruction.
  • the collection/report control part 36 receives the acquisition operation #1 setting instruction.
  • the collection/report control part 36 determines whether the sensor unit 25 is operating. More specifically, when the above-described sensor operation start event has occurred before, and the sensor unit 25 has already started the operation in accordance with the sensor operation start instruction from the collection/report control part 36 and is continuously operating, the determination result is affirmative. If the determination result is negative, the collection/report control part 36 sends the sensor operation start instruction to the sensor unit 25. That is, in this case, the collection/report control part 36 interprets that the acquisition operation #1 setting instruction also serves as a sensor operation start request. Upon receiving the sensor operation start instruction, the sensor unit 25 starts the sensor operation.
  • a detection result by the sensor part 26 is converted into digital data by the A/D converter 27 and output to the control unit 21 (more specifically, the data collection part 37) periodically (e.g., at a period of 1 msec) as raw measurement data.
  • the collection/report control part 36 notifies the data collection part 37 of the data collection condition of acquisition operation #1 together with measurement data format information and the application identifier of the application 33. Upon receiving this notification, the data collection part 37 starts data collection processing in step SIl.
  • step SIl upon receiving the first raw measurement data from the sensor unit 25, the data collection part 37 sequentially executes offset correction and physical quantity conversion to calculate measurement data corresponding to the raw measurement data.
  • the data collection part 37 stores the calculated measurement data in the temporary storage area 24 together with time stamp information.
  • the data collection part 37 sends, to the collection/report control part 36, a notification representing that collection of measurement data satisfying the data collection condition corresponding to acquisition operation #1 is completed, together with the application identifier and the storage address of the measurement data in the temporary storage area 24.
  • the processing in step SIl is ended.
  • the collection/report control part 36 Upon receiving the notification representing that the data collection operation corresponding to acquisition operation #1 is completed, the collection/report control part 36 notifies the data report part 38 of the data report condition of acquisition operation #1 together with the storage address of the measurement data and the application identifier of the application 33, which are received from the data collection part 37.
  • the data report part 38 starts data report processing in step S 12.
  • the data report part 38 reads out the measurement data to be reported to the application 33 from the temporary storage area 24 by using the storage address received from the collection/report control part 36. Then, the data report part 38 reports the readout measurement data to the application 33 by using the application identifier received from the collection/report, control part 36.
  • the data report part 38 notifies the collection/report control part 36 that data report is completed.
  • the processing in step S12 is ended.
  • the application 33 can immediately acquire the first measurement data obtained after the acquisition operation #1 setting instruction which is issued at a desired point of time and also serves as a data request.
  • the sensor unit 25 continuously executes the sensor operation and outputs raw measurement data periodically independently of whether data collection is executed by the data collection part 37.
  • the sensor operation is stopped when the sensor operation stop instruction is issued from the collection/report control part 36 in response to occurrence of the above-described sensor operation stop event.
  • the application 33 sends a sensor operation stop request to the measurement data processing part 35 at a desired point of time. If abnormal termination has occurred with neither issue of the sensor operation stop request by the application 33 nor occurrence of the above-described sensor operation stop event, the basic processing part 31 which monitors execution of the application 33 requests the collection/report control part 36 to stop the sensor operation. Then, the sensor operation stop instruction is issued from the collection/report control part 36.
  • This sensor operation stop method is also used when the sensor operation starts in acquisition operations #2 to #9 to be described later.
  • the application 33 sends, to the measurement data processing part 35, an acquisition operation #2 setting instruction containing an application identifier, data collection period TP2, and maximum number NM of notification data (or maximum notification time TM) as parameters.
  • the data collection period TP2 a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated.
  • the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition includes the first measurement data received from the sensor unit 25 after the acquisition operation #2 setting instruction and subsequent measurement data obtained at the data collection period TP2.
  • the measurement data processing part 35 is notified that measurement data which satisfies the data report condition includes measurement data which are collected by the data collection part 37 before data request to be issued by the application 33 later and whose number is equal to or smaller than the maximum number NM of notification data of measurement data collected at the latest timing when viewed from the data request issue timing (or measurement data collected within the maximum notification time TM in a reverse chronological order from the data request issue timing).
  • the collection/report control part 36 receives the acquisition operation #2 setting instruction.
  • the collection/report control part 36 determines whether the sensor unit 25 is operating, as in (l-l) described above, and executes processing corresponding to the determination result.
  • the collection/report control part 36 notifies the data collection part 37 of the data collection condition corresponding to acquisition operation #2 together with the application identifier of the application 33. Upon receiving this notification, the data collection part 37 starts data collection processing in step S21.
  • step S21 upon receiving raw measurement data from the sensor unit 25 for the first time, the data collection part 37 calculates measurement data corresponding to the first raw measurement data, as in (l- l).
  • the data collection part 37 stores the calculated measurement data in the temporary storage area 24 together with time stamp information. Every time raw measurement data is received from the sensor unit 25 at the period TP2, measurement data corresponding to the raw measurement data is . calculated and sequentially stored in the temporary storage area 24 together with time stamp information. Every time new measurement data is stored in the temporary storage area 24, the data collection part 37 notifies the collection/report control part 36 of the storage address of the data.
  • Fig. 6 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37 in step S21.
  • Fig. 6 shows a case wherein the data collection part 37 is notified of only the data collection condition according to the above-described acquisition operation #2 setting instruction by the application 33.
  • the application 33 sends a data request containing the application identifier as a parameter to the measurement data processing part 35.
  • the collection/report control part 36 receives the data request.
  • the collection/report control part 36 notifies the data report part 38 of the data report condition designated by the above-described acquisition operation #2 setting instruction together with the application identifier of the application 33 and the latest measurement data storage address in the temporary storage area 24.
  • the data report part 38 starts data report processing in step S22]..
  • step S22i the data report part 38 extracts measurement data satisfying the data report condition from the temporary storage area 24 on the basis of the current time, the data collection period TP2, the maximum number NM of notification data (or maximum notification time TM), the latest measurement data storage address in the temporary storage area 24, and time stamp information for each measurement data stored in the temporary storage area 24 (Fig. 6). Subsequently, the data report part 38 time-serially reports the extracted measurement data to the application 33 as report data. The data report part 38 notifies the collection/report control part 36 that data report is completed. The processing in step S22i is ended.
  • the application 33 can immediately acquire, at once, measurement data which satisfy a notification condition designated by the acquisition operation #2 setting instruction issued before by issuing a data request at a desired point of time.
  • step S21 data collection processing in step S21 is executed in parallel to the data report processing in step S22i and also continuously executed even after the data report processing in step S22i is ended. For this reason, after acquisition operation #2 is set, the application 33 can immediately acquire, at once, measurement data which satisfy a notification condition designated by the acquisition operation #2 setting instruction issued before by issuing a data request any number of times (twice in the example shown in Fig. 5) at desired points of time.
  • the data collection processing in step S21 is ended when the application 33 issues a data collection stop request at a desired timing.
  • the basic processing part 31 which monitors execution of the application 33 issues a data collection stop request to the collection/report control part 36 to end the data collection processing in step S21.
  • This collection operation stop method also applies to acquisition operations #3 to #6 to be described later.
  • the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition includes the first measurement data received from the sensor unit 25 after the acquisition operation #3 setting instruction and subsequent measurement data obtained at the data collection period TP3, whose number is equal to or smaller than the maximum number NA of collection data (or which are collected within the maximum collection time TA after the acquisition operation #3 setting instruction).
  • the measurement data processing part 35 is notified that measurement data which satisfies the data report condition includes measurement data which are collected by the data collection part 37 in accordance with the acquisition operation #3 setting instruction.
  • the collection/report control part 36 receives the acquisition operation #3 setting instruction.
  • the collection/report control part 36 determines whether the sensor unit 25 is operating, as in (l-l) described above, and executes processing corresponding to the determination result.
  • the collection/report control part 36 notifies the data collection part 37 of the data collection condition together with the application identifier.
  • the data collection part 37 starts data collection processing in step S31.
  • step S31 upon receiving the first raw measurement data from the sensor unit 25, the data collection part 37 calculates measurement data corresponding to the first raw measurement data, as in (l-l) described above.
  • the data collection part 37 stores the calculated measurement data in the temporary storage area 24 together with time stamp information.
  • Fig. 8 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37 in step S31.
  • Fig. 8 shows a case wherein the data collection part 37 is notified of only the data collection condition according to the above-described acquisition operation #3 setting instruction by the application 33.
  • the data collection part 37 ends data collection when the number of collected measurement data reaches the maximum number NA of collection data. Assume that the maximum collection time TA is designated. In this case, the data collection part 37 ends data collection when the maximum collection time TA elapses from the. notification of the application identifier and a data collection condition corresponding to acquisition operation #3.
  • the data collection part 37 sends, to the collection/report control part 36, a notification representing that collection of measurement data satisfying the data collection condition corresponding to acquisition operation #3 is completed, together with the application identifier. The processing in step S31 is ended.
  • the collection/report control part 36 Upon receiving the notification representing the completion of data collection corresponding to acquisition operation #3, the collection/report control part 36 notifies the application 33 of it. Upon receiving this notification, the application 33 sends a data request containing the application identifier as a parameter to the measurement data processing part 35. In the measurement data processing part 35, the collection/report control part 36 receives the data request. The collection/report control part 36 notifies the data report part 38 of the data report condition together with the application identifier of the application 33 and the first and last storage addresses, in the temporary storage area 24, of measurement data collected by the data collection part 37 in accordance with acquisition operation #3. Upon receiving this notification, the data report part 38 starts data report processing in step S32.
  • step S32 the data report part 38 extracts measurement data satisfying the data report condition from the temporary storage area 24 on the basis of the first and last measurement data storage addresses in the temporary storage area 24 in accordance with acquisition operation #3, the data collection period TP3, and time stamp information for each measurement data stored in the temporary storage area 24 (Fig. 8).
  • the data report part 38 reports the extracted measurement data to the application 33 as report data.
  • the data report part 38 notifies the collection/report control part 36 that data report is completed.
  • the processing in step S32 is ended.
  • the application 33 can acquire measurement data which are collected after the acquisition operation #3 setting instruction at the desired data collection period TP3 in number equal to or smaller than the number NA (or measurement data collected within the desired collection time TA).
  • the data collection completion is reported to the application 33.
  • measurement data collected in accordance with the acquisition operation #3 setting instruction can be acquired.
  • the application 33 sends, to the measurement data processing part 35, an acquisition operation #4 setting instruction containing an application identifier, threshold information, and maximum number NB of collection data (or maximum collection time TB) as a collection limit condition as parameters.
  • Threshold information can be designated for each of the pitch angle ⁇ x, roll angle ⁇ Y, yaw angle ⁇ z, X-direction acceleration ⁇ x, and Y- direction acceleration oi ⁇ contained on one measurement data.
  • the threshold information contains a threshold value and a designation for whether the data range of measurement data to be acquired is a range to which a value larger than the threshold value belongs or a range to which a value smaller than the threshold value belongs.
  • the threshold value also contains a designation for whether the threshold value is set for a change value from the value of the first measurement data. Even in acquisition operations #5 and #6 to be described later, these pieces of information are contained in the threshold information.
  • the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition includes measurement data (to be referred to as “threshold-exceeding data” hereinafter) satisfying the threshold information, which are received from the sensor unit 25 after the acquisition operation #4 setting instruction and whose number is equal to or smaller than the maximum number NB of collection data (or which are collected within the maximum collection time TB after the acquisition operation #4 setting instruction).
  • the measurement data processing part 35 is notified that measurement data which satisfies the data report condition includes measurement data which are collected by the data collection part 37 in accordance with the acquisition operation #4 setting instruction.
  • the collection/report control part 36 receives the acquisition operation #4 setting instruction.
  • the collection/report control part 36 determines whether the sensor unit 25 is operating, as in (l-l) described above, and executes processing corresponding to the determination result.
  • the collection/report control part 36 notifies the data collection part 37 of the data collection condition of acquisition operation #4 together with the application identifier of the application 33. Upon receiving this notification, the data collection part 37 starts data collection processing in step S41.
  • step S41 upon receiving raw measurement data from the sensor unit 25, the data collection part 37 calculates measurement data corresponding to the raw measurement data, as in (l-l) described above.
  • the data collection part 37 determines whether the calculated measurement data is threshold" exceeding data. If the determination result is negative, the data collection part 37 waits for the next raw measurement data. If the determination result is affirmative, the data collection part 37 stores the threshold-exceeding data in the temporary storage area 24 together with time stamp information.
  • the data collection part 37 sends, to the collection/report control part 36, a notification representing the collection of threshold-exceeding data together with the application identifier and the measurement data storage address in the temporary storage area 24. After that, the data collection part 37 waits for the next raw measurement data.
  • the data collection part 37 executes the data collection processing in step S41.
  • the collection/report control part 36 notifies the data report part 38 of the data report condition of acquisition operation #4 together with the threshold-exceeding data storage address and the application identifier of the application 33, which are received from the data collection part 37.
  • step S42j the data report part 38 reads out the threshold-exceeding data to be reported to the application 33 from the temporary storage area 24 by using the threshold- exceeding data storage address received from the collection/report control part 36.
  • the data report part 38 reports the readout threshold-exceeding data to the application 33 by using the application identifier received from the collection/report control part 36.
  • the data report part 38 notifies the collection/report control part 36 that data report is completed.
  • the processing in step S42j is ended.
  • the application 33 can immediately acquire measurement data which satisfies desired threshold information, i.e., threshold-exceeding data within a range satisfying the collection limit condition every time threshold-exceeding data is received from the sensor unit 25.
  • the application 33 sends, to the measurement data processing part 35, an acquisition operation #5 setting instruction containing an application identifier, threshold information, data collection period TP5, and maximum number NC of collection data (or maximum collection time TC) as a collection limit condition as parameters.
  • the data collection period TP5 a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated, as in (1-2) described above.
  • the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition includes the first threshold-exceeding data received from the sensor unit 25 after the acquisition operation #4 setting instruction and subsequent measurement data which are sequentially received from the sensor unit 25 at the period TP5 and whose number is equal to or smaller than the maximum number NC of collection data (or which are collected until the maximum collection time TC elapses after the acquisition operation #5 setting instruction).
  • the measurement data processing part 35 is notified that measurement data which satisfies the data report condition includes measurement data which are collected by the data collection part 37 in accordance with the acquisition operation #5 setting instruction.
  • the collection/report control part 36 receives the acquisition operation #5 setting instruction.
  • the collection/report control part 36 determines whether the sensor unit 25 is operating, as in (l- l) described above, and executes processing corresponding to the determination result.
  • the collection/report control part 36 notifies the data collection part 37 of the data collection condition together with the application identifier and measurement data format information. Upon receiving this notification, the data collection part 37 starts data collection processing in step S 51.
  • step S51 every time raw measurement data from the sensor unit 25 is received, the data collection part 37 calculates measurement data corresponding to the raw measurement data, as in (l- l) described above. The data collection part 37 determines whether the calculated measurement data is threshold-exceeding data. If the determination result is negative, the data collection part 37 waits for the next raw measurement data. When raw measurement data reception and threshold-exceeding data determination are repeated, and the determination result becomes affirmative for the first time, the data collection part 37 stores the threshold-exceeding data in the temporary storage area 24 together with time stamp information.
  • Fig. 11 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37 in step S51.
  • Fig. 11 shows a case wherein the data collection part 37 is notified of only the data collection condition according to the above- described acquisition operation #5 setting instruction by the application 33, as in Fig. 6.
  • the data collection part 37 ends data collection when the number of collected measurement data reaches the maximum number NC of collection data. Assume that the maximum collection time TC is designated. In this case, the data collection part 37 ends data collection when the maximum collection time TC elapses from the notification of the application identifier and a data collection condition corresponding to acquisition operation #5.
  • the data collection part 37 sends, to the collection/report control part 36, a notification representing that collection of measurement data satisfying the data collection condition corresponding to acquisition operation #5 is completed, together with the application identifier. The processing in step S51 is ended.
  • the collection/report control part 36 Upon receiving the notification representing that data collection corresponding to acquisition operation #5 is completed, the collection/report control part 36 notifies the application 33 of it. Upon receiving this notification, the application 33 sends a data request containing the application identifier as a parameter to the measurement data processing part 35 at a desired point of time. In the measurement data processing part 35, the collection/report control part 36 receives the data request. The collection/report control part 36 notifies the data report part 38 of the data report condition together with the application identifier of the application 33 and the first and last storage addresses, in the temporary storage area 24, of measurement data collected by the data collection part 37 in accordance with acquisition operation #5. Upon receiving this notification, the data report part 38 starts data report processing in step S52.
  • step S52 the data report part 38 extracts measurement data satisfying the data report condition from the temporary storage area 24 on the basis of the first and last measurement data storage addresses in the temporary storage area 24 in accordance with acquisition operation #5, the data collection period TP5, and time stamp information for each measurement data stored in the temporary storage area 24 (Fig. 11).
  • the data report part 38 reports the extracted measurement data to the application 33 as report data.
  • the data report part 38 notifies the collection/report control part 36 that data report is completed.
  • the processing in step S52 is ended.
  • the application 33 can acquire measurement data which are collected at the data collection period TP5, including the first threshold-exceeding data after the acquisition operation #5 setting instruction, in number equal to or smaller than the desired number NC (or measurement data collected within the desired collection time TC).
  • the data collection completion is reported to the application 33.
  • measurement data collected in accordance with the acquisition operation #5 setting instruction can be acquired.
  • the application 33 sends, to the measurement data processing part 35, an acquisition operation #6 setting instruction containing an application identifier, threshold information, data collection period TP6, and maximum number ND of collection data (or maximum collection time TD) as a collection limit condition as parameters.
  • an acquisition operation #6 setting instruction containing an application identifier, threshold information, data collection period TP6, and maximum number ND of collection data (or maximum collection time TD) as a collection limit condition as parameters.
  • the data collection period TP6 a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated, as in (1-2) described above.
  • the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition includes measurement data obtained at the period TP6 after the acquisition operation #6 setting instruction until first threshold-exceeding data is received from the sensor unit 25.
  • the measurement data processing part 35 is notified that measurement data which satisfies the data report condition includes measurement data which are collected by the data collection part 37 in accordance with the acquisition operation #6 setting instruction and whose number is equal to or smaller than the maximum number ND of collection data near the point of time of collection of the threshold-exceeding data (or measurement data collected within the maximum collection time TD before the point of time of collection of the threshold-exceeding data).
  • the collection/report control part 36 receives the acquisition operation #6 setting instruction.
  • the collection/report control part 36 determines whether the sensor unit 25 is operating, as in (l-l) described above, and executes processing corresponding to the determination result.
  • the collection/report control part 36 notifies the data collection part 37 of the data collection condition together with the application identifier. Upon receiving this notification, the data collection part 37 starts data collection processing in step S61.
  • step S61 upon receiving the first raw measurement data from the sensor unit 25, the data collection part 37 calculates measurement data corresponding to the first raw measurement data, as in (l-l) described above.
  • the data collection part 37 stores the calculated measurement data in the temporary storage area 24 together with time stamp information. Every time raw measurement data from the sensor unit 25 is received at the period TP6, the data collection part 37 calculates measurement data corresponding to the raw measurement data and sequentially stores it in the temporary storage area 24 together with time stamp information. Every time new measurement data is stored in the temporary storage area 24, the data collection part 37 notifies the collection/report control part 36 of the storage address of the measurement data.
  • Fig. 13 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37 in step S61.
  • Fig. 13 shows a case wherein the data collection part 37 is notified of only the data collection condition according to the above-described acquisition operation #6 setting instruction by the application 33.
  • the data collection part 37 Upon detecting the first threshold-exceeding data, the data collection part 37 stores the threshold-exceeding data in the temporary storage area 24 together with time stamp information and ends data collection according to the acquisition operation #6 setting instruction.
  • the data collection part 37 sends, to the collection/report control part 36, a notification representing that collection of measurement data satisfying the data collection condition corresponding to acquisition operation #6 is completed, together with the application identifier.
  • the processing in step S61 is ended.
  • the collection/report control part 36 Upon receiving the notification representing that data collection corresponding to acquisition operation #6 is completed, the collection/report control part 36 notifies the application 33 of it.
  • the application 33 Upon receiving this notification, the application 33 sends a data request containing the application identifier as a parameter to the measurement data processing part 35 at a desired point of time.
  • the collection/report control part 36 receives the data request.
  • the collection/report control part 36 notifies the data report part 38 of the data report condition together with the application identifier of the application 33 and the last storage address, in the temporary storage area 24, of measurement da.ta collected by the data collection part 37 in accordance with acquisition operation #6.
  • the data report part 38 starts data report processing in step S62.
  • step S62 the data report part 38 extracts measurement data satisfying the data report condition from the temporary storage area 24 on the basis of the last measurement data storage address in the temporary storage area 24 in accordance with acquisition operation #6, the data collection period TP6, and time stamp information for each measurement data stored in the temporary storage area 24 (Fig. 13).
  • the data report part 38 reports the extracted measurement data to the application 33 as report data.
  • the data report part 38 notifies the collection/report control part 36 that data report is completed.
  • the processing in step S62 is ended.
  • the application 33 can acquire measurement data which satisfy the notification condition designated by the acquisition operation #6 setting instruction issued before and are received from the acquisition operation #6 setting instruction to the notification of the first threshold-exceeding data.
  • the data collection completion is reported to the application 33.
  • measurement data collected in accordance with the acquisition operation #6 setting instruction can be acquired.
  • the data collection operation from the sensor unit 25 and the data report operation to the application 33 have been described above while giving focus to one acquisition operation setting instruction issued to the measurement data processing part 35. Instead, a plurality of applications may simultaneously issue acquisition operation setting instructions to the measurement data processing part 35. If the data collection conditions of the plurality of acquisition operation setting instructions include different data collection periods, data collection is done at a time interval corresponding to the greatest common divisor of the data collection periods in a period when the plurality of data collection conditions must be coped with. In data collection, the data collection part 37 executes monitoring of the data collection condition for each acquisition operation setting instruction. As data report to the application 33, the collection/report control part 36 and data report part 38 execute operations corresponding to each_acquisition operation setting. With this arrangement, even when acquisition operation setting instructions are simultaneously issued to the measurement data processing part 35, the data collection operation and data report operation are appropriately performed, and the application can acquire desired measurement data.
  • a cellular phone device 10 according to this embodiment is different from the first embodiment in only the arrangement of software operating in a control unit 21.
  • the software to be executed by the control unit 21 of this embodiment includes (i) a basic processing part 3 IA which implements a speech communication function, mail function, and character input function, i.e., the basic functions of the cellular phone and controls the above-described various kinds of hardware resources, and (ii) an application 33A to provide various contents such as a game to the user.
  • the basic processing part 31A is different from the first embodiment only in that the basic processing part 3 IA comprises a measurement data processing part 35A in place of the measurement data processing part 35.
  • the measurement data processing part 35A comprises (i) a collection/report control part 36A which processes commands from the application 33A and controls the measurement operation of a sensor unit 25 and the entire measurement data processing part 35A, and (ii) a data collection part 37A which collects measurement data in accordance with the collection period as a data collection condition designated . by the application 33A and stores the measurement data in a temporary storage area 24 of a storage unit 23 described above.
  • the measurement data processing part 35A also comprises (iii) a data report part 38A which reports, to the application 33A, measurement data that satisfies a data report condition designated by the parameter of a data request issued by the application 33A, and also reports, to the application 33A, the number of measurement data reportable to the application 33A of the measurement data stored in the temporary storage area 24.
  • the data collection part 37A Upon receiving a notification of a collection period, the data collection part 37A continues data collection until a collection operation end instruction.
  • the data collection part 37A manages a start pointer to indicate the storage address of the oldest measurement data in the above-described temporary storage area 24 used as a ring buffer and an end pointer to indicate the storage address of measurement data to be stored next.
  • the data collection part 37A sets the start pointer value and end pointer value to the same value (e.g., the start address of the temporary storage area 24).
  • the start pointer value and end pointer value can be referred to by the data report part 38A.
  • a measurement data collection operation and a measurement data report operation to the application 33A in this embodiment will be described next. Assume that the application 33A is already activated. Also assume that the application which uses the sensor unit 25 is only the application 33A, and no state wherein a plurality of data collection conditions are simultaneously set occurs.
  • the application 33A sends, to the measurement data processing part 35A, a collection operation setting instruction containing a data collection period TP7 as a parameter.
  • a data collection period TP7 a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated, as in (1-2) described above.
  • the measurement data processing part 35A is notified that measurement data which satisfies the data collection condition includes measurement data obtained firstly by after the collection operation setting instruction and subsequent measurement data sequentially obtained at the data collection period TP7.
  • the collection/report control part 36A receives and analyzes the collection operation setting instruction.
  • the collection/report control part 36A determines whether the sensor unit 25 is operating, as in (1-1) described above, and executes processing corresponding to the determination result.
  • the collection/report control part 36A notifies the data collection part 37A of the data collection condition corresponding to acquisition operation #7. Upon receiving this notification, the data collection part 37A starts data collection processing in step S71.
  • step S71 upon receiving the first raw measurement data from the sensor unit 25, the data collection part 37A calculates measurement data corresponding to the first raw measurement data, as in (l- l) described above.
  • the data collection part 37A stores the calculated measurement data in the temporary storage area 24. Every time raw measurement data is received from the sensor unit 25 at the period TP7, the data collection part 37A calculates measurement data corresponding to the raw measurement data and sequentially stores the measurement data in the temporary storage area 24. Every time measurement data is stored in the temporary storage area 24, the data collection part 37A updates the end pointer value (and the start pointer value as needed).
  • Fig. 16 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37A in step S71. Referring back to Fig.
  • the application 33A sends, to the measurement data processing part 35A, a data request to request report of the latest one of the measurement data stored in the temporary storage area 24 (to be referred to as a "data request of acquisition operation #7" hereinafter).
  • the collection/report control part 36A receives the data request of acquisition operation #7.
  • the collection/report control part 36A notifies the data report part 38A that the data request of acquisition operation #7 is received.
  • the data report part 38A starts data report processing in step S72.
  • step S72 the data report part 38A refers to the end pointer value. Then, the data report part 38A reads out the latest measurement data from the temporary storage area 24 on the basis of the end pointer value. The data report part 38A reports the readout measurement data to the application 33A as report data. The data report part 38A notifies the collection/report control part 36A that data report is completed. The processing in step S72 is ended.
  • the application 33A can acquire the latest one of measurement data stored in the temporary storage area 24.
  • the measurement data processing part 35A is notified that measurement data which satisfies the data collection condition includes measurement data obtained firstly by after the collection operation setting instruction and subsequent measurement data sequentially obtained at the data collection period TP8.
  • the collection/report control part 36A receives the collection operation setting instruction.
  • the collection/report control part 36A determines whether the sensor unit 25 is operating, as in (l"l) described above, and executes processing corresponding to the determination result.
  • the collection/report control part 36A notifies the data collection part 37A of the data collection condition corresponding to acquisition operation #8. Upon receiving this notification, the data collection part 37A starts data collection processing in step S81.
  • step S81 the same processing as in step S71 in acquisition operation #7 described above is executed except that the data collection period is TP8.
  • Fig. 18 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37A in step S81. Referring back to Fig.
  • the application 33A sends, to the measurement data processing part 35A, a request to request the number of reportable data (to be referred to as the "number of reportable data” or simply as the “number of data” hereinafter) of the measurement data stored in the temporary storage area 24.
  • the collection/report control part 36A receives the request of the number of reportable data.
  • the collection/report control part 36A notifies the data report part 38A that the request of the number of reportable data is received. Upon receiving this notification, the data report part 38A starts data number report processing in step S82.
  • the data report part 38A refers to the start pointer value and end pointer value.
  • the data report part 38A calculates the number of reportable data by using the start pointer value and end pointer value.
  • the data report part 38A reports the calculated number of data to the application 33A.
  • the application 33A determines whether the number of reportable data has reached a desired number of data. If the determination result is negative, the application 33A repeatedly issues the request of the number of reportable data at a desired point of time and determines whether the number of reportable data at that point of time has reached a desired number NF of data until an affirmative determination result is obtained.
  • the application 33A sends, to the measurement data processing part 35A, a data request of acquisition operation #8 containing the desired number NF of measurement data as a parameter.
  • the measurement data processing part 35A is notified that the measurement data which satisfies the data report condition includes NF measurement data which are collected by the data collection part 37A before the point of time of data request issue in the latest time when viewed from the point of time of data request issue.
  • the collection/report control part 36A receives the data request of acquisition operation #8.
  • the collection/report control part 36A sends, to the data report part 38A, the number NF of measurement data and a notification representing that the data request of acquisition operation #8 is received.
  • the data report part 38A starts data report processing in step S83.
  • the data report part 38A refers to the end pointer value.
  • the data report part 38A reports, to the application 33A, NF measurement data in the reverse chronological order (Fig. 18) from the latest measurement data as report data.
  • the data report part 38A sets the start pointer value to the same value as the end pointer value and notifies the collection/report control part 36A that data report is completed.
  • the processing in step S83 is ended.
  • the application 33A can acquire, of the measurement data stored in the temporary storage area 24, a desired number of measurement data acquired recently.
  • the application 33A sends, to the measurement data processing part 35A, a collection operation setting instruction containing a data collection period TP9 as a parameter.
  • a data collection period TP9 a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated, as in (1-2) described above.
  • the measurement data processing part 35A is notified that measurement data which satisfies the data collection condition includes measurement data obtained firstly by after the collection operation setting instruction and subsequent measurement data sequentially obtained at the data collection period TP9.
  • the collection/report control part 36A receives the collection operation setting instruction.
  • the collection/report control part 36A determines whether the sensor unit 25 is operating, as in (l"l) described above, and executes processing corresponding to the determination result.
  • the collection/report control part 36A notifies the data collection part 37A of the data collection condition corresponding to acquisition operation #9. Upon receiving this notification, the data collection part 37A starts data collection processing in step S91.
  • step S91 the same processing as in step S71 in acquisition operation #7 described above is executed except that the data collection period is TP9.
  • Fig. 20 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37A in step S91.
  • the application 33A sends, to the measurement data processing part 35A, a request to request the number of reportable data (to be referred to as the "number of reportable data” or simply as the “number of data” hereinafter) of the measurement data stored in the temporary storage area 24.
  • the coUection/report control part 36A receives the request of the number of reportable data.
  • the collection/report control part 36A notifies the data report part 38A that the request of the number of reportable data is received.
  • the data report part 38A starts data number report processing in step S92.
  • step S92 the same processing as in step S82 in acquisition operation #8 described above is executed.
  • the application 33A Upon receiving the report of the number of reportable data, the application 33A repeatedly determines whether the number of reportable data has reached a desired number NG of measurement data until an affirmative determination result is obtained.
  • the application 33A sends, to the measurement data processing part 35A, a data request of acquisition operation #9 containing the desired number NG of data as a parameter.
  • the measurement data processing part 35A is notified that the measurement, data which satisfies the data report condition includes NG measurement data which are stored in the temporary storage area 24 in the chronological order.
  • the collection/report control part 36A receives the data request of acquisition operation #9.
  • the collection/report control part 36A sends, to the data report part 38A, the number NG of measurement data and a notification representing that the data request of acquisition operation #9 is received. Upon receiving this notification, the data report part 38A starts data report processing in step S93.
  • the data report part 38A refers to the start pointer value.
  • the data report part 38A reports, to the application 33A, NG measurement data in the chronological order (Fig. 20) from the measurement data at the address of the temporary storage area indicated by the start pointer value as report data.
  • the data report part 38A sets the start pointer value to the storage address of the measurement data which is collected following to the latest one of the reported measurement data and notifies the collection/report control part 36A that data report is completed.
  • the processing in step S93 is ended.
  • the application 33A can acquire, of the measurement data stored in the temporary storage area 24, a desired number of measurement data in the chronological order.
  • the application 33A designates the desired number of measurement data as a data report condition and issues a data request.
  • a data request may be issued by designating a desired time interval as a data report condition in place of the desired number of data.
  • the application 33A preferably counts the time from data collection condition setting or issue of the preceding data request instead of requesting the number of reportable data.
  • the data report part 38A can report, to the application 33A, error information representing that a shortage in reportable data.
  • the data report part 38A may report all reportable data at the point of time of data request reception and information representing the number of reported measurement data.
  • the data collection part 37, 37A collects measurement data which satisfy a data collection condition designated by the application 33, 33A and stores the measurement data iri the temporary storage area 24.
  • the data report part 38, 38A notifies the application 33, 33A of data which is stored in the temporary storage area 24 and satisfies a data report condition.
  • the application 33, 33A can acquire desired measurement data while reducing the load on the application 33, 33A.
  • the data report part 38, 38A executes the data report operation.
  • an environment to allow the application 33, 33A to acquire necessary measurement data when it is necessary can be provided to the application 33, 33A.
  • the collection/report control part 36, 36A reports the data collection completion to the application 33, 33A.
  • an environment to allow the application 33, 33A to recognize the data collection completion without monitoring the data collection completion can be provided.
  • the application 33, 33A which has recognized the data collection completion by the data collection completion report can acquire necessary measurement data at a timing convenient for itself.
  • the collection/report control part 36, 36A sends a sensor operation start instruction or sensor operation stop instruction to the sensor unit 25.
  • the sensor unit 25 can be used appropriately and reliably.
  • power consumption by the operation of the sensor unit 25 can be suppressed.
  • the sensor unit 25 is mounted in the cellular phone device 10. Instead, the sensor unit 25 may be arranged outside the cellular phone device 10. The sensor unit 25 and cellular phone device 10 may be connected through an external device connection interface port (not shown) of the cellular phone device 10.
  • the sensor part 26 is a 5-axis sensor to detect the pitch angle ⁇ x, roll angle ⁇ Y, yaw angle Q i,
  • the sensor part 26 may be a 6-axis sensor to additionally detect a Z-direction acceleration a z.
  • a sensor to detect a physical quantity except the attitude angle and acceleration may be used.
  • one application never issues a plurality of acquisition operation instructions to the measurement data processing part 35, 35A simultaneously.
  • one application may issue a plurality of acquisition operation instructions to the measurement data processing part 35, 35A simultaneously.
  • an acquisition operation instruction identifier must be added to the parameters of the acquisition operation instruction.
  • the measurement data processing part 35, 35A must execute the data collection operation and data report operation corresponding to a combination of an application identifier and an acquisition operation instruction identifier.
  • the . operation start request of the sensor unit 25 by the application 33, 33A activation of an application whose management information describes use of the sensor unit 25, a key operation to instruct the operation start of the sensor unit 25, voice input to instruct the operation start of the sensor unit 25, and arrival of time at which the sensor unit should start the operation are employed. Not all but only some of them may be employed as the sensor operation start instruction event. Arrival of a voice or mail message may be employed as the sensor operation start instruction, event. In this case, an off-hook operation by the key operation executed after arrival can be executed by causing the cellular phone device 10 to execute a motion in a predetermined form in place of the key operation.
  • the operation stop request of the sensor unit 25 by the application 33, 33A stop of an application whose management information describes use of the sensor unit 25, a key operation to instruct the operation stop of the sensor unit 25, voice input to instruct the operation stop of the sensor unit 25, and arrival of time at which the sensor unit should stop the operation are employed. Not all but only some of them may be employed as the sensor operation stop instruction event. Arrival of a voice or mail message may be employed as the sensor operation end instruction event. In this case, for example, when the sensor is not used in call reception processing, the operation of the sensor can be stopped before call reception processing with a high priority.
  • a so-called straight-type cellular phone device is used in which the positional relationship between the display unit 13 and the operation unit 12 with a key array is fixed.
  • the present invention can also be applied to a so-called clamshell-type cellular phone device 10' in which a first portion 51 and a second portion 52 can. relatively pivot about an axis AXl serving as an axis of rotation so that the cellular phone device can be folded or unfolded, as shown in Figs. 21A to 21C.
  • the sensor unit 25 can be disposed either on the side of the first portion 51 or on the side of the second portion 52.
  • the folded state can be added as the sensor operation stop instruction event
  • the unfolded state can be added as the sensor operation start instruction event.
  • the present invention can also be applied to a so-called 2-axis rotation-type cellular phone device 10" in which the second portion 52 includes a base portion 53 and a display unit storage unit 54, and the display unit storage unit 54 can rotate at least 180° about an axis AX2 serving as an axis of rotation with respect to the base portion 53, as shown in Figs. 22A to 22C.
  • the sensor unit 25 can be disposed either on the side of the first portion 51 or on the side of the second portion 52.
  • a shape change to make the display surface of the display unit 13 visible can be added as the sensor operation start instruction event
  • a shape change to make the display surface of the display unit 13 invisible can be added as the sensor operation stop instruction event.
  • the present invention can also be applied to a cellular phone device capable of changing its shape, except a so-called clamshell-type cellular phone device, such as a so-called revolver-type cellular phone device in which the display unit side can rotate with respect to the operation unit side about an axis perpendicular to the key array surface of the operation unit or a so-called slide-type cellular phone device in which the display unit side slides with respect to the operation unit side.
  • the sensor unit 25 can be disposed either on the operation unit side or on the display unit side.
  • a shape change by pivot can be detected by a pivot detection means, and a predetermined pivot state can be added as the sensor operation stop instruction event or sensor operation stop instruction event.
  • a shape change by slide can be detected by a slide detection means, and a predetermined slide state can be added as the sensor operation stop instruction event or sensor operation stop instruction event.
  • a shape change can be detected by a shape detection means, and a predetermined shape can be added as the sensor operation stop instruction event or sensor operation stop instruction event.
  • the same reference numerals as in the above- described embodiments denote the same or similar elements in Figs. 21A to 21C and 22A to 22C, and a repetitive description thereof has been omitted.
  • the antenna 17 in the above- described embodiments is housed in the device.
  • the axial direction serving as the reference of measurement in the sensor unit 25 can be determined in correspondence with the location of the sensor unit 25 or the model of the cellular phone.
  • the application 33 may issue a request of the number of reportable data before a data request, as in acquisition operations #8 and #9 of the second embodiment.
  • the present invention is applied to a cellular phone device.
  • the present invention can also be applied to any other portable information device such as a portable game device, car navigation device, or PDA (Personal Digital Assistance), as a matter of course.
  • the data collection method and device of the present invention can be applied to collection of measurement data from a sensor and notification of an application.
  • the mobile terminal device of the present invention can be applied to a portable information device in which an application using measurement data from a sensor is executed.

Abstract

A data collection unit (37) collects measurement data which satisfies a data collection condition designated by an application (33) and stores the measurement data in a temporary storage area (24). The data report unit (38) reports, to the application (33), measurement data which is stored in the temporary storage area (24) and satisfies a data report condition designated by the application (33). As a result, the load on the application 33 using a measurement result by a sensor in measurement data acquisition is reduced.

Description

MEASUREMENT DATA COLLECTION METHOD AND PORTABLE INFORMATION DEVICE
Technical Field The present invention relates to a measurement data collection method and a portable information device and, more particularly, to a measurement data collection method of collecting measurement data from a sensor and notifying an application which uses the measurement data of it and a portable information device which uses the measurement data collection method.
Ba ckgro un d Art
Conventionally, portable information devices represented by cellular phone devices, which are capable of operating while moving, are widely used. Technologies of such portable information devices and, more particularly, cellular phone devices are progressing remarkably, and various kinds of applications including games are also installed.
A portable information device generally incorporates a current position measuring function. There is also a proposal that a device includes a sensor to measure the acceleration acting on it and its attitude angle, and measurement data obtained by the sensor is used in an application. For example, there is proposed a cellular phone device which comprises a sensor to measure the acceleration or angular velocity and displays, on a display means, data about the acceleration or angular velocity measured by the sensor (See patent reference l: to be referred to as "prior art 1" hereinafter).
There is proposed another cellular phone device which comprises a sensor to measure the acceleration, obtains the device's moving locus by using the data of acceleration measured by the sensor, and recognizes the moving locus as an input text (See patent reference 2- to be referred to as
"prior art 2" hereinafter).
Still another cellular phone device has been proposed, which comprises a geomagnetic sensor and can input a numerical value corresponding to a specific azimuth by directing the cellular phone main body to the specific azimuth (See patent reference 3: to be referred to as
"prior art 3" hereinafter).
[Patent Reference 1] Japanese Patent publication No. 2001-272413
[Patent Reference 2] Japanese Patent publication No. 2002-169645 [Patent Reference 3] Japanese Patent publication No. 2003- 111142
Disclosure of Invention <Problem That the Invention Is to Solve>
Prior arts 1 to 3 described above disclose excellent techniques of using a measurement result obtained by a sensor in a cellular phone device. The references which disclose the techniques of prior arts 1 to 3 contain no mention of a method of collecting measurement data by the sensor. However, it seems that an application which uses data corresponding to the measurement result by the sensor collects the measurement data in a form adapted to the use. For this purpose, the application probably executes processing of acquiring desired measurement data while directly controlling the sensor.
In such measurement data acquisition, some kinds of applications only need to acquire one measurement data at a desired point of time, and other types of applications should acquire a plurality of measurement data reported from the sensor time- serially. Alternatively, certain kinds of applications want to acquire measurement data that satisfy a desired condition such as a collection period or data value range.
It produces a heavy load for the application to receive raw measurement data from the sensor and process it to acquire desired measurement data. Hence, a technique capable of reducing the load on the application in acquiring want measurement data has been desired earnestly. The present invention has been made in consideration of the above situations, and has as its object to provide a measurement data collection method capable of reducing load on an application which uses measurement data from a. sensor.
It is another object of the present invention to provide a portable information device capable of executing an application which uses measurement data from a sensor while reducing load on the application.
<Means of Solving the Problem>
According to the first aspect of the present invention, there is provided a measurement data collection method for collecting measurement data corresponding to a measurement result from a sensor and notifying an application operating in a portable information device of the measurement data, the sensor being arranged in the portable information device and measuring attitude angles about three axial directions. of the portable information device, which are perpendicular to each other, and accelerations in at least two of the three axial directions; the method comprising: the condition designation step of causing the application to designate a data collection condition as a condition of measurement data to be collected; the data collection step of collecting measurement data which satisfies the data collection condition and storing the measurement data in temporary storage means; and the data report step of reporting, to the application, measurement data which is stored in the temporary storage means and satisfies a data report condition designated by the application as condition of measurement data to be reported to the application. "Measurement data" is not raw measurement data which is directly output from the sensor. "Measurement data" indicates data having a data format to notify the application, which is obtained by executing offset correction and physical quantity conversion of angles and accelerations for raw measurement data as needed. In this specification, the term "measurement data" is used in this sense.
In this measurement data collection method, first by, in the condition designation step, the application designates a data collection condition as a condition of measurement data to be collected in measurement data from the sensor. Next, in the data collection step, measurement data which satisfies the data collection condition is collected and stored in temporary storage means. In the data report step, measurement data which is stored in the temporary storage means and satisfies a data report condition designated by the application is reported to the application. The data collection condition and data report condition are separately defined, because they are either identical or different. For example, when the application issues a data request, a predetermined number of latest measurement data among measurement data collected until the point of time of the data request, should be reported to the application, the data collection condition and data report condition are different.
As a result, the application only needs to designate the data collection condition to collect measurement data for itself. The application need not execute actual data collection. Only measurement data the application wants to acquire are reported to the application. Hence, according to the measurement data collection method of the present invention, the application can acquire desired measurement data while reducing the load on the application.
The measurement data collection method of the present invention can further comprise the data request step of causing the application to issue a data request with the designated data report condition. The data report step can be executed in response to the data request.
The data collection condition may be a collection period. In this case, after designation of the data collection condition, every time the collection period elapses, measurement data is collected and stored in the temporary storage means.
When the data collection condition is the collection period, the data which satisfies the data report condition may be measurement data which is stored latest in the temporary storage means before the data request. In this case, the application can acquire the latest measurement data which satisfies the data collection condition at the point of time of the data request.
When the data collection condition is the collection period, the measurement data which satisfies the data report condition can be measurement data equal in number to the number of report data designated by the application in a reverse chronological order from a point of time of the data request. In this case, the application may acquire recently collected measurement data equal in number to the desired number of reportable data. The method can further comprise the number-of-reportable-data notification step of notifying the application of the number of reportable data, when a notification request of the number of reportable data including measurement data which are stored in the temporary storage means and exist in the temporary storage means is received from the application between a preceding point of time of the data request and a current point of time. In this case, the application can know the number of reportable data in the temporary storage means before the data request. Accordingly, when reportable data equal to or more than a desired number are confirmed, and then a data request is issued while designating the desired number as the data report condition, the application can reliably acquire the desired number of measurement data.
When the data collection condition is the collection period, the measurement data which satisfies the data report condition' can be, of reportable data which are measurement data stored in the temporary storage means later than measurement data reported in response to a preceding data request and existing in the temporary storage means, measurement data equal in number to the number of reportable data designated by the application in a chronological order from the oldest data. In this case, the temporary storage means can be used as FIFO (First-In Fast-Out) storage means.
The method can further comprise the number-of-reportable-data notification step of notifying the application of the number of reportable data, when a notification request of the number of reportable data is received from the application. In this case, the application can know the number of reportable data in the temporary storage means before the data request. Accordingly, when reportable data equal to or more than a desired number are confirmed, and then a data request is issued while designating the desired number as the data report condition, the application can reliably acquire the desired number of measurement data.
In the measurement data collection method of the present invention, in the condition designation step, the data report condition can additionally be designated. In this case, in the condition designation step, the application designates both of the data collection condition and the data report condition.
The data report step can be executed immediately after the measurement data which satisfies the data collection condition is newly stored in the temporary storage means, when the following requirements are satisfied: l) the measurement data which satisfies the data collection condition can be measurement data corresponding to a measurement result which is noticed from the sensor for the first time after designation of the data collection condition and the data report condition,' 2) the measurement data which satisfies the data report condition can be measurement data which satisfies the data collection condition. In this case, after the data collection condition and the data report condition are designated by the application, measurement data corresponding to the measurement result sent from the sensor for the first time is collected and immediately reported to the application. In the data report step, every time the measurement data which satisfies the data collection condition is newly stored in the temporary storage means, the stored measurement data can immediately be reported to the application, when the following requirements are satisfied: l) the data collection condition can include threshold information indicating a data value range which is a range of a value of measurement data to be collected and one of a collection time and the number of collection data after designation of the data collection condition; 2) the measurement data which satisfies the data report condition can be measurement data which satisfies the data collection condition. In this case, measurement data in the data value range defined by the threshold information is collected and immediately reported to the application during a period after the data collection condition and the data report condition are designated by the application in the condition designation step until one of the forward limit time and the maximum number of collection data, which is designated by a parameter in the data collection condition, is reached.
When the data collection condition and the data report condition are designated in the condition designation step, the method can further comprise the data request step of causing the application to issue a data request. The data report step can be executed in response to the data request. In this .case, measurement data necessary for the application is reported in response to the data request issued by the application when it desires measurement data. For this reason, the application can acquire necessary measurement data at a necessary timing. The data collection condition can include a collection period. The measurement data which satisfies the data report condition can be one of measurement data collected within a limit time in a reverse chronological order from a point of time of the data request and measurement data within the maximum number of report data in the reverse chronological order from the point of time of the data request. In this case, after designation of the data collection condition and the data report condition, every time the collection period elapses, measurement data is collected and stored in the temporary storage means in the data collection step. Measurement data which satisfies the data report condition is then reported to the application.
In this case, the method may further comprise the number-of-reportable-data notification step of notifying the application of the number of reportable data, when a notification request of the number of reportable data including measurement data which are stored in the temporary storage means and exist in the temporary storage means, is received from the application between a preceding point of time of the data request and a current point of time.
When the data collection condition and the data report condition are designed in the condition designation step, the method may further comprise the data collection completion report step of reporting data collection completion to the application, when storage of the measurement data which satisfies the data collection condition in the temporary storage means is ended. The application which has received the report of the data collection completion may issue the data request in the data request step. In this case, the data collection completion is reported to the application in the data collection completion report step. For this reason, the application can recognize the data collection completion without monitoring the data collection completion. The application which has recognized the data collection completion by the data collection completion report can acquire necessary measurement data at a timing convenient for itself.
The data collection condition can include a collection period and either a collection time or the number of collection data. The measurement data which satisfies the data report condition can be measurement data which satisfies the data collection condition. In this case, after designation both of the data collection condition and the data report condition, every time the collection period elapses, measurement data is collected and stored in the temporary storage means in the data collection step. When collection of measurement data which satisfies the data collection condition and storage in the temporary storage means are completed, the application is notified of the data collection completion in the data collection completion report step. When the application which has received the report issues a data request, the measurement data stored in the temporary storage means are reported to the application in the data report step. The data collection condition can include a collection period, start threshold information indicating a range of a value of measurement data as a condition for a start of data collection, and either a collection time or the number of collection data after designation of the data collection condition. The measurement data which satisfies the data report condition can be measurement data which satisfies the data collection condition. In this case, when measurement data in the data value range defined by the start threshold information is generated, the measurement data is collected and stored in the temporary storage means every time the collection period elapses until the collection time or the number of collection data is reached. When collection of measurement data which satisfies the data collection condition and storage in the temporary storage means are completed, the application is notified of the data collection completion in the data collection completion report step. When the application which has received the report issues a data request, the measurement data stored in the temporary storage means are reported to the application in the data report step.
The data collection condition can include a collection period and end threshold information indicating a range of a value of measurement data as a condition for an end of data collection. The measurement data which satisfies the data report condition may be one of measurement data collected within a limit time in a reverse chronological order from a point of the end of data collection and measurement data within the maximum number of data in the reverse chronological order from the point of time of the end of data collection.
In this case, after designation of the data collection condition and the data report condition, every time the collection period elapses, measurement data is collected and stored in the temporary storage means in the data collection step. When measurement data in the data value range defined by the end threshold information is generated, the collection operation is ended. When collection of measurement data which satisfies the data collection condition and storage in the temporary storage means are completed, the application is notified of the data collection completion in the data collection completion report step. When the application which has received the report issues a data request, of the measurement data stored in the temporary storage means, measurement data which satisfy the data report condition are reported to the application in the data report step.
The threshold information can contain a threshold value and information representing whether the value of measurement data to be collected is larger or smaller than the threshold value. In this case, the range of the value of measurement data desired by the application can finely be designated. When the measurement data contains a plurality of measurement results, threshold information can independently be designated for each of the plurality of measurement results.
In the measurement data collection method of the present invention, when a plurality of data collection conditions are designated, and data collection must be executed at a plurality of different collection periods, in the data collection step, the measurement data can be stored in the temporary storage means at a time interval corresponding to a value of a greatest common divisor related to values of the plurality of data collection periods. In this case, even when a plurality of data collection conditions having different parameter values of periods are designated, all measurement data to be collected can be collected and stored in the temporary storage means.
In the measurement data collection method of the present invention, when the application is abnormally terminated during execution of the data collection step, a basic processing part to manage the application can issue an instruction to stop execution of the data collection step. In this case, even when the application is abnormally terminated without ending the data collection operation after the start of the data collection operation, the basic processing part stops the data collection step. Hence, continuous execution of unnecessary data collection can be prevented.
The measurement data collection method of the present invention can further comprise the sensor operation start instruction event detection step of detecting occurrence of a sensor operation start instruction event to instruct a start of an operation of the sensor, and the sensor operation start step of starting the operation of the sensor. In this case, the operation of the sensor is started in the sensor operation start step in response to detection of the sensor operation start instruction event in the sensor operation start instruction event detection step. Hence, the operation of the sensor can appropriately be started when it is assumed in advance that the operation start of the sensor is necessary or when the user determines that the operation start of the sensor is necessary.
The sensor operation start instruction event can include at least one event selected from the group consisting of an operation start request of the sensor from the application, activation of the application, a key operation to instruct to start the operation of the sensor, voice input to instruct to start the operation of the sensor, arrival of time at which the sensor should start the operation, and detection of a state to make the sensor operate depending on the shape of the device in which the sensor is implemented. The "arrival of time" includes arrival of time when an elapse of a predetermined time from a point of time is designated at the point of time, and the predetermined time elapses, in addition to arrival of time explicitly designated in advance. In this specification, the term "arrival of time" is used in this sense. When the measurement data collection method of the present invention is used in a mobile communication terminal device, the sensor operation start instruction event can include a call reception event. In this case, for example, an off-hook operation which is normally executed by the key operation after arrival can be executed by only causing the mobile communication terminal device to execute a motion in a predetermined form.
The measurement data collection method of the present invention can further comprise the sensor operation stop instruction event detection step of detecting occurrence of a sensor operation stop instruction event to instruct a stop of an operation of the sensor, and the sensor operation stop step of stopping the operation of the sensor. In this case, the operation of the sensor is stopped in the sensor operation stop step in response to detection of the sensor operation stop instruction event in the sensor operation stop instruction event detection step. Hence, the operation of the sensor can appropriately be stopped when it is assumed in advance or the user determines that the operation of the sensor is unnecessary. As a consequence, power consumption by unnecessary sensor operation can be prevented. The sensor operation stop instruction event can include at least one event selected from the group consisting of an operation stop request of the sensor from the application, stop of the application, a key operation to instruct to stop the operation stop of the sensor, voice input to instruct to stop the operation of the sensor, arrival of time at which the sensor should stop the operation, and detection of a state to make the sensor stop the operation depending on the shape of the device in which the sensor is implemented.
When the measurement data collection method of the present invention is used in a mobile communication terminal device, the sensor operation stop instruction event can include a call reception event. In this case, for example, when the sensor is not used in call reception processing, the operation of the sensor can be stopped before call reception processing with a high priority.
According to the second aspect of the present invention, there is provided a portable information device comprising^ a sensor which measures attitude angles about three axial directions perpendicular to each other and accelerations in at least two of the three axial directions," temporary storage means for temporarily storing measurement data," data collection means for collecting measurement data which satisfies a data collection condition designated by an application as a condition of data to be collected in the measurement data from the sensor and storing the measurement data in the temporary storage means," and data report means for notifying the application of the measurement data which is stored in the temporary storage means and satisfies a data report condition designated by the application.
In the portable information device, the data collection means collects measurement data which satisfies the data collection condition designated by the application and stores the measurement data in the temporary storage means. The data report means notifies the application of data which is stored in the temporary storage means and satisfies the data report condition.
That is, the portable information device of the present invention can collect measurement data and report, to the application, measurement data to be reported by using the above-described measurement data collection method of the present invention. According to the portable information device of the present invention, the application can acquire desired measurement data while reducing the load on the application.
In the portable information device of the present invention, the data report means can notify the application of the data which is stored in the temporary storage means and satisfies the data report condition in response to a data request issued by the application. In this case, the data report means notifies the application of necessary data in response to the data request issued by the application when measurement data is necessary. Hence, an environment to allow the application to acquire necessary measurement data when it is necessary can be provided.
The device can further comprise data collection completion report means for reporting data collection completion to the application, when storage of the measurement data which satisfies the data collection condition in the temporary storage means is ended. In this case, the data collection completion report means reports the data collection completion to the application. For this reason, an environment which allows the application to recognize the data collection completion without monitoring the data collection completion can be provided. As a result, the application which has recognized the data collection completion by the data collection completion report can acquire necessary measurement data at a timing convenient for itself.
The portable information device of the present invention may further comprise sensor operation start means for starting an operation of the sensor when occurrence of a sensor operation start event to instruct a start of the operation of the sensor is detected. In this case, the operation of the sensor can appropriately be started when it is assumed in advance or the user determines that the operation start of the sensor is necessary. The sensor operation start instruction event can include at least one event selected from the group consisting of an operation start request of the sensor by the application, activation of the application, a key operation to instruct to start the operation of the sensor, voice input to instruct to start the operation of the sensor, arrival of time at which the sensor should start the operation, and detection of a state to make the sensor operate depending on the shape of the device in which the sensor is implemented.
The device can further comprise sensor operation stop means for stopping an operation of the sensor when occurrence of a sensor operation stop event to instruct a stop of the operation of the sensor is detected. In this case, the operation of the sensor can appropriately be stopped when it is assumed in advance or the user determines that the operation of the sensor is unnecessary. As a consequence, power consumption by unnecessary sensor operation can be prevented.
The sensor operation stop instruction event can include at least one event selected frpm the group consisting of an operation stop request of the sensor by the application, stop of the application, a key operation to instruct to stop the operation of the sensor, voice input to instruct to stop the operation of the sensor, arrival of time at which the sensor should stop the operation, and detection of a state to make the sensor stop the operation depending on the shape of the device in which the sensor is implemented.
When the sensor is arranged in a mobile communication terminal device, a call reception event can be used as the sensor operation start instruction event or sensor operation stop instruction event.
The portable information device of the present invention can further comprise a radio communication part to communicate with a base station of a mobile communication network. That is, the mobile terminal device of the present invention can be a mobile communication terminal device. As described above, according to the measurement data collection method of the present invention, the load on the application which uses measurement data from the sensor can be reduced.
As described above, according to the portable information device of the present invention, the load on the application which uses measurement data from the sensor can be reduced.
Brief Description of the Drawings
Fig. IA is a view schematically showing the outer appearance of the front side of a cellular phone device according to an embodiment of the present invention;
Fig. IB is a view schematically showing the outer appearance of the rear side of the cellular phone device according to the first embodiment of the present invention;
Fig. 2 is a functional block diagram for explaining the arrangement of the cellular phone device according to the first embodiment of the present invention;
Fig. 3 is a block diagram for explaining the arrangement of software to be executed by the control unit of the cellular phone device according to the first embodiment of the present invention;
Fig. 4 is a sequence chart for explaining processing in acquisition operation #1;
Fig. 5 is a sequence chart for explaining processing in acquisition operation #2; Fig. 6 is a view for explaining data collection in acquisition operation
#2;
Fig. 7 is a sequence chart for explaining processing in acquisition operation #3;
Fig. 8 is a view for explaining data collection in acquisition operation #3;
Fig. 9 is a sequence chart for explaining processing in acquisition operation #45
Fig. 10 is a sequence chart for explaining processing in acquisition operation #5; Fig. 11 is a view for explaining data collection in acquisition operation
#5;
Fig. 12 is a sequence chart for explaining processing in acquisition operation #6;
Fig. 13 is a view for explaining data collection in acquisition operation #6;
Fig. 14 is a block diagram for explaining the arrangement of software to be executed by the control unit of a cellular phone device according to the second embodiment of the present invention;
Fig. 15 is a sequence chart for explaining processing in acquisition operation #7;
Fig. 16 is a view for explaining data collection in acquisition operation #7;
Fig. 17 is a sequence chart for explaining processing in acquisition operation #8;
Fig. 18 is a view for explaining data collection in acquisition operation
#8;
Fig. 19 is a sequence chart for explaining processing in acquisition operation #9; Fig. 20 is a view for explaining data collection in acquisition operation
#9;
Fig. 21A is a front view showing the outer appearance of the cellular phone device; (l) for explaining a modification,*
Fig. 21B is a right side view showing the outer appearance of the cellular phone device; (l) for explaining a modification;
Fig. 21C is a rear view showing the outer appearance of the cellular phone device; (l) for explaining a modification!
Fig. 22A is a front view showing the outer appearance of the cellular phone device; (2) for explaining another modification; Fig. 22B is a right side view showing the outer appearance of the cellular phone device; (2) for explaining another modification; and
Fig. 22C is a rear view showing the outer appearance of the cellular phone device; (2) for explaining another modification.
Best Mode for Carrying Out the Invention
<First Embodiment>
The first embodiment of the present invention will.be described below with reference to Figs. IA to 13. The same reference numerals denote the same or similar elements throughout the drawings, and a repetitive description thereof will be omitted.
<Device Arrangement>
Figs. IA and IB schematically show the outer appearance of a cellular phone device 10 serving as a mobile terminal device. Fig. IA is a front view showing the outer appearance of the cellular phone device 10. Fig. IB is a rear view showing the outer appearance of the cellular phone device 10.
As comprehensively shown in Figs. IA and IB, the cellular phone device 10 comprises (a) a cellular phone main body 11, (b) an operation unit 12 having a ten-key pad to input a telephone number and function keys to input various kinds of instructions for, e.g., operation mode switching to a control unit 21 (to be described later; Fig. 2), and (c) a display unit 13 having a liquid crystal display device to display an operation guide, operation status, and received message. The cellular phone device 10 also comprises (d) a talking speaker 14 which reproduces a voice signal sent from a communication partner in speech communication, (e) a microphone 15 to input sound in sound collection or voice in speech communication, (f) a guidance speaker 16 to generate a ringing tone or guidance sound, and (g) an antenna 17 to transmit/receive a radio signal to/from a base station. As shown in Fig. 2, the cellular phone main body 11 incorporates (i) the control unit 21 which includes a timepiece device 29 and collectively controls the operation of the entire cellular phone device 10, (ii) a transmission/reception unit 22 which transmits/receives a radio signal to/from a base station through the antenna 17, and (iii) a storage unit 23 having, a read only memory (ROM) device or random access memory (RAM) device to store programs to be executed by the control unit 21 and various kinds of data. The cellular phone main body 11 also incorporates (iv) a sensor unit 25 to measure the attitude angle of the cellular phone device 10 and an acceleration acting on it. The storage, unit 23 includes a temporary storage area 24 to temporarily store collected measurement data.
The sensor unit 25 comprises a sensor part 26 which detects the attitude angle of the cellular phone device 10 and an acceleration acting on it and outputs the data as an analog voltage signal, and an analog-to- digital (AJO) converter 27 which converts the voltage value of the voltage signal from the sensor part 26 into a digital value. The digital data output from the A/D converter 27 is sent to the control unit 21 as measurement data. The sensor unit 25 starts the operation in response to a measurement start instruction from the control unit 21 and stops the operation in response to a measurement stop instruction from the control unit 21.
The sensor part 26 defines the row direction of the matrix key array of the operation unit 12 as the X-axis and the column direction as the Y-axis. In this embodiment, the reference attitude is set such that the X-Y plane is parallel to the horizontal plane, and the +Y direction matches the true north. The sensor part 26 detects a rotation angle (pitch angle θ x) about the X- axis from the reference attitude, a rotation angle (roll angle θ Y) about the Y-axis, and a rotation angle (yaw angle θ z) about the Z-axis parallel to the vertical direction. The sensor part 26 also detects an X-direction acceleration ( a x) and a Y-direction acceleration ( a Y). The sensor unit 25 notifies the control unit 21 of, as measurement data, a set of pitch angle θ x, roll angle θ Y, yaw angle θ z, X^direction acceleration a x, and Y"direction acceleration a Y detected at each measurement point. The control unit 21 comprises a central processing unit (CPU) and a digital signal processor (DSP). The control unit 21 executes various data processing operations and controls the operations of the remaining constituent elements described above to implement a general cellular phone function. Fig. 3 shows the arrangement of software such as a program to be executed by the control unit 21.
The software to be executed by the control unit 21 includes (i) a basic processing part 31 which implements a speech communication function, mail function, and character input function, i.e., the basic functions of the cellular phone and controls the above-described various kinds of hardware resources, and (ii) an application 33 to provide various contents such as a game to the user. The application 33 uses a measurement result obtained by the sensor unit 25.
The basic processing part 31 comprises a measurement data processing part 35. The measurement data processing part 35 comprises (i) a collection/report control part 36 which processes commands from the application 33 and controls the measurement operation of the sensor unit 25 and the entire measurement data processing part 35, and (ii) a data collection part 37 which stores, in the temporary storage area 24 of the storage unit 23 described above, measurement data that satisfies a data collection condition designated by the application 33. The measurement data processing part 35 also comprises (iii) a data report part 38 which reports, to the application 33, measurement data that satisfies a data report condition designated by the application 33, of the measurement data stored in the temporary storage area 24.
The data collection part 37 has offset correction information measured in advance, and physical quantity conversion information to convert offset- corrected data into data which directly reflects a physical quantity such as an angle or acceleration. The data collection part 37 executes offset correction and physical quantity conversion sequentially for raw measurement data from the sensor unit 25, thereby calculating measurement data.
When collection of measurement data which satisfies the data collection condition is completed, the data collection part 37 notifies the collection/report control part 36 of it. Upon receiving the notification, the collection/report control part 36 reports the completion of collection of measurement data satisfying the data collection condition to the application 33 if it has been designated by the application 33 that the completion of data collection should be reported.
In storing data in the temporary storage area 24, the data collection part 37 uses the temporary storage area 24 as a ring buffer. That is, the data collection part 37 sequentially updates the storage address of the temporary storage area 24 every time data is stored. When the data is stored up to the final address of the temporary storage area 24, data is newly stored from the start address of the temporary storage area 24.
The basic processing part 31 analyzes key input by the user. When the key input indicates the operation start instruction or operation stop instruction for the sensor unit 25, the collection/report control part 36 is notified of it.
Except the speech communication mode, the basic processing part 31 supports specific command input including the operation start instruction input and operation stop instruction input for the sensor unit 25 by user's voice input through the microphone 15. When the command input by voice indicates the operation start instruction or operation stop instruction for the sensor unit 25, the collection/report control part 36 is notified of it.
When the operation start or stop time of the sensor unit 25 is detected by time count of the timepiece device 29, the collection/report control part 36 is notified of it. Setting of time count by the timepiece device 29 is done by user's key input or a request from the application 33.
The basic processing part 31 executes so-called task management and activates or stops the application. In application activation processing, the basic processing part 31 determines on the basis of management information held by the application to be activated whether the application should use the sensor unit 25. If the determination result is affirmative, the collection/report control part 36 is notified that the sensor should be activated almost simultaneously with activation of the application. Even in application stop processing, the basic processing part 31 executes the same determination. If the determination result is affirmative, the collection/report control part 36 is notified that the sensor should be stopped almost simultaneously with stop of the application.
Even when the application management information does not indicate the use of the sensor unit 25, the application can use the sensor unit 25 by issuing, to the collection/report control part 36, an operation start request or stop request of the sensor unit 25.
When the operation start instruction event or operation stop instruction event of the sensor unit 25 has occurred, and the collection/report control part 36 is notified of it, the collection/report control part 36 sends a sensor operation start instruction or sensor operation stop instruction to the sensor unit 25. When the collection/report control part 36 is notified of the operation start instruction event during the operation of the sensor unit 25, no new sensor operation start instruction is sent to the sensor unit 25. When the collection/report control part 36 is notified of the operation stop instruction event in the stopped state of the sensor unit 25, no new sensor operation stop instruction is sent to the sensor unit 25.
<Measurement Data Collection and Report Operation> A measurement data collection operation and a measurement data report operation to the application 33 in this embodiment will be described next. Assume that the application 33 is already activated.
(l-l) Immediate Acquisition of One Data (Acquisition Operation #l) In acquisition operation #1, as shown in Fig. 4, the application 33 sends, to the measurement data processing part 35, an acquisition operation #1 setting instruction containing an application identifier as a parameter. With the acquisition operation #1 setting instruction, the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition is the first measurement data obtained after the acquisition operation #1 setting instruction. In addition, the measurement data processing part 35 is notified that measurement data which satisfies the data report condition is the first measurement data stored in the temporary storage area 24 after the acquisition operation #1 setting instruction.
In the measurement data processing part 35, the collection/report control part 36 receives the acquisition operation #1 setting instruction. The collection/report control part 36 determines whether the sensor unit 25 is operating. More specifically, when the above-described sensor operation start event has occurred before, and the sensor unit 25 has already started the operation in accordance with the sensor operation start instruction from the collection/report control part 36 and is continuously operating, the determination result is affirmative. If the determination result is negative, the collection/report control part 36 sends the sensor operation start instruction to the sensor unit 25. That is, in this case, the collection/report control part 36 interprets that the acquisition operation #1 setting instruction also serves as a sensor operation start request. Upon receiving the sensor operation start instruction, the sensor unit 25 starts the sensor operation. A detection result by the sensor part 26 is converted into digital data by the A/D converter 27 and output to the control unit 21 (more specifically, the data collection part 37) periodically (e.g., at a period of 1 msec) as raw measurement data. The collection/report control part 36 notifies the data collection part 37 of the data collection condition of acquisition operation #1 together with measurement data format information and the application identifier of the application 33. Upon receiving this notification, the data collection part 37 starts data collection processing in step SIl.
In step SIl, upon receiving the first raw measurement data from the sensor unit 25, the data collection part 37 sequentially executes offset correction and physical quantity conversion to calculate measurement data corresponding to the raw measurement data. The data collection part 37 stores the calculated measurement data in the temporary storage area 24 together with time stamp information. The data collection part 37 sends, to the collection/report control part 36, a notification representing that collection of measurement data satisfying the data collection condition corresponding to acquisition operation #1 is completed, together with the application identifier and the storage address of the measurement data in the temporary storage area 24. The processing in step SIl is ended.
Upon receiving the notification representing that the data collection operation corresponding to acquisition operation #1 is completed, the collection/report control part 36 notifies the data report part 38 of the data report condition of acquisition operation #1 together with the storage address of the measurement data and the application identifier of the application 33, which are received from the data collection part 37. Upon receiving this notification, the data report part 38 starts data report processing in step S 12. In step S 12, the data report part 38 reads out the measurement data to be reported to the application 33 from the temporary storage area 24 by using the storage address received from the collection/report control part 36. Then, the data report part 38 reports the readout measurement data to the application 33 by using the application identifier received from the collection/report, control part 36. The data report part 38 notifies the collection/report control part 36 that data report is completed. The processing in step S12 is ended.
When the processing of acquisition operation #1 is executed in the above-described way, the application 33 can immediately acquire the first measurement data obtained after the acquisition operation #1 setting instruction which is issued at a desired point of time and also serves as a data request.
After the collection/report control part 36 issues the sensor operation start instruction, the sensor unit 25 continuously executes the sensor operation and outputs raw measurement data periodically independently of whether data collection is executed by the data collection part 37. The sensor operation is stopped when the sensor operation stop instruction is issued from the collection/report control part 36 in response to occurrence of the above-described sensor operation stop event. Referring to Fig. 4, as a form example of sensor operation stop, the application 33 sends a sensor operation stop request to the measurement data processing part 35 at a desired point of time. If abnormal termination has occurred with neither issue of the sensor operation stop request by the application 33 nor occurrence of the above-described sensor operation stop event, the basic processing part 31 which monitors execution of the application 33 requests the collection/report control part 36 to stop the sensor operation. Then, the sensor operation stop instruction is issued from the collection/report control part 36. This sensor operation stop method is also used when the sensor operation starts in acquisition operations #2 to #9 to be described later.
(1-2) Immediate Batch Acquisition of Multiple Data (Acquisition Operation #2)
In acquisition operation #2, as shown in Fig. 5, the application 33 sends, to the measurement data processing part 35, an acquisition operation #2 setting instruction containing an application identifier, data collection period TP2, and maximum number NM of notification data (or maximum notification time TM) as parameters. As the data collection period TP2, a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated.
With the acquisition operation #2 setting instruction, the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition includes the first measurement data received from the sensor unit 25 after the acquisition operation #2 setting instruction and subsequent measurement data obtained at the data collection period TP2. In addition, the measurement data processing part 35 is notified that measurement data which satisfies the data report condition includes measurement data which are collected by the data collection part 37 before data request to be issued by the application 33 later and whose number is equal to or smaller than the maximum number NM of notification data of measurement data collected at the latest timing when viewed from the data request issue timing (or measurement data collected within the maximum notification time TM in a reverse chronological order from the data request issue timing).
In the measurement data processing part 35, the collection/report control part 36 receives the acquisition operation #2 setting instruction. The collection/report control part 36 determines whether the sensor unit 25 is operating, as in (l-l) described above, and executes processing corresponding to the determination result.
The collection/report control part 36 notifies the data collection part 37 of the data collection condition corresponding to acquisition operation #2 together with the application identifier of the application 33. Upon receiving this notification, the data collection part 37 starts data collection processing in step S21.
In step S21, upon receiving raw measurement data from the sensor unit 25 for the first time, the data collection part 37 calculates measurement data corresponding to the first raw measurement data, as in (l- l). The data collection part 37 stores the calculated measurement data in the temporary storage area 24 together with time stamp information. Every time raw measurement data is received from the sensor unit 25 at the period TP2, measurement data corresponding to the raw measurement data is. calculated and sequentially stored in the temporary storage area 24 together with time stamp information. Every time new measurement data is stored in the temporary storage area 24, the data collection part 37 notifies the collection/report control part 36 of the storage address of the data. Fig. 6 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37 in step S21. Fig. 6 shows a case wherein the data collection part 37 is notified of only the data collection condition according to the above-described acquisition operation #2 setting instruction by the application 33.
Referring back to Fig. 5, at a desired point of time during data collection by the data collection part 37, the application 33 sends a data request containing the application identifier as a parameter to the measurement data processing part 35. In the measurement data processing part 35, the collection/report control part 36 receives the data request. The collection/report control part 36 notifies the data report part 38 of the data report condition designated by the above-described acquisition operation #2 setting instruction together with the application identifier of the application 33 and the latest measurement data storage address in the temporary storage area 24. Upon receiving this notification, the data report part 38 starts data report processing in step S22]..
In step S22i, the data report part 38 extracts measurement data satisfying the data report condition from the temporary storage area 24 on the basis of the current time, the data collection period TP2, the maximum number NM of notification data (or maximum notification time TM), the latest measurement data storage address in the temporary storage area 24, and time stamp information for each measurement data stored in the temporary storage area 24 (Fig. 6). Subsequently, the data report part 38 time-serially reports the extracted measurement data to the application 33 as report data. The data report part 38 notifies the collection/report control part 36 that data report is completed. The processing in step S22i is ended.
When the processing of acquisition operation #2 is executed in the above-described way, the application 33 can immediately acquire, at once, measurement data which satisfy a notification condition designated by the acquisition operation #2 setting instruction issued before by issuing a data request at a desired point of time.
In acquisition operation #2, data collection processing in step S21 is executed in parallel to the data report processing in step S22i and also continuously executed even after the data report processing in step S22i is ended. For this reason, after acquisition operation #2 is set, the application 33 can immediately acquire, at once, measurement data which satisfy a notification condition designated by the acquisition operation #2 setting instruction issued before by issuing a data request any number of times (twice in the example shown in Fig. 5) at desired points of time. The data collection processing in step S21 is ended when the application 33 issues a data collection stop request at a desired timing. If abnormal termination has occurred without any issue of the data collection stop request by the application 33, the basic processing part 31 which monitors execution of the application 33 issues a data collection stop request to the collection/report control part 36 to end the data collection processing in step S21. This collection operation stop method also applies to acquisition operations #3 to #6 to be described later.
(1-3) First Conditional Acquisition (Acquisition Operation #3) In acquisition operation #3, as shown in Fig. 7, the application 33 sends, to the measurement data processing part 35, an acquisition operation #3 setting instruction containing an application identifier, data collection period TP3, and maximum number NA of collection data (or maximum collection time TA) as a collection limit condition as parameters. As the data collection period TP3, a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated, as in (1-2) described above.
With the acquisition operation #3 setting instruction, the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition includes the first measurement data received from the sensor unit 25 after the acquisition operation #3 setting instruction and subsequent measurement data obtained at the data collection period TP3, whose number is equal to or smaller than the maximum number NA of collection data (or which are collected within the maximum collection time TA after the acquisition operation #3 setting instruction). In addition, the measurement data processing part 35 is notified that measurement data which satisfies the data report condition includes measurement data which are collected by the data collection part 37 in accordance with the acquisition operation #3 setting instruction. In the measurement data processing part 35, the collection/report control part 36 receives the acquisition operation #3 setting instruction. The collection/report control part 36 determines whether the sensor unit 25 is operating, as in (l-l) described above, and executes processing corresponding to the determination result. The collection/report control part 36 notifies the data collection part 37 of the data collection condition together with the application identifier. Upon receiving this notification, the data collection part 37 starts data collection processing in step S31. In step S31, upon receiving the first raw measurement data from the sensor unit 25, the data collection part 37 calculates measurement data corresponding to the first raw measurement data, as in (l-l) described above. The data collection part 37 stores the calculated measurement data in the temporary storage area 24 together with time stamp information. Every time raw measurement data is received from the sensor unit 25 at the period TP3, measurement data corresponding to the raw measurement data is calculated and sequentially stored in the temporary storage area 24 together with time stamp information. Every time new measurement data is stored in the temporary storage area 24, the data collection part 37 notifies the collection/report control part 36 of the storage address of the data.
Fig. 8 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37 in step S31. Fig. 8 shows a case wherein the data collection part 37 is notified of only the data collection condition according to the above-described acquisition operation #3 setting instruction by the application 33.
Assume that the maximum number NA of collection data is designated. In this case, the data collection part 37 ends data collection when the number of collected measurement data reaches the maximum number NA of collection data. Assume that the maximum collection time TA is designated.. In this case, the data collection part 37 ends data collection when the maximum collection time TA elapses from the. notification of the application identifier and a data collection condition corresponding to acquisition operation #3. When data collection is ended, the data collection part 37 sends, to the collection/report control part 36, a notification representing that collection of measurement data satisfying the data collection condition corresponding to acquisition operation #3 is completed, together with the application identifier. The processing in step S31 is ended.
Upon receiving the notification representing the completion of data collection corresponding to acquisition operation #3, the collection/report control part 36 notifies the application 33 of it. Upon receiving this notification, the application 33 sends a data request containing the application identifier as a parameter to the measurement data processing part 35. In the measurement data processing part 35, the collection/report control part 36 receives the data request. The collection/report control part 36 notifies the data report part 38 of the data report condition together with the application identifier of the application 33 and the first and last storage addresses, in the temporary storage area 24, of measurement data collected by the data collection part 37 in accordance with acquisition operation #3. Upon receiving this notification, the data report part 38 starts data report processing in step S32.
In step S32, the data report part 38 extracts measurement data satisfying the data report condition from the temporary storage area 24 on the basis of the first and last measurement data storage addresses in the temporary storage area 24 in accordance with acquisition operation #3, the data collection period TP3, and time stamp information for each measurement data stored in the temporary storage area 24 (Fig. 8). The data report part 38 reports the extracted measurement data to the application 33 as report data. The data report part 38 notifies the collection/report control part 36 that data report is completed. The processing in step S32 is ended.
When the processing of acquisition operation #3 is executed in the above- described way, the application 33 can acquire measurement data which are collected after the acquisition operation #3 setting instruction at the desired data collection period TP3 in number equal to or smaller than the number NA (or measurement data collected within the desired collection time TA). When data collection corresponding to the acquisition operation #3 setting instruction is completed, the data collection completion is reported to the application 33. When a data request is issued after the data collection completion report, measurement data collected in accordance with the acquisition operation #3 setting instruction can be acquired.
(1-4) Second Conditional Acquisition (Acquisition Operation #4)
In acquisition operation #4, as shown in Fig. 9, the application 33 sends, to the measurement data processing part 35, an acquisition operation #4 setting instruction containing an application identifier, threshold information, and maximum number NB of collection data (or maximum collection time TB) as a collection limit condition as parameters. Threshold information can be designated for each of the pitch angle θ x, roll angle θ Y, yaw angle θ z, X-direction acceleration α x, and Y- direction acceleration oi γ contained on one measurement data. The threshold information contains a threshold value and a designation for whether the data range of measurement data to be acquired is a range to which a value larger than the threshold value belongs or a range to which a value smaller than the threshold value belongs. The threshold value also contains a designation for whether the threshold value is set for a change value from the value of the first measurement data. Even in acquisition operations #5 and #6 to be described later, these pieces of information are contained in the threshold information.
With the acquisition operation #4 setting instruction, the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition includes measurement data (to be referred to as "threshold-exceeding data" hereinafter) satisfying the threshold information, which are received from the sensor unit 25 after the acquisition operation #4 setting instruction and whose number is equal to or smaller than the maximum number NB of collection data (or which are collected within the maximum collection time TB after the acquisition operation #4 setting instruction). In addition, the measurement data processing part 35 is notified that measurement data which satisfies the data report condition includes measurement data which are collected by the data collection part 37 in accordance with the acquisition operation #4 setting instruction.
In the measurement data processing part 35, the collection/report control part 36 receives the acquisition operation #4 setting instruction. The collection/report control part 36 determines whether the sensor unit 25 is operating, as in (l-l) described above, and executes processing corresponding to the determination result.
The collection/report control part 36 notifies the data collection part 37 of the data collection condition of acquisition operation #4 together with the application identifier of the application 33. Upon receiving this notification, the data collection part 37 starts data collection processing in step S41.
In step S41, upon receiving raw measurement data from the sensor unit 25, the data collection part 37 calculates measurement data corresponding to the raw measurement data, as in (l-l) described above. The data collection part 37 determines whether the calculated measurement data is threshold" exceeding data. If the determination result is negative, the data collection part 37 waits for the next raw measurement data. If the determination result is affirmative, the data collection part 37 stores the threshold-exceeding data in the temporary storage area 24 together with time stamp information. The data collection part 37 sends, to the collection/report control part 36, a notification representing the collection of threshold-exceeding data together with the application identifier and the measurement data storage address in the temporary storage area 24. After that, the data collection part 37 waits for the next raw measurement data.
Until NB threshold- exceeding data are collected (or until the time TB elapses after the notification of the data collection condition of acquisition operation #4), the data collection part 37 executes the data collection processing in step S41.
Every time the notification representing collection of threshold-exceeding data is received, the collection/report control part 36 notifies the data report part 38 of the data report condition of acquisition operation #4 together with the threshold-exceeding data storage address and the application identifier of the application 33, which are received from the data collection part 37. Upon receiving this notification, the data report part 38 starts data report processing in step S42j (j = 1, 2,....) In step S42j, the data report part 38 reads out the threshold-exceeding data to be reported to the application 33 from the temporary storage area 24 by using the threshold- exceeding data storage address received from the collection/report control part 36. The data report part 38 reports the readout threshold-exceeding data to the application 33 by using the application identifier received from the collection/report control part 36. The data report part 38 notifies the collection/report control part 36 that data report is completed. The processing in step S42j is ended.
When the processing of acquisition operation #4 is executed in the above-described way, the application 33 can immediately acquire measurement data which satisfies desired threshold information, i.e., threshold-exceeding data within a range satisfying the collection limit condition every time threshold-exceeding data is received from the sensor unit 25.
(1-5) Third Conditional Acquisition (Acquisition Operation #5)
In acquisition operation #5, as shown in Fig. 10, the application 33 sends, to the measurement data processing part 35, an acquisition operation #5 setting instruction containing an application identifier, threshold information, data collection period TP5, and maximum number NC of collection data (or maximum collection time TC) as a collection limit condition as parameters. As the data collection period TP5, a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated, as in (1-2) described above. With the acquisition operation #5 setting instruction, the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition includes the first threshold-exceeding data received from the sensor unit 25 after the acquisition operation #4 setting instruction and subsequent measurement data which are sequentially received from the sensor unit 25 at the period TP5 and whose number is equal to or smaller than the maximum number NC of collection data (or which are collected until the maximum collection time TC elapses after the acquisition operation #5 setting instruction). In addition, the measurement data processing part 35 is notified that measurement data which satisfies the data report condition includes measurement data which are collected by the data collection part 37 in accordance with the acquisition operation #5 setting instruction.
In. the measurement data processing part 35, the collection/report control part 36 receives the acquisition operation #5 setting instruction. The collection/report control part 36 determines whether the sensor unit 25 is operating, as in (l- l) described above, and executes processing corresponding to the determination result.
The collection/report control part 36 notifies the data collection part 37 of the data collection condition together with the application identifier and measurement data format information. Upon receiving this notification, the data collection part 37 starts data collection processing in step S 51.
In step S51, every time raw measurement data from the sensor unit 25 is received, the data collection part 37 calculates measurement data corresponding to the raw measurement data, as in (l- l) described above. The data collection part 37 determines whether the calculated measurement data is threshold-exceeding data. If the determination result is negative, the data collection part 37 waits for the next raw measurement data. When raw measurement data reception and threshold-exceeding data determination are repeated, and the determination result becomes affirmative for the first time, the data collection part 37 stores the threshold-exceeding data in the temporary storage area 24 together with time stamp information. Every time raw measurement data from the sensor unit 25 is received at the period TP5, the data collection part 37 calculates measurement data corresponding to the raw measurement data and sequentially stores it in the temporary storage area 24 together with time stamp information. Every time new measurement data is stored in the temporary storage area 24, the data collection part 37 notifies the collection/report control part 36 of the storage address of the measurement data. Fig. 11 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37 in step S51. Fig. 11 shows a case wherein the data collection part 37 is notified of only the data collection condition according to the above- described acquisition operation #5 setting instruction by the application 33, as in Fig. 6.
Assume that the maximum number NC of collection data is designated. In this case, the data collection part 37 ends data collection when the number of collected measurement data reaches the maximum number NC of collection data. Assume that the maximum collection time TC is designated. In this case, the data collection part 37 ends data collection when the maximum collection time TC elapses from the notification of the application identifier and a data collection condition corresponding to acquisition operation #5. When data collection is ended, the data collection part 37 sends, to the collection/report control part 36, a notification representing that collection of measurement data satisfying the data collection condition corresponding to acquisition operation #5 is completed, together with the application identifier. The processing in step S51 is ended.
Upon receiving the notification representing that data collection corresponding to acquisition operation #5 is completed, the collection/report control part 36 notifies the application 33 of it. Upon receiving this notification, the application 33 sends a data request containing the application identifier as a parameter to the measurement data processing part 35 at a desired point of time. In the measurement data processing part 35, the collection/report control part 36 receives the data request. The collection/report control part 36 notifies the data report part 38 of the data report condition together with the application identifier of the application 33 and the first and last storage addresses, in the temporary storage area 24, of measurement data collected by the data collection part 37 in accordance with acquisition operation #5. Upon receiving this notification, the data report part 38 starts data report processing in step S52.
In step S52, the data report part 38 extracts measurement data satisfying the data report condition from the temporary storage area 24 on the basis of the first and last measurement data storage addresses in the temporary storage area 24 in accordance with acquisition operation #5, the data collection period TP5, and time stamp information for each measurement data stored in the temporary storage area 24 (Fig. 11). The data report part 38 reports the extracted measurement data to the application 33 as report data. The data report part 38 notifies the collection/report control part 36 that data report is completed. The processing in step S52 is ended. When the processing of acquisition operation #5 is executed in the above- described way, the application 33 can acquire measurement data which are collected at the data collection period TP5, including the first threshold-exceeding data after the acquisition operation #5 setting instruction, in number equal to or smaller than the desired number NC (or measurement data collected within the desired collection time TC). When data collection corresponding to the acquisition operation #5 setting instruction is completed, the data collection completion is reported to the application 33. When a data request is issued after the data collection completion report is reported, measurement data collected in accordance with the acquisition operation #5 setting instruction can be acquired.
(1-6) Fourth Conditional Acquisition (Acquisition Operation #6)
In acquisition operation #6, as shown in Fig. 12, the application 33 sends, to the measurement data processing part 35, an acquisition operation #6 setting instruction containing an application identifier, threshold information, data collection period TP6, and maximum number ND of collection data (or maximum collection time TD) as a collection limit condition as parameters. As the data collection period TP6, a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated, as in (1-2) described above.
With the acquisition operation #6 setting instruction, the measurement data processing part 35 is notified that measurement data which satisfies the data collection condition includes measurement data obtained at the period TP6 after the acquisition operation #6 setting instruction until first threshold-exceeding data is received from the sensor unit 25. In addition, the measurement data processing part 35 is notified that measurement data which satisfies the data report condition includes measurement data which are collected by the data collection part 37 in accordance with the acquisition operation #6 setting instruction and whose number is equal to or smaller than the maximum number ND of collection data near the point of time of collection of the threshold-exceeding data (or measurement data collected within the maximum collection time TD before the point of time of collection of the threshold-exceeding data). In the measurement data processing part 35, the collection/report control part 36 receives the acquisition operation #6 setting instruction. The collection/report control part 36 determines whether the sensor unit 25 is operating, as in (l-l) described above, and executes processing corresponding to the determination result. The collection/report control part 36 notifies the data collection part 37 of the data collection condition together with the application identifier. Upon receiving this notification, the data collection part 37 starts data collection processing in step S61.
In step S61, upon receiving the first raw measurement data from the sensor unit 25, the data collection part 37 calculates measurement data corresponding to the first raw measurement data, as in (l-l) described above. The data collection part 37 stores the calculated measurement data in the temporary storage area 24 together with time stamp information. Every time raw measurement data from the sensor unit 25 is received at the period TP6, the data collection part 37 calculates measurement data corresponding to the raw measurement data and sequentially stores it in the temporary storage area 24 together with time stamp information. Every time new measurement data is stored in the temporary storage area 24, the data collection part 37 notifies the collection/report control part 36 of the storage address of the measurement data. Fig. 13 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37 in step S61. Fig. 13 shows a case wherein the data collection part 37 is notified of only the data collection condition according to the above-described acquisition operation #6 setting instruction by the application 33.
Upon detecting the first threshold-exceeding data, the data collection part 37 stores the threshold-exceeding data in the temporary storage area 24 together with time stamp information and ends data collection according to the acquisition operation #6 setting instruction. The data collection part 37 sends, to the collection/report control part 36, a notification representing that collection of measurement data satisfying the data collection condition corresponding to acquisition operation #6 is completed, together with the application identifier. The processing in step S61 is ended. Upon receiving the notification representing that data collection corresponding to acquisition operation #6 is completed, the collection/report control part 36 notifies the application 33 of it. Upon receiving this notification, the application 33 sends a data request containing the application identifier as a parameter to the measurement data processing part 35 at a desired point of time. In the measurement data processing part 35, the collection/report control part 36 receives the data request. The collection/report control part 36 notifies the data report part 38 of the data report condition together with the application identifier of the application 33 and the last storage address, in the temporary storage area 24, of measurement da.ta collected by the data collection part 37 in accordance with acquisition operation #6. Upon receiving this notification, the data report part 38 starts data report processing in step S62.
In step S62, the data report part 38 extracts measurement data satisfying the data report condition from the temporary storage area 24 on the basis of the last measurement data storage address in the temporary storage area 24 in accordance with acquisition operation #6, the data collection period TP6, and time stamp information for each measurement data stored in the temporary storage area 24 (Fig. 13). The data report part 38 reports the extracted measurement data to the application 33 as report data. The data report part 38 notifies the collection/report control part 36 that data report is completed. The processing in step S62 is ended.
When the processing of acquisition operation #6 is executed in the above-described way, the application 33 can acquire measurement data which satisfy the notification condition designated by the acquisition operation #6 setting instruction issued before and are received from the acquisition operation #6 setting instruction to the notification of the first threshold-exceeding data. When data collection corresponding to the acquisition operation #6 setting instruction is completed, the data collection completion is reported to the application 33. When a data request is issued after the data collection completion report, measurement data collected in accordance with the acquisition operation #6 setting instruction can be acquired.
The data collection operation from the sensor unit 25 and the data report operation to the application 33 have been described above while giving focus to one acquisition operation setting instruction issued to the measurement data processing part 35. Instead, a plurality of applications may simultaneously issue acquisition operation setting instructions to the measurement data processing part 35. If the data collection conditions of the plurality of acquisition operation setting instructions include different data collection periods, data collection is done at a time interval corresponding to the greatest common divisor of the data collection periods in a period when the plurality of data collection conditions must be coped with. In data collection, the data collection part 37 executes monitoring of the data collection condition for each acquisition operation setting instruction. As data report to the application 33, the collection/report control part 36 and data report part 38 execute operations corresponding to each_acquisition operation setting. With this arrangement, even when acquisition operation setting instructions are simultaneously issued to the measurement data processing part 35, the data collection operation and data report operation are appropriately performed, and the application can acquire desired measurement data.
<Second Embodiment>
The second embodiment of the present invention will be described next with reference to Figs. 14 to 20. The same reference numerals as in the first embodiment denote the same or similar elements in the second embodiment, and a repetitive description thereof will be omitted.
A cellular phone device 10 according to this embodiment is different from the first embodiment in only the arrangement of software operating in a control unit 21.
The software to be executed by the control unit 21 of this embodiment includes (i) a basic processing part 3 IA which implements a speech communication function, mail function, and character input function, i.e., the basic functions of the cellular phone and controls the above-described various kinds of hardware resources, and (ii) an application 33A to provide various contents such as a game to the user. The basic processing part 31A is different from the first embodiment only in that the basic processing part 3 IA comprises a measurement data processing part 35A in place of the measurement data processing part 35. The measurement data processing part 35A comprises (i) a collection/report control part 36A which processes commands from the application 33A and controls the measurement operation of a sensor unit 25 and the entire measurement data processing part 35A, and (ii) a data collection part 37A which collects measurement data in accordance with the collection period as a data collection condition designated. by the application 33A and stores the measurement data in a temporary storage area 24 of a storage unit 23 described above. The measurement data processing part 35A also comprises (iii) a data report part 38A which reports, to the application 33A, measurement data that satisfies a data report condition designated by the parameter of a data request issued by the application 33A, and also reports, to the application 33A, the number of measurement data reportable to the application 33A of the measurement data stored in the temporary storage area 24.
Upon receiving a notification of a collection period, the data collection part 37A continues data collection until a collection operation end instruction. The data collection part 37A manages a start pointer to indicate the storage address of the oldest measurement data in the above-described temporary storage area 24 used as a ring buffer and an end pointer to indicate the storage address of measurement data to be stored next. Upon receiving a notification of a collection period, the data collection part 37A sets the start pointer value and end pointer value to the same value (e.g., the start address of the temporary storage area 24). The start pointer value and end pointer value can be referred to by the data report part 38A. <Measurement Data Collection and Report Operation>
A measurement data collection operation and a measurement data report operation to the application 33A in this embodiment will be described next. Assume that the application 33A is already activated. Also assume that the application which uses the sensor unit 25 is only the application 33A, and no state wherein a plurality of data collection conditions are simultaneously set occurs.
(2-1) Acquisition of Latest Data During Data Collection (Acquisition Operation #7)
In acquisition operation #7, as shown in Fig. 15, the application 33A sends, to the measurement data processing part 35A, a collection operation setting instruction containing a data collection period TP7 as a parameter. As the data collection period TP7, a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated, as in (1-2) described above.
With the collection operation setting instruction, the measurement data processing part 35A is notified that measurement data which satisfies the data collection condition includes measurement data obtained firstly by after the collection operation setting instruction and subsequent measurement data sequentially obtained at the data collection period TP7.
In the measurement data processing part 35A, the collection/report control part 36A receives and analyzes the collection operation setting instruction. The collection/report control part 36A determines whether the sensor unit 25 is operating, as in (1-1) described above, and executes processing corresponding to the determination result.
The collection/report control part 36A notifies the data collection part 37A of the data collection condition corresponding to acquisition operation #7. Upon receiving this notification, the data collection part 37A starts data collection processing in step S71.
In step S71, upon receiving the first raw measurement data from the sensor unit 25, the data collection part 37A calculates measurement data corresponding to the first raw measurement data, as in (l- l) described above. The data collection part 37A stores the calculated measurement data in the temporary storage area 24. Every time raw measurement data is received from the sensor unit 25 at the period TP7, the data collection part 37A calculates measurement data corresponding to the raw measurement data and sequentially stores the measurement data in the temporary storage area 24. Every time measurement data is stored in the temporary storage area 24, the data collection part 37A updates the end pointer value (and the start pointer value as needed). Fig. 16 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37A in step S71. Referring back to Fig. 15, at a desired point of time during data collection by the data collection part 37A, the application 33A sends, to the measurement data processing part 35A, a data request to request report of the latest one of the measurement data stored in the temporary storage area 24 (to be referred to as a "data request of acquisition operation #7" hereinafter). In the measurement data processing part 35A, the collection/report control part 36A receives the data request of acquisition operation #7. The collection/report control part 36A notifies the data report part 38A that the data request of acquisition operation #7 is received. Upon receiving this notification, the data report part 38A starts data report processing in step S72.
In step S72, the data report part 38A refers to the end pointer value. Then, the data report part 38A reads out the latest measurement data from the temporary storage area 24 on the basis of the end pointer value. The data report part 38A reports the readout measurement data to the application 33A as report data. The data report part 38A notifies the collection/report control part 36A that data report is completed. The processing in step S72 is ended.
When the processing of acquisition operation #7 is executed in the above-described way, the application 33A can acquire the latest one of measurement data stored in the temporary storage area 24.
(2-2) First Batch Acquisition During Data Collection (Acquisition Operation #8) In acquisition operation #8, as shown in Fig. 17, the application 33A sends, to the measurement data processing part 35A, a collection operation setting instruction containing a data collection period TP8 as a parameter. As the data. collection period TP8, a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated, as in (1-2) described above.
With the collection operation setting instruction, the measurement data processing part 35A is notified that measurement data which satisfies the data collection condition includes measurement data obtained firstly by after the collection operation setting instruction and subsequent measurement data sequentially obtained at the data collection period TP8.
In. the measurement data processing part 35A, the collection/report control part 36A receives the collection operation setting instruction. The collection/report control part 36A determines whether the sensor unit 25 is operating, as in (l"l) described above, and executes processing corresponding to the determination result.
The collection/report control part 36A notifies the data collection part 37A of the data collection condition corresponding to acquisition operation #8. Upon receiving this notification, the data collection part 37A starts data collection processing in step S81. In step S81, the same processing as in step S71 in acquisition operation #7 described above is executed except that the data collection period is TP8. Fig. 18 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37A in step S81. Referring back to Fig. 17, at a desired point of time during data collection by the data collection part 37A, the application 33A sends, to the measurement data processing part 35A, a request to request the number of reportable data (to be referred to as the "number of reportable data" or simply as the "number of data" hereinafter) of the measurement data stored in the temporary storage area 24. In the measurement data processing part 35A, the collection/report control part 36A receives the request of the number of reportable data. The collection/report control part 36A notifies the data report part 38A that the request of the number of reportable data is received. Upon receiving this notification, the data report part 38A starts data number report processing in step S82.
In step S82, the data report part 38A refers to the start pointer value and end pointer value. The data report part 38A calculates the number of reportable data by using the start pointer value and end pointer value. The data report part 38A reports the calculated number of data to the application 33A. Upon receiving the report of the number of reportable data, the application 33A determines whether the number of reportable data has reached a desired number of data. If the determination result is negative, the application 33A repeatedly issues the request of the number of reportable data at a desired point of time and determines whether the number of reportable data at that point of time has reached a desired number NF of data until an affirmative determination result is obtained. When it is confirmed that the number of reportable data has reached the desired number of data, the application 33A sends, to the measurement data processing part 35A, a data request of acquisition operation #8 containing the desired number NF of measurement data as a parameter. In accordance with the data request of acquisition operation #8, the measurement data processing part 35A is notified that the measurement data which satisfies the data report condition includes NF measurement data which are collected by the data collection part 37A before the point of time of data request issue in the latest time when viewed from the point of time of data request issue.
In the measurement data processing part 35A, the collection/report control part 36A receives the data request of acquisition operation #8. The collection/report control part 36A sends, to the data report part 38A, the number NF of measurement data and a notification representing that the data request of acquisition operation #8 is received. Upon receiving this notification, the data report part 38A starts data report processing in step S83. In step S83, the data report part 38A refers to the end pointer value.
The data report part 38A reports, to the application 33A, NF measurement data in the reverse chronological order (Fig. 18) from the latest measurement data as report data. The data report part 38A sets the start pointer value to the same value as the end pointer value and notifies the collection/report control part 36A that data report is completed. The processing in step S83 is ended.
When the processing of acquisition operation #8 is executed in the above- described way, the application 33A can acquire, of the measurement data stored in the temporary storage area 24, a desired number of measurement data acquired recently.
(2-3) Second Batch Acquisition During Data Collection (Acquisition Operation #9)
In acquisition operation #9, as shown in Fig. 19, the application 33A sends, to the measurement data processing part 35A, a collection operation setting instruction containing a data collection period TP9 as a parameter. As the data collection period TP9, a natural number multiple of the periodical notification period of raw measurement data from the sensor unit 25 is designated, as in (1-2) described above.
With the collection operation setting instruction, the measurement data processing part 35A is notified that measurement data which satisfies the data collection condition includes measurement data obtained firstly by after the collection operation setting instruction and subsequent measurement data sequentially obtained at the data collection period TP9.
In the measurement data processing part 35A, the collection/report control part 36A receives the collection operation setting instruction. The collection/report control part 36A determines whether the sensor unit 25 is operating, as in (l"l) described above, and executes processing corresponding to the determination result.
The collection/report control part 36A notifies the data collection part 37A of the data collection condition corresponding to acquisition operation #9. Upon receiving this notification, the data collection part 37A starts data collection processing in step S91. In step S91, the same processing as in step S71 in acquisition operation #7 described above is executed except that the data collection period is TP9. Fig. 20 shows the data collection operation and the storage operation in the temporary storage area 24 by the data collection part 37A in step S91.
Referring back to Fig. 19, at a desired point of time during data collection by the data collection part 37A, the application 33A sends, to the measurement data processing part 35A, a request to request the number of reportable data (to be referred to as the "number of reportable data" or simply as the "number of data" hereinafter) of the measurement data stored in the temporary storage area 24. In the measurement data processing part 35A, the coUection/report control part 36A receives the request of the number of reportable data. The collection/report control part 36A notifies the data report part 38A that the request of the number of reportable data is received. Upon receiving this notification, the data report part 38A starts data number report processing in step S92. In step S92, the same processing as in step S82 in acquisition operation #8 described above is executed.
Upon receiving the report of the number of reportable data, the application 33A repeatedly determines whether the number of reportable data has reached a desired number NG of measurement data until an affirmative determination result is obtained.
When it is confirmed that the number of reportable data has reached the desired number of data, the application 33A sends, to the measurement data processing part 35A, a data request of acquisition operation #9 containing the desired number NG of data as a parameter. In accordance with the data request of acquisition operation #9, the measurement data processing part 35A is notified that the measurement, data which satisfies the data report condition includes NG measurement data which are stored in the temporary storage area 24 in the chronological order. In the measurement data processing part 35A, the collection/report control part 36A receives the data request of acquisition operation #9. The collection/report control part 36A sends, to the data report part 38A, the number NG of measurement data and a notification representing that the data request of acquisition operation #9 is received. Upon receiving this notification, the data report part 38A starts data report processing in step S93.
In. step S93, the data report part 38A refers to the start pointer value. The data report part 38A reports, to the application 33A, NG measurement data in the chronological order (Fig. 20) from the measurement data at the address of the temporary storage area indicated by the start pointer value as report data. The data report part 38A sets the start pointer value to the storage address of the measurement data which is collected following to the latest one of the reported measurement data and notifies the collection/report control part 36A that data report is completed. The processing in step S93 is ended.
When the processing of acquisition operation #9 is executed in the above-described way, the application 33A can acquire, of the measurement data stored in the temporary storage area 24, a desired number of measurement data in the chronological order.
In the second embodiment, in acquisition operations #8 and #9, the application 33A designates the desired number of measurement data as a data report condition and issues a data request. As in acquisition operation #2 of the above-described first embodiment, a data request may be issued by designating a desired time interval as a data report condition in place of the desired number of data. In this case, the application 33A preferably counts the time from data collection condition setting or issue of the preceding data request instead of requesting the number of reportable data. In acquisition operations #8 and #9, when the number of reportable data is smaller than the number of data designated by the data request, the data report part 38A can report, to the application 33A, error information representing that a shortage in reportable data. Alternatively, the data report part 38A may report all reportable data at the point of time of data request reception and information representing the number of reported measurement data.
As described above, in the first or second embodiments, the data collection part 37, 37A collects measurement data which satisfy a data collection condition designated by the application 33, 33A and stores the measurement data iri the temporary storage area 24. The data report part 38, 38A notifies the application 33, 33A of data which is stored in the temporary storage area 24 and satisfies a data report condition. Hence, the application 33, 33A can acquire desired measurement data while reducing the load on the application 33, 33A. Depending on the type of acquisition operation setting, after the collection/report control part 36, 36A receives a data request from the application 33,33A, the data report part 38, 38A executes the data report operation. Hence, an environment to allow the application 33, 33A to acquire necessary measurement data when it is necessary can be provided to the application 33, 33A.
Depending on the type of acquisition operation setting, when storage of measurement data satisfying the data collection condition in the temporary storage area 24 is ended, the collection/report control part 36, 36A reports the data collection completion to the application 33, 33A. Hence, an environment to allow the application 33, 33A to recognize the data collection completion without monitoring the data collection completion can be provided. As a result, the application 33, 33A which has recognized the data collection completion by the data collection completion report can acquire necessary measurement data at a timing convenient for itself. When an operation start instruction event or operation stop instruction event of the above -de scribed sensor unit 25 has occurred, and the collection/report control part 36, 36A is notified of it, the collection/report control part 36, 36A sends a sensor operation start instruction or sensor operation stop instruction to the sensor unit 25. Hence, the sensor unit 25 can be used appropriately and reliably. In addition, power consumption by the operation of the sensor unit 25 can be suppressed.
In the first or second embodiments, the sensor unit 25 is mounted in the cellular phone device 10. Instead, the sensor unit 25 may be arranged outside the cellular phone device 10. The sensor unit 25 and cellular phone device 10 may be connected through an external device connection interface port (not shown) of the cellular phone device 10.
In the first or second embodiments, the sensor part 26 is a 5-axis sensor to detect the pitch angle θ x, roll angle θ Y, yaw angle Q i,
X-direction acceleration α x, and Y" direction acceleration αy. Instead, the sensor part 26 may be a 6-axis sensor to additionally detect a Z-direction acceleration a z. Alternatively, a sensor to detect a physical quantity except the attitude angle and acceleration may be used. In the first or second embodiments, one application never issues a plurality of acquisition operation instructions to the measurement data processing part 35, 35A simultaneously. However, one application may issue a plurality of acquisition operation instructions to the measurement data processing part 35, 35A simultaneously. In this case, in addition to the application identifier, an acquisition operation instruction identifier must be added to the parameters of the acquisition operation instruction. The measurement data processing part 35, 35A must execute the data collection operation and data report operation corresponding to a combination of an application identifier and an acquisition operation instruction identifier.
In the first or second embodiments, as the sensor operation start instruction event, the . operation start request of the sensor unit 25 by the application 33, 33A, activation of an application whose management information describes use of the sensor unit 25, a key operation to instruct the operation start of the sensor unit 25, voice input to instruct the operation start of the sensor unit 25, and arrival of time at which the sensor unit should start the operation are employed. Not all but only some of them may be employed as the sensor operation start instruction event. Arrival of a voice or mail message may be employed as the sensor operation start instruction, event. In this case, an off-hook operation by the key operation executed after arrival can be executed by causing the cellular phone device 10 to execute a motion in a predetermined form in place of the key operation. In the first or second embodiments, as the sensor operation stop instruction event, the operation stop request of the sensor unit 25 by the application 33, 33A, stop of an application whose management information describes use of the sensor unit 25, a key operation to instruct the operation stop of the sensor unit 25, voice input to instruct the operation stop of the sensor unit 25, and arrival of time at which the sensor unit should stop the operation are employed. Not all but only some of them may be employed as the sensor operation stop instruction event. Arrival of a voice or mail message may be employed as the sensor operation end instruction event. In this case, for example, when the sensor is not used in call reception processing, the operation of the sensor can be stopped before call reception processing with a high priority.
In the first or second embodiments, a so-called straight-type cellular phone device is used in which the positional relationship between the display unit 13 and the operation unit 12 with a key array is fixed. However, the present invention can also be applied to a so-called clamshell-type cellular phone device 10' in which a first portion 51 and a second portion 52 can. relatively pivot about an axis AXl serving as an axis of rotation so that the cellular phone device can be folded or unfolded, as shown in Figs. 21A to 21C. In this case, the sensor unit 25 can be disposed either on the side of the first portion 51 or on the side of the second portion 52. For example, the folded state can be added as the sensor operation stop instruction event, and the unfolded state can be added as the sensor operation start instruction event.
The present invention can also be applied to a so-called 2-axis rotation-type cellular phone device 10" in which the second portion 52 includes a base portion 53 and a display unit storage unit 54, and the display unit storage unit 54 can rotate at least 180° about an axis AX2 serving as an axis of rotation with respect to the base portion 53, as shown in Figs. 22A to 22C. Even in this case, the sensor unit 25 can be disposed either on the side of the first portion 51 or on the side of the second portion 52. For example, of shape changes which can be caused by rotation about the two axes AXl and AX2, a shape change to make the display surface of the display unit 13 visible can be added as the sensor operation start instruction event, and a shape change to make the display surface of the display unit 13 invisible can be added as the sensor operation stop instruction event.
The present invention can also be applied to a cellular phone device capable of changing its shape, except a so-called clamshell-type cellular phone device, such as a so-called revolver-type cellular phone device in which the display unit side can rotate with respect to the operation unit side about an axis perpendicular to the key array surface of the operation unit or a so-called slide-type cellular phone device in which the display unit side slides with respect to the operation unit side. Even in this case, the sensor unit 25 can be disposed either on the operation unit side or on the display unit side.
In the so-called revolver-type cellular phone device, a shape change by pivot can be detected by a pivot detection means, and a predetermined pivot state can be added as the sensor operation stop instruction event or sensor operation stop instruction event. In the so-called slide-type cellular phone device, a shape change by slide can be detected by a slide detection means, and a predetermined slide state can be added as the sensor operation stop instruction event or sensor operation stop instruction event. In a cellular phone device of another type capable of changing the shape, a shape change can be detected by a shape detection means, and a predetermined shape can be added as the sensor operation stop instruction event or sensor operation stop instruction event.
The same reference numerals as in the above- described embodiments denote the same or similar elements in Figs. 21A to 21C and 22A to 22C, and a repetitive description thereof has been omitted. In the cellular phone device 10' shown in Figs. 21A to 21C and the cellular phone device 10" shown in Figs. 22A to 22C, the antenna 17 in the above- described embodiments is housed in the device. The axial direction serving as the reference of measurement in the sensor unit 25 can be determined in correspondence with the location of the sensor unit 25 or the model of the cellular phone.
Even in acquisition operation #2 of the first embodiment, the application 33 may issue a request of the number of reportable data before a data request, as in acquisition operations #8 and #9 of the second embodiment.
In the first or second embodiments, the present invention is applied to a cellular phone device. However, the present invention can also be applied to any other portable information device such as a portable game device, car navigation device, or PDA (Personal Digital Assistance), as a matter of course.
Industrial Applicability
As described above, the data collection method and device of the present invention can be applied to collection of measurement data from a sensor and notification of an application. The mobile terminal device of the present invention can be applied to a portable information device in which an application using measurement data from a sensor is executed.

Claims

1. A measurement data collection method for collecting measurement data corresponding to a measurement result from a sensor and notifying an application operating in a portable information device of the measurement data, the sensor being arranged in the portable information device and measuring attitude angles about three axial directions of the portable information device, which are perpendicular to each other, and accelerations in at least two of the three axial directions; said method comprising: the condition designation step of causing the application to designate a data collection condition as a condition of measurement data to be collected; the data collection step of collecting measurement data which satisfies the data collection condition and storing the measurement data in temporary storage means; and the data report step of reporting, to the application, measurement data which is stored in the temporary storage means and satisfies a data report condition designated by the application as condition of measurement data to be reported to the application.
2. A measurement data collection method according to claim 1, further comprising the data request step of causing the application to issue a data request with the designated data report condition, wherein the data report step is executed in response to the data request.
3. A measurement data collection method according to claim 2, wherein the data collection condition is a collection period.
4. A measurement data collection method according to claim 3, wherein the data which satisfies the data report condition is measurement data which is stored latest in the temporary storage means before the data request.
5. A measurement data collection method according to claim 3, wherein the measurement data which satisfies the data report condition is measurement data equal in number to the number of report data designated by the application in a reverse chronological order from a point of time of the data request.
6. A measurement data collection method according to claim 5, further comprising the number- of- rep ortable- data notification step of notifying the application of the number of reportable data when a notification request of the number of reportable data including measurement data which are stored in the temporary storage means and exist in the temporary storage means is received from the application between a preceding point of time of the data request and a current point of time.
7. A measurement data collection method according to claim 3, wherein the measurement data which satisfies the data report condition includes, of reportable data which. are measurement data stored in the temporary storage means later than measurement data reported in response to a preceding data request and existing in the temporary storage means, measurement data equal in number to the number of reportable data designated by the application in a chronological order from the oldest data.
8. A measurement data collection method according to claim 7, further comprising the numberof-reportable-data notification step of notifying the application of the number of reportable data when a notification request of the number of reportable data is received from the application.
9. A measurement data collection method according to claim 1, wherein in the condition designation step, the data report condition is further designated.
10. A measurement data collection method according to claim 9, wherein the measurement data which satisfies the data collection condition is measurement data which is notified from the sensor for the first time after designation of the data collection condition and the data report condition, the measurement data which satisfies the data report condition is measurement data which satisfies the data collection condition, and the data report step is executed immediately after the measurement data which satisfies the data collection condition is newly stored in the temporary storage means.
11. A measurement data collection method according to claim 9, wherein the data collection condition includes threshold information indicating a data value range which is a range of a value of measurement data to be collected and one of a collection time and the number of collection data after designation of the data collection condition, the measurement data which satisfies the data report condition is measurement data which satisfies the data collection condition, and in the data report step, every time the measurement data which satisfies the data collection condition is newly stored in the temporary storage means, the stored measurement data is immediately reported to the application.
12. A measurement data collection method according to claim 9, further comprising the data request step of causing the application to issue a data request, wherein the data report step is executed in response to the data request.
13. A measurement data collection method according to claim 12, wherein the data collection condition includes a collection period, and the measurement data which satisfies the data report condition is one of measurement data collected within a limit time in a reverse chronological order from a point of time of the data request and measurement data within the maximum number of report data in the reverse chronological order from the point of time of the data request.
14. A measurement data collection method according to claim 12, further comprising the number-of-reportable-data notification step of notifying the application of the number of reportable data when a notification request of the number of reportable data including measurement data which are stored in the temporary storage means and exist in the temporary storage means is received from the application between a preceding point of time of the data request and a current point of time.
15. A measurement data collection method according to claim 12, further comprising the data collection completion report step of reporting data collection completion to the application when storage of the measurement data which satisfies the data collection condition in the temporary storage means is finished, wherein the application which has received the report of the data collection completion issues the data request in the data request step.
16. A measurement data collection method according to claim 15, wherein the data collection condition includes a collection period, and one of a collection time and the number of collection data, and the measurement data which satisfies the data report condition is measurement data which satisfies the data collection condition.
17. A measurement data collection method according to claim 15, wherein the data collection condition includes a collection period, start threshold information indicating a range of a value of measurement data as a condition for a start of data collection, and one of a collection time and the number of collection data after designation of the data collection condition, and the measurement data which satisfies the data report condition is measurement data which satisfies the data collection condition.
18. A measurement data collection method according to claim 15, wherein the data collection condition includes a collection period and end threshold information indicating a range of a value of measurement data as a condition for an end of data collection, and the measurement data which satisfies the data report condition is one of measurement data collected within a limit time in a reverse chronological order from a point of the end of data collection and measurement data within the maximum number of data in the reverse chronological order from the point of time of the end of data collection.
19. A measurement data collection method according to claim 1, wherein when a plurality of data collection conditions are designated, and data collection must be executed at a plurality of different collection periods, in the data collection step, the measurement data is stored in the temporary storage means at a time interval corresponding to a value of a greatest common divisor related to values of the plurality of data collection periods.
20. A measurement data collection method according to claim 1, wherein when the application is abnormally terminated during execution of the data collection step, a basic processing part to manage the application issues an instruction to stop execution of the data collection step.
21. A measurement data collection method according to claim 1, further comprising the sensor operation start instruction event detection step of detecting occurrence of a sensor operation start instruction event to instruct a start of an operation of the sensor, and the sensor operation start step of starting the operation of the sensor.
22. A measurement data collection method according to claim 21, wherein the sensor operation start instruction event includes at least one event selected from the group consisting of an operation start request of the sensor from the application, activation of the application, a key operation to instruct to start the operation start of the sensor, voice input to instruct to start the operation start of the sensor, arrival of time at which the sensor should start the operation, and detection of a state to make the sensor operate depending on the shape of the device in which the sensor is implemented.
23. A measurement data collection method according to claim 21, wherein the portable information device is a mobile communication terminal device, and the sensor operation start instruction event includes a call reception event.
24. A measurement data collection method according to claim 1, further comprising the sensor operation stop instruction event detection step of detecting occurrence of a sensor operation stop instruction event to instruct a stop of an operation of the sensor, and the sensor operation stop step of stopping the operation of the sensor.
25. A measurement data collection method according to claim 24, wherein the sensor operation stop instruction event includes at least one event selected from the group consisting of an operation stop request of the sensor from the application, stop of the application, a key operation to instruct to stop the operation stop of the sensor, voice input to instruct to stop the operation of the sensor, arrival of time at which the sensor should stop the operation, and detection of a state to make the sensor stop the operation depending the shape of the device in which the sensor is implemented.
26. A measurement data collection method according to claim 24, wherein the portable information device is a mobile communication terminal device, and the sensor operation stop instruction event includes a call reception event.
27. A portable information device comprising: a sensor which measures attitude angles about three axial directions perpendicular to each other and accelerations in at least two of the three axial directions," temporary storage means for temporarily storing measurement data; data collection means for collecting measurement data which satisfies a data collection condition designated by an application as a condition of data to be collected in the measurement data from said sensor and storing the measurement data in said temporary storage means; and data report means for notifying the application of the measurement data which is stored in said temporary storage means and satisfies a data report condition designated by the application.
28. A portable information device according to claim 27, wherein said data report means notifies the application of the data which is stored in said temporary storage means and satisfies the data report condition in response to a data request issued by the application.
29. A portable information device according to claim 27, further comprising sensor operation start means for starting an operation of said sensor when occurrence of a sensor operation start event to instruct a start of the operation of said sensor is detected.
30. A portable information device according to claim 27, further comprising sensor operation stop means for stopping an operation of said sensor when occurrence of a sensor operation stop event to instruct a stop of the operation of said sensor is detected.
31. A portable information device according to claim 27, further comprising a radio communication part to communicate with a base station of a mobile communication network.
EP05770354A 2004-08-09 2005-08-09 Measurement data collection method and portable information device Withdrawn EP1738566A4 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2004232231 2004-08-09
JP2004346267 2004-11-30
PCT/JP2005/014879 WO2006016690A1 (en) 2004-08-09 2005-08-09 Measurement data collection method and portable information device

Publications (2)

Publication Number Publication Date
EP1738566A1 true EP1738566A1 (en) 2007-01-03
EP1738566A4 EP1738566A4 (en) 2012-11-14

Family

ID=35839444

Family Applications (1)

Application Number Title Priority Date Filing Date
EP05770354A Withdrawn EP1738566A4 (en) 2004-08-09 2005-08-09 Measurement data collection method and portable information device

Country Status (4)

Country Link
US (1) US7469197B2 (en)
EP (1) EP1738566A4 (en)
JP (1) JP2008503106A (en)
WO (1) WO2006016690A1 (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070179970A1 (en) * 2006-01-31 2007-08-02 Carli Connally Methods and apparatus for storing and formatting data
JP4673250B2 (en) * 2006-05-11 2011-04-20 ソフトバンクモバイル株式会社 Sensor data collection method and mobile information device
US8140501B2 (en) * 2007-11-28 2012-03-20 International Business Machines Corporation Attribute presenter of object attributes and method for presenting object attributes using the attribute presenter
US9008995B2 (en) 2008-03-21 2015-04-14 Analog Devices, Inc. Activity detection in MEMS accelerometers
US8239160B2 (en) * 2008-03-21 2012-08-07 Analog Devices, Inc. Activity detection in MEMS accelerometers
JP4950127B2 (en) * 2008-05-30 2012-06-13 株式会社日立産機システム Information collecting apparatus, information collecting program, and information collecting method
JP2010033174A (en) * 2008-07-25 2010-02-12 Toshiba Corp Portable electronic device
US8405505B2 (en) * 2009-05-26 2013-03-26 Qualcomm Incorporated Power management of sensors within a mobile device
JP5585062B2 (en) * 2009-12-04 2014-09-10 ソニー株式会社 Information processing apparatus, information processing method, data management server, and data synchronization system
CN102369748A (en) * 2010-03-10 2012-03-07 华为技术有限公司 Method, device and system for reporting wireless access network element information
US9264954B2 (en) * 2010-04-28 2016-02-16 Qualcomm Incorporated Neighbor relation information management
US9294972B2 (en) 2010-04-28 2016-03-22 Qualcomm Incorporated Neighbor relation information management
US20120056727A1 (en) * 2010-09-06 2012-03-08 Liping Zhu Equipment status controlling method and equipment
US9118732B2 (en) * 2011-05-05 2015-08-25 At&T Intellectual Property I, L.P. Control plane for sensor communication
KR101335199B1 (en) 2012-04-13 2013-11-29 엘에스산전 주식회사 System for Remote Control Using Mobile Device
US8638230B2 (en) 2012-05-24 2014-01-28 Google Inc. Hardware attitude detection implementation of mobile devices with MEMS motion sensors
US20140122378A1 (en) * 2012-10-29 2014-05-01 Qualcomm Incorporated Rules engine as a platform for mobile applications
US9348434B2 (en) 2012-11-21 2016-05-24 Google Technology Holdings LLC Low power management of multiple sensor integrated chip architecture
JP5867431B2 (en) * 2013-03-21 2016-02-24 カシオ計算機株式会社 Mobile terminal and data management processing program
JP2015005043A (en) * 2013-06-19 2015-01-08 株式会社東芝 Data repeater
US10657798B2 (en) * 2017-12-22 2020-05-19 Daqri, Llc Reporting hazardous condition using a mobile device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5602566A (en) * 1993-08-24 1997-02-11 Hitachi, Ltd. Small-sized information processor capable of scrolling screen in accordance with tilt, and scrolling method therefor
US20020021278A1 (en) * 2000-07-17 2002-02-21 Hinckley Kenneth P. Method and apparatus using multiple sensors in a device with a display
US6466198B1 (en) * 1999-11-05 2002-10-15 Innoventions, Inc. View navigation and magnification of a hand-held device with a display
US20030085870A1 (en) * 2000-07-17 2003-05-08 Hinckley Kenneth P. Method and apparatus using multiple sensors in a device with a display

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3635321B2 (en) * 2000-02-02 2005-04-06 日本電信電話株式会社 Context grasping system and method, and recording medium recording the processing program
WO2002007365A2 (en) * 2000-07-13 2002-01-24 Nxegen System and method for monitoring and controlling energy usage
JP2002164987A (en) * 2000-11-29 2002-06-07 Tokin Corp Mount method for attitude angle detector for mobile terminal
US6714778B2 (en) * 2001-05-15 2004-03-30 Nokia Corporation Context sensitive web services
JP3674569B2 (en) * 2001-10-04 2005-07-20 オムロン株式会社 SENSOR MANAGEMENT DEVICE, SENSOR MANAGEMENT DEVICE CONTROL PROGRAM, COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE PROGRAM, AND SENSOR MANAGEMENT DEVICE CONTROL METHOD
US20040002958A1 (en) * 2002-06-26 2004-01-01 Praveen Seshadri System and method for providing notification(s)
US7698276B2 (en) 2002-06-26 2010-04-13 Microsoft Corporation Framework for providing a subscription based notification system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5602566A (en) * 1993-08-24 1997-02-11 Hitachi, Ltd. Small-sized information processor capable of scrolling screen in accordance with tilt, and scrolling method therefor
US6466198B1 (en) * 1999-11-05 2002-10-15 Innoventions, Inc. View navigation and magnification of a hand-held device with a display
US20020021278A1 (en) * 2000-07-17 2002-02-21 Hinckley Kenneth P. Method and apparatus using multiple sensors in a device with a display
US20030085870A1 (en) * 2000-07-17 2003-05-08 Hinckley Kenneth P. Method and apparatus using multiple sensors in a device with a display

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of WO2006016690A1 *

Also Published As

Publication number Publication date
JP2008503106A (en) 2008-01-31
EP1738566A4 (en) 2012-11-14
US7469197B2 (en) 2008-12-23
US20070192055A1 (en) 2007-08-16
WO2006016690A1 (en) 2006-02-16

Similar Documents

Publication Publication Date Title
US7469197B2 (en) Measurement data collection method and portable information device
KR100778367B1 (en) Mobile terminal and method for processing of event thereof
EP2668812B1 (en) Intelligent management of location sensor
EP2094034B1 (en) Method and apparatus for executing location dependent application in a mobile handset
CN110168483B (en) Shortcut menu for displaying different applications on different screens
JP2016153794A (en) Portable terminal device and its positioning result acquisition interval setting method
CN1867812A (en) Mobile navigation device, control method therefor, and control program therefor
CN106453829A (en) Method and apparatus for detecting fall-off height
CN104571499A (en) Method for controlling terminal and terminal
CN105245660A (en) Mobile phone antitheft tracking method based on bracelet
WO2012004451A1 (en) Mobile communication device engaged in a call
CN109890072B (en) Terminal power saving control method and device, mobile terminal and readable storage medium
US7368903B2 (en) Measurement method and mobile information device
CN107657424A (en) A kind of stroke reminding method, device and mobile terminal
CN110740419A (en) Interphone, switching method of working modes of interphone and computer-readable storage medium
EP2996316B1 (en) Methods and systems for communication management between an electronic device and a wearable electronic device
CN111149313A (en) Data transmission method and equipment
JP4673250B2 (en) Sensor data collection method and mobile information device
CN112199062A (en) Wireless screen projection implementation method, system, medium, vehicle-mounted terminal and intelligent terminal
US9521545B2 (en) Methods and systems for notification management between an electronic device and a wearable electronic device
EP1909181A1 (en) Program development system
CN113806112A (en) SPI asynchronous communication scheduling method, device, equipment and storage medium
JP4845356B2 (en) Measurement data processing method, measurement data processing device, and mobile terminal device
CN104571876A (en) Terminal
CN111182129B (en) Target position determination method and device and storage medium

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 20061108

AK Designated contracting states

Kind code of ref document: A1

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LI LT LU LV MC NL PL PT RO SE SI SK TR

DAX Request for extension of the european patent (deleted)
RAP1 Party data changed (applicant data changed or rights of an application transferred)

Owner name: VODAFONE GROUP PLC

RAP1 Party data changed (applicant data changed or rights of an application transferred)

Owner name: RPX CORPORATION

A4 Supplementary search report drawn up and despatched

Effective date: 20121015

RIC1 Information provided on ipc code assigned before grant

Ipc: H04M 1/00 20060101AFI20121009BHEP

Ipc: G06F 1/16 20060101ALI20121009BHEP

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN

18D Application deemed to be withdrawn

Effective date: 20130301