JP2009181278A - Electronic device, boot processing method, and boot processing program - Google Patents
Electronic device, boot processing method, and boot processing program Download PDFInfo
- Publication number
- JP2009181278A JP2009181278A JP2008018921A JP2008018921A JP2009181278A JP 2009181278 A JP2009181278 A JP 2009181278A JP 2008018921 A JP2008018921 A JP 2008018921A JP 2008018921 A JP2008018921 A JP 2008018921A JP 2009181278 A JP2009181278 A JP 2009181278A
- Authority
- JP
- Japan
- Prior art keywords
- storage unit
- data
- external storage
- unit
- authentication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、電源の投入に応じてブート処理を実行する電子機器及びブート処理方法並びにブート処理プログラムに関する。 The present invention relates to an electronic device that executes boot processing in response to power-on, a boot processing method, and a boot processing program.
携帯電話においては、新たに機能が追加される度に、プログラムを格納するためのプログラム領域が増加し、かつ当該プログラムのダウンロード及び書き込みにも多大な時間を要している。 In a mobile phone, each time a new function is added, the program area for storing the program increases, and much time is required for downloading and writing the program.
このような背景から、シリアルインターフェースを利用したプログラムの書き換え方式からUSB(Universal Serial Bus)を利用したデータの転送方法へ移行し、さらに、外部メモリからデータを転送して書き込む方式等のデータの転送及び書き込みの高速化を図る方法が種々提案されている。 From such a background, the program transfer method using a serial interface is shifted to a data transfer method using USB (Universal Serial Bus), and further, data transfer such as a method of transferring and writing data from an external memory is performed. Various methods for speeding up writing have been proposed.
また、特許文献1によれば、映像を受信するような受信器にソフトウェアプログラムをセキュアに、メモリに対して安全に、効率的にダウンロードする技術が提案されている。
Further, according to
また、特許文献2によれば、機器に必要なROMデータのダウンロードについて、外部装置を必要とせず、携帯端末装置に最適で、効率的な処理を行う技術が提案されている。
ここで、特許文献1や特許文献2を利用して、外部メモリから所定のデータを読み込み、読み込んだ当該所定のデータを内部メモリに書き込む方式を採用した場合について考察する。
Here, a case will be considered in which a method of reading predetermined data from an external memory and writing the read predetermined data to the internal memory using
まず、外部メモリ上のファイルからデータを読み込む(ダウンロード)には、携帯電話は、ファイルシステムが動作している状態、すなわち主電源の投入後、ブート処理が行われ、OS(Operating System)の初期化等の処理も完了し、動作可能な状態(通話待ち受け状態)になっている必要がある。 First, in order to read (download) data from a file on an external memory, the mobile phone is in a state where the file system is operating, that is, after the main power is turned on, a boot process is performed, and an OS (Operating System) initial stage It is necessary to complete the processing such as conversion and to be in an operable state (call waiting state).
このようにして、特許文献1や特許文献2を利用して、外部メモリから所定のデータをダウンロードするには、電源の投入後から通話待ち受け状態に遷移するまでの時間を待たなくてはならず、データを取得するまでの時間を短縮することが困難である。
In this way, in order to download predetermined data from the external memory using
また、携帯電話において外部メモリからデータのダウンロードを行う際には、使用者が誤ってデータを書き換えないようにするために、USBケーブル等をつないで特定のコマンドを携帯電話に送信したり、また、安定したダウンロードを実現するために、携帯電話が着信を受けられないように、電波受信を遮断するモードに設定したりする必要があり、データを取得するまでの時間を短縮できない問題がある。 In addition, when downloading data from an external memory on a mobile phone, to prevent the user from rewriting data by mistake, a specific command is sent to the mobile phone by connecting a USB cable, etc. In order to realize stable download, it is necessary to set a mode for blocking radio wave reception so that the mobile phone cannot receive incoming calls, and there is a problem that the time until data acquisition cannot be shortened.
本発明は、上述のような課題に鑑みてなされたものであり、その目的の一つは、外部記憶部からデータを読み込むことができる電子機器及びブート処理方法並びにブート処理プログラムを提供することにある。 SUMMARY An advantage of some aspects of the invention is that it provides an electronic apparatus, a boot processing method, and a boot processing program that can read data from an external storage unit. is there.
本発明に係る電子機器は、上記課題を解決するために、所定のファイルシステムに準拠して管理情報が格納される管理情報領域と実データが格納されるデータ領域とにより構成されている外部記憶部が装着される装着部と、所定のブート処理を行うブート処理部と、を有する電子機器において、前記ブート処理部は、電源の投入が行われたことに応じて前記装着部に前記外部記憶部が装着されていることを確認する外部記憶部確認手段と、前記外部記憶部確認手段により前記装着部に前記外部記憶部が装着されていることが確認されたときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むデータ読込手段と、前記データ読込手段により読み込まれた前記実データを所定の格納部に書き込む書込手段と、を備えることを特徴とする。 In order to solve the above problems, an electronic device according to the present invention is an external storage configured by a management information area in which management information is stored in accordance with a predetermined file system and a data area in which actual data is stored. In an electronic apparatus having a mounting unit to which a unit is mounted and a boot processing unit that performs a predetermined boot process, the boot processing unit stores the external storage in the mounting unit in response to power-on. An external storage unit confirmation unit for confirming that the external storage unit is attached, and the external storage unit confirmation unit when the external storage unit confirmation unit confirms that the external storage unit is attached to the attachment unit. Data reading means for accessing the data area and reading predetermined real data; and writing means for writing the real data read by the data reading means to a predetermined storage unit. The features.
また、上記電子機器では、前記外部記憶部確認手段により前記装着部に前記外部記憶部が装着されていることが確認されたときに前記外部記憶部の前記管理情報領域にアクセスして所定の管理情報を読み込む管理情報読込手段と、前記管理情報読込手段により読み込まれた前記所定の管理情報の中から認証ファイルを検索する検索手段と、前記検索手段により検索された前記認証ファイルにより認証を行う認証手段と、を備え、前記データ読込手段は、前記認証手段により認証が完了したときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むことが好ましい。 In the electronic device, when it is confirmed by the external storage unit confirmation means that the external storage unit is attached to the attachment unit, the management information area of the external storage unit is accessed and predetermined management is performed. Management information reading means for reading information, search means for searching for an authentication file from the predetermined management information read by the management information reading means, and authentication for authenticating with the authentication file searched by the search means Preferably, the data reading means accesses the data area of the external storage unit and reads predetermined actual data when the authentication is completed by the authentication means.
また、上記電子機器では、前記所定の格納部は、ブート処理が行われる際に読み込まれるプログラムデータが格納されているプログラムデータ格納部であり、前記データ読込手段は、前記認証手段により認証が完了したときに前記外部記憶部の前記データ領域にアクセスして、前記ブート処理に係るプログラムデータを前記実データとして読み込み、前記書込手段は、前記データ読込手段により読み込まれた前記ブート処理に係るプログラムデータを前記プログラムデータ格納部に書き込むことが好ましい。 In the electronic apparatus, the predetermined storage unit is a program data storage unit that stores program data that is read when a boot process is performed, and the data reading unit completes authentication by the authentication unit The data area of the external storage unit is accessed and the program data related to the boot process is read as the actual data, and the writing means is the program related to the boot process read by the data read means It is preferable to write data into the program data storage unit.
また、上記電子機器では、前記所定の格納部は、前記ブート処理が完了した後に、所定の機能を発揮するプログラムデータが格納されているプログラムデータ格納部であり、前記データ読込手段は、前記認証手段により認証が完了したときに前記外部記憶部の前記データ領域にアクセスして、前記プログラムデータを前記実データとして読み込み、前記書込手段は、前記データ読込手段により読み込まれた前記プログラムデータを前記プログラムデータ格納部に書き込むことが好ましい。 In the electronic apparatus, the predetermined storage unit is a program data storage unit that stores program data that performs a predetermined function after the boot process is completed, and the data reading unit includes the authentication unit. When the authentication is completed by the means, the data area of the external storage unit is accessed and the program data is read as the actual data, and the writing means reads the program data read by the data reading means It is preferable to write in the program data storage unit.
また、上記電子機器では、前記所定のファイルシステムは、FAT(File Allocation Table)システムであることが好ましい。 In the electronic device, it is preferable that the predetermined file system is a FAT (File Allocation Table) system.
また、本発明に係るブート処理方法は、上記課題を解決するために、電源の投入が行われたことに応じて所定のファイルシステムに準拠して管理情報が格納される管理情報領域と実データが格納されるデータ領域とにより構成されている外部記憶部が装着される装着部に前記外部記憶部が装着されていることを確認する外部記憶部確認工程と、前記外部記憶部確認工程により前記装着部に前記外部記憶部が装着されていることが確認されたときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むデータ読込工程と、前記データ読込工程により読み込まれた前記実データを所定の格納部に書き込む書込工程と、を備えることを特徴とする。 Further, in order to solve the above problems, the boot processing method according to the present invention includes a management information area and actual data in which management information is stored in accordance with a predetermined file system in response to power-on. And an external storage unit confirmation step for confirming that the external storage unit is attached to a mounting unit to which the external storage unit configured by the data area is stored, and the external storage unit confirmation step A data reading step for reading predetermined real data by accessing the data area of the external storage unit when it is confirmed that the external storage unit is mounted on the mounting unit, and read by the data reading step And a writing step of writing the actual data into a predetermined storage unit.
上記ブート処理方法では、前記外部記憶部確認工程により前記装着部に前記外部記憶部が装着されていることが確認されたときに前記外部記憶部の前記管理情報領域にアクセスして所定の管理情報を読み込む管理情報読込工程と、前記管理情報読込工程により読み込まれた前記所定の管理情報の中から認証ファイルを検索する検索工程と、前記検索工程により検索された前記認証ファイルにより認証を行う認証工程と、を備え、前記データ読込工程は、前記認証工程により認証が完了したときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むことが好ましい。 In the boot processing method, when the external storage unit confirmation step confirms that the external storage unit is mounted on the mounting unit, the management information area of the external storage unit is accessed to obtain predetermined management information. Management information reading step, a search step of searching for an authentication file from the predetermined management information read by the management information reading step, and an authentication step of performing authentication by the authentication file searched by the search step Preferably, the data reading step accesses the data area of the external storage unit and reads predetermined actual data when authentication is completed by the authentication step.
また、本発明に係るコンピュータによって実現するためのブート処理プログラムは、電源の投入が行われたことに応じて所定のファイルシステムに準拠して管理情報が格納される管理情報領域と実データが格納されるデータ領域とにより構成されている外部記憶部が装着される装着部に前記外部記憶部が装着されていることを確認する外部記憶部確認工程と、前記外部記憶部確認工程により前記装着部に前記外部記憶部が装着されていることが確認されたときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むデータ読込工程と、前記データ読込工程により読み込まれた前記実データを所定の格納部に書き込む書込工程と、をコンピュータによって実現するためのプログラムである。 In addition, the boot processing program to be realized by the computer according to the present invention stores a management information area and actual data in which management information is stored in accordance with a predetermined file system when power is turned on. An external storage unit confirmation step for confirming that the external storage unit is attached to a mounting unit to which the external storage unit configured by the data area is attached, and the mounting unit by the external storage unit confirmation step A data reading step of accessing the data area of the external storage unit when the external storage unit is confirmed to be installed and reading predetermined actual data, and the actual read by the data reading step A program for realizing a writing process of writing data in a predetermined storage unit by a computer.
また、上記ブート処理プログラムでは、前記外部記憶部確認工程により前記装着部に前記外部記憶部が装着されていることが確認されたときに前記外部記憶部の前記管理情報領域にアクセスして所定の管理情報を読み込む管理情報読込工程と、前記管理情報読込工程により読み込まれた前記所定の管理情報の中から認証ファイルを検索する検索工程と、前記検索工程により検索された前記認証ファイルにより認証を行う認証工程と、を備え、前記データ読込工程は、前記認証工程により認証が完了したときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むことが好ましい。 In the boot processing program, when the external storage unit confirmation step confirms that the external storage unit is mounted on the mounting unit, the boot processing program accesses the management information area of the external storage unit to obtain a predetermined value. Authentication is performed by a management information reading process for reading management information, a search process for searching for an authentication file from the predetermined management information read by the management information reading process, and the authentication file searched by the search process An authentication step, wherein the data reading step accesses the data area of the external storage unit and reads predetermined actual data when authentication is completed by the authentication step.
本発明によれば、外部記憶部からデータを読み込むことができる。 According to the present invention, data can be read from the external storage unit.
以下、本発明の実施の形態について説明する。図1は、本発明に係る電子機器の一例である携帯電話装置1の外観斜視図を示す。なお、以下では、携帯電話装置について説明するが、本発明はこれに限定されるものではなく、撮像機能及び通信機能を有するものであれば良く、例えば、PHS(Personal Handy phone System)、PDA(Personal Digital Assistant)、ポータブルナビゲーション装置、ノートパソコン等であっても良い。
Embodiments of the present invention will be described below. FIG. 1 is an external perspective view of a
携帯電話装置1は、操作部側筐体部2と、表示部側筐体部3と、を備えて構成される。操作部側筐体部2は、表面部10に、操作キー群11と、携帯電話装置1のユーザが通話時に発した音声が入力されるマイク12と、を備えて構成される。操作キー群11は、各種設定や電話帳機能やメール機能等の各種機能を動作させるための機能設定操作ボタン13と、電話番号の数字やメール等の文字等を入力するための入力操作ボタン14と、各種操作における決定やスクロール等を行う決定操作ボタン15と、から構成されている。
The
また、表示部側筐体部3は、表面部20に、各種情報を表示するためのディスプレイ21と、通話の相手側の音声を出力する音声出力部22と、被写体を撮像するCCD(Charge Coupled Device)カメラ等により構成される撮像部23と、音楽等を外部に出力するスピーカ24と、を備えて構成されている。
Further, the display unit
また、操作部側筐体部2の上端部と表示部側筐体部3の下端部とは、ヒンジ機構4を介して連結されている。また、携帯電話装置1は、ヒンジ機構4を介して連結された操作部側筐体部2と表示部側筐体部3とを相対的に回転することにより、操作部側筐体部2と表示部側筐体部3とが互いに開いた状態(開放状態)にしたり、操作部側筐体部2と表示部側筐体部3とが折り畳まれた状態(折畳み状態)にしたりできる。
Further, the upper end of the operation
なお、図1は、いわゆる折り畳み型の携帯電話装置の形態を示しているが、本発明に係る携帯電話装置の形態としては特にこれに限られず、操作部側筐体部2と表示部側筐体部3とを重ね合わせた状態から一方の筐体を一方向にスライドさせるようにしたスライド式や、操作部側筐体部2と表示部側筐体部3との重ね合せ方向に沿う軸線を中心に一方の筐体を回転させるようにした回転式(ターンタイプ)や、操作部側筐体部2と表示部側筐体部3とが一つの筐体に配置され連結部を有さない型式(ストレートタイプ)等であっても良い。
1 shows a form of a so-called foldable mobile phone device, but the form of the mobile phone device according to the present invention is not particularly limited to this, and the operation unit
また、図2は、携帯電話装置1の機能を示す機能ブロック図である。携帯電話装置1は、図2に示すように、外部の端末と通信を行う通信部60と、所定の処理を行う処理部70と、所定容量を有する充電池80と、充電池80から供給される電源電圧を所定の電圧に変換し、変換後の電圧を通信部60や処理部70等に供給する電源回路部90と、外部メモリ100(外部記憶部)が装着される装着部101と、を備えている。
FIG. 2 is a functional block diagram showing functions of the
通信部60は、所定の使用周波数帯により外部装置と通信を行うメインアンテナ61と、変調処理又は復調処理等の信号処理を行う通信処理部62と、を備える。
The
メインアンテナ61は、所定の使用周波数帯(例えば、800MHz)で外部装置(基地局)と通信を行う。なお、本実施の形態では、所定の使用周波数帯として、800MHzとしたが、これ以外の周波数帯であっても良い。また、メインアンテナ61は、所定の使用周波数帯の他に、第2の使用周波数帯(例えば、2GHz)に対応できる、いわゆるデュアルバンド対応型による構成であっても良いし、さらに、第3の使用周波数帯にも対応できる複数バンド対応型により構成されていても良い。
The
通信処理部62は、メインアンテナ61によって受信した信号を復調処理し、処理後の信号を処理部70に供給し、一方、処理部70から供給された信号を変調処理し、メインアンテナ61を介して外部装置(基地局)に送信する。
The
電源回路部90は、充電池80から供給される電源電圧を所定の電圧値に変圧し、変圧後の電源電圧を通信部60及び処理部70に供給する。
The power
装着部101は、所定の規格に準じた形状をなしており、当該所定の規格に準じた不揮発性の外部メモリ100の装着を可能としている。また、処理部70は、装着部101に装着された外部メモリ100にデータを書き込んだり、また書き込まれているデータを読み出す。
The
また、本実施例では、外部メモリ100は、複数のフォルダ(ディレクトリ)で構成されており、記憶されるデータの種類に応じて格納されるフォルダが異なるものとして説明するが、特にこの構成に限定されるものではない。
In the present embodiment, the
また、外部メモリ100は、例えば、FAT(file allocation table)ファイルシステムによりデータの管理がされているものとして説明するが、特にこれに限定されるものではない。
The
<FATファイルシステムについて>
ここで、FATファイルシステムについて説明する。ファイルシステムとは、外部メモリ100上においてファイルを管理するための仕組みであり、ユーザが論理的に扱うファイルやディレクトリを、実際の物理的な外部メモリ100上に対応させ、ファイルやディレクトリ自体を構成するシステムである。FATファイルシステムは、ディレクトリエントリとFAT(File Allocation Table)と呼ばれる情報によって管理される。
<About FAT file system>
Here, the FAT file system will be described. The file system is a mechanism for managing files on the
FATファイルシステムにおいて、ファイルはクラスタを単位として構成されているが、同一ファイルを構成するクラスタの外部メモリ100上の物理的な位置は必ずしも連続しているわけではない。それらのクラスタがどのような順でつながって、一つのファイルを構成しているかを管理しているのがFATである。FATの各項目は、外部メモリ100の各クラスタと1対1に対応している。ファイルの開始クラスタは、後述するディレクトリエントリに記録され、その次のクラスタを指しているのは、最初のクラスタに対応するFATの次のエントリの内容である。
In the FAT file system, files are configured in units of clusters, but the physical positions on the
ディレクトリとは、ファイルを管理するための階層構造を持つグループ名である。また、各ディレクトリに含まれるファイルの情報は、ディレクトリエントリと呼ばれる。ディレクトリエントリには、ファイルや他のディレクトリの名前、拡張子、属性、データサイズ、ファイルの開始クラスタの番号(開始クラスタ番号)等の情報が含まれている。最上位のディレクトリをルートディレクトリと呼び、その下位のディレクトリをサブディレクトリと呼ぶ。 A directory is a group name having a hierarchical structure for managing files. Information on files included in each directory is called a directory entry. The directory entry includes information such as the name, extension, attribute, data size, and file start cluster number (start cluster number) of the file and other directories. The top directory is called the root directory, and the subordinate directories are called subdirectories.
FATファイルシステムによってフォーマットされた外部メモリ100は、セクタと呼ばれる単位によって分割され、外部メモリ100上に記録されたデータは、セクタ単位で読み出し及び書き込みが行われる。なお、1セクタは、通常、512バイトである。
The
また、セクタを2のべき乗個集めたものをクラスタと呼ぶ。1クラスタが何個のセクタにより構成されるかは、外部メモリ100によって異なる。
A collection of powers of 2 sectors is called a cluster. The number of sectors that constitute one cluster differs depending on the
FATファイルシステムによってフォーマットされた外部メモリ100は、マスターブートレコード(MBR)、パーティションテーブル、複数のFAT領域、ルートディレクトリ領域、データ領域からなる。また、パーティションテーブルは、先頭にブートセクタを有する。
The
マスターブートレコードは、外部メモリ100の先頭の1セクタであり、オペレーティングシステムをロードするためのブートローダやパーティション情報が収められている。また、ブートセクタは、該当するパーティションの先頭セクタを指し、1クラスタが何個のセクタにより構成されているかを示すセクタ/クラスタ数、FAT領域を構成するセクタの数、ルートディレクトリエントリの数等の情報を記録している。
The master boot record is the first sector of the
FAT領域は、データ領域に記録されているデータのファイル本体の在り処を示す情報であるFAT項目を記録する領域である。FAT領域は、通常、2つのFAT領域を有し、これらにはそれぞれ同一の内容が記録される。また、これら2つの異なるFAT領域は、外部メモリ100上に連続して配置される。
The FAT area is an area for recording a FAT item that is information indicating the location of the file body of the data recorded in the data area. The FAT area usually has two FAT areas, in which the same contents are recorded. Further, these two different FAT areas are continuously arranged on the
ルートディレクトリ領域は、ファイルの在り処を管理する領域である。ルートディレクトリ領域には、最上位のディレクトリであるルートディレクトリに存在するファイルとサブディレクトリに関する情報を記述したルートディレクトリエントリが記録される。 The root directory area is an area for managing the location of files. In the root directory area, a root directory entry describing information on files and subdirectories existing in the root directory which is the highest directory is recorded.
データ領域は、ファイルの内容(実データ)と、サブディレクトリ以下に存在するファイルとサブディレクトリに関する情報を記述したディレクトリエントリが記録される。データ領域に記録されたファイルの内容は、FAT及びディレクトリエントリによって対応付けられている。 In the data area, a file entry (actual data) and a directory entry describing information on files and subdirectories existing under the subdirectory are recorded. The contents of the file recorded in the data area are associated with each other by FAT and directory entry.
すなわち、外部メモリ100におけるデータへのアクセスは、まずルートディレクトリエントリに記述された開始クラスタ番号を参照してデータ領域に記録されたファイルの一部を読み出し、FATを参照して次のデータが記録されたデータ領域内の位置を特定し、その位置のデータを読み出す、といった処理をファイルの末尾まで繰り返すことによってなされる。
That is, when accessing data in the
このように、一つのファイルを構成するクラスタ群は、FATによりチェインとしてつなげられている。このようにFATを基にファイルの部分を辿っていく操作を、チェイン操作と呼ぶ。 In this way, the cluster group constituting one file is connected as a chain by FAT. Such an operation of tracing the file portion based on the FAT is called a chain operation.
<処理部70の構成と動作>
つぎに、処理部70の構成と動作について説明する。なお、外部メモリ100は、所定のファイルシステム(例えば、上述したFATファイルシステム)に準拠して管理情報が格納される管理情報領域と実データが格納されるデータ領域とにより構成されている。
<Configuration and Operation of
Next, the configuration and operation of the
処理部70は、例えば、主制御部(CPU)であって、図3に示すように、主電源の投入(電源がON状態)が行われたことに応じて装着部101に外部メモリ100が装着されていることを確認する外部メモリ確認部200(外部記憶部確認手段)と、外部メモリ確認部200により装着部101に外部メモリ100が装着されていることが確認されたときに外部メモリ100の管理情報領域にアクセスして所定の管理情報を読み込む管理情報読込部201(管理情報読込手段)と、管理情報読込部201により読み込まれた所定の管理情報の中から認証ファイル(パスワードファイル)を検索する検索部202(検索手段)と、検索部202により検索された認証ファイルにより認証を行う認証部203(認証手段)と、認証部203により認証が完了したときに外部メモリ100のデータ領域にアクセスして所定の実データを読み込むデータ読込部204(データ読込手段)と、データ読込部204により読み込まれた実データをメモリ206(所定の格納部)に書き込む書込部205と、を備える。なお、メモリ206は、例えば、NAND型フラッシュメモリにより構成される。また、携帯電話装置1は、データの一時書き込み用としてRAM207を有している。
The
また、メモリ206は、ブート処理が行われる際に読み込まれるプログラムデータが格納されているプログラムデータ格納部である。メモリ206がこのような構成の場合には、データ読込部204及び書込部205は、以下のように動作する。
The
データ読込部204は、認証部203により認証が完了したときに外部メモリ100のデータ領域にアクセスして、ブート処理に係るプログラムデータを実データとして読み込む。そして、書込部205は、データ読込部204により読み込まれたブート処理に係るプログラムデータをメモリ206に書き込む。
The
また、メモリ206は、ブート処理が完了した後に、所定の機能を発揮するプログラムデータが格納されているプログラムデータ格納部である。メモリ206がこのような構成の場合には、データ読込部204及び書込部205は、以下のように動作する。
The
データ読込部204は、認証部203により認証が完了したときに外部メモリ100のデータ領域にアクセスして、プログラムデータを実データとして読み込む。そして、書込部205は、データ読込部204により読み込まれたプログラムデータをメモリ206に書き込む。
The
つぎに、携帯電話装置1によりブート処理の工程(以下に示すステップS1〜ステップS3)において、外部メモリ100から所定のデータをダウンロードする方法について図4に示すフローチャートを参照しながら説明する。なお、以下では、使用者による所定の操作によって主電源の投入により、リセットが行われたものとする。
Next, a method for downloading predetermined data from the
使用者による所定の操作による主電源の投入により、リセットが行われ、ブート処理の工程として、初期化のための各種処理工程S1が実行され、その後、起動モードを判定するための起動モード判定工程S2が実行される。そして、起動モード判定工程S2の判定結果に応じて、外部メモリ100から所定のデータのダウンロードが行われるダウンロード工程S3が実行される。また、起動モード判定工程S2の判定結果に応じて、ダウンロード工程S3が実行されない場合には、通常の起動工程S4が実行されて、携帯電話装置1は、動作可能な状態(通話待ち受け状態)になる。
When the main power is turned on by a predetermined operation by the user, a reset is performed, and various processing steps S1 for initialization are executed as a boot processing step, and then a startup mode determination step for determining a startup mode. S2 is executed. Then, a download step S3 in which predetermined data is downloaded from the
<初期化のための各種処理工程S1>
つぎに、初期化のための各種処理工程S1について説明する。初期化のための各種処理工程S1では、図5に示すように、RAM207の初期化が行われ(ステップS11)、処理部70(主制御部(CPU))の初期化が行われ(ステップS12)、次に、割り込みハンドルの登録が行われ(ステップS13)、次に、バス幅等の設定が行われ(ステップS14)、そして、メモリ206のコントローラの初期化が行われる(ステップS15)。そして、外部メモリ100の初期化が行われる(ステップS16)。
<Various processing steps S1 for initialization>
Next, various processing steps S1 for initialization will be described. In various processing steps S1 for initialization, as shown in FIG. 5, the
なお、初期化のための各種処理工程S1においては、上述したように、RAM207の初期化を行い、必ずブートプログラムのコードを転送することによってプログラムは初めて動作できるので、リセット後(CPU初期状態)では、RAM207の初期化を行う(ステップS11)。また、本実施例におけるRAM207は、SDRAM(Synchronous DRAM)を想定しており、メモリが消去されないようにクロック挿入動作を行う。このようにして、RAM207の初期化を最初に実行する。
In various processing steps S1 for initialization, as described above, the
<起動モード判定工程S2>
つぎに、起動モード判定工程S2について説明する。図6に示すように、外部メモリ100の初期化(ステップS16)が行われた後、外部メモリ確認部200は、外部メモリ100が装着部101に装着されているか否かを確認する(ステップS21)。ここで、外部メモリ100が装着部101に装着されていると確認された場合には、ステップS22に進み、外部メモリ100が装着部101に装着されていないと確認された場合には、ステップS4(ステップS41)に進む。
<Startup mode determination step S2>
Next, the activation mode determination step S2 will be described. As shown in FIG. 6, after initialization of the external memory 100 (step S16), the external
外部メモリ100が装着部101に装着されていると確認された場合、装着部101のコントローラ(管理情報読込部201、データ読込部204)を初期化する(ステップS22)。その後、管理情報読込部201は、ルートディレクトリファイルを読み込む(ステップS23)。
When it is confirmed that the
検索部202は、読み込んだルートディレクトリファイルの中に所定の認証ファイル名が含まれているか否かの検索を行う。具体的には、ルートディレクトリファイルの先頭ファイルが所定の認証ファイル名であるか否かを確認し(ステップS24)、所定の認証ファイル名ではない場合には、ステップS25に進み、所定の認証ファイル名である場合には、ステップS26に進む。
The
また、ルートディレクトリファイルに次のファイルが存在するか否かを判断し(ステップS25)、次のファイルが存在する場合には、ステップS24に戻り、そのファイルが所定の認証ファイル名であるか否かを判断する(ステップS24)。また、次のファイルが存在しない場合には、ステップS4(ステップS41)に進む。 Further, it is determined whether or not the next file exists in the root directory file (step S25). If the next file exists, the process returns to step S24, and whether or not the file has a predetermined authentication file name. Is determined (step S24). If the next file does not exist, the process proceeds to step S4 (step S41).
外部メモリ100から所定の認証ファイルを読み込み(ステップS26)、認証部203は、当該認証ファイルの認証を行う(ステップS27)。ステップS28において、認証が適式に行われた場合には、ステップS29に進み、認証が適式に行われない場合には、ステップS4(ステップS41)に進む。
A predetermined authentication file is read from the external memory 100 (step S26), and the
データ読込部204は、外部メモリ100のルートディレクトリからダウンロードするファイルの検索を行い(ステップS29)、ダウンロード対象となるファイルの有無を確認する(ステップS30)。ここで、ダウンロードするファイルが存在する場合には、ステップS3(ステップS31)に進み、ダウンロードするファイルが存在しない場合には、ステップS4(ステップS41)に進む。
The
<ダウンロード工程S3>
つぎに、ダウンロード工程S3について説明する。図7に示すように、データ読込部204は、外部メモリ100から対象となるファイルをダウンロードする。ダウンロードされたデータは、RAM207等の一時記憶メモリに書き込まれる(ステップS31)。また、データ読込部204は、所定のタイミングでRAM207に書き込まれたデータを読み出し、メモリ206に書き込む(ステップS32)。また、外部メモリ100からデータをすべて読み込んだか否かを判断し(ステップS33)、データをすべて読み込んだ場合には、ステップS34に進み、データをすべて読み込んでいない場合には、ステップS31に戻る。
<Download process S3>
Next, the download process S3 will be described. As shown in FIG. 7, the
外部メモリ100からデータをすべて読み込んだ場合には、ダウンロードの終了を示す表示をディスプレイ21に表示する(ステップS34)。そして、所定時間(例えば、2分30秒間)の経過を待ち(ステップS35)、ステップS1(ステップS11)に戻る。なお、携帯電話装置1は、通常の起動工程S4の実行前の段階において、外部メモリ100に対して、所定のデータを書き込むことが可能な構成にすれば、ダウンロード済みである旨を外部メモリ100の所定の場所に書き込む処理を行えば、ステップS35の工程は不要となる。
When all the data is read from the
<通常の起動工程S4>
つぎに、通常の起動工程S4について説明する。図8に示すように、ステップS21の工程により外部メモリ100が装着部101に装着されていないと確認された場合や、ステップS25の工程により次のファイルが存在しないと判断された場合や、ステップS28の工程により認証が適式に行われないと判断された場合や、ステップS30の工程によりダウンロードの対象となるファイルが存在しないと判断された場合には、通常の起動工程S4が実行される。すなわち、C言語スタンダードライブラリスタートアップルーチンが起動し(ステップS41)、OSが初期化され(ステップS42)、ルートタスクの起動が行われ(ステップS43)、サブタスクの起動が行われる(ステップS44)。
<Normal startup process S4>
Next, the normal startup process S4 will be described. As shown in FIG. 8, when it is confirmed that the
このようにして、本発明に係る携帯電話装置1では、外部メモリ100から読み込んだ認証ファイルの認証可否に基づいて、メモリ206にデータを書き込むか否かを判断するので、使用者の誤操作によるデータの書き込みを防止することができ、また、従来技術のように、外部メモリ100からデータを読み込むために、外部ケーブルを接続して任意のコマンドを入力する作業を不要にすることができる。
Thus, in the
また、本発明に係る携帯電話装置1では、ファイルシステムの機能を限定してブート処理機能へ実装する方式(少ないコード領域でも動作するように、外部メモリ100のルートディレクトリのファイルを検索するロジックと、ファイルの読み込みに必要なロジックのみを実装する方式)を採用するので、いわゆるブート処理の工程(ステップS1〜ステップS3)において、所定の初期化処理を行い、外部メモリ100が装着部101に装着されているか否かの確認をし、外部メモリ100が装着されている場合に認証ファイルの検索を行い、検索された認証ファイルの認証を行い、認証が行われた後に外部メモリ100から所定のデータをダウンロードしてメモリ206に書き込むことができ、従来技術のように、外部メモリ100から所定のデータをダウンロードする際に、携帯電話装置1が動作可能な状態(通話待ち受け状態)になるまで待つ必要がなく、かつ電波受信を遮断するモードに設定する必要もない。したがって、本発明に係る携帯電話装置1では、従来技術に比べて、外部メモリ100から所定のデータをダウンロードする際に、他の機能(通話待ち受け機能)との競合処理を防止でき、かつダウンロード時間を短縮化でき、かつ高速に行うことができる。
Further, in the
なお、本実施例では、所定のファイルシステムとしてFAT(File Allocation Table)システムにより説明したが、FATファイルシステムに限定されるものではなく、他のファイルシステムでも良い。 In this embodiment, the FAT (File Allocation Table) system has been described as the predetermined file system. However, the present invention is not limited to the FAT file system, and other file systems may be used.
1 携帯電話装置
70 処理部
100 外部メモリ
101 装着部
200 外部メモリ確認部(外部記憶部確認手段)
201 管理情報読込部(管理情報読込手段)
202 検索部(検索手段)
203 認証部(認証手段)
204 データ読込部(データ読込手段)
205 書込部
206 メモリ(所定の格納部)
207 RAM
DESCRIPTION OF
201 Management information reading part (Management information reading means)
202 Search unit (search means)
203 Authentication part (authentication means)
204 Data reading part (data reading means)
205
207 RAM
Claims (9)
前記ブート処理部は、
電源の投入が行われたことに応じて前記装着部に前記外部記憶部が装着されていることを確認する外部記憶部確認手段と、
前記外部記憶部確認手段により前記装着部に前記外部記憶部が装着されていることが確認されたときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むデータ読込手段と、
前記データ読込手段により読み込まれた前記実データを所定の格納部に書き込む書込手段と、を備えることを特徴とする電子機器。 A mounting unit to which an external storage unit configured by a management information area for storing management information and a data area for storing actual data in accordance with a predetermined file system is mounted, and a boot for performing a predetermined boot process In an electronic device having a processing unit,
The boot processing unit
An external storage unit confirmation means for confirming that the external storage unit is mounted on the mounting unit in response to power-on.
A data reading unit that accesses the data area of the external storage unit and reads predetermined actual data when the external storage unit confirmation unit confirms that the external storage unit is mounted on the mounting unit;
An electronic apparatus comprising: writing means for writing the actual data read by the data reading means into a predetermined storage unit.
前記管理情報読込手段により読み込まれた前記所定の管理情報の中から認証ファイルを検索する検索手段と、
前記検索手段により検索された前記認証ファイルにより認証を行う認証手段と、を備え、
前記データ読込手段は、前記認証手段により認証が完了したときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むことを特徴とする請求項1記載の電子機器。 Management information reading means for accessing the management information area of the external storage unit and reading predetermined management information when the external storage unit confirmation unit confirms that the external storage unit is mounted on the mounting unit. When,
Search means for searching for an authentication file from the predetermined management information read by the management information reading means;
Authentication means for performing authentication with the authentication file searched by the search means,
2. The electronic apparatus according to claim 1, wherein the data reading unit accesses the data area of the external storage unit and reads predetermined actual data when authentication is completed by the authentication unit.
前記データ読込手段は、前記認証手段により認証が完了したときに前記外部記憶部の前記データ領域にアクセスして、前記ブート処理に係るプログラムデータを前記実データとして読み込み、
前記書込手段は、前記データ読込手段により読み込まれた前記ブート処理に係るプログラムデータを前記プログラムデータ格納部に書き込むことを特徴とする請求項2記載の電子機器。 The predetermined storage unit is a program data storage unit that stores program data that is read when a boot process is performed,
The data reading means accesses the data area of the external storage unit when authentication is completed by the authentication means, reads program data related to the boot process as the actual data,
3. The electronic apparatus according to claim 2, wherein the writing unit writes the program data related to the boot process read by the data reading unit into the program data storage unit.
前記データ読込手段は、前記認証手段により認証が完了したときに前記外部記憶部の前記データ領域にアクセスして、前記プログラムデータを前記実データとして読み込み、
前記書込手段は、前記データ読込手段により読み込まれた前記プログラムデータを前記プログラムデータ格納部に書き込むことを特徴とする請求項2記載の電子機器。 The predetermined storage unit is a program data storage unit that stores program data that performs a predetermined function after the boot process is completed,
The data reading means accesses the data area of the external storage unit when authentication is completed by the authentication means, reads the program data as the actual data,
3. The electronic apparatus according to claim 2, wherein the writing unit writes the program data read by the data reading unit into the program data storage unit.
前記外部記憶部確認工程により前記装着部に前記外部記憶部が装着されていることが確認されたときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むデータ読込工程と、
前記データ読込工程により読み込まれた前記実データを所定の格納部に書き込む書込工程と、を備えることを特徴とするブート処理方法。 When the power is turned on, an external storage unit configured with a management information area for storing management information and a data area for storing actual data in accordance with a predetermined file system is mounted. An external storage unit confirmation step for confirming that the external storage unit is mounted on the mounting unit;
A data reading step of accessing the data area of the external storage unit and reading predetermined real data when the external storage unit confirmation step confirms that the external storage unit is attached to the mounting unit;
A boot processing method comprising: a writing step of writing the actual data read in the data reading step into a predetermined storage unit.
前記管理情報読込工程により読み込まれた前記所定の管理情報の中から認証ファイルを検索する検索工程と、
前記検索工程により検索された前記認証ファイルにより認証を行う認証工程と、を備え、
前記データ読込工程は、前記認証工程により認証が完了したときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むことを特徴とする請求項6記載のブート処理方法。 Management information reading step for accessing the management information area of the external storage unit and reading predetermined management information when it is confirmed that the external storage unit is mounted on the mounting unit by the external storage unit checking step When,
A search step of searching for an authentication file from the predetermined management information read by the management information reading step;
An authentication step of performing authentication with the authentication file searched in the search step,
7. The boot processing method according to claim 6, wherein the data reading step accesses the data area of the external storage unit and reads predetermined actual data when authentication is completed by the authentication step.
前記外部記憶部確認工程により前記装着部に前記外部記憶部が装着されていることが確認されたときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むデータ読込工程と、
前記データ読込工程により読み込まれた前記実データを所定の格納部に書き込む書込工程と、をコンピュータによって実現するためのブート処理プログラム。 When the power is turned on, an external storage unit configured with a management information area for storing management information and a data area for storing actual data in accordance with a predetermined file system is mounted. An external storage unit confirmation step for confirming that the external storage unit is mounted on the mounting unit;
A data reading step of accessing the data area of the external storage unit and reading predetermined real data when the external storage unit confirmation step confirms that the external storage unit is attached to the mounting unit;
A boot processing program for realizing, by a computer, a writing step of writing the actual data read in the data reading step into a predetermined storage unit.
前記管理情報読込工程により読み込まれた前記所定の管理情報の中から認証ファイルを検索する検索工程と、
前記検索工程により検索された前記認証ファイルにより認証を行う認証工程と、を備え、
前記データ読込工程は、前記認証工程により認証が完了したときに前記外部記憶部の前記データ領域にアクセスして所定の実データを読み込むことを特徴とする請求項8記載のブート処理プログラム。 Management information reading step for accessing the management information area of the external storage unit and reading predetermined management information when it is confirmed that the external storage unit is mounted on the mounting unit by the external storage unit checking step When,
A search step of searching for an authentication file from the predetermined management information read by the management information reading step;
An authentication step of performing authentication with the authentication file searched in the search step,
9. The boot processing program according to claim 8, wherein the data reading step accesses the data area of the external storage unit and reads predetermined actual data when authentication is completed by the authentication step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008018921A JP2009181278A (en) | 2008-01-30 | 2008-01-30 | Electronic device, boot processing method, and boot processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008018921A JP2009181278A (en) | 2008-01-30 | 2008-01-30 | Electronic device, boot processing method, and boot processing program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009181278A true JP2009181278A (en) | 2009-08-13 |
Family
ID=41035228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008018921A Pending JP2009181278A (en) | 2008-01-30 | 2008-01-30 | Electronic device, boot processing method, and boot processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009181278A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018160139A (en) * | 2017-03-23 | 2018-10-11 | 京セラドキュメントソリューションズ株式会社 | Electronic device and data migration program |
-
2008
- 2008-01-30 JP JP2008018921A patent/JP2009181278A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018160139A (en) * | 2017-03-23 | 2018-10-11 | 京セラドキュメントソリューションズ株式会社 | Electronic device and data migration program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5389873B2 (en) | Electronic device, method and communication system for automatic synchronization | |
EP2146293B1 (en) | Mobile terminal having function of managing file and folder | |
JP2001350631A (en) | Information processing device, server device and information communication system | |
EP2472996B1 (en) | Method and system for operating telephone directory | |
JPWO2004102931A1 (en) | Mobile communication terminal and code image reading method using mobile communication terminal | |
JPWO2007020857A1 (en) | Mobile terminal device | |
JP2009181278A (en) | Electronic device, boot processing method, and boot processing program | |
JP2004208245A (en) | Device for enhancing function of wireless modem | |
JP2005196781A (en) | Method for processing file of sub-memory in portable terminal equipment | |
WO2008054134A1 (en) | Terminal having boot lazy loading function for wireless internet platform module and method of controlling the same | |
WO2013182083A1 (en) | Mobile phone application activation method and system | |
US20070036463A1 (en) | Platform-independent preference setting method | |
US7577463B2 (en) | Fast booting method for mobile communication device | |
KR20070028960A (en) | Mobile communication terminal transmitting data and its operating method | |
US9836468B2 (en) | Electronic apparatus and method for temporarily storing data thereof | |
JP4194328B2 (en) | Mobile phone | |
US7630734B2 (en) | Mobile wireless communications device providing enhanced file management and related methods | |
JP5590595B2 (en) | Portable terminal device, memory update method, and program | |
JP2004289541A (en) | Storage device for portable telephone | |
KR101533835B1 (en) | Method for firmware update of Portable Terminal | |
KR200313898Y1 (en) | The portable storage device for multi-adaptation and mobile communication adaptation | |
JP2004157789A (en) | Mobile terminal, reconfiguration method of program in it, and reconfiguration program | |
JP2006319445A (en) | Portable mobile communication device provided with plug-in expanded memory | |
CN103677890A (en) | Information processing apparatus, information processing method, and program | |
US20110099327A1 (en) | System and method for launching an application programming utilizing a hybrid version of demand paging |