JP5396894B2 - Portable terminal - Google Patents

Portable terminal Download PDF

Info

Publication number
JP5396894B2
JP5396894B2 JP2009026654A JP2009026654A JP5396894B2 JP 5396894 B2 JP5396894 B2 JP 5396894B2 JP 2009026654 A JP2009026654 A JP 2009026654A JP 2009026654 A JP2009026654 A JP 2009026654A JP 5396894 B2 JP5396894 B2 JP 5396894B2
Authority
JP
Japan
Prior art keywords
data
record
capacity
search range
predetermined
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.)
Expired - Fee Related
Application number
JP2009026654A
Other languages
Japanese (ja)
Other versions
JP2010182200A (en
Inventor
剛 増井
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.)
Fujitsu Mobile Communications Ltd
Original Assignee
Fujitsu Mobile Communications Ltd
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 Fujitsu Mobile Communications Ltd filed Critical Fujitsu Mobile Communications Ltd
Priority to JP2009026654A priority Critical patent/JP5396894B2/en
Publication of JP2010182200A publication Critical patent/JP2010182200A/en
Application granted granted Critical
Publication of JP5396894B2 publication Critical patent/JP5396894B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、データの一時的な記憶媒体としてリングバッファ等を用いる携帯端末機に関する。   The present invention relates to a portable terminal using a ring buffer or the like as a temporary storage medium for data.

携帯電話機などの携帯端末機は、機器全体を小型化および軽量化するために、各種データの記憶媒体を小容量化することが重要である。   In mobile terminals such as mobile phones, it is important to reduce the capacity of various data storage media in order to reduce the size and weight of the entire device.

従来の携帯端末機には、データを一時的に記憶しておく記憶媒体としてメモリ効率がよいリングバッファ等を用い、この一時的な記憶媒体から必要なデータのみを抽出して利用可能とするものがある。たとえば、特開2005−165932号公報(特許文献1)に開示されたログ管理装置は、リングバッファに機器の動作中の履歴情報(以下、ログという)を蓄積し、蓄積されたログから所定の条件を満たすログ要素(以下、所要のログという)を抽出可能に構成され、この抽出された所要のログを、ネットワークを介して他機(ログ受信装置)に送信したり自機の他の記憶媒体に格納したりすることができるようになっている。   Conventional portable terminals use a ring buffer or the like with high memory efficiency as a storage medium for temporarily storing data, and only necessary data can be extracted from the temporary storage medium and used. There is. For example, a log management device disclosed in Japanese Patent Laying-Open No. 2005-165932 (Patent Document 1) accumulates history information (hereinafter referred to as a log) during operation of a device in a ring buffer, and a predetermined log is stored from the accumulated log. Log elements that satisfy the conditions (hereinafter referred to as required logs) can be extracted, and the extracted required logs can be transmitted to other devices (log receiving devices) via the network or stored in other devices. It can be stored on a medium.

このログ管理装置によれば、リングバッファ(ログの一時的な記憶媒体)を利用することにより、所要のログを格納する記憶媒体には大容量の記憶媒体を必要としないため、所要のログを格納する記憶媒体としてフラッシュメモリなどの小容量の記憶媒体を適用することができる。   According to this log management apparatus, since a storage medium for storing a required log does not require a large-capacity storage medium by using a ring buffer (a temporary storage medium for a log), A small-capacity storage medium such as a flash memory can be used as a storage medium for storage.

特開2005−165932号公報JP 2005-165932 A

ところで、リングバッファは、内部データを参照する場合、先頭レコード(最も古いレコード)から順にレコードを辿っていかないと、どこになにが記録されているかあるか把握できないようになっている。このため、リングバッファは仕様上、データの検索、抽出や置換などの処理には不向きであるといえる。   By the way, when referring to internal data, the ring buffer cannot grasp what is recorded unless the records are traced in order from the first record (oldest record). For this reason, it can be said that the ring buffer is not suitable for processing such as data search, extraction, and replacement because of its specifications.

たとえば、ユーザが、リングバッファに記憶されたデータのうち、所要のデータとして、末尾レコード(最新レコード)から先頭レコード側(最も古いレコード側)に向かって所定の条件を満たすレコードを所定の量だけ必要とする場合を考える。この場合、従来の技術では、機器の制御部(CPUなど)は、先頭レコードからデータを順次検索し、所定の条件を満たすレコードを全て作業メモリにコピーし、最後に作業メモリ上で所定の量だけ切り出すことが必要となる。このとき、所定の条件を満たすレコードの総容量が事前には不明であるため、機器の制御部(CPUなど)は、リングバッファの記憶容量と同一容量の領域を作業メモリに確保する必要がある。   For example, a predetermined amount of records satisfying a predetermined condition from the last record (latest record) to the first record side (oldest record side) as required data among data stored in the ring buffer. Consider when you need it. In this case, in the conventional technique, the control unit (such as a CPU) of the device sequentially retrieves data from the top record, copies all records satisfying a predetermined condition to the work memory, and finally stores a predetermined amount on the work memory. It is necessary to cut out only. At this time, since the total capacity of the records satisfying the predetermined condition is unknown in advance, the control unit (CPU or the like) of the device needs to secure an area having the same capacity as the storage capacity of the ring buffer in the working memory. .

しかし、一般に、ユーザが必要とするデータはリングバッファに記憶されたデータの一部に過ぎず、作業メモリに確保された領域には無駄な領域が生じてしまうことが多い。   However, generally, the data required by the user is only a part of the data stored in the ring buffer, and a wasteful area often occurs in the area secured in the working memory.

本発明は、上述した事情を考慮してなされたもので、所要のデータサイズ分の領域を作業メモリに確保してリングバッファから所要のデータを抽出することができる携帯端末機を提供することを目的とする。   The present invention has been made in consideration of the above-described circumstances, and provides a portable terminal capable of securing an area for a required data size in a working memory and extracting required data from a ring buffer. Objective.

本発明に係る携帯端末機は、上述した課題を解決するために、データ要素を格納した複数のレコードにより構成されたリングバッファと、所定のデータ種別条件を満たす前記データ要素により構成される所要のデータが含まれる範囲を検索範囲として前記リングバッファに対して決定するとともに、前記所要のデータの容量を算出する検索範囲決定部と、前記検索範囲決定部により算出された前記所要のデータの容量と同一容量の領域を作業メモリに確保する領域確保部と、前記リングバッファの全範囲のうち前記検索範囲決定部により決定された前記範囲を検索して前記所要のデータを抽出し、この抽出した前記所要のデータを前記領域確保部により確保された前記作業メモリの領域にコピーする抽出部と、を備えたことを特徴とするものである。   In order to solve the above-described problem, a mobile terminal according to the present invention has a ring buffer composed of a plurality of records storing data elements and a required data element composed of the data elements satisfying a predetermined data type condition. A range in which data is included is determined for the ring buffer as a search range, and a search range determination unit that calculates a capacity of the required data, and a capacity of the required data calculated by the search range determination unit An area securing unit that secures an area of the same capacity in the working memory, and the range determined by the search range determining unit out of the entire range of the ring buffer is extracted to extract the required data, and the extracted data An extraction unit that copies required data to the area of the working memory secured by the area securing unit. A.

本発明に係る携帯端末機によれば、所要のデータサイズ分の領域のみを作業メモリに確保してリングバッファから所要のデータを抽出することができる。   According to the mobile terminal of the present invention, it is possible to secure only an area for a required data size in the working memory and extract the required data from the ring buffer.

本発明に係る携帯端末機の一実施形態を示す概略的な全体構成図。1 is a schematic overall configuration diagram showing an embodiment of a mobile terminal according to the present invention. 携帯電話機の内部構成例を概略的に示すブロック図。The block diagram which shows schematically the internal structural example of a mobile telephone. リングバッファがレコードにより構成される様子の一例を示す説明図。Explanatory drawing which shows an example of a mode that a ring buffer is comprised by a record. レコードの構成の一例を示す説明図。Explanatory drawing which shows an example of a structure of a record. 従来の技術により所要のデータをリングバッファから作業メモリにコピーする際の様子の一例を示す説明図。Explanatory drawing which shows an example of the mode at the time of copying required data from a ring buffer to a working memory by a prior art. 制御部のCPUによる機能実現部の構成例を示す概略的なブロック図。The schematic block diagram which shows the structural example of the function implementation part by CPU of a control part. 本発明に係る携帯電話機により検索範囲決定部により決定された検索範囲から抽出された所要のデータが作業メモリにコピーする際の様子の一例を示す説明図。Explanatory drawing which shows an example of a mode at the time of the required data extracted from the search range determined by the search range determination part by the mobile telephone which concerns on this invention being copied to a working memory. 携帯電話機の制御部により、所要のデータの容量と同一容量の領域のみを作業メモリに確保してリングバッファから所要のデータを抽出する処理を実行する際の手順を示すフローチャート。The flowchart which shows the procedure at the time of performing the process which ensures only the area | region of the capacity | capacitance same as the capacity | capacitance of required data in a working memory, and extracts required data from a ring buffer by the control part of a mobile telephone. 図8のステップS1で検索範囲決定部により実行される、検索範囲の決定処理の手順を示すサブルーチンフローチャート。FIG. 9 is a subroutine flowchart illustrating a search range determination process executed by a search range determination unit in step S1 of FIG. 図9のステップS20で検索範囲決定部により実行される、検索範囲の調整処理の手順を示すサブルーチンフローチャート。FIG. 10 is a subroutine flowchart illustrating a search range adjustment process executed by a search range determination unit in step S <b> 20 of FIG. 9. FIG. (a)は検索開始アドレスが先頭アドレスである場合の検索範囲の一例を示す説明図、(b)は検索開始アドレスが先頭レコードの次のレコードの開始アドレスに変更された様子の一例を示す説明図、(c)は積算データ長が所定の容量以下となるよう、検索範囲から最も古い所定の条件を満たす種別のデータ要素を記憶したレコードを除外すべく、検索開始アドレスがこのレコードの次のレコードの開始アドレスに変更された様子の一例を示す説明図。(A) is explanatory drawing which shows an example of the search range in case a search start address is a head address, (b) is an explanation which shows an example of a mode that the search start address was changed into the start address of the record next to a head record. FIG. 6 (c) shows that the search start address is the next to this record so as to exclude the record storing the data element of the type satisfying the oldest predetermined condition from the search range so that the accumulated data length is not more than the predetermined capacity. Explanatory drawing which shows an example of a mode changed to the start address of a record. 図8のステップS3で抽出部により実行される、リングバッファの全範囲のうち検索範囲決定部により決定された範囲を検索して所要のデータ(ログ)を抽出し、この抽出した所要のログを領域確保部により確保された作業メモリの領域にコピーする際の手順を示すサブルーチンフローチャート。The range determined by the search range determination unit in the entire range of the ring buffer, which is executed by the extraction unit in step S3 in FIG. 8, is searched to extract necessary data (log), and the extracted required log is The subroutine flowchart which shows the procedure at the time of copying to the area | region of the working memory secured by the area securing part.

本発明に係る携帯端末機の実施の形態について、添付図面を参照して説明する。図1は、本発明に係る携帯端末機の一実施形態を示す概略的な全体構成図である。図1には携帯端末機が開いている状態における正面からみた外観図を示した。なお、本発明は、データの一時的な記憶媒体としてリングバッファ等を用いる携帯端末機に広く適用することができる。本実施形態では、本発明に係る携帯端末機として、携帯電話機を用いる場合の一例について示した。   Embodiments of a mobile terminal according to the present invention will be described with reference to the accompanying drawings. FIG. 1 is a schematic overall configuration diagram showing an embodiment of a portable terminal according to the present invention. FIG. 1 shows an external view as seen from the front in a state where the portable terminal is open. The present invention can be widely applied to portable terminals using a ring buffer or the like as a temporary data storage medium. In the present embodiment, an example in which a mobile phone is used as the mobile terminal according to the present invention has been described.

また、以下の実施形態では、リングバッファに携帯電話機の動作中の履歴情報(ログ)が記憶される場合の一例について説明する。   In the following embodiment, an example in which history information (log) during operation of the mobile phone is stored in the ring buffer will be described.

携帯電話機10は、第1の筐体11、第2の筐体12、および第2の筐体12に対し第1の筐体11を開閉自在に連結する連結部13を有する。   The cellular phone 10 includes a first casing 11, a second casing 12, and a connecting portion 13 that connects the first casing 11 to the second casing 12 so as to be freely opened and closed.

第1の筐体11には、図1に示すように、操作部14およびスピーカ15が設けられる。また、一方、第2の筐体12には、表示部16およびマイクロフォン17が設けられる。   As shown in FIG. 1, the first housing 11 is provided with an operation unit 14 and a speaker 15. On the other hand, the second housing 12 is provided with a display unit 16 and a microphone 17.

第2の筐体12は、第1の筐体11に対して、開閉軸を中心として矢印Xの方向に開閉自在となるように、連結部13(ヒンジ)を介して連結される。第2の筐体12が開閉軸を中心として矢印Xの方向に回転することにより、携帯電話機10は、開いている状態(図1参照)と、閉じた状態とで位置決めすることができる。   The second casing 12 is connected to the first casing 11 via a connecting portion 13 (hinge) so that the second casing 12 can be opened and closed in the direction of the arrow X around the opening / closing axis. When the second casing 12 rotates about the opening / closing axis in the direction of the arrow X, the mobile phone 10 can be positioned in an open state (see FIG. 1) and a closed state.

操作部14は、たとえばキーボード、タッチパネル、テンキーなどの一般的な入力装置により構成され、ユーザの操作に対応した操作入力信号を出力する。   The operation unit 14 includes a general input device such as a keyboard, a touch panel, and a numeric keypad, and outputs an operation input signal corresponding to a user operation.

スピーカ15は、受話音声をはじめとした各種の情報に対応した音声を発生する。   The speaker 15 generates sound corresponding to various kinds of information including received voice.

表示部16は、たとえば液晶ディスプレイやOLED(Organic Light Emitting Device)ディスプレイなどの一般的な表示出力装置により構成され、表示部16の背景画像(壁紙)、壁紙に重畳表示される電池残量や電波強度を概略的に示す画像などの各種アイコンや、着信時に表示される画像および映像などを表示する。   The display unit 16 is configured by a general display output device such as a liquid crystal display or an OLED (Organic Light Emitting Device) display, for example, and displays a background image (wallpaper) of the display unit 16, a remaining battery level and radio waves superimposed on the wallpaper. Various icons such as an image that schematically shows the intensity, and an image and video that are displayed when an incoming call is received are displayed.

マイクロフォン17は、ユーザによる音声入力を音声信号に変換して送話を行う。   The microphone 17 converts the voice input by the user into a voice signal and transmits the voice.

図2は、携帯電話機10の内部構成例を概略的に示すブロック図である。   FIG. 2 is a block diagram schematically showing an internal configuration example of the mobile phone 10.

図2に示すように、携帯電話機10は、さらにアンテナ21、送受信部22、データの一時的な記憶媒体としてのリングバッファ23、作業メモリ24、記憶部25、および制御部26を有する。   As shown in FIG. 2, the mobile phone 10 further includes an antenna 21, a transmission / reception unit 22, a ring buffer 23 as a temporary storage medium for data, a work memory 24, a storage unit 25, and a control unit 26.

アンテナ21は、図示しない無線基地局との間で通信電波の送受信を行う。   The antenna 21 transmits and receives communication radio waves to and from a radio base station (not shown).

送受信部22は、無線信号を送受信する無線回路であり、制御部26から出力される通信データを変調し、アンテナ21を介して送信する。また、アンテナ21を介して受信した通信データを復調し、主制御部26へ出力する。通信データには、少なくとも通話のための音声データ、および作業メモリ24にコピーされた所要のデータ(所要のログ)が含まれる。   The transmission / reception unit 22 is a radio circuit that transmits / receives a radio signal, modulates communication data output from the control unit 26, and transmits the data via the antenna 21. In addition, the communication data received via the antenna 21 is demodulated and output to the main control unit 26. The communication data includes at least voice data for a call and required data (required log) copied to the work memory 24.

図3は、リングバッファ23がレコードにより構成される様子の一例を示す説明図である。また、図4は、レコードの構成の一例を示す説明図である。   FIG. 3 is an explanatory diagram showing an example of a state in which the ring buffer 23 is composed of records. FIG. 4 is an explanatory diagram showing an example of the structure of a record.

図3に示すように、リングバッファ23は、複数のレコードにより構成される。各レコードには、図4に示すように、各レコードに記憶されたデータ(以下、データ要素という)のデータ長(容量)およびデータ要素の種別の情報が少なくともヘッダ情報として付加される。たとえば、リングバッファ23に携帯電話機10のログが記憶される場合、リングバッファ23の各レコードには、オペレーティングシステムにより出力されるログ要素が、このログ要素のデータ長および種別の情報をヘッダ情報として付加されて記憶される。   As shown in FIG. 3, the ring buffer 23 is composed of a plurality of records. As shown in FIG. 4, at least header information is added to each record as data length (capacity) of data stored in each record (hereinafter referred to as data element) and data element type. For example, when the log of the mobile phone 10 is stored in the ring buffer 23, each record of the ring buffer 23 includes a log element output by the operating system, with the data length and type information of the log element as header information. Added and stored.

ここで、ログ要素の種別の情報とは、操作部14からのイベントログか、電池残量やアラーム機能発現などのステータスか、致命的なエラーが生じたことに伴うログか、などで分類された情報であってもよいし、たとえばレベル1〜レベル5などの携帯電話機10に対する影響度(重要度)に応じて複数段階にレベル分けされた情報であってもよいし、両者の組み合わせであってもよい。以下の説明では、ログ要素の種別が、携帯電話機10に対する影響度(重要度)に応じてレベル1(重要度低)〜レベル5(重要度高)の5段階にレベル分けされる場合の例について示す。   Here, the log element type information is classified according to whether it is an event log from the operation unit 14, a status such as a remaining battery level or an alarm function, or a log associated with a fatal error. For example, the information may be information divided into a plurality of levels according to the degree of influence (importance) on the mobile phone 10 such as level 1 to level 5, or a combination of both. May be. In the following description, an example in which the log element types are classified into five levels of level 1 (low importance) to level 5 (high importance) according to the degree of influence (importance) on the mobile phone 10. Show about.

リングバッファ23は、制御部26により制御されて、様々なデータ長のデータ要素(ログ要素など)を記憶したレコードを格納することができる。制御部26は、リングバッファ23に書込みを行う場合、それまでの最新レコードに続くアドレスにヘッダ情報を付加してデータ要素を記憶させる。また、リングバッファ23の終端アドレス(図3の紙面右下のアドレス)に到達すると、制御部26は、リングバッファ23の始端アドレス(図3の紙面左上のアドレス)に上書きしていく。このため、最も古いデータ要素を格納したレコードである先頭レコードは、始端アドレスから書き込まれているとは限らない。   The ring buffer 23 is controlled by the control unit 26 and can store records storing data elements (log elements, etc.) having various data lengths. When writing to the ring buffer 23, the control unit 26 adds the header information to the address following the latest record so far and stores the data element. Further, when the terminal address of the ring buffer 23 (address at the lower right of the drawing in FIG. 3) is reached, the control unit 26 overwrites the starting address (address at the upper left of the drawing in FIG. 3) of the ring buffer 23. For this reason, the first record, which is a record storing the oldest data element, is not always written from the start address.

したがって、制御部26は、リングバッファ23から読出しを行うために、先頭レコードの開始アドレス(以下、先頭アドレスという)を必要とする。また、制御部26は、現在アクセスしているレコードの開始アドレスを必要とする。この先頭アドレスおよびアクセス中のアドレスは、たとえばそれぞれオート変数として保持しておくとよい。   Therefore, in order to read from the ring buffer 23, the control unit 26 requires the start address of the top record (hereinafter referred to as the top address). In addition, the control unit 26 requires the start address of the currently accessed record. The head address and the address being accessed may be stored as, for example, auto variables.

制御部26は、リングバッファ23から所定の種別のデータ要素の読出しを行うためにリングバッファ23の全てのレコードに記憶されたデータ要素を検索する場合、まず先頭アドレスにアクセスし、先頭レコードを注目レコード(これからアクセスすべきレコード)とし、先頭アドレスを注目アドレスとして、先頭レコードのヘッダ情報から先頭レコードのデータ長の情報を取得する。先頭アドレスおよび先頭レコードのデータ長の情報から、先頭レコードに続くレコードの開始アドレスを得ることができる。続いて、この先頭レコードに続くレコードを注目レコードとし、この注目レコードの開始アドレスを注目アドレスとして注目レコードのヘッダ情報から注目レコードのデータ長の情報を取得する。注目アドレスおよび注目レコードのデータ長の情報から、注目レコードに続くレコードの開始アドレスを得ることができる。これを繰り返すことにより、制御部26は最終的に最も新しいデータ要素を格納したレコードである末尾レコードにアクセスすることができる。   When searching for data elements stored in all records of the ring buffer 23 in order to read out data elements of a predetermined type from the ring buffer 23, the control unit 26 first accesses the head address and pays attention to the head record. The record (the record to be accessed from now on) is used, and the information on the data length of the first record is acquired from the header information of the first record using the first address as the address of interest. From the information of the head address and the data length of the head record, the start address of the record following the head record can be obtained. Subsequently, the record following the first record is set as the target record, and the data length information of the target record is acquired from the header information of the target record using the start address of the target record as the target address. From the information on the target address and the data length of the target record, the start address of the record following the target record can be obtained. By repeating this, the control unit 26 can finally access the tail record that is a record storing the newest data element.

つまり、制御部26は、リングバッファ23に対してランダムにアクセスすることはできない。所定の種別のデータ要素を記憶したレコードにアクセスするためには、制御部26は、まず先頭レコードにアクセスし、先頭レコードから順次レコードをたどっていくことが必要となる。   That is, the control unit 26 cannot access the ring buffer 23 at random. In order to access a record in which a data element of a predetermined type is stored, the control unit 26 first needs to access the head record and sequentially follow the record from the head record.

図5は、従来の技術により所要のデータをリングバッファ23から作業メモリ24にコピーする際の様子の一例を示す説明図である。   FIG. 5 is an explanatory diagram showing an example of a state when required data is copied from the ring buffer 23 to the work memory 24 by the conventional technique.

たとえば、システムに不測の事態が発生した場合は、ログを解析することにより、ソフトウェアやハードウェアの不具合を特定することができる。従来、リングバッファ23にログを記憶させる携帯電話機において、リングバッファ23は、元々、携帯電話機から有線経由で取得することを前提として作られていた。このため、リングバッファ23の容量は無線通信を考慮したサイズではなく、比較的大きいものが多い。   For example, when an unexpected situation occurs in the system, it is possible to identify software or hardware problems by analyzing the log. Conventionally, in a mobile phone that stores a log in the ring buffer 23, the ring buffer 23 was originally made on the assumption that it is acquired from the mobile phone via a wired connection. For this reason, the capacity of the ring buffer 23 is not a size considering wireless communication, but is relatively large.

ところが、最近、無線経由でログを取得する方法が広く用いられるようになってきたため、ネットワーク負荷を低減するように、リングバッファ23から所定の条件にマッチするログを所定の容量だけ抽出する技術の開発が望まれている。この所定の容量は、携帯電話機10がログを送信するときに用いる無線通信プロトコルやその他の仕様によりあらかじめ上限として設定されている容量であることが多い。このため、リングバッファ23からこの所定の容量(仕様による上限サイズなど)を超えるログを抽出しても、所定の容量以下となるようにデータの調整を行う必要がある。   However, since a method of acquiring logs via wireless has been widely used recently, a technique for extracting a log that matches a predetermined condition from the ring buffer 23 by a predetermined capacity so as to reduce the network load. Development is desired. This predetermined capacity is often a capacity that is set as an upper limit in advance by a wireless communication protocol used when the mobile phone 10 transmits a log and other specifications. For this reason, even if a log exceeding this predetermined capacity (such as the upper limit size according to the specification) is extracted from the ring buffer 23, it is necessary to adjust the data so that it does not exceed the predetermined capacity.

特に、システムに不測の事態が発生した場合に行われるログ解析に重要なログは、できるだけ時系列的に現在に近いものである。したがって、所定の容量(仕様による上限サイズなど)以下となるようにログ要素の取捨選択による調整を行う際には、できるだけ時系列的に現在に近いログで所要のログが構成されるようにすることが好ましい。   In particular, logs that are important for log analysis when an unexpected situation occurs in the system are as close to the present as possible in time series. Therefore, when making adjustments by selecting log elements so that they are less than a predetermined capacity (such as the upper limit size according to specifications), the required logs should be composed of logs that are as close to the present as possible in time series. It is preferable.

このように、携帯電話機10のユーザや管理者が、所要のデータとして、末尾レコード(最新レコード)から先頭レコード側(最も古いレコード側)に向かって所定の条件を満たすデータ要素を所定の量だけ必要とする場合、従来の技術では、図5に示すように、制御部26は、先頭レコードからデータを順次検索し、所定の条件を満たすレコードを全て作業メモリ24にコピーし、最後に作業メモリ24上で所定の量だけ切り出すことが必要となる。このとき、所定の条件を満たすレコードの総容量が事前には不明であるため、制御部26は、リングバッファ23の記憶容量と同一容量の領域を作業メモリ24に確保する必要がある。このため、図5の作業メモリ24に太線で示した領域以外の領域のように、確保されたものの結果的に無駄となってしまう領域が生じてしまう場合が多い。   As described above, the user or the administrator of the mobile phone 10 sets, as required data, a predetermined amount of data elements that satisfy a predetermined condition from the last record (latest record) to the first record side (oldest record side). If necessary, in the conventional technique, as shown in FIG. 5, the control unit 26 sequentially retrieves data from the top record, copies all records satisfying a predetermined condition to the work memory 24, and finally finishes the work memory. It is necessary to cut out a predetermined amount on 24. At this time, since the total capacity of records satisfying the predetermined condition is unknown in advance, the control unit 26 needs to secure an area of the same capacity as the storage capacity of the ring buffer 23 in the work memory 24. For this reason, there are many cases where an area that is reserved but is wasted as a result is generated, such as an area other than the area indicated by a thick line in the work memory 24 of FIG.

しかし、携帯電話機10の作業メモリ24は、機器全体を小型化および軽量化するために、小容量であることが多い。このため、リングバッファ23から所要のデータを抽出する場合に生じる無駄な作業メモリ24の占有が、システムを不安定にしたり動作不良の原因となったりする場合がある。   However, the work memory 24 of the mobile phone 10 often has a small capacity in order to reduce the size and weight of the entire device. For this reason, the unnecessary occupation of the work memory 24 that occurs when extracting required data from the ring buffer 23 may cause the system to become unstable or cause malfunction.

そこで、本実施形態に係る携帯電話機10は、所定の種別条件を満たすログ要素を抽出する際に、時系列的に現在に近いログ要素で構成され、かつ抽出されたログ要素の総容量が所定の容量以下となるように複数のログ要素(所要のログ)を抽出し、この所要のログの容量と同一容量の領域のみを作業メモリ24に確保するようにする。   Therefore, the mobile phone 10 according to the present embodiment is configured with log elements that are close to the present in time series when extracting log elements that satisfy a predetermined type condition, and the total capacity of the extracted log elements is predetermined. A plurality of log elements (required logs) are extracted so that the capacity is equal to or less than the required capacity, and only an area having the same capacity as the required log capacity is secured in the work memory 24.

作業メモリ24は、たとえばRAMにより構成され、CPUが実行するプログラムおよびデータを一時的に格納するワークエリアを提供する。また、作業メモリ24は、制御部26により制御されて、リングバッファ23から所要のデータをコピーされる。このコピーにあたり、制御部26は、作業メモリ24の領域のうち所要のデータの容量と同一容量の領域のみを確保し利用する。   The work memory 24 is constituted by a RAM, for example, and provides a work area for temporarily storing programs and data executed by the CPU. Further, the work memory 24 is controlled by the control unit 26, and necessary data is copied from the ring buffer 23. For this copy, the control unit 26 secures and uses only an area having the same capacity as the required data capacity in the work memory 24 area.

記憶部25は、データの書き換えが可能な不揮発性のメモリであり、たとえば電子メールデータや音楽データなどの各種データを記憶している。   The storage unit 25 is a nonvolatile memory capable of rewriting data, and stores various data such as e-mail data and music data.

制御部26は、CPU、およびROMをはじめとする記憶媒体などにより構成され、この記憶媒体に記憶されたプログラムに従って、携帯電話機10の処理全体を制御する。   The control unit 26 is configured by a CPU, a storage medium such as a ROM, and the like, and controls the entire processing of the mobile phone 10 according to a program stored in the storage medium.

制御部26のCPUは、ROMをはじめとする記憶媒体に記憶されたデータ抽出プログラムおよびこのプログラムの実行のために必要なデータを作業メモリ24へロードし、このデータ抽出プログラムに従って、所要のデータの容量と同一容量の領域のみを作業メモリ24に確保してリングバッファ23から所要のデータを抽出する処理を実行する。なお、このデータ抽出プログラムは、BIOSに組み込まれてもよい。   The CPU of the control unit 26 loads a data extraction program stored in a storage medium such as a ROM and data necessary for the execution of the program into the work memory 24, and in accordance with the data extraction program, stores the necessary data. Only a region having the same capacity as that of the capacity is secured in the work memory 24 and processing for extracting required data from the ring buffer 23 is executed. Note that this data extraction program may be incorporated in the BIOS.

制御部26のROMをはじめとする記憶媒体は、携帯電話機10の起動プログラムやデータ抽出プログラムをはじめとする各種プログラムを実行するために必要な各種データを記憶する。   The storage medium such as the ROM of the control unit 26 stores various data necessary for executing various programs including a startup program of the mobile phone 10 and a data extraction program.

なお、ROMをはじめとする記憶媒体は、磁気的もしくは光学的記録媒体または半導体メモリなどの、CPUにより読み取り可能な記録媒体を含んだ構成を有し、これら記憶媒体内のプログラムおよびデータの一部または全部は電子ネットワークを介してダウンロードされるように構成してもよい。   A storage medium such as a ROM has a configuration including a recording medium readable by a CPU, such as a magnetic or optical recording medium or a semiconductor memory, and a part of programs and data in the storage medium. Or you may comprise so that all may be downloaded via an electronic network.

図6は、制御部26のCPUによる機能実現部の構成例を示す概略的なブロック図である。なお、この機能実現部は、CPUを用いることなく回路などのハードウエアロジックによって構成してもよい。   FIG. 6 is a schematic block diagram illustrating a configuration example of the function realization unit by the CPU of the control unit 26. In addition, this function realization part may be comprised by hardware logics, such as a circuit, without using CPU.

図6に示すように、制御部26のCPUは、データ抽出プログラムによって、少なくとも検索範囲決定部30、領域確保部40および抽出部50として機能する。この各部30、40および50は、作業メモリ24の所要のワークエリアを、データの一時的な格納場所として利用する。   As illustrated in FIG. 6, the CPU of the control unit 26 functions as at least the search range determination unit 30, the area securing unit 40, and the extraction unit 50 by the data extraction program. Each unit 30, 40 and 50 uses a required work area of the work memory 24 as a temporary storage location for data.

図7は、本発明に係る携帯電話機10の検索範囲決定部30により決定された検索範囲から抽出された所要のデータが作業メモリ24にコピーされる際の様子の一例を示す説明図である。   FIG. 7 is an explanatory diagram showing an example of a state when required data extracted from the search range determined by the search range determination unit 30 of the mobile phone 10 according to the present invention is copied to the work memory 24.

検索範囲決定部30は、注目レコード設定部31、検索開始アドレス設定部32、種別取得部33、種別判定部34、データ長取得部35、積算データ長算出部36、データ容量判定部37および末尾レコード判定部38を有する。この検索範囲決定部30は、図7左の太線に示すように所定のデータ種別条件を満たすデータ要素により構成される所要のデータが含まれる範囲を検索範囲としてリングバッファ23に対して決定するとともに、所要のデータの容量を算出する。   The search range determination unit 30 includes an attention record setting unit 31, a search start address setting unit 32, a type acquisition unit 33, a type determination unit 34, a data length acquisition unit 35, an integrated data length calculation unit 36, a data capacity determination unit 37, and a tail. A record determination unit 38 is included. The search range determination unit 30 determines, as a search range, the ring buffer 23 as a search range including a required data composed of data elements satisfying a predetermined data type condition as indicated by a thick line on the left of FIG. Calculate the required data capacity.

注目レコード設定部31は、制御部26が次にアクセスすべきレコードを注目レコードに設定し、この注目レコードの開始アドレス(注目アドレス)を作業メモリ24の所要のワークエリアなどに一時的に記憶させる。   The target record setting unit 31 sets the next record to be accessed by the control unit 26 as the target record, and temporarily stores the start address (target address) of the target record in a required work area of the work memory 24 or the like. .

検索開始アドレス設定部32は、検索開始アドレスを作業メモリ24の所要のワークエリアなどに一時的に記憶させることにより、検索開始アドレスを設定する。   The search start address setting unit 32 sets the search start address by temporarily storing the search start address in a required work area of the work memory 24 or the like.

種別取得部33は、現在アクセス中のレコードに記憶されたデータ要素の種別の情報を取得する。   The type acquisition unit 33 acquires information on the type of the data element stored in the currently accessed record.

種別判定部34は、種別取得部33により取得されたデータ種別が所定の条件を満たす種別であるか否かを判定する。   The type determination unit 34 determines whether the data type acquired by the type acquisition unit 33 is a type that satisfies a predetermined condition.

データ長取得部35は、現在アクセス中のレコードのデータ長を取得する。   The data length acquisition unit 35 acquires the data length of the currently accessed record.

積算データ長算出部36は、データ長取得部35により取得されたデータ長を、作業メモリ24の所要のワークエリアに一時的に記憶されているデータ長の積算値に対して必要に応じて積算または減算する。   The integrated data length calculation unit 36 adds the data length acquired by the data length acquisition unit 35 to the integrated value of the data length temporarily stored in the required work area of the work memory 24 as necessary. Or subtract.

積算データ長算出部36は、データ長取得部35により取得されたデータ長を、作業メモリ24の所要のワークエリアに一時的に記憶されているデータ長の積算値に対して積算することにより、所定のデータ種別条件を満たすデータ要素の積算データ長を算出する。   The integrated data length calculation unit 36 integrates the data length acquired by the data length acquisition unit 35 with the integrated value of the data length temporarily stored in the required work area of the work memory 24, An integrated data length of data elements satisfying a predetermined data type condition is calculated.

データ容量判定部37は、積算データ長が所定の容量以下であるか否かを判定する。たとえば、所要のログを無線送信するために抽出する場合、無線送信に関する仕様上の上限容量などにより所要のログに対する所定の容量が決定される。   The data capacity determination unit 37 determines whether or not the accumulated data length is equal to or less than a predetermined capacity. For example, when a required log is extracted for wireless transmission, a predetermined capacity for the required log is determined based on an upper limit capacity in the specification related to wireless transmission.

末尾レコード判定部38は、現在アクセス中のレコードの次のレコードが先頭レコードまたは空レコードであるか否かを判定することにより、現在アクセス中のレコードが末尾レコードであるか否かを判定する。   The tail record determination unit 38 determines whether the record currently being accessed is the tail record by determining whether the next record after the currently accessed record is the head record or the empty record.

領域確保部40は、図7右に示すように、検索範囲決定部30により算出された所要のデータの容量と同一容量の領域を作業メモリ24に確保する。   As shown in the right side of FIG. 7, the area securing unit 40 secures an area having the same capacity as the required data calculated by the search range determining unit 30 in the work memory 24.

抽出部50は、検索開始アドレス取得部51、データコピー部52、注目レコード設定部31、種別取得部33、種別判定部34および末尾レコード判定部38を有する。この抽出部50は、図7に示すように、リングバッファ23の全範囲のうち検索範囲決定部30により決定された範囲を検索して所要のデータを抽出し、この抽出した所要のデータを領域確保部40により確保された作業メモリ24の領域にコピーする。   The extraction unit 50 includes a search start address acquisition unit 51, a data copy unit 52, an attention record setting unit 31, a type acquisition unit 33, a type determination unit 34, and a tail record determination unit 38. As shown in FIG. 7, the extraction unit 50 searches the range determined by the search range determination unit 30 out of the entire range of the ring buffer 23 and extracts the required data. Copy to the area of the work memory 24 secured by the securing unit 40.

なお、抽出部50の注目レコード設定部31、種別取得部33、種別判定部34および末尾レコード判定部38については、検索範囲判定部の注目レコード設定部31、種別取得部33、種別判定部34および末尾レコード判定部38と同様の構成を有するため、同一符号を付して説明を省略する。   Note that the attention record setting unit 31, the type acquisition unit 33, the type determination unit 34, and the end record determination unit 38 of the extraction unit 50 are the target record setting unit 31, the type acquisition unit 33, and the type determination unit 34 of the search range determination unit. Since the configuration is the same as that of the end record determination unit 38, the same reference numerals are given and description thereof is omitted.

検索開始アドレス取得部51は、作業メモリ24の所要のワークエリアなどに一時的に記憶された検索開始アドレスを取得する。   The search start address acquisition unit 51 acquires a search start address temporarily stored in a required work area of the work memory 24 or the like.

データコピー部52は、種別判定部34により所定の条件を満たす種別であると判定されたデータ要素を作業メモリ24にコピーする。   The data copy unit 52 copies the data element determined by the type determination unit 34 as a type satisfying a predetermined condition to the work memory 24.

次に、本実施形態に係る携帯電話機10の動作の一例について説明する。   Next, an example of the operation of the mobile phone 10 according to the present embodiment will be described.

図8は、携帯電話機10の制御部26により、所要のデータの容量と同一容量の領域のみを作業メモリ24に確保してリングバッファ23から所要のデータを抽出する処理を実行する際の手順を示すフローチャートである。図8において、Sに数字を付した符号は、フローチャートの各ステップを示す。なお、以下の手順においては、プログラムの実行のために必要なデータが作業メモリ24の所要のワークエリアに適宜一時的に記憶される場合の例について説明したが、この一時的な記憶場所は作業メモリ24に限られず、たとえばCPUのキャッシュメモリでもよいし記憶部25でもよい。   FIG. 8 shows a procedure when the control unit 26 of the mobile phone 10 executes a process of securing only an area having the same capacity as the required data capacity in the work memory 24 and extracting the required data from the ring buffer 23. It is a flowchart to show. In FIG. 8, reference numerals with numbers added to S indicate steps in the flowchart. In the following procedure, an example has been described in which data necessary for program execution is temporarily stored in a required work area of the work memory 24 as appropriate. For example, a CPU cache memory or a storage unit 25 may be used.

この手順は、先頭アドレスの情報がオート変数にセットされるなどして制御部26により利用可能な状態となってスタートとなる。   This procedure starts when the information of the head address is set to an auto variable and is made available by the control unit 26.

なお、以下の説明では、リングバッファ23が携帯電話機10のログを記憶しており、システムに重大なエラーが生じてシステムが自動的にリセットされ、制御部26がシステムに重大なエラーが生じたことを検知してスタートとなる場合の例について示す。   In the following description, the ring buffer 23 stores the log of the mobile phone 10, a serious error occurs in the system, the system is automatically reset, and the control unit 26 causes a serious error in the system. An example of a case where a start is detected by detecting this.

制御部26は、たとえばシステムから所定のイベント信号を入力され、あるいは起動時にリングバッファ23に記憶されたログ要素のうち最新のものが重要度の高い種別のログ要素であることを検知したりなどして、システムに重大なエラーが生じたことを検知することができる。   For example, the control unit 26 receives a predetermined event signal from the system or detects that the latest log element stored in the ring buffer 23 at the time of activation is a log element of a high importance type. Thus, it is possible to detect that a serious error has occurred in the system.

リングバッファ23に携帯電話機10のログが記憶される場合、この所定のイベント信号としてはシステムにトラブルが発生したことを示唆する信号を挙げることができる。システムにトラブルが発生した場合には、システムの状態が、通常起動状態からユーザによる操作を受け付けない状態(いわゆるフリーズ状態)に移行したり、自動的にまたはユーザの指示により再起動状態に移行したりすることが多い。したがって、リングバッファ23に携帯電話機10のログが記憶される場合、制御部26は、所定のイベント信号として、例えば自動再起動(リセット)が開始される旨のイベント信号をあらかじめ割り当てておくとよい。   When the log of the mobile phone 10 is stored in the ring buffer 23, the predetermined event signal may include a signal indicating that a trouble has occurred in the system. When a problem occurs in the system, the system status changes from the normal startup status to a status in which user operations are not accepted (so-called freeze status), or to the restart status automatically or by user instruction. Often. Therefore, when the log of the mobile phone 10 is stored in the ring buffer 23, the control unit 26 may assign in advance an event signal indicating that automatic restart (reset) is started as a predetermined event signal, for example. .

まず、ステップS1において、検索範囲決定部30は、検索範囲内に含まれる所定のデータ種別条件を満たすデータ要素の積算データ長が所定の容量以下となるよう、リングバッファ23に対して検索範囲を決定する(図7左の太線で囲まれた範囲参照)。また、検索範囲決定部30は、所要のデータ(検索範囲内に含まれる所定のデータ種別条件を満たすデータ要素により構成されるデータ要素群)の容量を算出する。   First, in step S1, the search range determination unit 30 sets a search range for the ring buffer 23 so that the accumulated data length of data elements satisfying a predetermined data type condition included in the search range is equal to or less than a predetermined capacity. Determine (refer to the range surrounded by the thick line on the left in FIG. 7). Further, the search range determination unit 30 calculates the capacity of required data (a data element group composed of data elements satisfying a predetermined data type condition included in the search range).

より具体的には、検索範囲決定部30は、たとえば重要度レベル4以上の種別であるログ要素を抽出するとともに、検索範囲内に含まれるログ要素の積算データ長が所定の容量以下となるよう最も古いログ要素から順に範囲から除外されるように検索範囲を決定する。また、検索範囲決定部30は、所要のログ(検索範囲内に含まれるレベル4以上の種別であるログ要素により構成されるログ要素群)の容量を算出する。   More specifically, the search range determination unit 30 extracts, for example, log elements that are types of importance level 4 or higher, and the integrated data length of log elements included in the search range is equal to or less than a predetermined capacity. The search range is determined so as to be excluded from the range in order from the oldest log element. Further, the search range determination unit 30 calculates the capacity of a required log (a log element group composed of log elements of a type of level 4 or higher included in the search range).

次に、ステップS2において、領域確保部40は、所要のデータ(ログ)の容量と同一容量の領域を作業メモリ24に確保する(図7右参照)。   Next, in step S2, the area securing unit 40 secures an area having the same capacity as the required data (log) capacity in the work memory 24 (see the right in FIG. 7).

次に、ステップS3において、抽出部50は、リングバッファ23の全範囲のうち検索範囲決定部30により決定された範囲を検索して所要のデータ(ログ)を抽出し、この抽出した所要のログを領域確保部40により確保された作業メモリ24の領域にコピーする
以上の手順によって、所要のデータ(ログ)の容量と同一容量の領域のみを作業メモリ24に確保してリングバッファ23から所要のデータ(ログ)を抽出することができる。
Next, in step S3, the extraction unit 50 searches the range determined by the search range determination unit 30 out of the entire range of the ring buffer 23, extracts the required data (log), and extracts the extracted required log Is copied to the area of the working memory 24 secured by the area securing unit 40. By the above procedure, only the area having the same capacity as the capacity of the required data (log) is secured in the working memory 24 and the necessary data is stored from the ring buffer 23. Data (log) can be extracted.

続いて、検索範囲内に含まれる所定のデータ種別条件を満たすデータ要素の積算データ長が所定の容量以下となるよう、リングバッファ23に対して検索範囲を決定する際の手順を説明する。   Next, a procedure for determining the search range for the ring buffer 23 will be described so that the accumulated data length of data elements satisfying a predetermined data type condition included in the search range is equal to or less than a predetermined capacity.

図9は、図8のステップS1で検索範囲決定部30により実行される、検索範囲の決定処理の手順を示すサブルーチンフローチャートである。図9において、Sに数字を付した符号は、フローチャートの各ステップを示す。   FIG. 9 is a subroutine flowchart showing a search range determination process executed by the search range determination unit 30 in step S1 of FIG. In FIG. 9, the code | symbol which attached | subjected the number to S shows each step of a flowchart.

まず、ステップS11において、注目レコード設定部31は、先頭アドレスを作業メモリ24の所要のワークエリアなどに一時的に記憶させることにより、先頭レコードを注目レコードに設定する。この結果、制御部26はまず先頭レコードにアクセスする。   First, in step S11, the record-of-interest setting unit 31 sets the head record as the record of interest by temporarily storing the head address in a required work area of the work memory 24 or the like. As a result, the control unit 26 first accesses the first record.

次に、ステップS12において、検索開始アドレス設定部32は、先頭アドレスを検索開始アドレスに設定する。このとき、検索範囲は先頭レコードのみとなっている。   Next, in step S12, the search start address setting unit 32 sets the head address as the search start address. At this time, the search range is only the first record.

次に、ステップS13において、種別取得部33は、作業メモリ24の所要のワークエリアなどに一時的に記憶された注目アドレスにアクセスし、注目レコードのデータ種別の情報を取得する。   Next, in step S <b> 13, the type acquisition unit 33 accesses the attention address temporarily stored in a required work area of the work memory 24 and acquires information on the data type of the attention record.

次に、ステップS14において、種別判定部34は、種別取得部33により取得されたデータ種別が所定の条件を満たす種別であるか否かを判定する。所定の条件を満たす種別である場合はステップS15に進む。一方、所定の条件を満たさない種別である場合はステップS18に進む。   Next, in step S <b> 14, the type determination unit 34 determines whether the data type acquired by the type acquisition unit 33 is a type that satisfies a predetermined condition. If the type satisfies the predetermined condition, the process proceeds to step S15. On the other hand, if the type does not satisfy the predetermined condition, the process proceeds to step S18.

次に、ステップS15において、データ長取得部35は、現在アクセス中のレコードである注目レコードに記憶されたデータ要素のデータ長を、注目レコードのヘッダから取得する。   Next, in step S15, the data length acquisition unit 35 acquires the data length of the data element stored in the attention record that is the currently accessed record from the header of the attention record.

次に、ステップS16において、積算データ長算出部36は、データ長取得部35により取得されたデータ長を、作業メモリ24の所要のワークエリアに一時的に記憶されているデータ長の積算値に対して積算することにより、所定のデータ種別条件を満たすデータ要素の積算データ長を算出する。このステップS16を初めて実行する際は、作業メモリ24の所要のワークエリアに何も記憶されていないことに注意する。   Next, in step S <b> 16, the integrated data length calculation unit 36 changes the data length acquired by the data length acquisition unit 35 to the integrated value of the data length temporarily stored in the required work area of the work memory 24. By integrating, the integrated data length of the data element satisfying a predetermined data type condition is calculated. When this step S16 is executed for the first time, it is noted that nothing is stored in the required work area of the work memory 24.

次に、ステップS17において、データ容量判定部37は、積算データ長が所定の容量以下であるか否かを判定する。所定の容量以下の場合は、ステップS18に進む。一方、所定の容量より大きい場合は、ステップS20に進む。   Next, in step S17, the data capacity determination unit 37 determines whether or not the accumulated data length is equal to or less than a predetermined capacity. If it is less than the predetermined capacity, the process proceeds to step S18. On the other hand, if it is larger than the predetermined capacity, the process proceeds to step S20.

次に、ステップS18において、末尾レコード判定部38は、現在アクセス中の注目レコードの次のレコードが先頭レコードまたは空レコードであるか否かを判定する。注目レコードの次のレコードが先頭レコードまたは空レコードである場合、すなわち現在アクセス中のレコードが末尾レコードである場合、一連の手順は終了となり図8のステップS2に進む。一方、現在アクセス中のレコードが末尾レコードでない場合はステップS19に進む。   Next, in step S18, the tail record determination unit 38 determines whether or not the next record of the record of interest currently being accessed is the top record or an empty record. If the next record after the record of interest is the first record or the empty record, that is, if the currently accessed record is the last record, the series of procedures is completed, and the process proceeds to step S2 in FIG. On the other hand, if the currently accessed record is not the last record, the process proceeds to step S19.

次に、ステップS19において、注目レコード設定部31は、現在アクセス中の注目レコードの次のレコードを新たに注目レコードに設定し、ステップS13に戻る。   Next, in step S19, the record-of-interest setting unit 31 newly sets a record next to the record of interest currently being accessed as the record of interest, and returns to step S13.

他方、ステップS17において積算データ長が所定の容量より大きいと判定されると、ステップS20において、制御部26は、積算データ長が所定の容量以下となるよう、検索開始アドレスを再設定することにより検索範囲を調整する処理を実行する。   On the other hand, if it is determined in step S17 that the accumulated data length is greater than the predetermined capacity, in step S20, the control unit 26 resets the search start address so that the accumulated data length is equal to or less than the predetermined capacity. Execute processing to adjust the search range.

以上の手順により、所定のデータ種別条件を満たすデータ要素の積算データ長が所定の容量以下となるよう、リングバッファ23に対して検索範囲を決定することができる。   With the above procedure, the search range can be determined for the ring buffer 23 so that the integrated data length of the data elements satisfying the predetermined data type condition is equal to or less than the predetermined capacity.

続いて、積算データ長が所定の容量以下となるよう、検索開始アドレスを再設定することにより検索範囲を調整する際の手順を説明する。   Next, a procedure for adjusting the search range by resetting the search start address so that the accumulated data length is equal to or less than a predetermined capacity will be described.

図10は、図9のステップS20で検索範囲決定部30により実行される、検索範囲の調整処理の手順を示すサブルーチンフローチャートである。図10において、Sに数字を付した符号は、フローチャートの各ステップを示す。   FIG. 10 is a subroutine flowchart showing the procedure of the search range adjustment process executed by the search range determination unit 30 in step S20 of FIG. In FIG. 10, reference numerals with numbers added to S indicate steps in the flowchart.

また、図11は、検索開始アドレスを再設定することにより検索範囲を調整する様子の一例を示す説明図である。図11(a)には検索開始アドレスが先頭アドレスである場合の検索範囲の一例を示す説明図を、図11(b)には検索開始アドレスが先頭レコードの次のレコードの開始アドレスに変更された様子の一例を示す説明図を、それぞれ示した。また、図11(c)は、積算データ長が所定の容量以下となるよう、検索範囲から最も古い所定の条件を満たす種別のデータ要素を記憶したレコードを除外すべく、検索開始アドレスがこのレコードの次のレコードの開始アドレスに変更された様子の一例を示す説明図である。   FIG. 11 is an explanatory diagram showing an example of how the search range is adjusted by resetting the search start address. FIG. 11A illustrates an example of a search range when the search start address is the start address, and FIG. 11B illustrates the search start address changed to the start address of the next record after the start record. An explanatory view showing an example of the appearance is shown. Further, FIG. 11C shows that the search start address is set to this record so as to exclude the record storing the data element of the type satisfying the oldest predetermined condition from the search range so that the accumulated data length is equal to or less than the predetermined capacity. It is explanatory drawing which shows an example of a mode changed to the start address of the next record of.

図10に示す手順の主眼は、所定の容量を超えてしまった積算データ長が所定の容量以下となるよう、検索開始アドレスを再設定することにより、最も古いデータ要素から順に検索範囲外としていくことにある。   The main point of the procedure shown in FIG. 10 is that the search start address is reset so that the accumulated data length that exceeds the predetermined capacity is equal to or less than the predetermined capacity, so that the oldest data elements are sequentially out of the search range. There is.

ステップS201において、種別取得部33は、作業メモリ24の所要のワークエリアなどに一時的に記憶された検索開始アドレスの情報を取得して検索開始アドレスにアクセスし、検索開始レコードに記憶されたデータ要素の種別の情報を取得する。このステップS201を初めて実行する場合、検索開始アドレスは先頭アドレスと同一である(図11(a)参照)。   In step S201, the type acquisition unit 33 acquires information on the search start address temporarily stored in a required work area of the work memory 24, accesses the search start address, and stores the data stored in the search start record. Get element type information. When this step S201 is executed for the first time, the search start address is the same as the head address (see FIG. 11A).

次に、ステップS202において、種別判定部34は、種別取得部33により取得されたデータ種別が所定の条件を満たす種別であるか否かを判定する。所定の条件を満たす種別である場合(図11(b)参照)はステップS203に進む。一方、所定の条件を満たさない種別である場合はステップS206に進む。   Next, in step S <b> 202, the type determination unit 34 determines whether the data type acquired by the type acquisition unit 33 is a type that satisfies a predetermined condition. If the type satisfies the predetermined condition (see FIG. 11B), the process proceeds to step S203. On the other hand, if the type does not satisfy the predetermined condition, the process proceeds to step S206.

次に、ステップS203において、データ長取得部35は、現在アクセス中のレコードである検索開始レコードに記憶されたデータ要素のデータ長を、検索開始レコードのヘッダから取得する。   Next, in step S203, the data length acquisition unit 35 acquires the data length of the data element stored in the search start record that is the currently accessed record from the header of the search start record.

次に、ステップS204において、積算データ長算出部36は、データ長取得部35により取得されたデータ長を、作業メモリ24の所要のワークエリアに一時的に記憶されているデータ長の積算値から減算する。   Next, in step S <b> 204, the integrated data length calculation unit 36 calculates the data length acquired by the data length acquisition unit 35 from the integrated value of the data length temporarily stored in the required work area of the work memory 24. Subtract.

次に、ステップS205において、データ容量判定部37は、積算データ長が所定の容量以下であるか否かを判定する。所定の容量より大きい場合はステップS206に進む。一方、所定の容量以下の場合はステップS207に進む。   Next, in step S205, the data capacity determination unit 37 determines whether or not the accumulated data length is equal to or less than a predetermined capacity. If larger than the predetermined capacity, the process proceeds to step S206. On the other hand, if it is less than the predetermined capacity, the process proceeds to step S207.

次に、ステップS206において、検索開始アドレス設定部32は、現在の検索開始レコードの次のレコードの開始アドレスを新たな検索開始アドレスに設定し、ステップS201に戻る。   Next, in step S206, the search start address setting unit 32 sets the start address of the record next to the current search start record as a new search start address, and returns to step S201.

他方、ステップS205で積算データ長が所定の容量以下と判定されると、ステップS207において、検索開始アドレス設定部32は、現在の検索開始レコードの次のレコードの開始アドレスを新たな検索開始アドレスに設定する(図11(c)参照)。   On the other hand, if it is determined in step S205 that the accumulated data length is equal to or smaller than the predetermined capacity, in step S207, the search start address setting unit 32 sets the start address of the record next to the current search start record as a new search start address. Setting is made (see FIG. 11C).

次に、ステップS208において、種別取得部33は、新たな検索開始レコードに記憶されたデータ要素の種別の情報を取得する。   Next, in step S208, the type acquisition unit 33 acquires information on the type of the data element stored in the new search start record.

次に、ステップS209において、種別判定部34は、種別取得部33により取得されたデータ種別が所定の条件を満たす種別であるか否かを判定する。所定の条件を満たす種別である場合は、一連の手順を終了し、図9のステップS18に進む。一方、所定の条件を満たさない種別である場合はステップS207に戻る。   Next, in step S209, the type determination unit 34 determines whether or not the data type acquired by the type acquisition unit 33 is a type that satisfies a predetermined condition. If the type satisfies the predetermined condition, the series of procedures is terminated, and the process proceeds to step S18 in FIG. On the other hand, if the type does not satisfy the predetermined condition, the process returns to step S207.

以上の手順により、積算データ長が所定の容量以下となるよう、検索開始アドレスを再設定することにより検索範囲を調整することができる。   By the above procedure, the search range can be adjusted by resetting the search start address so that the accumulated data length is equal to or less than the predetermined capacity.

なお、ステップS208およびS209の手順は検索範囲の開始レコードを所定の条件を満たすデータ要素を記憶したレコードにするための手順であるが、省略しても構わない。省略した場合、ステップS208およびS209を行わない分手間が省ける一方、検索範囲が広くなってしまうために図12で示す手順にかかる手間が増える。   Note that the procedures in steps S208 and S209 are procedures for making the start record of the search range a record storing data elements that satisfy a predetermined condition, but may be omitted. If omitted, the time required for not performing steps S208 and S209 can be saved, while the search range becomes wider, and the time required for the procedure shown in FIG. 12 increases.

また、図9および図10の手順の説明では検索範囲の終了レコード(検索範囲内の最新のレコード)が末尾レコードである場合の例について示したが、検索範囲の終了レコードを所定の条件を満たすデータ要素を記憶したレコードにしてもよい。この場合、所定の条件を満たすデータ要素を記憶した最新のレコードのアドレスを作業メモリ24の所要のワークエリアなどに記憶しておけばよい。より具体的には、図9のステップS14のYESからステップS17までの間に「注目レコードのアドレスを記憶媒体の所要の領域に上書き記憶」するステップを実行すれば、図9に示す手順が終了すると同時に検索範囲の終了レコードのアドレスが記憶媒体の所要の領域に記憶されていることになる。   In the description of the procedures in FIGS. 9 and 10, the example in which the end record of the search range (the latest record in the search range) is the end record has been described. However, the end record of the search range satisfies the predetermined condition. A record storing data elements may be used. In this case, the address of the latest record that stores data elements that satisfy the predetermined condition may be stored in a required work area of the work memory 24 or the like. More specifically, if the step of “overwrite and store the address of the record of interest in a required area of the storage medium” is executed between YES and step S17 in step S14 in FIG. 9, the procedure shown in FIG. 9 is completed. At the same time, the address of the end record of the search range is stored in the required area of the storage medium.

図12は、図8のステップS3で抽出部50により実行される、リングバッファ23の全範囲のうち検索範囲決定部30により決定された範囲を検索して所要のデータ(ログ)を抽出し、この抽出した所要のログを領域確保部40により確保された作業メモリ24の領域にコピーする際の手順を示すサブルーチンフローチャートである。図12において、Sに数字を付した符号は、フローチャートの各ステップを示す。   FIG. 12 illustrates the range determined by the search range determination unit 30 out of the entire range of the ring buffer 23, which is executed by the extraction unit 50 in step S3 of FIG. 8, and extracts necessary data (log). 10 is a subroutine flowchart showing a procedure for copying the extracted required log to the area of the work memory 24 secured by the area securing unit 40. In FIG. 12, the reference numerals with numbers added to S indicate the steps in the flowchart.

ステップS31において、検索開始アドレス取得部51は、作業メモリ24の所要のワークエリアなどに一時的に記憶された検索開始アドレスを取得する。   In step S <b> 31, the search start address acquisition unit 51 acquires a search start address temporarily stored in a required work area of the work memory 24.

次に、ステップS32において、注目レコード設定部31は、検索開始アドレスを作業メモリ24の所要のワークエリアなどに一時的に記憶させることにより、先頭レコードを注目レコードに設定する。この結果、制御部26はまず検索開始アドレスにアクセスする。   Next, in step S <b> 32, the record-of-interest setting unit 31 sets the first record as the record of interest by temporarily storing the search start address in a required work area of the work memory 24. As a result, the control unit 26 first accesses the search start address.

次に、ステップS33において、種別取得部33は、作業メモリ24の所要のワークエリアなどに一時的に記憶された注目アドレスにアクセスし、注目レコードのデータ種別の情報を取得する。   Next, in step S33, the type acquisition unit 33 accesses an attention address temporarily stored in a required work area of the work memory 24, and acquires data type information of the attention record.

次に、ステップS34において、種別判定部34は、種別取得部33により取得されたデータ種別が所定の条件を満たす種別であるか否かを判定する。所定の条件を満たす種別である場合はステップS35に進む。一方、所定の条件を満たさない種別である場合はステップS36に進む。   Next, in step S34, the type determination unit 34 determines whether the data type acquired by the type acquisition unit 33 is a type that satisfies a predetermined condition. If the type satisfies the predetermined condition, the process proceeds to step S35. On the other hand, if the type does not satisfy the predetermined condition, the process proceeds to step S36.

次に、ステップS35において、データコピー部52は、注目レコードのデータ要素を作業メモリ24にコピーする。   Next, in step S <b> 35, the data copy unit 52 copies the data element of the record of interest to the work memory 24.

次に、ステップS36において、末尾レコード判定部38は、現在アクセス中の注目レコードの次のレコードが先頭レコードまたは空レコードであるか否かを判定する。注目レコードの次のレコードが先頭レコードまたは空レコードである場合、すなわち現在アクセス中のレコードが末尾レコードである場合、一連の手順は終了となる。一方、現在アクセス中のレコードが末尾レコードでない場合はステップS37に進む。   Next, in step S36, the tail record determination unit 38 determines whether or not the next record of the record of interest currently being accessed is the top record or an empty record. If the next record after the record of interest is the first record or an empty record, that is, if the currently accessed record is the last record, the series of procedures is completed. On the other hand, if the currently accessed record is not the last record, the process proceeds to step S37.

なお、検索範囲決定部30により決定された検索範囲の終了レコードが末尾レコードではなく所定の条件を満たすデータ要素を記憶したレコードの場合、所定の条件を満たすデータ要素を記憶した最新のレコード(検索範囲の終了レコード)のアドレスが作業メモリ24の所要のワークエリアなどに記憶されている。この場合、末尾レコード判定部38は、ステップS36において、現在アクセス中の注目レコードが検索範囲の終了レコードであるか否かを判定する。   When the end record of the search range determined by the search range determination unit 30 is not a tail record but a record storing a data element satisfying a predetermined condition, the latest record (search for storing the data element satisfying the predetermined condition) The address of the range end record) is stored in a required work area of the work memory 24 or the like. In this case, in step S36, the tail record determination unit 38 determines whether the attention record currently being accessed is the end record of the search range.

本実施形態に係る携帯電話機10は、リングバッファ23に格納された様々なデータの中から、所要の条件を満たすデータを、所定の容量だけ抽出する際に、作業メモリ24の占有領域を所定の容量に収めることができる。携帯電話機10をはじめとする携帯端末機は、一般的に作業メモリ24の容量に乏しいことが多い。本実施形態に係る携帯電話機10によれば、リングバッファ23のデータを抽出する際に無駄な作業メモリ24を使わずにすむため非常に利便性が高い。   When the cellular phone 10 according to the present embodiment extracts a predetermined amount of data satisfying a required condition from various data stored in the ring buffer 23, the cellular phone 10 allocates an occupied area of the work memory 24 to a predetermined area. Can fit in capacity. In general, mobile terminals such as the mobile phone 10 often have a small capacity of the work memory 24. The cellular phone 10 according to the present embodiment is very convenient because it eliminates the use of the useless work memory 24 when extracting the data in the ring buffer 23.

また、本実施形態に係る携帯電話機10によれば、システムに重大なエラーが生じてシステムが自動的にリセットされたときに、所定の種別条件を満たす(重要度の高い)ログ要素を最新のものから所定の容量以下だけ抽出することができる。このとき、抽出処理のために確保される作業メモリ24は所要のログと同一容量の領域のみである。このため、従来の技術に比べ、作業メモリ24を起動処理に十分集中させることができる。なお、作業メモリ24にコピーされた所要のログは、システム起動終了後、ユーザ非操作中などにネットワークを介して外部のログ管理装置などに送信するとよい。   Further, according to the mobile phone 10 according to the present embodiment, when a serious error occurs in the system and the system is automatically reset, log elements satisfying a predetermined type (high importance) are updated to the latest. Only a predetermined volume or less can be extracted from the object. At this time, the work memory 24 reserved for the extraction process is only an area having the same capacity as the required log. For this reason, the work memory 24 can be sufficiently concentrated on the starting process as compared with the conventional technique. Note that the required log copied to the work memory 24 may be transmitted to an external log management device or the like via the network when the user is not operating after the system is started.

なお、本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、上記実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。   Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, you may delete some components from all the components shown by the said embodiment.

たとえば、上記実施形態では、所定の容量に収まるように検索範囲を決定する手順(図9)について説明したが、ログをネットワーク転送しない場合など、特に厳格な容量の上限がない場合には、所定の条件を満たすデータ要素全ての容量と同一容量の領域を作業メモリ24に確保してもよい。この場合でも、従来の技術に比べ、作業メモリ24の無駄は十分に削減することができる。   For example, in the above embodiment, the procedure (FIG. 9) for determining the search range so as to fit within the predetermined capacity has been described. However, when there is no particularly strict upper limit of the capacity, such as when logs are not transferred over the network, An area having the same capacity as the capacity of all data elements satisfying the above condition may be secured in the work memory 24. Even in this case, waste of the work memory 24 can be sufficiently reduced as compared with the conventional technique.

また、検索開始アドレスや検索範囲の終了レコードの開始アドレスを所定の条件を満たすデータ要素とする場合には、上記実施形態で説明した例のほかにも、所定の条件を満たすデータ要素が抽出されるたびに、すなわち図9のステップS14のYESからS17の間のどこかに「注目レコードのデータ長および開始アドレスを記憶媒体に記憶」させるステップを実行し、ステップS20に変えて「注目レコードのデータ長および開始アドレスを記憶した記憶媒体のうち最も古いレコードの情報(データ長および開始アドレス)を削除」するステップを実行すればよい。この場合、図9の一連の手順が終了したとき、この記憶媒体の最も古いレコードの開始アドレスが検索開始アドレスとなっており、最も新しいレコードの開始アドレスが検索範囲の終了レコードの開始アドレスとなっている。   When the search start address and the start address of the end record of the search range are data elements that satisfy a predetermined condition, data elements that satisfy the predetermined condition are extracted in addition to the examples described in the above embodiment. Each time, that is, a step of “storing the data length and start address of the record of interest in the storage medium” somewhere between YES and S17 of step S14 in FIG. The step of “deleting information (data length and start address) of the oldest record in the storage medium storing the data length and start address” may be executed. In this case, when the series of steps in FIG. 9 is completed, the start address of the oldest record in this storage medium is the search start address, and the start address of the newest record is the start address of the end record in the search range. ing.

また、本発明は、本実施形態で説明した携帯電話機10のほかにも、様々な情報処理装置に適用可能であり、特に、PDA(Personal Digital Assistant)、携帯型ゲーム機、携帯型音楽再生機、携帯型動画再生機などの携帯端末に適用することが可能である。   Further, the present invention can be applied to various information processing apparatuses other than the mobile phone 10 described in the present embodiment, and in particular, a PDA (Personal Digital Assistant), a portable game machine, a portable music player. It can be applied to a portable terminal such as a portable video player.

また、本発明の実施形態では、フローチャートの各ステップは、記載された順序に沿って時系列的に行われる処理の例を示したが、必ずしも時系列的に処理されなくとも、並列的あるいは個別実行される処理をも含むものである。   Further, in the embodiment of the present invention, each step of the flowchart shows an example of processing that is performed in time series in the order described. The process to be executed is also included.

10 携帯電話機
11 第1の筐体
12 第2の筐体
13 連結部
14 操作部
15 スピーカ
16 表示部
17 マイクロフォン
21 アンテナ
22 送受信部
23 リングバッファ
24 作業メモリ
25 記憶部
26 制御部
30 検索範囲決定部
31 注目レコード設定部
32 検索開始アドレス設定部
33 種別取得部
34 種別判定部
35 データ長取得部
36 積算データ長算出部
37 データ容量判定部
38 末尾レコード判定部
40 領域確保部
50 抽出部
51 検索開始アドレス取得部
52 データコピー部
DESCRIPTION OF SYMBOLS 10 Mobile telephone 11 1st housing | casing 12 2nd housing | casing 13 Connection part 14 Operation part 15 Speaker 16 Display part 17 Microphone 21 Antenna 22 Transmission / reception part 23 Ring buffer 24 Work memory 25 Storage part 26 Control part 30 Search range determination part 31 attention record setting unit 32 search start address setting unit 33 type acquisition unit 34 type determination unit 35 data length acquisition unit 36 integrated data length calculation unit 37 data capacity determination unit 38 tail record determination unit 40 area reservation unit 50 extraction unit 51 search start Address acquisition unit 52 Data copy unit

Claims (7)

データ要素を格納した複数のレコードにより構成されたリングバッファと、
所定のデータ種別条件を満たす前記データ要素により構成される所要のデータが含まれる範囲を検索範囲として前記リングバッファに対して決定するとともに、前記所要のデータの容量を算出する検索範囲決定部と、
前記検索範囲決定部により算出された前記所要のデータの容量と同一容量の領域を作業メモリに確保する領域確保部と、
前記リングバッファの全範囲のうち前記検索範囲決定部により決定された前記範囲を検索して前記所要のデータを抽出し、この抽出した前記所要のデータを前記領域確保部により確保された前記作業メモリの領域にコピーする抽出部と、
を備えたことを特徴とする携帯端末機。
A ring buffer composed of a plurality of records storing data elements;
A search range determination unit that determines a range including the required data configured by the data element satisfying a predetermined data type condition as a search range for the ring buffer, and calculates a capacity of the required data;
An area securing unit that secures an area of the same capacity as the required data capacity calculated by the search range determining unit;
The working memory in which the required data is extracted by searching the range determined by the search range determination unit out of the entire range of the ring buffer, and the extracted required data is secured by the area securing unit. An extractor to be copied to the area of
A portable terminal comprising:
前記所要のデータは、前記リングバッファの全ての前記データ要素のうち、前記所定のデータ種別条件を満たす前記データ要素により構成され、
前記所要のデータの容量が所定の容量より大きいと、前記所定の容量以下となるよう最も古い前記データ要素を格納したレコードである先頭レコードに時系列的に近い前記所定のデータ種別条件を満たす前記データ要素順に前記所要のデータから除外され
請求項1記載の携帯端末機。
The required data, among all the data elements of the previous SL ring buffer is constituted by the predetermined data type satisfying the data element,
If the capacity of the required data is larger than a predetermined capacity , the predetermined data type condition that is chronologically close to the first record that is a record that stores the oldest data element is less than the predetermined capacity. the data elements Ru is excluded from the required data in order,
The mobile terminal according to claim 1.
前記検索範囲決定部は、
前記検索範囲の開始アドレスである検索開始アドレスを最も古い前記データ要素を格納したレコードである先頭レコードの開始アドレスである先頭アドレスに設定し、前記先頭レコードに格納された前記データ要素から最も新しい前記データ要素を格納したレコードである末尾レコードまで順次、前記所定のデータ種別条件を満たす前記データ要素のデータ長を積算し、この積算したデータ長が前記所定の容量より大きくなると、前記積算したデータ長が前記所定の容量以下となるよう前記先頭レコードに時系列的に近い前記所定のデータ種別条件を満たす前記データ要素を記憶したレコードから順に前記検索範囲から除外するように前記検索範囲の開始アドレスを再設定し、
前記抽出部は、
前記リングバッファのうち前記検索範囲決定部により設定された前記検索範囲の開始アドレスから前記末尾レコードまでの範囲で前記所定のデータ種別条件を満たす前記データ要素を抽出し、この抽出した前記データ要素を前記領域確保部により確保された前記作業メモリの領域に順次コピーする、
請求項に記載の携帯端末機。
The search range determination unit
The search start address that is the start address of the search range is set to the start address that is the start address of the first record that is the record that stores the oldest data element, and the newest data element from the data element that is stored in the first record The data length of the data element that satisfies the predetermined data type condition is sequentially accumulated up to the end record that is a record that stores the data element, and when the accumulated data length becomes larger than the predetermined capacity, the accumulated data length The start address of the search range is excluded from the search range in order from the record that stores the data element that satisfies the predetermined data type condition that is close to the first record in time series so that is less than the predetermined capacity. Reset
The extraction unit includes:
The data element satisfying the predetermined data type condition is extracted in a range from the search range start address set by the search range determination unit to the end record in the ring buffer, and the extracted data element is Sequentially copying to the area of the working memory secured by the area securing unit;
The mobile terminal according to claim 2 .
前記領域確保部は、
前記検索範囲決定部が積算した前記所定の容量以下のデータ長と同一容量の領域を前記作業メモリに確保する、
請求項3記載の携帯端末機。
The area securing unit is
An area of the same capacity as the data length equal to or less than the predetermined capacity accumulated by the search range determination unit is secured in the working memory;
The portable terminal according to claim 3.
前記データ要素は、システムにより出力されたログにより構成された、
請求項1ないし4のいずれか1項に記載の携帯端末機。
The data element consists of a log output by the system,
The portable terminal according to any one of claims 1 to 4.
所定のシステム状態に移行すると、
前記検索範囲決定部は、自動的に前記所定のデータ種別条件を満たす前記データ要素により構成される前記所要のデータが含まれる範囲を前記リングバッファに対して決定するとともに、前記所要のデータの容量を算出し、
前記領域確保部は、前記所要のデータの容量と同一容量の領域を作業メモリに確保し、
前記抽出部は、前記リングバッファのうち前記検索範囲決定部により決定された前記範囲を検索して前記所要のデータを抽出し、この抽出した前記所要のデータを前記領域確保部により確保された前記作業メモリの領域にコピーする、
請求項5記載の携帯端末機。
When transitioning to a given system state,
The search range determining unit is configured to determine the range that contains the required data is configured for the ring buffer by the previous SL data elements to automatically satisfy a predetermined data type condition, the required data To calculate the capacity of
The area securing unit secures an area of the same capacity as the required data capacity in a working memory;
The extraction unit searches the range determined by the search range determination unit in the ring buffer to extract the required data, and the extracted required data is secured by the area securing unit. Copy to working memory area,
The mobile terminal according to claim 5.
前記所定のシステム状態は、
前記システムに異常が生じることにより前記システムの再起動が開始された状態である、
請求項6記載の携帯端末機。
The predetermined system state is:
The system has been restarted due to an abnormality in the system.
The mobile terminal according to claim 6.
JP2009026654A 2009-02-06 2009-02-06 Portable terminal Expired - Fee Related JP5396894B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009026654A JP5396894B2 (en) 2009-02-06 2009-02-06 Portable terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009026654A JP5396894B2 (en) 2009-02-06 2009-02-06 Portable terminal

Publications (2)

Publication Number Publication Date
JP2010182200A JP2010182200A (en) 2010-08-19
JP5396894B2 true JP5396894B2 (en) 2014-01-22

Family

ID=42763747

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009026654A Expired - Fee Related JP5396894B2 (en) 2009-02-06 2009-02-06 Portable terminal

Country Status (1)

Country Link
JP (1) JP5396894B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6563578B1 (en) * 2018-09-26 2019-08-21 株式会社ラック Terminal device, file analysis device, file analysis system, file analysis method and program

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01279337A (en) * 1988-04-30 1989-11-09 Fujitsu Ltd Error logging control system
JPH09325903A (en) * 1996-04-01 1997-12-16 Mitsubishi Electric Corp Fault recording system
JPH11296414A (en) * 1998-04-10 1999-10-29 Mitsubishi Materials Corp Data storing device and record medium
JP2000181758A (en) * 1998-12-17 2000-06-30 Fujitsu Ltd On-memory constitution method for system log
JP2000305825A (en) * 1999-04-19 2000-11-02 Mitsubishi Electric Corp Buffer management device
JP4381839B2 (en) * 2003-03-11 2009-12-09 株式会社リコー Electronic device, remote management system thereof, log management method and program
JP2004310514A (en) * 2003-04-08 2004-11-04 Hitachi Ltd Information processing terminal and history information saving method
JP2008186174A (en) * 2007-01-29 2008-08-14 Toyota Motor Corp Running state recording device

Also Published As

Publication number Publication date
JP2010182200A (en) 2010-08-19

Similar Documents

Publication Publication Date Title
US8260355B2 (en) Portable communication terminal, program executed by portable communication terminal
US7584379B2 (en) Mobile terminal and software update method
CN109992523B (en) Memory processing method and device, electronic equipment and computer readable storage medium
WO2019024646A1 (en) Application management and control method, apparatus, and electronic device
CN104615546A (en) File data management method and device
CN108563754A (en) Document handling method, device, mobile terminal and computer readable storage medium
CN110888688A (en) Electronic equipment setting and restoring method and electronic equipment
CN105446768B (en) Method for upgrading system and device
JP5396894B2 (en) Portable terminal
JP2009284263A (en) Mobile phone, method of controlling mobile phone, control program of mobile phone, and computer readable recording medium
JP2007258895A (en) Mobile terminal, control method therefor, program, and recording medium
JP2008176367A (en) Input processing apparatus, input processing method, input processing program, and mobile terminal device
JP3927207B2 (en) Information terminal equipment
CN107766089B (en) System starting method and device
JP4485231B2 (en) Electronics
JP5201952B2 (en) Portable information terminal
JP2011108019A (en) Portable information terminal and history information report method therefor
JP2009151400A (en) Terminal apparatus and program
CN113961427B (en) System memory analysis method and electronic equipment
JP5275103B2 (en) Electronics
EP1986405A2 (en) Electronic telephone directory and telephone directory management method
CN111459528B (en) Frequency band upgrading method, system, storage medium and mobile terminal
KR20070013795A (en) Portable terminal
JP4421435B2 (en) Destination information management method for portable communication terminal and portable communication terminal
CN117687963A (en) Log storage method and device for small system, electronic equipment and storage medium

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20101028

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111013

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130613

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130702

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130830

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130924

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131007

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees