JP2011159148A - Mobile terminal - Google Patents

Mobile terminal Download PDF

Info

Publication number
JP2011159148A
JP2011159148A JP2010021121A JP2010021121A JP2011159148A JP 2011159148 A JP2011159148 A JP 2011159148A JP 2010021121 A JP2010021121 A JP 2010021121A JP 2010021121 A JP2010021121 A JP 2010021121A JP 2011159148 A JP2011159148 A JP 2011159148A
Authority
JP
Japan
Prior art keywords
application program
stability
evaluation
item
evaluation value
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.)
Granted
Application number
JP2010021121A
Other languages
Japanese (ja)
Other versions
JP5287751B2 (en
Inventor
Tsutomu Yamashita
勉 山下
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.)
Denso Wave Inc
Original Assignee
Denso Wave Inc
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 Denso Wave Inc filed Critical Denso Wave Inc
Priority to JP2010021121A priority Critical patent/JP5287751B2/en
Publication of JP2011159148A publication Critical patent/JP2011159148A/en
Application granted granted Critical
Publication of JP5287751B2 publication Critical patent/JP5287751B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a mobile terminal capable of efficiently protecting data handled by an application program, and also capable of effectively improving the operability and responsiveness of the application program. <P>SOLUTION: A mobile terminal 1 includes: a nonvolatile memory; a data protection means for preserving data to be protected in the nonvolatile memory when a specified condition is satisfied; a program storage means for storing the application program; and an execution means for executing the application program. The mobile terminal further includes: an evaluation value determination means for evaluating at least one of the content and the state of the application program on a determined item-by-item basis, and determining an evaluation value to be reflected on the calculation of stability, for each item; a stability calculation means for calculating the stability of the application program based on the determined evaluation value for each item; and a setting means for setting the data protection means to an effective state or an ineffective state based on the calculated stability. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、携帯端末に関するものである。   The present invention relates to a mobile terminal.

携帯型の光学的情報読取などの携帯端末では、使用時に様々な異常状態が発生する可能性があるため、万が一異常状態が発生した場合であってもデータを適切に保護することが求められている。例えば、特許文献1では、システムが不安定又は異常となる可能性が高くなった場合に保護機能をオンにする技術が開示されており、具体的には、異常電流発生時に電池の出力電流を遮断する保護回路を設けられており、この保護回路を迅速かつ確実に動作させるための構成が開示されている。   In portable terminals such as portable optical information readers, various abnormal conditions may occur during use. Therefore, even if an abnormal condition occurs, it is required to properly protect data. Yes. For example, Patent Document 1 discloses a technique for turning on a protection function when the possibility of a system becoming unstable or abnormal is high. Specifically, the output current of a battery is set when an abnormal current occurs. A protection circuit for blocking is provided, and a configuration for operating the protection circuit quickly and reliably is disclosed.

特開2005−20208公報Japanese Patent Laid-Open No. 2005-20208

ところで、上記携帯端末では、様々なアプリケーションプログラムが用いられており、これらアプリケーションプログラムでは、様々なユーザデータが用いられている。このようなユーザデータは、不意にシステム停止、電源遮断等の異常が生じた場合であっても適切に保護されることが求められており、その対策としては、例えばデータ保護機能を備えたバックアッププログラムを用意しておき、各アプリケーションプログラムの動作中にこのバックアッププログラムを起動させ、不揮発性メモリなどに保護すべきデータを保存するといった方法が考えられる。   By the way, in the portable terminal, various application programs are used, and various user data are used in these application programs. Such user data is required to be properly protected even when an abnormal situation such as a system shutdown or power interruption occurs unexpectedly. For example, a backup with a data protection function is required. A method is conceivable in which a program is prepared and this backup program is activated during operation of each application program, and data to be protected is stored in a nonvolatile memory or the like.

しかしながら、上記のような保護方法を用いる場合、ユーザデータに対するトランザクション処理中に発生する処理(例えば、不揮発性メモリからのデータ消去処理)がアプリケーションプログラムの通常動作の負担になり、アプリケーションプログラムの動作や応答性を悪くするという問題がある。特に、携帯端末のような組み込み機器では、ハードウェア資源が限られ、上記データ保護機能のためにハードウェアを無尽蔵に増設することはコスト的にもスペース的にも難しく、上記のような問題をハードウェア的に解決しにくい状況にある。   However, when the above protection method is used, processing (for example, data erasure processing from the non-volatile memory) that occurs during transaction processing for user data becomes a burden on the normal operation of the application program. There is a problem of worsening responsiveness. In particular, in embedded devices such as portable terminals, hardware resources are limited, and it is difficult to add hardware inexhaustively for the data protection function, both in terms of cost and space. The situation is difficult to solve in terms of hardware.

本発明は、上述した課題を解決するためになされたものであり、アプリケーションプログラムで扱われるデータを効率的に保護することができ、且つアプリケーションプログラムの動作性、応答性を効果的に向上し得る携帯端末を提供することを目的とする。   The present invention has been made to solve the above-described problems, can efficiently protect data handled by an application program, and can effectively improve the operability and responsiveness of the application program. An object is to provide a portable terminal.

請求項1の発明は、データを記憶する不揮発性メモリと、規定条件成立時に前記不揮発メモリに保護すべきデータを保存するデータ保護手段と、アプリケーションプログラムを記憶するプログラム記憶手段と、前記プログラム記憶手段に記憶された前記アプリケーションプログラムを実行する実行手段と、を備えた携帯端末であって、前記実行手段によって実行される前記アプリケーションプログラムの内容及び状態の少なくともいずれかを、決められた項目毎に評価し、前記項目毎に安定度算出に反映させるべき評価値を決定する評価値決定手段と、前記評価値決定手段によって決定された前記項目毎の前記評価値に基づいて、前記実行手段によって実行される前記アプリケーションプログラムの安定度を算出する安定度算出手段と、前記安定度算出手段によって算出された前記安定度に基づいて、前記データ保護手段を有効状態及び無効状態のいずれかに設定する設定手段と、を備えたことを特徴としている。   The invention of claim 1 is a nonvolatile memory for storing data, a data protection means for storing data to be protected in the nonvolatile memory when a prescribed condition is satisfied, a program storage means for storing an application program, and the program storage means An execution means for executing the application program stored in the portable terminal, wherein at least one of the contents and the state of the application program executed by the execution means is evaluated for each determined item And an evaluation value determination unit that determines an evaluation value to be reflected in the stability calculation for each item, and the execution unit executes the evaluation value based on the evaluation value for each item determined by the evaluation value determination unit. Stability calculation means for calculating the stability of the application program, and Based on the stability calculated by Jodo calculating means is characterized by comprising a setting means for setting to one of the valid state and an invalid state of the data protection means.

また、請求項2の発明は、請求項1に記載の携帯端末において、前記プログラム記憶手段に記憶される各アプリケーションプログラムに、アプリケーション種別を示す識別子が含まれ、前記実行手段によって実行される前記アプリケーションプログラムの前記識別子を確認し、当該アプリケーションプログラムの種別を判断する種別判断手段が設けられている。そして、前記評価値決定手段は、前記アプリケーションプログラムの種別を評価する種別評価項目が規定されると共に、前記種別判断手段によって判断された前記アプリケーションプログラムの前記種別に基づいて、当該アプリケーションプログラムについての前記種別評価項目の前記評価値を決定するように構成されている。   The invention of claim 2 is the portable terminal according to claim 1, wherein each application program stored in the program storage means includes an identifier indicating an application type and is executed by the execution means. Type determining means for checking the identifier of the program and determining the type of the application program is provided. The evaluation value determining means defines a type evaluation item for evaluating the type of the application program, and based on the type of the application program determined by the type determining means, The evaluation value of the type evaluation item is determined.

請求項3の発明は、請求項1又は請求項2に記載の携帯端末において、前記評価値決定手段が、前記アプリケーションプログラムの安定動作性を評価する安定動作評価項目として、前記アプリケーションプログラムのサイズを評価するサイズ評価項目、前記アプリケーションプログラムの動作時間を評価する動作時間評価項目、前記アプリケーションプログラムの起動回数を評価する起動回数評価項目、前記アプリケーションプログラムによるオペレーティングシステムの呼出回数を評価する呼出回数評価項目、前記アプリケーションプログラムの動作網羅率を評価する動作網羅率評価項目の少なくともいずれかの評価項目が規定されると共に、前記実行手段によって実行される前記アプリケーションプログラムについて前記安定動作評価項目毎に前記評価値を決定しており、前記安定度算出手段が、前記安定動作評価項目毎の前記評価値に基づいて前記安定度を算出している。   According to a third aspect of the present invention, in the portable terminal according to the first or second aspect, the evaluation value determining means sets the size of the application program as a stable operation evaluation item for evaluating the stable operation of the application program. Size evaluation item to be evaluated, operation time evaluation item to evaluate the operation time of the application program, activation frequency evaluation item to evaluate the activation frequency of the application program, call frequency evaluation item to evaluate the number of calls of the operating system by the application program In addition, at least one evaluation item of the operation coverage rate evaluation item for evaluating the operation coverage rate of the application program is defined, and the stable operation evaluation term for the application program executed by the execution unit Are determined the evaluation value for each, the stability calculation means has calculated the stability on the basis of the evaluation value for each of the stable operation evaluation items.

請求項4の発明は、請求項3に記載の携帯端末において、前記アプリケーションプログラムにおける複数の動作箇所に、各動作箇所の実行履歴を残すための動作履歴マークが付されており、前記評価値決定手段は、前記実行手段によって実行される前記アプリケーションプログラムにおける全動作履歴マークの内の実行済とされた前記動作履歴マークの割合に基づいて、当該アプリケーションプログラムの前記動作網羅率を求め、得られた前記動作網羅率に基づいて前記動作網羅率評価項目の前記評価値を決定している。   According to a fourth aspect of the present invention, in the portable terminal according to the third aspect, an operation history mark for leaving an execution history of each operation location is attached to a plurality of operation locations in the application program, and the evaluation value determination The means obtains the operation coverage rate of the application program based on a ratio of the operation history marks that have been executed among all the operation history marks in the application program executed by the execution means, and is obtained The evaluation value of the operation coverage rate evaluation item is determined based on the operation coverage rate.

請求項5の発明は、請求項1から請求項4のいずれか一項に記載の携帯端末において、前記評価値決定手段が、前記アプリケーションプログラムの不安定動作性を評価する不安定動作評価項目として、前記アプリケーションプログラムの停止履歴を評価する停止履歴評価項目が規定され、且つ前記実行手段によって実行される前記アプリケーションプログラムの停止履歴に基づいて、当該アプリケーションプログラムについての前記停止履歴評価項目の前記評価値を決定しており、前記安定度算出手段が、前記停止履歴評価項目の前記評価値に基づいて前記安定度を算出している。   According to a fifth aspect of the present invention, in the mobile terminal according to any one of the first to fourth aspects, the evaluation value determining means is an unstable operation evaluation item for evaluating the unstable operation of the application program. The stop history evaluation item for evaluating the stop history of the application program is defined, and the evaluation value of the stop history evaluation item for the application program based on the stop history of the application program executed by the execution unit And the stability calculation means calculates the stability based on the evaluation value of the stop history evaluation item.

請求項6の発明は、請求項1から請求項5のいずれか一項に記載の携帯端末において、前記設定手段は、前記実行手段による前記アプリケーションプログラムの実行が、当該アプリケーションプログラムの初回実行時である場合、前記データ保護機能を有効状態としている。   According to a sixth aspect of the present invention, in the mobile terminal according to any one of the first to fifth aspects, the setting unit is configured such that the execution of the application program by the execution unit is performed when the application program is executed for the first time. In some cases, the data protection function is enabled.

請求項1の発明では、不揮発性メモリと、規定条件成立時に前記不揮発メモリに保護すべきデータを保存するデータ保護手段とを備えた携帯端末において、更に、アプリケーションプログラムの内容及び状態の少なくともいずれかを、決められた項目毎に評価し、項目毎に安定度算出に反映させるべき評価値を決定する評価値決定手段と、この評価値決定手段によって決定された項目毎の評価値に基づいて、アプリケーションプログラムの安定度を算出する安定度算出手段と、この安定度算出手段によって算出された安定度に基づいて、データ保護手段を有効状態及び無効状態のいずれかに設定する設定手段とが設けられている。
この構成によれば、アプリケーションプログラムがどの程度の安定性を有するかを適切に評価することができ、各アプリケーションプログラムの安定度に基づいてデータ保護機能を有効状態とするか無効状態とするかを使い分けることができる。従って、すべのアプリケーションプログラムについて一律にデータ保護機能を有効にする場合と比較して、一部のアプリケーションプログラム(データ保護機能が無効状態とされるプログラム)の動作性、応答性を向上することができる。特に、データ保護機能を有効状態とするアプリケーションプログラムと、無効状態とするアプリケーションプログラムとを安定度に基づいて選別しているため、安定性が高く異常が発生しにくいアプリケーションプログラムについては、データ保護機能を無効状態として動作性、応答性を向上することができ、安定度が低く、相対的に異常が発生し易いアプリケーションプログラムについてはデータ保護機能を有効状態として異常に備えることができる。
According to the first aspect of the present invention, in a portable terminal comprising a non-volatile memory and data protection means for storing data to be protected in the non-volatile memory when a prescribed condition is satisfied, at least one of the contents and status of the application program is further provided. Is evaluated for each determined item, and based on the evaluation value for each item determined by the evaluation value determining means and the evaluation value determining means for determining the evaluation value to be reflected in the stability calculation for each item, Stability calculation means for calculating the stability of the application program, and setting means for setting the data protection means to either the valid state or the invalid state based on the stability calculated by the stability calculation means are provided. ing.
According to this configuration, it is possible to appropriately evaluate how much stability the application program has, and whether to enable or disable the data protection function based on the stability of each application program. Can be used properly. Therefore, the operability and responsiveness of some application programs (programs in which the data protection function is disabled) can be improved compared to the case where the data protection function is uniformly enabled for all application programs. it can. In particular, since application programs that enable the data protection function and application programs that disable the data protection function are selected based on their stability, the data protection function for application programs that are highly stable and less likely to cause abnormalities. As an invalid state, the operability and responsiveness can be improved, and an application program with low stability and relatively easy to generate an abnormality can be provided with an abnormal data protection function.

また、請求項2の発明では、プログラム記憶手段に記憶される各アプリケーションプログラムに、アプリケーション種別を示す識別子が含まれ、実行手段によって実行されるアプリケーションプログラムの識別子を確認し、当該アプリケーションプログラムの種別を判断する種別判断手段が設けられている。このようにすると、アプリケーション種別を迅速かつ正確に判断できるようになる。更に、評価値決定手段は、アプリケーションプログラムの種別を評価する種別評価項目が規定されると共に、種別判断手段によって判断されたアプリケーションプログラムの種別に基づいて、当該アプリケーションプログラムについての種別評価項目の評価値を決定している。このようにすると、安定性に大きな影響を及ぼすアプリケーションプログラムの種別を反映した適切な安定度を算出することができる。   According to the second aspect of the present invention, each application program stored in the program storage means includes an identifier indicating the application type. The identifier of the application program executed by the execution means is confirmed, and the type of the application program is determined. Type determining means for determining is provided. In this way, the application type can be determined quickly and accurately. Further, the evaluation value determining means defines a type evaluation item for evaluating the type of the application program, and based on the type of the application program determined by the type determining means, the evaluation value of the type evaluation item for the application program Is determined. In this way, it is possible to calculate an appropriate stability that reflects the type of application program that greatly affects the stability.

請求項3の発明では、評価値決定手段が、アプリケーションプログラムの安定動作性を評価する安定動作評価項目として、アプリケーションプログラムのサイズを評価するサイズ評価項目、アプリケーションプログラムの動作時間を評価する動作時間評価項目、アプリケーションプログラムの起動回数を評価する起動回数評価項目、アプリケーションプログラムによるオペレーティングシステムの呼出回数を評価する呼出回数評価項目、アプリケーションプログラムの動作網羅率を評価する動作網羅率評価項目の少なくともいずれかの評価項目が規定されると共に、実行手段によって実行されるアプリケーションプログラムについて安定動作評価項目毎に評価値を決定しており、安定度算出手段が、安定動作評価項目毎の評価値に基づいて安定度を算出している。
アプリケーションプログラムはプログラムサイズが大きい程不安定になる傾向があるため、アプリケーションプログラムのサイズを評価するサイズ評価項目を設けることでサイズを考慮して安定性をより適切に評価できるようになる。また、アプリケーションプログラムは、動作時間が大きいほど(即ち、長く動作しているほど)、信頼性が高く安定的であると考えることができるため、アプリケーションプログラムの動作時間を評価する動作時間評価項目を設けることで動作時間の実績を考慮して安定性をより適切に評価できるようになる。また、アプリケーションプログラムは、多く起動されたものほど信頼性が高く安定的であると考えることができるため、アプリケーションプログラムの起動回数を評価する起動回数評価項目を設けることで起動回数の実績を考慮して安定性をより適切に評価できるようになる。更に、アプリケーションプログラムは、OSの呼出回数が多いものほどOSとの連携動作の実績を評価することができ、信頼性が高く安定的であると考えることができるため、アプリケーションプログラムによるオペレーティングシステムの呼出回数を評価する呼出回数評価項目を設けることでOSとの連携を考慮して安定性をより適切に評価できるようになる。更に、アプリケーションプログラムは、想定される複数の動作について確認済みの動作が多いほど(想定される全動作における確認済みの動作の占める割合(動作網羅率)が大きいほど)、信頼性が高く安定的であると考えることができるため、アプリケーションプログラムの動作網羅率を評価する動作網羅率評価項目を設けることで、動作網羅率を考慮して安定性をより適切に評価できるようになる。
In the invention of claim 3, the evaluation value determining means is a size evaluation item for evaluating the size of the application program as an operation evaluation item for evaluating the stable operation of the application program, and an operation time evaluation for evaluating the operation time of the application program. At least one of the items, the number of activation evaluation items for evaluating the number of activations of the application program, the number of calls evaluation item for evaluating the number of calls of the operating system by the application program, and the operation coverage rate evaluation item for evaluating the operation coverage rate of the application program Evaluation items are defined, and an evaluation value is determined for each stable operation evaluation item for the application program executed by the execution means. The stability calculation means is based on the evaluation value for each stable operation evaluation item. And calculates the degree.
Since the application program tends to become unstable as the program size increases, it is possible to more appropriately evaluate the stability in consideration of the size by providing a size evaluation item for evaluating the size of the application program. In addition, since the application program can be considered to be more reliable and stable as the operation time is longer (that is, the operation is longer), an operation time evaluation item for evaluating the operation time of the application program is set. By providing it, it becomes possible to more appropriately evaluate the stability in consideration of the actual operating time. In addition, application programs can be considered to be more reliable and more stable as they are started.Therefore, the number of start-up times is evaluated in order to evaluate the number of start-ups of application programs. Therefore, the stability can be evaluated more appropriately. Furthermore, since the application program can evaluate the performance of the cooperative operation with the OS as the OS is called more frequently, and can be considered to be reliable and stable, the application program can call the operating system. By providing the number-of-calls evaluation item for evaluating the number of times, the stability can be more appropriately evaluated in consideration of cooperation with the OS. In addition, application programs are more reliable and stable as the number of confirmed operations for a plurality of possible operations increases (the proportion of the confirmed operations in all the assumed operations increases (operation coverage)). Therefore, by providing an operation coverage rate evaluation item for evaluating the operation coverage rate of the application program, it is possible to more appropriately evaluate the stability in consideration of the operation coverage rate.

請求項4の発明では、アプリケーションプログラムにおける複数の動作箇所に、各動作箇所の実行履歴を残すための動作履歴マークが付されており、評価値決定手段は、実行手段によって実行されるアプリケーションプログラムにおける全動作履歴マークの内の実行済とされた動作履歴マークの割合に基づいて、当該アプリケーションプログラムの動作網羅率を求め、得られた動作網羅率に基づいて動作網羅率評価項目の評価値を決定している。
このようにすると、アプリケーションプログラムに含まれる各動作箇所が実行された実績があるか否かを確実に確認でき、アプリケーションプログラム全体の中に、実行された実績のある動作箇所がどの程度含まれているかをより精度高く確認できる。そして、このように算出される動作網羅率に基づいて安定度を算出すれば、安定性をより一層適切に評価できるようになる。
In the invention of claim 4, an operation history mark for leaving an execution history of each operation location is attached to a plurality of operation locations in the application program, and the evaluation value determining means is the application program executed by the execution means. Based on the ratio of the operation history marks that have been executed among all the operation history marks, the operation coverage rate of the application program is obtained, and the evaluation value of the operation coverage rate evaluation item is determined based on the obtained operation coverage rate is doing.
In this way, it is possible to reliably check whether or not each operation location included in the application program has been executed, and how many operation locations that have been executed are included in the entire application program. Can be confirmed with higher accuracy. If the stability is calculated based on the operation coverage rate calculated in this way, the stability can be more appropriately evaluated.

請求項5の発明では、アプリケーションプログラムの不安定動作性を評価する不安定動作評価項目として、アプリケーションプログラムの停止履歴を評価する停止履歴評価項目が規定され、且つ実行手段によって実行されるアプリケーションプログラムの停止履歴に基づいて、当該アプリケーションプログラムについての停止履歴評価項目の評価値を決定している。そして、このような停止履歴評価項目の評価値に基づいて安定度を算出している。
このようにすると、アプリケーションプログラムの安定性に大きな影響を及ぼす「停止履歴」を反映して安定度を算出することができ、過去に停止した事実を適切に考慮してアプリケーションプログラムの安定性をより的確に判断できる。
In the invention of claim 5, the stop history evaluation item for evaluating the stop history of the application program is defined as the unstable operation evaluation item for evaluating the unstable operation of the application program, and the application program executed by the execution means Based on the stop history, the evaluation value of the stop history evaluation item for the application program is determined. And stability is computed based on the evaluation value of such a stop history evaluation item.
In this way, the stability can be calculated by reflecting the “stop history” that has a significant impact on the stability of the application program, and the stability of the application program can be further improved by properly considering the fact that it has stopped in the past. Can be judged accurately.

請求項6の発明では、実行手段によるアプリケーションプログラムの実行が、当該アプリケーションプログラムの初回実行時である場合、データ保護機能を有効状態としている。このようにすると、アプリケーションプログラムの動作実績が低い初回実行にはデータ保護機能を優先させることができ、不意の異常状態に対して効率的に対策をとることができる。   According to the sixth aspect of the present invention, when the execution of the application program by the execution means is the first execution time of the application program, the data protection function is enabled. In this way, the data protection function can be prioritized for the first execution when the operation performance of the application program is low, and it is possible to efficiently take measures against unexpected abnormal conditions.

図1は、本発明の第1実施形態に係る携帯端末の電気的構成を概略的に例示するブロック図である。FIG. 1 is a block diagram schematically illustrating an electrical configuration of the mobile terminal according to the first embodiment of the present invention. 図2(A)は、制御回路とメモリの構成を例示するブロック図であり、図2(B)はメモリに記憶されるプログラム及びデータを概念的に説明する説明図である。FIG. 2A is a block diagram illustrating the configuration of a control circuit and a memory, and FIG. 2B is an explanatory diagram conceptually illustrating a program and data stored in the memory. 図3は、図1の携帯端末で行われる保護機能設定処理を例示するフローチャートである。FIG. 3 is a flowchart illustrating a protection function setting process performed by the mobile terminal of FIG. 図4は、各アプリケーションプログラムの動作履歴データを概念的に説明する説明図である。FIG. 4 is an explanatory diagram conceptually illustrating the operation history data of each application program. 図5は、携帯端末に設けられたいずれかのアプリケーションプログラムの処理の流れを概念的に説明するフローチャートである。FIG. 5 is a flowchart conceptually illustrating the flow of processing of any application program provided in the mobile terminal. 図6は、動作網羅率の算出についての説明図であり、上段は動作網羅率の算出式の一例を説明する説明図であり、中段は、過去のマークの記録例を示す説明図であり、下段は更新されたマークの記録例を示す説明図である。FIG. 6 is an explanatory diagram for calculating the operation coverage rate, the upper diagram is an explanatory diagram for explaining an example of the calculation formula for the behavior coverage rate, and the middle diagram is an explanatory diagram showing a past mark recording example, The lower part is an explanatory diagram showing a recorded example of the updated mark.

[第1実施形態]
以下、本発明の携帯端末を具現化した第1実施形態について、図面を参照して説明する。図1は、本発明の第1実施形態に係る携帯端末の電気的構成を概略的に例示するブロック図である。図2(A)は、制御回路とメモリの構成を例示するブロック図であり、図2(B)はメモリに記憶されるプログラム及びデータを概念的に説明する説明図である。図3は、図1の携帯端末で行われる保護機能設定処理を例示するフローチャートである。図4は、各アプリケーションプログラムの動作履歴データを概念的に説明する説明図である。
[First embodiment]
Hereinafter, a first embodiment in which a portable terminal of the present invention is embodied will be described with reference to the drawings. FIG. 1 is a block diagram schematically illustrating an electrical configuration of the mobile terminal according to the first embodiment of the present invention. FIG. 2A is a block diagram illustrating the configuration of a control circuit and a memory, and FIG. 2B is an explanatory diagram conceptually illustrating a program and data stored in the memory. FIG. 3 is a flowchart illustrating a protection function setting process performed by the mobile terminal of FIG. FIG. 4 is an explanatory diagram conceptually illustrating the operation history data of each application program.

(全体構成)
まず、図1等を参照して本実施形態に係る携帯端末の全体構成について説明する。図1に示すように、本実施形態に係る携帯端末1は、一次元コード、二次元コード等の情報コードQを読み取る携帯型のコードリーダとして構成されるものであり、図示しないケースによって外郭が構成され、このケース内に各種電子部品が収容された構成をなしている。
(overall structure)
First, the overall configuration of the mobile terminal according to the present embodiment will be described with reference to FIG. As shown in FIG. 1, the portable terminal 1 according to the present embodiment is configured as a portable code reader that reads an information code Q such as a one-dimensional code or a two-dimensional code. It is configured, and various electronic components are accommodated in this case.

この携帯端末1は、主に、照明光源21、受光センサ23、フィルタ25、結像レンズ27等の光学系と、メモリ35、制御回路40、操作スイッチ42、液晶表示装置46等のマイクロコンピュータ(以下「マイコン」という)系と、電源スイッチ41、電池49等の電源系と、から構成されている。なお、これらは、図略のプリント配線板に実装あるいはケース(図示略)内に内装されている。   The portable terminal 1 mainly includes an optical system such as an illumination light source 21, a light receiving sensor 23, a filter 25, and an imaging lens 27, and a microcomputer (such as a memory 35, a control circuit 40, an operation switch 42, and a liquid crystal display device 46). (Hereinafter referred to as “microcomputer”) and a power supply system such as a power switch 41 and a battery 49. These are mounted on a printed wiring board (not shown) or housed in a case (not shown).

光学系は、照明光源21、受光センサ23、フィルタ25、結像レンズ27等から構成されている。照明光源21は、照明光Lfを発光可能な照明光源として機能するもので、例えば、赤色のLEDとこのLEDの出射側に設けられる拡散レンズ、集光レンズ等とから構成されている。本実施形態では、受光センサ23を挟んだ両側に照明光源21が設けられており、ケースに形成された読取口(図示略)を介して読取対象物Rに向けて照明光Lfを照射可能に構成されている。この読取対象物Rとしては、例えば、樹脂材料、金属材料等の様々な対象が考えられ、このような読取対象物Rに情報コード(図1ではQRコード(商標名)Q)が印刷、ダイレクトマーキングなどによって形成されている。   The optical system includes an illumination light source 21, a light receiving sensor 23, a filter 25, an imaging lens 27, and the like. The illumination light source 21 functions as an illumination light source capable of emitting illumination light Lf, and includes, for example, a red LED and a diffusion lens, a condensing lens, and the like provided on the emission side of the LED. In the present embodiment, illumination light sources 21 are provided on both sides of the light receiving sensor 23, and the illumination light Lf can be irradiated toward the reading object R through a reading port (not shown) formed in the case. It is configured. As the reading object R, for example, various objects such as a resin material and a metal material are conceivable, and an information code (QR code (trade name) Q in FIG. 1) is printed or directly printed on the reading object R. It is formed by marking.

受光センサ23は、読取対象物RやQRコードQに照射されて反射した反射光Lrを受光可能に構成されるもので、例えば、C−MOSやCCD等の固体撮像素子である受光素子を二次元に配列したエリアセンサが、これに相当する。この受光センサ23は、結像レンズ27を介して入射する入射光を受光面23aで受光可能に図略のプリント配線板に実装されている。   The light receiving sensor 23 is configured to receive the reflected light Lr irradiated and reflected on the reading object R or the QR code Q. For example, the light receiving sensor 23 includes two light receiving elements which are solid-state imaging elements such as a C-MOS and a CCD. An area sensor arranged in a dimension corresponds to this. The light receiving sensor 23 is mounted on a printed wiring board (not shown) so that incident light incident through the imaging lens 27 can be received by the light receiving surface 23a.

フィルタ25は、反射光Lrの波長相当以下の光の通過を許容し、当該波長相当を超える光の通過を遮断し得る光学的なローパスフィルタで、ケースに形成された読取口(図示略)と結像レンズ27との間に設けられている。また、結像レンズ27は、例えば、鏡筒とこの鏡筒内に収容される複数の集光レンズとによって構成されており、本実施形態では、ケースに形成された読取口(図示略)に入射する反射光Lrを集光し、受光センサ23の受光面23aにQRコードQのコード画像を結像するように構成されている。   The filter 25 is an optical low-pass filter that allows passage of light that is less than or equal to the wavelength of the reflected light Lr and blocks passage of light that exceeds the wavelength, and a reading port (not shown) formed in the case. It is provided between the imaging lens 27. Further, the imaging lens 27 is constituted by, for example, a lens barrel and a plurality of condensing lenses accommodated in the lens barrel. In the present embodiment, the imaging lens 27 is provided at a reading port (not shown) formed in the case. The incident reflected light Lr is collected and a QR code Q code image is formed on the light receiving surface 23 a of the light receiving sensor 23.

マイコン系は、増幅回路31、A/D変換回路33、メモリ35、アドレス発生回路36、同期信号発生回路38、制御回路40、操作スイッチ42、LED43、ブザー44、液晶表示装置46、通信インタフェース48等から構成されている。このマイコン系は、マイコン(情報処理装置)として機能し得る制御回路40及びメモリ35を中心として構成され、前述した光学系によって撮像されたQRコードQの画像信号をハードウェア的及びソフトウェア的に信号処理し得るものである。   The microcomputer system includes an amplification circuit 31, an A / D conversion circuit 33, a memory 35, an address generation circuit 36, a synchronization signal generation circuit 38, a control circuit 40, an operation switch 42, an LED 43, a buzzer 44, a liquid crystal display device 46, and a communication interface 48. Etc. This microcomputer system is configured around a control circuit 40 and a memory 35 that can function as a microcomputer (information processing device), and the image signal of the QR code Q captured by the optical system described above is signaled in hardware and software. It can be processed.

光学系の受光センサ23から出力される画像信号(アナログ信号)は、増幅回路31に入力されて所定ゲインで増幅された後、A/D変換回路33に入力され、アナログ信号からディジタル信号に変換される。そして、ディジタル化された画像信号、つまり画像データ(画像情報)は、メモリ35に入力され、当該メモリ35の画像データ蓄積領域に蓄積される。なお、同期信号発生回路38は、受光センサ23及びアドレス発生回路36に対する同期信号を発生可能に構成されており、またアドレス発生回路36は、この同期信号発生回路38から供給される同期信号に基づいて、メモリ35に格納される画像データの格納アドレスを発生可能に構成されている。   An image signal (analog signal) output from the light receiving sensor 23 of the optical system is input to the amplification circuit 31 and amplified by a predetermined gain, and then input to the A / D conversion circuit 33 to convert the analog signal into a digital signal. Is done. The digitized image signal, that is, image data (image information) is input to the memory 35 and stored in the image data storage area of the memory 35. The synchronization signal generation circuit 38 is configured to generate a synchronization signal for the light receiving sensor 23 and the address generation circuit 36. The address generation circuit 36 is based on the synchronization signal supplied from the synchronization signal generation circuit 38. Thus, the storage address of the image data stored in the memory 35 can be generated.

メモリ35は、例えば複数の半導体メモリ装置からなり、図2(A)のように、例えばフラッシュメモリ35a、RAM35bなどによって構成されている。このメモリ35のうちのRAM35bには、前述した画像データ蓄積領域のほかに、制御回路40が算術演算や論理演算等の各処理時に利用する作業領域なども確保可能に構成されている。またフラッシュメモリ35aは、後述する読取処理等を実行可能な所定プログラム、照明光源21、受光センサ23等の各ハードウェアを制御可能なシステムプログラム、その他、様々なアプリケーションプログラムや動作履歴データなどが記憶可能とされている。なお、ここでは、フラッシュメモリ35aとRAM35bを例示しているが、他のメモリが設けられていてもよい。また、不揮発性メモリとしてフラッシュメモリ35aを例示しているが、フラッシュメモリ35aに加え、或いはフラッシュメモリ35aに代えて他の不揮発性メモリを用いてもよい。
なお、メモリ35は、アプリケーションプログラムを記憶する「プログラム記憶手段」の一例に相当する。
The memory 35 includes, for example, a plurality of semiconductor memory devices, and includes, for example, a flash memory 35a and a RAM 35b as shown in FIG. In addition to the image data storage area described above, the RAM 35b of the memory 35 is configured so as to be able to secure a work area used by the control circuit 40 in each processing such as arithmetic operation and logical operation. The flash memory 35a stores a predetermined program that can execute a reading process, which will be described later, a system program that can control each hardware such as the illumination light source 21 and the light receiving sensor 23, and other various application programs and operation history data. It is possible. Although the flash memory 35a and the RAM 35b are illustrated here, other memories may be provided. Moreover, although the flash memory 35a is illustrated as a non-volatile memory, other non-volatile memories may be used in addition to the flash memory 35a or instead of the flash memory 35a.
The memory 35 corresponds to an example of a “program storage unit” that stores an application program.

制御回路40は、携帯端末1全体を制御可能なマイコンで、CPU、システムバス、入出力インタフェース等からなるものであり、情報処理機能を有している。この制御回路40には、内蔵された入出力インタフェースを介して種々の入出力装置(周辺装置)が接続されており、本実施形態の場合、電源スイッチ41、操作スイッチ42、LED43、ブザー44、液晶表示装置46、通信インタフェース48等が接続されている。また、通信インタフェース48には、携帯端末1の上位システムに相当するホストコンピュータHSTなどを接続できるようになっている。
なお、本実施形態では、制御回路40が「実行手段」の一例に相当し、メモリ35「プログラム記憶手段」に記憶されたアプリケーションプログラムを実行するように機能する。また、制御回路40は、「データ保護手段」の一例に相当し、規定条件成立時にフラッシュメモリ35a(不揮発性メモリ)に保護すべきデータを保存するように機能する。
The control circuit 40 is a microcomputer capable of controlling the entire mobile terminal 1 and includes a CPU, a system bus, an input / output interface, and the like, and has an information processing function. Various input / output devices (peripheral devices) are connected to the control circuit 40 via a built-in input / output interface. In this embodiment, a power switch 41, an operation switch 42, an LED 43, a buzzer 44, A liquid crystal display device 46, a communication interface 48, and the like are connected. Further, a host computer HST corresponding to the host system of the mobile terminal 1 can be connected to the communication interface 48.
In the present embodiment, the control circuit 40 corresponds to an example of “execution means” and functions to execute an application program stored in the memory 35 “program storage means”. The control circuit 40 corresponds to an example of “data protection means” and functions to store data to be protected in the flash memory 35a (nonvolatile memory) when a prescribed condition is satisfied.

電源系は、電源スイッチ41、電池49等により構成されており、制御回路40により管理される電源スイッチ41のオンオフによって、電池49からの駆動電圧の供給や遮断が制御されている。なお、電池49は、所定の直流電圧を発生可能な2次電池で、例えば、リチウムイオン電池等がこれに相当する。   The power supply system includes a power switch 41, a battery 49, and the like, and supply / cutoff of the drive voltage from the battery 49 is controlled by turning on / off the power switch 41 managed by the control circuit 40. The battery 49 is a secondary battery that can generate a predetermined DC voltage, and corresponds to, for example, a lithium ion battery.

(保護機能設定処理)
次に、図1の携帯端末で行われる保護機能設定処理について説明する。なお、図3は、図1の携帯端末で行われる保護機能設定処理を例示するフローチャートである。この保護機能設定処理は、所定条件成立時(例えば、各アプリケーションプログラムの実行時、或いはユーザによっていずれかのアプリケーションプログラムに対する所定操作が行われた時など)に開始され、まず、対象となるアプリケーションプログラムの種別を判断する(S1)。本実施形態で用いられる各アプリケーションプログラムにはプログラム内(例えば、ファイル名、インデックスデータ等)に識別子(種別データ)が組み込まれており、S1では対象となるアプリケーションプログラムに組み込まれる識別子(種別データ)を確認する。例えば、図3で対象となるアプリケーションプログラムAがBASIC言語によって作成されたものである場合、S1では、当該アプリケーションプログラムに含まれる「BASICを示す種別データ」を検出してS2に進む。一方、図3で対象となるアプリケーションプログラムがC言語によって作成されたものである場合、S1では、当該アプリケーションプログラムに含まれる「C言語を示す種別データ」を検出してS3に進む。
(Protection function setting process)
Next, the protection function setting process performed by the portable terminal of FIG. 1 will be described. FIG. 3 is a flowchart illustrating the protection function setting process performed by the mobile terminal of FIG. This protection function setting process is started when a predetermined condition is satisfied (for example, when each application program is executed or when a predetermined operation is performed on one of the application programs by the user). Is determined (S1). Each application program used in the present embodiment has an identifier (type data) incorporated in the program (for example, a file name, index data, etc.), and an identifier (type data) incorporated in the target application program in S1. Confirm. For example, if the target application program A in FIG. 3 is created in the BASIC language, in S1, “type data indicating BASIC” included in the application program is detected, and the process proceeds to S2. On the other hand, if the target application program in FIG. 3 is created in C language, in S1, “type data indicating C language” included in the application program is detected, and the process proceeds to S3.

本実施形態では、アプリケーションプログラムの種別毎に安定度の基礎となる基礎点が与えられるようになっている。なお、本実施形態で扱う「安定度」とは、アプリケーションプログラムの安定性を評価する指標であり、数値が大きいほどプログラムの安定性が高く安定していることを示している。図3の例では、比較的安定性の高いBASICの場合(即ち、S1からS2に進む場合)には基礎点が「7」となり、比較的安定性の低いC言語の場合(即ち、S1からS3に進む場合)には基礎点が「3」となるように構成されている。なお、ここではプログラム種別としてBASICとC言語を例示したが他のプログラム種別であってもよく、他のプログラム種別が用いられる場合には当該種別に対応する基礎点を予め決めておき、S1で当該種別と判断される場合にはその基礎点を割り振るようにすればよい。   In the present embodiment, a base point serving as a basis for stability is given for each type of application program. The “stability” handled in the present embodiment is an index for evaluating the stability of the application program, and indicates that the larger the value, the higher the stability of the program. In the example of FIG. 3, the base point is “7” in the case of BASIC with relatively high stability (that is, when the process proceeds from S1 to S2), and in the case of C language with relatively low stability (that is, from S1). In the case of proceeding to S3), the base point is configured to be “3”. In this example, BASIC and C language are exemplified as the program type. However, other program types may be used. When another program type is used, a base point corresponding to the type is determined in advance, and in S1 If it is determined that the type, the base point may be assigned.

なお、本実施形態では、図3のS1の処理を実行する制御回路40が「種別判断手段」一例に相当し、「実行手段」によって実行されるアプリケーションプログラムの識別子を確認し、当該アプリケーションプログラムの種別を判断するように機能する。また、図3の処理を実行する制御回路40が「評価値決定手段」の一例に相当し、「実行手段」によって実行されるアプリケーションプログラムの内容及び状態の少なくともいずれかを、決められた項目毎に評価し、これら項目毎に安定度算出に反映させるべき評価値を決定するように機能する。例えば、S1〜S3のように、アプリケーションプログラムの種別を評価する「種別評価項目」が規定されると共に、この「種別判断手段」によって判断されたアプリケーションプログラムの種別に基づいて、当該アプリケーションプログラムについての種別評価項目の評価値(図3の例では基礎点)を決定するように機能している。   In the present embodiment, the control circuit 40 that executes the process of S1 in FIG. 3 corresponds to an example of “type determination unit”. The identifier of the application program executed by the “execution unit” is confirmed, and the application program Functions to determine the type. Further, the control circuit 40 that executes the processing of FIG. 3 corresponds to an example of “evaluation value determination means”, and at least one of the contents and state of the application program executed by the “execution means” is determined for each determined item. It functions to determine the evaluation value to be reflected in the stability calculation for each item. For example, as in S1 to S3, a “type evaluation item” for evaluating the type of the application program is defined, and the application program is determined based on the type of the application program determined by the “type determination unit”. It functions to determine the evaluation value (basic point in the example of FIG. 3) of the type evaluation item.

S2又はS3の後には、「動作時間」等の他の評価項目のそれぞれついて、安定度を評価するための評価値を算出する。まず、これら「動作時間」などの他の評価項目について説明する。
本実施形態では、例えば、各アプリケーションプログラムが実行される毎の所定の時期(例えばアプリケーションプログラム終了時)に動作時間、起動回数、OS呼出回数、動作網羅率、停止回数が更新されるようになっており、このような各アプリケーションプログラムの動作履歴データが図4のように記録(例えばフラッシュメモリ35aに記録)されるようになっている。このうち、「動作時間」とは、各アプリケーションプログラムの通算動作時間(過去の総動作時間)を意味しており、「起動回数」は各アプリケーションプログラムが起動された通算回数(過去の起動回数の総和)を意味している。また、「OS呼出回数」は、各アプリケーションプログラムによってOSが呼び出された通算回数(各アプリケーションプログラムについての過去のOS呼出回数の総和)を意味しており、動作網羅率は、各アプリケーションプログラムで実行可能な全動作の内の実行済の動作が占める割合を意味している。また、「停止回数」は、各アプリケーションプログラムにおいて過去に動作の異常停止(規定された正常終了以外の異常停止)が生じた回数を示すものである。
After S2 or S3, an evaluation value for evaluating the stability is calculated for each of other evaluation items such as “operation time”. First, other evaluation items such as “operation time” will be described.
In the present embodiment, for example, the operation time, the number of activations, the number of OS calls, the operation coverage rate, and the number of suspensions are updated at a predetermined time (for example, when the application program ends) each time each application program is executed. The operation history data of each application program is recorded as shown in FIG. 4 (for example, recorded in the flash memory 35a). Of these, “operation time” means the total operation time of each application program (total past operation time), and “number of activations” indicates the total number of times each application program was activated (the number of past activations). Sum). The “OS call count” means the total number of times the OS is called by each application program (the sum of the past OS call counts for each application program), and the operation coverage is executed by each application program. This means the proportion of all possible actions that have been performed. The “stop count” indicates the number of times that an abnormal stop of the operation has occurred in the past in each application program (abnormal stop other than the normal end specified).

図5は、携帯端末1で実行可能な複数のアプリケーションプログラムのいずれか(アプリケーションプログラムA)についての処理の流れを概念的に例示している。このアプリケーションプログラムAでは、実行開始に伴い条件1を判断しており(S21)、条件1が成立した場合(S21でYes)には処理1を実行し(S22)、この処理1の実行後には処理1が実行されたことを示すマーク1を記録している(S23)。一方、条件1が成立していない場合(S21でNo)には処理2を実行し(S24)、この処理2の実行後には処理2が実行されたことを示すマーク2を記録している(S25)。S23又はS25の処理の後には、条件2が成立したか否かを判断し、条件2が成立した場合(S26でYes)には処理3を実行し(S27)、この処理3の実行後には処理3が実行されたことを示すマーク3を記録している(S28)。条件2が成立していない場合には(S26でNo)、条件3を判断しており(S29)、条件3が成立した場合(S29でYes)には処理4を実行し(S30)、この処理4の実行後には処理4が実行されたことを示すマーク4を記録している(S31)。一方、条件3が成立していない場合(S29でNo)には処理5を実行し(S32)、この処理5の実行後には処理5が実行されたことを示すマーク5を記録している(S33)。   FIG. 5 conceptually illustrates the flow of processing for any one of a plurality of application programs (application program A) that can be executed by the mobile terminal 1. In this application program A, the condition 1 is determined at the start of execution (S21). When the condition 1 is satisfied (Yes in S21), the process 1 is executed (S22). Mark 1 indicating that process 1 has been executed is recorded (S23). On the other hand, if condition 1 is not satisfied (No in S21), process 2 is executed (S24), and after execution of process 2, mark 2 indicating that process 2 has been executed is recorded ( S25). After the process of S23 or S25, it is determined whether or not the condition 2 is satisfied. If the condition 2 is satisfied (Yes in S26), the process 3 is executed (S27). The mark 3 indicating that the process 3 has been executed is recorded (S28). If condition 2 is not satisfied (No in S26), condition 3 is determined (S29), and if condition 3 is satisfied (Yes in S29), process 4 is executed (S30). After execution of process 4, mark 4 indicating that process 4 has been executed is recorded (S31). On the other hand, when the condition 3 is not satisfied (No in S29), the process 5 is executed (S32), and after the execution of the process 5, the mark 5 indicating that the process 5 is executed is recorded ( S33).

そして、アプリケーションプログラムAの終了時(S28、S31、S33の終了後)には、更新処理を行っている(S34)。この更新処理では、実行されたアプリケーションプログラムAについての動作時間、起動回数、OS呼出回数、動作網羅率が更新される。例えばアプリケーションプログラムAの動作時間Ta(図4も参照)は、アプリケーションプログラムAについての前回までの動作時間Ta1に対して、今回の動作時間Ta2を追加し、合計の動作時間Ta1+Ta2を当該アプリケーションプログラムAについての新たな動作時間Taとするように更新する。同様に、起動回数Naについては、アプリケーションプログラムAについて前回までの起動回数Na1に対して、今回の起動を追加し(即ち起動回数を1加算し)、合計の動作時間Na1+1を当該アプリケーションプログラムAについての新たな起動回数Naとするように更新する。また、OS呼出回数Caについては、アプリケーションプログラムAについて前回までのOS呼出回数Ca1に対して、今回のアプリケーションプログラムAの処理でのOS呼出回数Ca2を追加し、合計の動作時間Ca1+Ca2を当該アプリケーションプログラムAについての新たなOS呼出回数Caとするように更新する。   At the end of the application program A (after the end of S28, S31, and S33), update processing is performed (S34). In this update process, the operation time, the number of activations, the number of OS calls, and the operation coverage for the executed application program A are updated. For example, the operation time Ta (see also FIG. 4) of the application program A is obtained by adding the current operation time Ta2 to the previous operation time Ta1 for the application program A and calculating the total operation time Ta1 + Ta2 as the application program A. Is updated to a new operating time Ta. Similarly, for the activation number Na, the current activation is added to the application program A with respect to the previous activation number Na1 (that is, the activation number is incremented by 1), and the total operation time Na1 + 1 is obtained for the application program A. The new activation count Na is updated. As for the OS call count Ca, for the application program A, the OS call count Ca2 in the process of the current application program A is added to the previous OS call count Ca1, and the total operating time Ca1 + Ca2 is determined as the application program. Update to a new OS call count Ca for A.

また、動作網羅率Yaについては、図6上段に示すように、予め定められている全マーク数Ya0(図5の処理では5つ)の内、現時点(S34の処理時点)で記録されているマークの数Ya1をカウントし、全マーク数Ya0に対する現時点で記録されているマークの数Ya1の割合(Ya1/Ya0)を動作網羅率として算出する。ここで、「現時点で記録されているマーク」とは、各アプリケーションプログラムについての今回又は過去の処理で、1度でも記録がなされたことのあるマークを意味している。例えば、図6中段に示すように、アプリケーションプログラムAについて過去に行われた図3の処理で既にS23、S28、S31が実行されてマーク1、マーク3、マーク4が記録されており、今回行われた図3の処理で新たにS25の処理が実行され、新たにマーク2が記録された場合、現在記録されているマークは図6下段のように変化する。そして、この場合、今回の処理で追加されたマークを加算したマーク数「4」が現時点(今回のS34の処理時点)で記録されているマークの数となる。そして、この場合、現在記録されているマークの数「4」を全マーク数「5」で割った値4/5=0.8(80%)が動作網羅率Yaとなる。   Further, as shown in the upper part of FIG. 6, the operation coverage rate Ya is recorded at the present time (the processing time of S34) among the predetermined total number of marks Ya0 (five in the processing of FIG. 5). The number of marks Ya1 is counted, and the ratio (Ya1 / Ya0) of the number of marks Ya1 recorded at the present time to the total number of marks Ya0 is calculated as the operation coverage rate. Here, the “mark recorded at the present time” means a mark that has been recorded even once in the current or past processing for each application program. For example, as shown in the middle of FIG. 6, S23, S28, and S31 have already been executed in the process of FIG. 3 performed for the application program A in the past, and Mark 1, Mark 3, and Mark 4 have been recorded. When the process of S25 is newly executed in the process shown in FIG. 3 and a new mark 2 is recorded, the currently recorded mark changes as shown in the lower part of FIG. In this case, the number of marks “4” obtained by adding the marks added in the current process is the number of marks recorded at the current time (the current time of the process in S34). In this case, the value 4/5 = 0.8 (80%) obtained by dividing the number of currently recorded marks “4” by the total number of marks “5” is the operation coverage rate Ya.

本実施形態では、S23、S25、S28、S31、S33のように、アプリケーションプログラムにおける複数の動作箇所に、各動作箇所の実行履歴を残すため処理が組み込まれており、これらS23、S25、S28、S31、S33の処理が「動作履歴マーク」の一例に相当している。そして、これら全動作履歴マークの内の実行済とされた動作履歴マークの割合(即ち、S23、S25、S28、S31、S33の全処理の内の実行済とされた処理の割合)に基づいて、当該アプリケーションプログラムの動作網羅率を求め、得られた動作網羅率に基づいて「動作網羅率」についての評価項目(動作網羅率評価項目)の評価値を決定している。   In the present embodiment, as in S23, S25, S28, S31, and S33, processing is incorporated in order to leave an execution history of each operation location in a plurality of operation locations in the application program, and these S23, S25, S28, The processing of S31 and S33 corresponds to an example of “operation history mark”. Based on the ratio of the operation history marks that have been executed among all the operation history marks (that is, the ratio of the processes that have been executed among all the processes of S23, S25, S28, S31, and S33). Then, the operation coverage rate of the application program is obtained, and the evaluation value of the evaluation item (operation coverage rate evaluation item) for the “operation coverage rate” is determined based on the obtained operation coverage rate.

また、本実施形態に係る携帯端末1には、例えば各アプリケーションプログラムとは別で、各アプリケーションプログラムの停止回数をカウントするカウントプログラムが設けられており、アプリケーションプログラムに異常停止状態が発生する毎に、その異常停止したアプリケーションプログラムの「停止回数」をカウントアップしている。例えば、アプリケーションプログラムAの過去の異常停止回数がZa0であり、今回の図5の処理途中で異常停止が発生した場合には上記カウントプログラムが作動してアプリケーションプログラムAについてそれまで記録されていた「停止回数」をカウントアップした値(即ち、Za0+1)を新たな停止回数Zaとするように更新する。   In addition, the mobile terminal 1 according to the present embodiment is provided with a count program that counts the number of times each application program is stopped, for example, separately from each application program, and every time an abnormal stop state occurs in the application program. The “stop count” of the application program that stopped abnormally is counted up. For example, if the number of abnormal stops in the past of the application program A is Za0 and an abnormal stop occurs during the current processing of FIG. 5, the count program is activated and the application program A has been recorded so far. The value obtained by counting up the “stop count” (that is, Za0 + 1) is updated to be a new stop count Za.

本実施形態では、上記「停止回数」についての項目が「アプリケーションプログラムの停止履歴を評価する停止履歴評価項目」の一例に相当し、この「停止履歴評価項目」が、「アプリケーションプログラムの不安定動作性を評価する不安定動作評価項目」の一例に相当している。   In the present embodiment, the item about the “stop count” corresponds to an example of “stop history evaluation item for evaluating the stop history of the application program”, and this “stop history evaluation item” is “an unstable operation of the application program”. This corresponds to an example of “unstable motion evaluation item for evaluating the performance”.

再び図3に戻り、保護機能設定処理の説明を続けることとする。S2又はS3の処理が終わると、S4では、図3で対象となっているアプリケーションプログラムについての上記「動作時間」が所定閾値1(ここでは240時間)以上であるか否かを判断し、動作時間がこの所定閾値1以上である場合にはS4にてYesに進み、安定度を基礎点から「1」カウントアップする(S5)。一方、当該アプリケーションプログラムの「動作時間」が所定閾値1未満である場合にはS4にてNoに進む。この場合、安定度は変化しないこととなる。このように、本実施形態では、図3で対象となっているアプリケーションプログラムの「動作時間」が所定閾値1以上である場合に安定度を所定値だけ上げるように安定度算出処理を行っている。
なお、本実施形態では、上記「動作時間」についての項目が「アプリケーションプログラムの動作時間を評価する動作時間評価項目」に相当しており、この「動作時間評価項目」が「安定動作評価項目」の一例に相当している。
Returning to FIG. 3 again, the description of the protection function setting process will be continued. When the process of S2 or S3 ends, in S4, it is determined whether or not the “operation time” for the application program that is the target in FIG. 3 is equal to or greater than a predetermined threshold 1 (here, 240 hours). If the time is equal to or greater than the predetermined threshold 1, the process proceeds to Yes in S4, and the stability is counted up by “1” from the base point (S5). On the other hand, if the “operation time” of the application program is less than the predetermined threshold 1, the process proceeds to No in S4. In this case, the stability does not change. As described above, in the present embodiment, the stability calculation process is performed so that the stability is increased by a predetermined value when the “operation time” of the application program in FIG. .
In the present embodiment, the item about the “operation time” corresponds to an “operation time evaluation item for evaluating the operation time of the application program”, and the “operation time evaluation item” is a “stable operation evaluation item”. It corresponds to an example.

S5の後又はS4にてNoに進む場合、図3で対象となっているアプリケーションプログラムの「起動回数」が所定閾値2(ここでは300回)以上であるか否かを判断し(S6)、起動回数がこの所定閾値2以上である場合にはS6にてYesに進み、安定度をそれまでの算出値(S5終了時若しくはS4でNoに進む時点の安定度の算出値)から「1」カウントアップする(S7)。一方、起動回数が所定閾値2未満である場合にはS6にてNoに進む。この場合、安定度は変化しない。このように、本実施形態では、図3で対象となっているアプリケーションプログラムの起動回数が所定閾値2以上である場合に安定度を所定値だけ上げるように安定度算出処理を行っている。   When the process proceeds to No after S5 or S4, it is determined whether or not the “activation count” of the target application program in FIG. 3 is equal to or greater than a predetermined threshold 2 (300 times in this case) (S6). If the number of activations is equal to or greater than the predetermined threshold 2, the process proceeds to Yes in S6, and the stability is calculated as “1” from the calculated value up to that point (the calculated value of stability at the time when S5 ends or when No is reached in S4). Count up (S7). On the other hand, if the number of activations is less than the predetermined threshold 2, the process proceeds to No in S6. In this case, the stability does not change. Thus, in the present embodiment, the stability calculation process is performed so that the stability is increased by a predetermined value when the number of times the application program targeted in FIG.

なお、本実施形態では、上記「起動回数」についての項目が「アプリケーションプログラムの起動回数を評価する起動回数評価項目」に相当しており、この「起動回数評価項目」が「安定動作評価項目」の一例に相当している。   In the present embodiment, the item about the “number of activations” corresponds to “the number of activations evaluation item for evaluating the number of activations of the application program”, and this “number of activations evaluation item” is “the stable operation evaluation item”. It corresponds to an example.

S7の後又はS6にてNoに進む場合、図3で対象となっているアプリケーションプログラムの「OS呼出回数」が所定閾値3(ここでは100万回)以上であるか否かを判断し(S8)、「OS呼出回数」がこの所定閾値3以上である場合にはS8にてYesに進み、安定度をそれまでの算出値(S7終了時若しくはS6でNoに進む時点での安定度の算出値)から「1」カウントアップする(S9)。一方、「OS呼出回数」が所定閾値3未満である場合にはS8にてNoに進む。この場合、安定度は変化しないこととなる。このように、本実施形態では、図3で対象となっているアプリケーションプログラムの「OS呼出回数」が所定閾値3以上である場合に安定度を所定値だけ上げるように安定度算出処理を行っている。   When the process proceeds to No after S7 or S6, it is determined whether or not the “OS call count” of the target application program in FIG. 3 is equal to or greater than a predetermined threshold 3 (here, 1 million times) (S8). ), If the “OS call count” is equal to or greater than the predetermined threshold 3, the process proceeds to Yes in S8, and the stability is calculated up to that point (the calculation of the stability when S7 ends or when the process proceeds to No in S6 "1" is counted up from (value) (S9). On the other hand, if the “OS call count” is less than the predetermined threshold 3, the process proceeds to No in S8. In this case, the stability does not change. As described above, in the present embodiment, when the “OS call count” of the application program targeted in FIG. 3 is equal to or greater than the predetermined threshold 3, the stability calculation process is performed so as to increase the stability by a predetermined value. Yes.

なお、本実施形態では、上記「OS呼出回数」についての項目が「アプリケーションプログラムによるオペレーティングシステムの呼出回数を評価する呼出回数評価項目」に相当しており、この「呼出回数評価項目」が「安定動作評価項目」の一例に相当している。   In the present embodiment, the item about the “OS call count” corresponds to “the call count evaluation item for evaluating the number of calls to the operating system by the application program”, and this “call count evaluation item” is “stable”. This corresponds to an example of “operation evaluation item”.

S9の後又はS8にてNoに進む場合、図3で対象となっているアプリケーションプログラムの「動作網羅率」が所定閾値4(ここでは20%)以上であるか否かを判断し(S10)、「動作網羅率」がこの所定閾値4以上である場合にはS10にてYesに進み、安定度をそれまでの算出値(S9終了時若しくはS8でNoに進む時点での安定度の算出値)から「1」カウントアップする(S11)。一方、「動作網羅率」が所定閾値4未満である場合にはS10にてNoに進む。この場合、安定度は変化しないこととなる。このように、本実施形態では、図3で対象となっているアプリケーションプログラムの「動作網羅率」が所定閾値4以上である場合に安定度を所定値だけ上げるように安定度算出処理を行っている。   When the process proceeds to No after S9 or S8, it is determined whether or not the “operation coverage ratio” of the target application program in FIG. 3 is equal to or greater than a predetermined threshold 4 (here, 20%) (S10). If the “operation coverage ratio” is equal to or greater than the predetermined threshold value 4, the process proceeds to Yes in S 10, and the stability is calculated up to that point (the calculated value of stability at the end of S 9 or when the process proceeds to No in S 8. ) To “1” (S11). On the other hand, if the “operation coverage ratio” is less than the predetermined threshold 4, the process proceeds to No in S10. In this case, the stability does not change. Thus, in the present embodiment, when the “operation coverage” of the application program that is the target in FIG. 3 is equal to or greater than the predetermined threshold value 4, the stability calculation process is performed so as to increase the stability by a predetermined value. Yes.

なお、本実施形態では、上記「動作網羅率」についての項目が「アプリケーションプログラムの動作網羅率を評価する動作網羅率評価項目」に相当しており、この「動作網羅率評価項目」が「安定動作評価項目」の一例に相当している。   In the present embodiment, the item about the “operation coverage rate” corresponds to the “operation coverage rate evaluation item for evaluating the operation coverage rate of the application program”, and the “operation coverage rate evaluation item” is “stable”. This corresponds to an example of “operation evaluation item”.

S11の後又はS10にてNoに進む場合、図3で対象となっているアプリケーションプログラムの「停止回数」が所定閾値5(ここでは1)以上であるか否かを判断し(S12)、「停止回数」がこの所定閾値5(ここでは1)以上である場合にはS12にてYesに進み、安定度をそれまでの算出値(S11終了時若しくはS10でNoに進む時点での安定度の算出値)から、停止回数に応じた値だけカウントダウンする(S13)。本実施形態では、例えば、停止回数に応じた減算値が予め定められており、例えば、停止回数が一定値未満の場合(例えば1回〜3回の場合)の第1減算値(例えば−1)と、停止回数が一定値以上の場合(例えば4回以上の場合)の第2減算値(例えば−5)とが設定されている。従って、S12でYesに進む場合、上記「停止回数」が前記一定値未満のとき(例えば、1回〜3回のとき)には、S13では、それまでの安定度の算出値(S11終了時若しくはS10でNoに進む時点での安定度の算出値)から第1減算値(例えば「1」)だけ減算する。また、上記「停止回数」が一定値以上のとき(例えば、4回以上のとき)には、S13では、それまでの安定度の算出値(S11終了時若しくはS10でNoに進む時点での安定度の算出値)から第2減算値(例えば、「5」)だけ減算する。このように、本実施形態では、図3で対象となっているアプリケーションプログラムの「停止回数」が所定閾値5(図3では「1」)以上である場合に安定度を所定値だけ下げるように安定度算出処理を行っている。一方、S12の判断処理において、「停止回数」が所定閾値5(図3では「1」)未満と判断される場合にはNoに進む。   When the process proceeds to No after S11 or S10, it is determined whether or not the “stop count” of the target application program in FIG. 3 is equal to or greater than a predetermined threshold value 5 (here, 1) (S12). If the “stop count” is equal to or greater than the predetermined threshold value 5 (here, 1), the process proceeds to Yes in S12, and the stability is calculated up to that point (the stability at the time when S11 ends or when S10 proceeds to No). The calculated value is counted down by a value corresponding to the number of stops (S13). In the present embodiment, for example, a subtraction value corresponding to the number of stops is determined in advance. For example, the first subtraction value (for example, −1) when the number of stops is less than a certain value (for example, 1 to 3 times). ) And a second subtraction value (for example, -5) when the number of stops is a certain value or more (for example, four times or more). Therefore, when the process proceeds to Yes in S12, when the “stop count” is less than the predetermined value (for example, 1 to 3 times), in S13, the calculated stability value up to that time (at the end of S11). Alternatively, the first subtraction value (for example, “1”) is subtracted from the calculated stability value at the time when the process proceeds to No in S10. When the “stop count” is equal to or greater than a certain value (for example, 4 times or more), in S13, the calculated stability value up to that point (the stability at the time of completion of S11 or when No is reached in S10). The second subtraction value (for example, “5”) is subtracted from the calculated degree). Thus, in this embodiment, when the “stop count” of the application program that is the target in FIG. 3 is equal to or greater than the predetermined threshold value 5 (“1” in FIG. 3), the stability is decreased by a predetermined value. Stability calculation processing is performed. On the other hand, if it is determined in S12 that the “stop count” is less than the predetermined threshold value 5 (“1” in FIG. 3), the process proceeds to No.

S13の後又はS12にてNoに進む場合、これまでに算出された安定度の値が安定度についての所定閾値6(図3では「7」)よりも大きいか否かを判断し(S14)、大きい場合にはS14にてYesに進み、保護機能をオフに設定する(S15)。この場合、図3で対象となっているアプリケーションプログラムに対して規定のデータ保護処理が行われなくなる。一方、S14にてNoに進む場合には、保護機能をオンに設定する(S16)。この場合、図3で対象となっているアプリケーションプログラムに対して規定のデータ保護処理が行われることとなる。   When the process proceeds to No after S13 or in S12, it is determined whether the stability value calculated so far is greater than a predetermined threshold 6 for stability ("7" in FIG. 3) (S14). If larger, the process proceeds to Yes in S14, and the protection function is set to OFF (S15). In this case, the prescribed data protection process is not performed on the application program that is the target in FIG. On the other hand, when the process proceeds to No in S14, the protection function is set to ON (S16). In this case, a prescribed data protection process is performed on the application program that is the target in FIG.

なお、本実施形態では、S2又はS3で設定された基礎となる安定度に対して、S5、S7、S9、S11で安定度を加算できるようになっているが、「停止回数」が前記一定値以上の場合にS13で減算される値(第2減算値)は、これらS5、S7、S9、S11で加算可能な最大値(ここでは「4」)よりも大きくなっている。従って、「停止回数」が前記一定値以上の場合には、最終的な安定度(即ち、S14までに計算される安定度)が、S2又はS3で設定される安定度よりも低い安定度となり、更に、S14での所定閾値6(図3では「7」:後述)よりも低い安定度となる。よって、「停止回数」が一定値以上の場合には、S16にて保護機能がオンに設定されることとなる。   In the present embodiment, the stability can be added in S5, S7, S9, and S11 to the basic stability set in S2 or S3, but the “stop count” is constant. If the value is greater than or equal to the value, the value subtracted in S13 (second subtraction value) is larger than the maximum value (here, “4”) that can be added in S5, S7, S9, and S11. Accordingly, when the “stop count” is equal to or greater than the predetermined value, the final stability (that is, the stability calculated by S14) is lower than the stability set in S2 or S3. Furthermore, the stability is lower than the predetermined threshold value 6 (“7” in FIG. 3: described later) in S14. Therefore, when the “stop count” is equal to or greater than a certain value, the protection function is set to ON in S16.

本実施形態では、図3の処理を実行する制御回路40は、「安定度算出手段」の一例に相当し、「評価値決定手段」によって決定された項目毎の評価値に基づいて、「実行手段」によって実行されるアプリケーションプログラムの安定度を算出するように機能する。具体的には、上述の「評価値決定手段」によって安定動作評価項目毎に評価値を決定しており、この安定動作評価項目毎の評価値に基づいて安定度を算出している。また、上述したように、「評価値決定手段」によって「不安定動作評価項目」についての評価値も決定しており、この不安定動作評価項目の評価値に基づいて(具体的には、停止履歴評価項目の評価値に基づいて)安定度を算出している。   In the present embodiment, the control circuit 40 that executes the processing of FIG. 3 corresponds to an example of “stability calculation means”, and “execution” is performed based on the evaluation value for each item determined by the “evaluation value determination means”. It functions to calculate the stability of the application program executed by the means. Specifically, an evaluation value is determined for each stable operation evaluation item by the above-described “evaluation value determining means”, and the stability is calculated based on the evaluation value for each stable operation evaluation item. Further, as described above, the evaluation value for the “unstable motion evaluation item” is also determined by the “evaluation value determining means”, and based on the evaluation value of this unstable operation evaluation item (specifically, stop Stability is calculated (based on the evaluation value of the history evaluation item).

更に、図3のS15及びS16の処理を実行する制御回路40は、「設定手段」の一例に相当し、データ保護手段を有効状態及び無効状態のいずれかに設定するように機能する。   Furthermore, the control circuit 40 that executes the processes of S15 and S16 in FIG. 3 corresponds to an example of a “setting unit”, and functions to set the data protection unit to either the valid state or the invalid state.

なお、図3では、評価項目の例をいくつか示したが、他の評価項目を追加して安定度を算出してもよい。例えば、アプリケーションプログラムの安定動作性を評価する安定動作評価項目として、「アプリケーションプログラムのサイズを評価するサイズ評価項目」を設けるようにしてもよい。例えば、図3の所定位置(例えばS4の処理の前)に図3で対象となっているアプリケーションプログラムのサイズが所定閾値7(例えば、1MB)未満であるか否かを判断し、所定閾値未満の場合には、安定度を「1」カウントアップし、所定閾値7以上である場合には安定度をカウントアップしないような算出処理を追加することができる。   In FIG. 3, some examples of evaluation items are shown, but the stability may be calculated by adding other evaluation items. For example, “size evaluation item for evaluating the size of the application program” may be provided as a stable operation evaluation item for evaluating the stable operation of the application program. For example, it is determined whether or not the size of the application program targeted in FIG. 3 is smaller than a predetermined threshold 7 (for example, 1 MB) at a predetermined position (for example, before the process of S4) in FIG. In this case, it is possible to add a calculation process in which the stability is counted up by “1” and the stability is not counted up when the predetermined threshold value is 7 or more.

(データ保護処理)
本実施形態では、データ保護機能がオンに設定されたアプリケーションプログラムについて所定のデータ保護処理が行われるようになっている。このデータ保護処理は公知の様々な処理を用いることができ、公知ではない処理を用いてもよい。データ保護処理の一例としては、例えば、データ保護機能がオンに設定されているアプリケーションプログラムで扱われるデータについて、フラッシュメモリ35aの所定のバックアップ領域に逐次記憶したり、複数の記憶領域(例えば、RAM35bとフラッシュメモリ35a)に逐次記憶するといった処理などが挙げられる。そして、不意のシステム停止、電源遮断、その他の異常が生じた場合には、バックアップ領域に記憶されているデータを読み出して復旧するようにすることができる。なお、この場合、バックアップ領域の容量が大きく確保できない場合等には、所定時期毎(例えば容量が不足する毎、バックアップ用のデータを書き込む毎)にフラッシュメモリ35aのバックアップ領域に記憶されている過去のデータを削除する処理を行うことが望ましい。
(Data protection processing)
In the present embodiment, a predetermined data protection process is performed for an application program whose data protection function is set to ON. For this data protection process, various known processes can be used, and a process not known may be used. As an example of the data protection process, for example, data handled by an application program whose data protection function is set to ON is sequentially stored in a predetermined backup area of the flash memory 35a, or a plurality of storage areas (for example, the RAM 35b). And a process of sequentially storing them in the flash memory 35a). When an unexpected system stop, power interruption, or other abnormality occurs, the data stored in the backup area can be read and restored. In this case, when the capacity of the backup area cannot be secured large, the past stored in the backup area of the flash memory 35a at every predetermined time (for example, every time the capacity is insufficient or every time backup data is written). It is desirable to perform processing for deleting the data.

一方、データ保護機能がオンに設定されていないアプリケーションプログラムで扱われるデータについては、当該アプリケーションプログラムの実行中にはRAMに記憶するようにして処理速度を速めるようにしてもよく、フラッシュメモリ35aに記憶しつつも、データ復旧処理を行わないようにしてもよい。   On the other hand, for data handled by an application program for which the data protection function is not set to ON, the processing speed may be increased by storing the data in the RAM during execution of the application program. The data recovery process may not be performed while storing.

(第1実施形態の主な効果)
本実施形態の構成によれば、各アプリケーションプログラムがどの程度の安定性を有するかを適切に評価することができ、各アプリケーションプログラムの安定度に基づいてデータ保護機能を有効状態とするか無効状態とするかを使い分けることができる。従って、すべのアプリケーションプログラムについて一律にデータ保護機能を有効にする場合と比較して、一部のアプリケーションプログラム(データ保護機能が無効状態とされるプログラム)の動作性、応答性を向上することができる。特に、データ保護機能を有効状態とするアプリケーションプログラムと、無効状態とするアプリケーションプログラムとを安定度に基づいて選別しているため、安定性が高く異常が発生しにくいアプリケーションプログラムについては、データ保護機能を無効状態として動作性、応答性を向上することができ、安定度が低く、相対的に異常が発生し易いアプリケーションプログラムについてはデータ保護機能を有効状態として異常に備えることができる。
(Main effects of the first embodiment)
According to the configuration of the present embodiment, it is possible to appropriately evaluate how much stability each application program has, and whether the data protection function is enabled or disabled based on the stability of each application program Can be used properly. Therefore, the operability and responsiveness of some application programs (programs in which the data protection function is disabled) can be improved compared to the case where the data protection function is uniformly enabled for all application programs. it can. In particular, since application programs that enable the data protection function and application programs that disable the data protection function are selected based on their stability, the data protection function for application programs that are highly stable and less likely to cause abnormalities. As an invalid state, the operability and responsiveness can be improved, and an application program with low stability and relatively easy to generate an abnormality can be provided with an abnormal data protection function.

また、本実施形態では、各アプリケーションプログラムにアプリケーション種別を示す識別子が含まれており、このようなアプリケーションプログラムの識別子を確認し、当該アプリケーションプログラムの種別を判断する種別判断手段が設けられている。このようにすると、アプリケーション種別を迅速かつ正確に判断できるようになる。更に、評価値決定手段は、アプリケーションプログラムの種別を評価する種別評価項目が規定されると共に、種別判断手段によって判断されたアプリケーションプログラムの種別に基づいて、当該アプリケーションプログラムについての種別評価項目の評価値を決定している。このようにすると、安定性に大きな影響を及ぼすアプリケーションプログラムの種別を反映した適切な安定度を算出することができる。   In this embodiment, each application program includes an identifier indicating the application type, and a type determination unit is provided for checking the identifier of the application program and determining the type of the application program. In this way, the application type can be determined quickly and accurately. Further, the evaluation value determining means defines a type evaluation item for evaluating the type of the application program, and based on the type of the application program determined by the type determining means, the evaluation value of the type evaluation item for the application program Is determined. In this way, it is possible to calculate an appropriate stability that reflects the type of application program that greatly affects the stability.

また、本実施形態では、評価値決定手段が、アプリケーションプログラムの安定動作性を評価する安定動作評価項目として、アプリケーションプログラムのサイズを評価するサイズ評価項目、アプリケーションプログラムの動作時間を評価する動作時間評価項目、アプリケーションプログラムの起動回数を評価する起動回数評価項目、アプリケーションプログラムによるオペレーティングシステムの呼出回数を評価する呼出回数評価項目、アプリケーションプログラムの動作網羅率を評価する動作網羅率評価項目の少なくともいずれかの評価項目が規定されると共に、実行手段によって実行されるアプリケーションプログラムについて安定動作評価項目毎に評価値を決定しており、安定度算出手段が、安定動作評価項目毎の評価値に基づいて安定度を算出している。
アプリケーションプログラムはプログラムサイズが大きい程不安定になる傾向があるため、アプリケーションプログラムのサイズを評価するサイズ評価項目を設けることでサイズを考慮して安定性をより適切に評価できるようになる。また、アプリケーションプログラムは、動作時間が大きいほど(即ち、長く動作しているほど)、信頼性が高く安定的であると考えることができるため、アプリケーションプログラムの動作時間を評価する動作時間評価項目を設けることで動作時間の実績を考慮して安定性をより適切に評価できるようになる(図3のS4、S5参照)。また、アプリケーションプログラムは、多く起動されたものほど信頼性が高く安定的であると考えることができるため、アプリケーションプログラムの起動回数を評価する起動回数評価項目を設けることで起動回数の実績を考慮して安定性をより適切に評価できるようになる(図3のS6、S7参照)。更に、アプリケーションプログラムは、OSの呼出回数が多いものほどOSとの連携動作の実績を評価することができ、信頼性が高く安定的であると考えることができるため、アプリケーションプログラムによるオペレーティングシステムの呼出回数を評価する呼出回数評価項目を設けることでOSとの連携を考慮して安定性をより適切に評価できるようになる(図3のS8、S9参照)。更に、アプリケーションプログラムは、想定される複数の動作について確認済みの動作が多いほど(想定される全動作における確認済みの動作の占める割合(動作網羅率)が大きいほど)、信頼性が高く安定的であると考えることができるため、アプリケーションプログラムの動作網羅率を評価する動作網羅率評価項目を設けることで、動作網羅率を考慮して安定性をより適切に評価できるようになる(図3のS10、S11参照)。
Further, in this embodiment, the evaluation value determining means uses the size evaluation item for evaluating the size of the application program as the stable operation evaluation item for evaluating the stable operation of the application program, and the operation time evaluation for evaluating the operation time of the application program. At least one of the items, the number of activation evaluation items for evaluating the number of activations of the application program, the number of calls evaluation item for evaluating the number of calls of the operating system by the application program, and the operation coverage rate evaluation item for evaluating the operation coverage rate of the application program An evaluation item is defined, and an evaluation value is determined for each stable operation evaluation item for the application program executed by the execution unit, and the stability calculation unit is based on the evaluation value for each stable operation evaluation item. And calculates the Jodo.
Since the application program tends to become unstable as the program size increases, it is possible to more appropriately evaluate the stability in consideration of the size by providing a size evaluation item for evaluating the size of the application program. In addition, since the application program can be considered to be more reliable and stable as the operation time is longer (that is, the operation is longer), an operation time evaluation item for evaluating the operation time of the application program is set. By providing it, it becomes possible to more appropriately evaluate the stability in consideration of the actual operating time (see S4 and S5 in FIG. 3). In addition, application programs can be considered to be more reliable and more stable as they are started.Therefore, the number of start-up times is evaluated in order to evaluate the number of start-ups of application programs. Thus, the stability can be more appropriately evaluated (see S6 and S7 in FIG. 3). Furthermore, since the application program can evaluate the performance of the cooperative operation with the OS as the OS is called more frequently, and can be considered to be reliable and stable, the application program can call the operating system. By providing the number-of-calls evaluation item for evaluating the number of times, the stability can be more appropriately evaluated in consideration of cooperation with the OS (see S8 and S9 in FIG. 3). In addition, application programs are more reliable and stable as the number of confirmed operations for a plurality of possible operations increases (the proportion of the confirmed operations in all the assumed operations increases (operation coverage)). Therefore, by providing an operation coverage rate evaluation item for evaluating the operation coverage rate of the application program, it becomes possible to more appropriately evaluate the stability in consideration of the operation coverage rate (FIG. 3). (See S10 and S11).

更に、本実施形態では、アプリケーションプログラムにおける複数の動作箇所に、各動作箇所の実行履歴を残すための動作履歴マーク(例えば、図5のS23、S25、S28、S31、S33)が付されており、評価値決定手段は、アプリケーションプログラムにおける全動作履歴マークの内の実行済とされた動作履歴マークの割合に基づいて、当該アプリケーションプログラムの動作網羅率を求め、得られた動作網羅率に基づいて動作網羅率評価項目の評価値を決定している。このようにすると、アプリケーションプログラムに含まれる各動作箇所が実行された実績があるか否かを確実に確認でき、アプリケーションプログラム全体の中に、実行された実績のある動作箇所がどの程度含まれているかをより精度高く確認できる。そして、このように算出される動作網羅率に基づいて安定度を算出すれば、安定性をより一層適切に評価できるようになる。   Furthermore, in this embodiment, operation history marks (for example, S23, S25, S28, S31, and S33 in FIG. 5) are attached to a plurality of operation locations in the application program to leave an execution history of each operation location. The evaluation value determining means obtains the operation coverage rate of the application program based on the ratio of the operation history marks that have been executed among all the operation history marks in the application program, and based on the obtained operation coverage rate. The evaluation value of the operation coverage rate evaluation item is determined. In this way, it is possible to reliably check whether or not each operation location included in the application program has been executed, and how many operation locations that have been executed are included in the entire application program. Can be confirmed with higher accuracy. If the stability is calculated based on the operation coverage rate calculated in this way, the stability can be more appropriately evaluated.

また、本実施形態では、アプリケーションプログラムの不安定動作性を評価する不安定動作評価項目として、アプリケーションプログラムの停止履歴を評価する停止履歴評価項目が規定され、且つアプリケーションプログラムの停止履歴に基づいて、当該アプリケーションプログラムについての停止履歴評価項目の評価値を決定している(図3のS12、S13参照)。そして、このような停止履歴評価項目の評価値に基づいて安定度を算出している。このようにすると、アプリケーションプログラムの安定性に大きな影響を及ぼす「停止履歴」を反映して安定度を算出することができ、過去に停止した事実を適切に考慮してアプリケーションプログラムの安定性をより的確に判断できる。   Further, in this embodiment, as an unstable operation evaluation item for evaluating the unstable operation of the application program, a stop history evaluation item for evaluating the stop history of the application program is defined, and based on the stop history of the application program, The evaluation value of the stop history evaluation item for the application program is determined (see S12 and S13 in FIG. 3). And stability is computed based on the evaluation value of such a stop history evaluation item. In this way, the stability can be calculated by reflecting the “stop history” that has a significant impact on the stability of the application program, and the stability of the application program can be further improved by properly considering the fact that it has stopped in the past. Can be judged accurately.

[他の実施形態]
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような実施形態も本発明の技術的範囲に含まれる。
[Other Embodiments]
The present invention is not limited to the embodiments described with reference to the above description and drawings. For example, the following embodiments are also included in the technical scope of the present invention.

データ保護をオンまたはオフにする条件として第1実施形態以外の他の条件を追加してもよい。例えば、アプリケーションプログラムの実行が、当該アプリケーションプログラムの初回実行時である場合、安定度に関わらず(即ち、図3での設定に関わらず)当該アプリケーションプログラムに対して上述のデータ保護機能を有効状態とするようにしてもよい。このようにすると、アプリケーションプログラムの動作実績が低い初回実行にはデータ保護機能を優先させることができ、不意の異常状態に対して効率的に対策をとることができる。   Other conditions other than the first embodiment may be added as conditions for turning data protection on or off. For example, when the application program is executed for the first time, the data protection function is enabled for the application program regardless of the stability (that is, regardless of the setting in FIG. 3). You may make it. In this way, the data protection function can be prioritized for the first execution when the operation performance of the application program is low, and it is possible to efficiently take measures against unexpected abnormal conditions.

上記実施形態では、安定動作評価項目の例をいくつか示したが、評価項目はこれらに限られない。例えば、安定動作評価項目として、「所定の会社によって作成されたアプリケーションプログラムであるか否かを評価する項目」を設けるようにしてもよい。この場合、例えば、図3の所定位置(例えばS4の処理の前)に、図3で対象となっているアプリケーションプログラムが所定の会社によって作成されたアプリケーションプログラムであるか否かを判断する処理を設け、Yesの場合には安定度をカウントアップ(例えば「1」カウントアップ)し、Noの場合には安定度をカウントアップしないような算出処理を追加することができる。   In the said embodiment, although the example of the stable operation | movement evaluation item was shown, the evaluation item is not restricted to these. For example, “an item for evaluating whether or not an application program is created by a predetermined company” may be provided as a stable operation evaluation item. In this case, for example, a process of determining whether or not the application program targeted in FIG. 3 is an application program created by a predetermined company at a predetermined position in FIG. 3 (for example, before the process of S4). It is possible to add a calculation process in which the stability is counted up (for example, “1” is counted up) in the case of Yes and the stability is not counted up in the case of No.

上記実施形態では、不安定動作評価項目の例を示したが他の不安定動作評価項目を用いてもよい。例えば、図3の所定位置(例えば、S14の前)において、対象となっているアプリケーションプログラムに過去に所定不具合(例えばデータ破壊等)が生じたか否かを判断する処理を設け、過去に所定不具合(例えばデータ破壊)が生じている場合には安定度をカウントダウンし(例えば「1」下げ)、このような所定不具合が生じたことがない場合には安定度を下げないような算出処理を追加してもよい。   In the above embodiment, an example of the unstable operation evaluation item is shown, but other unstable operation evaluation items may be used. For example, at a predetermined position in FIG. 3 (for example, before S14), a process for determining whether or not a predetermined defect (for example, data destruction) has occurred in the past in the target application program is provided. (For example, data destruction) counts down the stability (for example, “1” reduction), and adds a calculation process that does not decrease the stability when such a predetermined failure has never occurred May be.

上記実施形態では、プログラム種別に基づいて基礎点を決定していたが、各アプリケーションプログラム内に予め基礎点を含ませておいてもよい。例えば、アプリケーションプログラム作成時に作成者が当該アプリケーションプログラムの安定度の基礎点を作成し、これをアプリケーションプログラムに含ませておいてもよい。この場合、S1〜S3の処理に代えて基礎点を読み出す処理を設けるようにすればよい。また、予め設定される基礎点については様々な観点から設定でき、例えば、コーディング規約の遵守度合いの高いものについては基礎点を大きくし、遵守度合いの低いものについては基礎点を小さくするといった設定方法が考えられる。   In the above embodiment, the base point is determined based on the program type, but the base point may be included in advance in each application program. For example, the creator may create a basic point of stability of the application program when the application program is created, and this may be included in the application program. In this case, a process of reading the base point may be provided instead of the processes of S1 to S3. Also, the basic points set in advance can be set from various viewpoints, for example, the basic point is increased for those with a high degree of compliance with the coding standards, and the basic point is reduced for those with a low level of compliance. Can be considered.

1…携帯端末
35…メモリ(プログラム記憶手段)
35a…フラッシュメモリ(不揮発性メモリ)
40…制御回路(データ保護手段、実行手段、評価値決定手段、安定度算出手段、設定手段、種別判断手段)
1 ... mobile terminal 35 ... memory (program storage means)
35a ... Flash memory (nonvolatile memory)
40. Control circuit (data protection means, execution means, evaluation value determination means, stability calculation means, setting means, type determination means)

Claims (6)

データを記憶する不揮発性メモリと、
規定条件成立時に前記不揮発メモリに保護すべきデータを保存するデータ保護手段と、
アプリケーションプログラムを記憶するプログラム記憶手段と、
前記プログラム記憶手段に記憶された前記アプリケーションプログラムを実行する実行手段と、
を備えた携帯端末であって、
前記実行手段によって実行される前記アプリケーションプログラムの内容及び状態の少なくともいずれかを、決められた項目毎に評価し、前記項目毎に安定度算出に反映させるべき評価値を決定する評価値決定手段と、
前記評価値決定手段によって決定された前記項目毎の前記評価値に基づいて、前記実行手段によって実行される前記アプリケーションプログラムの安定度を算出する安定度算出手段と、
前記安定度算出手段によって算出された前記安定度に基づいて、前記データ保護手段を有効状態及び無効状態のいずれかに設定する設定手段と、
を備えたことを特徴とする携帯端末。
Non-volatile memory for storing data;
Data protection means for storing data to be protected in the nonvolatile memory when a prescribed condition is satisfied;
Program storage means for storing application programs;
Execution means for executing the application program stored in the program storage means;
A mobile terminal equipped with
Evaluation value determination means for evaluating at least one of the contents and state of the application program executed by the execution means for each determined item and determining an evaluation value to be reflected in the stability calculation for each item; ,
Stability calculation means for calculating the stability of the application program executed by the execution means based on the evaluation value for each item determined by the evaluation value determination means;
Setting means for setting the data protection means to either the valid state or the invalid state based on the stability calculated by the stability calculation means;
A portable terminal characterized by comprising:
前記プログラム記憶手段に記憶される各アプリケーションプログラムには、アプリケーション種別を示す識別子が含まれ、
前記実行手段によって実行される前記アプリケーションプログラムの前記識別子を確認し、当該アプリケーションプログラムの種別を判断する種別判断手段が設けられており、
前記評価値決定手段は、前記アプリケーションプログラムの種別を評価する種別評価項目が規定されると共に、前記種別判断手段によって判断された前記アプリケーションプログラムの前記種別に基づいて、当該アプリケーションプログラムについての前記種別評価項目の前記評価値を決定することを特徴とする請求項1に記載の携帯端末。
Each application program stored in the program storage means includes an identifier indicating an application type,
A type determining unit for confirming the identifier of the application program executed by the executing unit and determining a type of the application program;
The evaluation value determination means defines a type evaluation item for evaluating the type of the application program, and based on the type of the application program determined by the type determination means, the type evaluation for the application program The mobile terminal according to claim 1, wherein the evaluation value of an item is determined.
前記評価値決定手段は、前記アプリケーションプログラムの安定動作性を評価する安定動作評価項目として、前記アプリケーションプログラムのサイズを評価するサイズ評価項目、前記アプリケーションプログラムの動作時間を評価する動作時間評価項目、前記アプリケーションプログラムの起動回数を評価する起動回数評価項目、前記アプリケーションプログラムによるオペレーティングシステムの呼出回数を評価する呼出回数評価項目、前記アプリケーションプログラムの動作網羅率を評価する動作網羅率評価項目の少なくともいずれかの評価項目が規定されると共に、前記実行手段によって実行される前記アプリケーションプログラムについて前記安定動作評価項目毎に前記評価値を決定しており、
前記安定度算出手段は、前記安定動作評価項目毎の前記評価値に基づいて前記安定度を算出することを特徴とする請求項1又は請求項2に記載の携帯端末。
The evaluation value determining means, as a stable operation evaluation item for evaluating the stable operation of the application program, a size evaluation item for evaluating the size of the application program, an operation time evaluation item for evaluating the operation time of the application program, At least one of a start count evaluation item for evaluating the start count of the application program, a call count evaluation item for evaluating the call count of the operating system by the application program, and an operation coverage rate evaluation item for evaluating the operation coverage rate of the application program An evaluation item is defined, and the evaluation value is determined for each of the stable operation evaluation items for the application program executed by the execution unit,
The portable terminal according to claim 1, wherein the stability calculation unit calculates the stability based on the evaluation value for each of the stable operation evaluation items.
前記アプリケーションプログラムにおける複数の動作箇所に、各動作箇所の実行履歴を残すための動作履歴マークが付されており、
前記評価値決定手段は、前記実行手段によって実行される前記アプリケーションプログラムにおける全動作履歴マークの内の実行済とされた前記動作履歴マークの割合に基づいて、当該アプリケーションプログラムの前記動作網羅率を求め、得られた前記動作網羅率に基づいて前記動作網羅率評価項目の前記評価値を決定することを特徴とする請求項3に記載の携帯端末。
An operation history mark for leaving an execution history of each operation location is attached to a plurality of operation locations in the application program,
The evaluation value determining means obtains the operation coverage ratio of the application program based on a ratio of the operation history marks that have been executed among all operation history marks in the application program executed by the execution means. The mobile terminal according to claim 3, wherein the evaluation value of the operation coverage rate evaluation item is determined based on the obtained operation coverage rate.
前記評価値決定手段は、前記アプリケーションプログラムの不安定動作性を評価する不安定動作評価項目として、前記アプリケーションプログラムの停止履歴を評価する停止履歴評価項目が規定され、且つ前記実行手段によって実行される前記アプリケーションプログラムの停止履歴に基づいて、当該アプリケーションプログラムについての前記停止履歴評価項目の前記評価値を決定しており、
前記安定度算出手段は、前記停止履歴評価項目の前記評価値に基づいて前記安定度を算出することを特徴とする請求項1から請求項4のいずれか一項に記載の携帯端末。
The evaluation value determining means defines a stop history evaluation item for evaluating the stop history of the application program as an unstable operation evaluation item for evaluating the unstable operation of the application program, and is executed by the execution means. Based on the stop history of the application program, the evaluation value of the stop history evaluation item for the application program is determined,
The portable terminal according to any one of claims 1 to 4, wherein the stability calculation means calculates the stability based on the evaluation value of the stop history evaluation item.
前記設定手段は、前記実行手段による前記アプリケーションプログラムの実行が、当該アプリケーションプログラムの初回実行時である場合、前記データ保護機能を有効状態とすることを特徴とする請求項1から請求項5のいずれか一項に記載の携帯端末。   The said setting means makes the said data protection function effective when execution of the said application program by the said execution means is the time of the first execution of the said application program, The any one of Claims 1-5 characterized by the above-mentioned. A portable terminal according to claim 1.
JP2010021121A 2010-02-02 2010-02-02 Mobile device Expired - Fee Related JP5287751B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010021121A JP5287751B2 (en) 2010-02-02 2010-02-02 Mobile device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010021121A JP5287751B2 (en) 2010-02-02 2010-02-02 Mobile device

Publications (2)

Publication Number Publication Date
JP2011159148A true JP2011159148A (en) 2011-08-18
JP5287751B2 JP5287751B2 (en) 2013-09-11

Family

ID=44591037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010021121A Expired - Fee Related JP5287751B2 (en) 2010-02-02 2010-02-02 Mobile device

Country Status (1)

Country Link
JP (1) JP5287751B2 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10124405A (en) * 1996-10-18 1998-05-15 Casio Comput Co Ltd Data processor
JP2000305863A (en) * 1999-02-17 2000-11-02 Denso Corp Portable optical information reader
JP2003108406A (en) * 2001-09-27 2003-04-11 Nippon Telegr & Teleph Corp <Ntt> Log control method, log control program, and storage medium storing application program having log control program
JP2004030305A (en) * 2002-06-26 2004-01-29 Brother Ind Ltd File system
JP2005209029A (en) * 2004-01-23 2005-08-04 Tm T & D Kk Application management system, application management method and program for performing the same
JP2006178858A (en) * 2004-12-24 2006-07-06 Denso Wave Inc Data processing terminal, and data management method and computer program of data processing terminal
JP2007102566A (en) * 2005-10-05 2007-04-19 Fuji Electric Holdings Co Ltd Memory backup system
JP2008245044A (en) * 2007-03-28 2008-10-09 Nec Corp Data backup device of portable terminal
JP2011081723A (en) * 2009-10-09 2011-04-21 Sony Corp Information processing device, information processing method, and program

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10124405A (en) * 1996-10-18 1998-05-15 Casio Comput Co Ltd Data processor
JP2000305863A (en) * 1999-02-17 2000-11-02 Denso Corp Portable optical information reader
JP2003108406A (en) * 2001-09-27 2003-04-11 Nippon Telegr & Teleph Corp <Ntt> Log control method, log control program, and storage medium storing application program having log control program
JP2004030305A (en) * 2002-06-26 2004-01-29 Brother Ind Ltd File system
JP2005209029A (en) * 2004-01-23 2005-08-04 Tm T & D Kk Application management system, application management method and program for performing the same
JP2006178858A (en) * 2004-12-24 2006-07-06 Denso Wave Inc Data processing terminal, and data management method and computer program of data processing terminal
JP2007102566A (en) * 2005-10-05 2007-04-19 Fuji Electric Holdings Co Ltd Memory backup system
JP2008245044A (en) * 2007-03-28 2008-10-09 Nec Corp Data backup device of portable terminal
JP2011081723A (en) * 2009-10-09 2011-04-21 Sony Corp Information processing device, information processing method, and program

Also Published As

Publication number Publication date
JP5287751B2 (en) 2013-09-11

Similar Documents

Publication Publication Date Title
JP2015036988A (en) Data storage device and method of protecting data storage device from abnormal voltage
US8402204B2 (en) Methods for measuring usable lifespan and replacing an in-system programming code of a memory device, and data storage system using the same
US8726087B2 (en) System and method for curing a read inability state in a memory device
JP2019053415A (en) Memory system, control method thereof and program
JP2017537369A (en) Data storage method, apparatus and terminal
JP2004234052A (en) Storage device
JP2012058879A (en) Operating system boot management device
JP5981906B2 (en) Image forming apparatus
US20130185549A1 (en) Electronic device and bios updating device thereof
CN105320621A (en) Memory system and information processing device
JP5287751B2 (en) Mobile device
KR102595577B1 (en) Warning methods, devices, electronic devices and storage media used in table games
JP2010204851A (en) Storage device and information processing apparatus
JP2004152194A (en) Memory data protection method
CN112527566B (en) Method, system and storage medium for protecting read-write abnormality of equipment power-down operation parameters
US9778981B2 (en) Microcontroller
JP5929398B2 (en) Nonvolatile semiconductor memory device and control method thereof
US20150339198A1 (en) Semiconductor memory device including nonvolatile semiconductor memory, control method of memory controller, and memory controller
JP4784165B2 (en) IC card and IC card program
CN114461452A (en) Hard disk protection method, electronic device and computer readable storage medium
JP6773335B2 (en) Anomaly detector, non-volatile memory device, anomaly detection method, and anomaly detection program
JPWO2016046940A1 (en) Microcomputer with built-in flash memory, method for writing data to flash memory built into the microcomputer, and program for writing data to flash memory
JP2010056744A (en) Information processor, image forming apparatus, and program
JP2020156222A (en) Power supply controller of in-vehicle camera module
JP2011085977A (en) Signal processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120131

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130425

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: 20130507

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130520

R150 Certificate of patent or registration of utility model

Ref document number: 5287751

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees