JP2018107561A - Imaging device - Google Patents

Imaging device Download PDF

Info

Publication number
JP2018107561A
JP2018107561A JP2016250378A JP2016250378A JP2018107561A JP 2018107561 A JP2018107561 A JP 2018107561A JP 2016250378 A JP2016250378 A JP 2016250378A JP 2016250378 A JP2016250378 A JP 2016250378A JP 2018107561 A JP2018107561 A JP 2018107561A
Authority
JP
Japan
Prior art keywords
cpu
data
processing
nonvolatile memory
transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016250378A
Other languages
Japanese (ja)
Inventor
正和 土橋
Masakazu Tsuchihashi
正和 土橋
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2016250378A priority Critical patent/JP2018107561A/en
Publication of JP2018107561A publication Critical patent/JP2018107561A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To start a CPU dedicated to radio communication without influencing other functions even when processing having a strict time constraint is being performed.SOLUTION: An imaging device includes: a first CPU controlling the operation of the imaging device; communication means performing radio communication; a second CPU dedicated to the communication means; and a nonvolatile memory storing data used in the first CPU and data used in the second CPU. If the second CPU is started when a predetermined function that is required to terminate processing within a set period is being executed, the second CPU loads data from the nonvolatile memory in a PIO mode. If the second CPU is started when the predetermined function is not executed, the second CPU loads data from the nonvolatile memory in a DMA mode.SELECTED DRAWING: Figure 2

Description

本発明は撮像装置に関する。   The present invention relates to an imaging apparatus.

近年、無線通信処理を専用に制御するCPUを搭載したデジタルカメラ等の撮像装置が登場している。無線通信処理専用のCPUはデジタルカメラの処理全般を行うメインCPUとRAMを共有する構成となっている。この無線通信処理専用のCPUで無線通信処理を行うことにより、カメラ本来の機能である撮影や記録、ライブビュー表示等の処理に影響を与えることなく、平行して無線通信を行うことが可能となる。   In recent years, imaging apparatuses such as digital cameras equipped with a CPU that exclusively controls wireless communication processing have appeared. The CPU dedicated to the wireless communication processing is configured to share the RAM with the main CPU that performs the entire processing of the digital camera. By performing wireless communication processing with this dedicated CPU for wireless communication processing, it is possible to perform wireless communication in parallel without affecting the camera's original functions such as shooting and recording, live view display, etc. Become.

無線通信処理専用のCPUは無線機能を使用する際に起動される。このとき無線通信処理専用のCPUを起動する際に必要なデータをROMからRAMにロードする必要があるが、このデータのロードがメインCPUのRAMアクセスと衝突し、デジタルカメラの処理に影響が出る場合がある。特に、ライブビュー表示や動画記録処理など時間的制約が厳しい処理を行う場合、RAMアクセスの衝突により処理時間が規定内に収まらず、表示のカクつきや記録漏れにつながる恐れがある。   A CPU dedicated to wireless communication processing is activated when the wireless function is used. At this time, it is necessary to load the data necessary for starting up the CPU dedicated to the wireless communication processing from the ROM to the RAM. However, the loading of this data collides with the RAM access of the main CPU, which affects the processing of the digital camera. There is a case. In particular, when processing with severe time restrictions such as live view display or moving image recording processing is performed, the processing time does not fall within the regulation due to the collision of the RAM access, and there is a possibility that the display may become stuttered or the recording may be omitted.

メインCPUのRAMアクセスとの衝突の影響を少なくする方法として、無線通信専用CPUの起動時にロードするデータの一部を事前にロードしておき、無線通信専用CPU起動時にロードするデータ量を少なくする方法が考えられる。特許文献1には、起動時間短縮のために、初期画面起動に必要なプログラム部分のみ起動時にDMA転送する技術が開示されている。   As a method of reducing the influence of collision with the RAM access of the main CPU, a part of the data to be loaded at the time of starting up the wireless communication dedicated CPU is loaded in advance to reduce the amount of data to be loaded at the time of starting up the wireless communication dedicated CPU. A method is conceivable. Japanese Patent Application Laid-Open No. 2004-133867 discloses a technique for DMA transfer at the time of starting only a program portion necessary for starting an initial screen in order to shorten the starting time.

特開2006−285738号公報JP 2006-285738 A

しかしながら、無線通信専用CPU起動時にロードするデータ量を抑えたとしても、DMA転送を使う限りRAMアクセスの衝突を防ぎきることはできない。そこで、ライブビュー表示などの時間的制約が厳しい処理を行っている場合は、無線専用CPUのデータをDMA転送しないように制限する方法が考えられる。この場合、データロード自体を止めてしまうとライブビュー表示中は無線起動ができなくなるため、ユーザビリティの低下につながってしまう。   However, even if the amount of data to be loaded when the CPU dedicated for wireless communication is started up, RAM access collision cannot be prevented as long as DMA transfer is used. Therefore, when processing with severe time constraints such as live view display is being performed, a method of limiting the wireless dedicated CPU data so as not to be DMA-transferred can be considered. In this case, if the data load itself is stopped, wireless activation cannot be performed during live view display, which leads to a decrease in usability.

本発明の目的は、ライブビュー表示などの時間的制約が厳しい処理中でも他機能に影響を与えることなく無線通信専用CPUを起動できる撮像装置を提供することである。   An object of the present invention is to provide an imaging apparatus capable of starting a wireless communication dedicated CPU without affecting other functions even during processing with severe time constraints such as live view display.

撮像装置の動作を制御する第1のCPUと、無線通信を行う通信手段と、前記通信手段のための専用の第2のCPUと、前記第1のCPUにて使用されるデータと前記第2のCPUにて使用されるデータとを記憶した不揮発メモリとを有し、一定期間内に処理を終了する必要のある所定の機能を実行中に第2のCPUが起動される場合、前記第2のCPUはPIOモードにより前記不揮発メモリからデータをロードし、前記所定の機能を実行していないときに前記第2のCPUが起動される場合、前記第2のCPUはDMAモードにより前記不揮発メモリからデータをロードする。   A first CPU for controlling the operation of the imaging apparatus; a communication means for performing wireless communication; a dedicated second CPU for the communication means; data used by the first CPU; When the second CPU is activated during execution of a predetermined function that needs to finish processing within a certain period, the second CPU has a nonvolatile memory storing data used by the CPU. The CPU loads data from the non-volatile memory in the PIO mode, and when the second CPU is activated when the predetermined function is not executed, the second CPU reads from the non-volatile memory in the DMA mode. Load data.

本発明によれば、ライブビュー表示などの時間的制約が厳しい処理中でも他機能に影響を与えることなく無線通信専用CPUを起動できる。   According to the present invention, the CPU dedicated to wireless communication can be activated without affecting other functions even during processing with severe time constraints such as live view display.

第1の実施形態のデジタルカメラの構成を示すブロック図。1 is a block diagram illustrating a configuration of a digital camera according to a first embodiment. 第1の実施形態の無線専用CPUのデータロード処理のフロー図。The flowchart of the data load process of the radio | wireless exclusive CPU of 1st Embodiment. 第2の実施形態の無線専用CPUのデータロード処理のフロー図。The flowchart of the data load process of radio | wireless exclusive CPU of 2nd Embodiment.

以下に、本発明を実施するための形態について詳細に説明する。尚、以下に説明する実施の形態は、本発明を実現するための一例であり、本発明が適用される装置の構成や各種条件によって適宜修正又は変更されるべきものであり、本発明は以下の実施の形態に限定されるものではない。また、後述する各実施形態の一部を適宜組み合わせて構成しても良い。   Hereinafter, embodiments for carrying out the present invention will be described in detail. The embodiment described below is an example for realizing the present invention, and should be appropriately modified or changed according to the configuration and various conditions of the apparatus to which the present invention is applied. It is not limited to the embodiment. Moreover, you may comprise combining suitably one part of each embodiment mentioned later.

以下、第1の実施形態として本発明を撮像装置であるデジタルカメラに適用した場合について説明する。なお、本実施形態では、時間的制約の厳しい処理としてライブビュー表示を想定しているが、動画記録などの処理にも適用可能である。   Hereinafter, a case where the present invention is applied to a digital camera which is an imaging apparatus will be described as a first embodiment. In the present embodiment, live view display is assumed as processing with severe time constraints, but it can also be applied to processing such as moving image recording.

<デジタルカメラ100の構成>
図1を参照して、本発明に係る実施形態のデジタルカメラ100の構成及び機能の概略について説明する。光学系101はズームレンズ、フォーカスレンズを含むレンズ群、絞り機能を有するシャッターからなる。撮像部102は被写体像を電気信号に変換するCCDやCMOSなどで構成される撮像素子である。撮像部102は、撮像素子から出力されるアナログ信号をデジタル信号に変換するA/D変換器を含む。
<Configuration of Digital Camera 100>
With reference to FIG. 1, an outline of a configuration and functions of a digital camera 100 according to an embodiment of the present invention will be described. The optical system 101 includes a zoom lens, a lens group including a focus lens, and a shutter having a diaphragm function. The imaging unit 102 is an imaging element configured with a CCD, a CMOS, or the like that converts a subject image into an electrical signal. The imaging unit 102 includes an A / D converter that converts an analog signal output from the imaging element into a digital signal.

メインCPU103は、不揮発性メモリ108に格納されたプログラムを揮発性メモリ107のワークエリアに展開し、実行することにより、装置全体の動作を制御する。DMAC(Degital Memory Access Controller)104は、メインCPU103の介在なしに不揮発性メモリ108から揮発性メモリ107へのデータ転送を制御し実行する。メインCPU103は、転送指示、転送サイズ、転送データアドレス及び転送方向等をDMAC104に指示し、DMAC104は、この指示に従ったデータ転送を実行する。   The main CPU 103 controls the operation of the entire apparatus by expanding and executing the program stored in the nonvolatile memory 108 in the work area of the volatile memory 107. A DMAC (Digital Memory Access Controller) 104 controls and executes data transfer from the nonvolatile memory 108 to the volatile memory 107 without the intervention of the main CPU 103. The main CPU 103 instructs the DMAC 104 about a transfer instruction, a transfer size, a transfer data address, a transfer direction, and the like, and the DMAC 104 executes data transfer according to this instruction.

通信専用CPU105は、メインCPU103と同様に不揮発性メモリ108に格納されたプログラムを揮発性メモリ107のワークエリアに展開し、実行する。主に通信部112の制御を行う。バス106にはメインCPU103とブロック104〜109が接続する。バス106は、これらブロック103〜109間でデータおよび制御信号を転送するのに使用される。   Similar to the main CPU 103, the communication dedicated CPU 105 develops and executes the program stored in the nonvolatile memory 108 in the work area of the volatile memory 107. The communication unit 112 is mainly controlled. The main CPU 103 and blocks 104 to 109 are connected to the bus 106. Bus 106 is used to transfer data and control signals between these blocks 103-109.

揮発性メモリ107はRAM(Randam Access Memory)などの一時記憶装置であり、撮像部102から出力される静止画データや動画データ(以下、画像データ)などを記憶する。また、揮発性メモリ107は、画像データの他に、ファイルシステムの情報や、管理情報など、各種の情報を記憶し、更に、メインCPU103のためのワークメモリなどの役割を果たす。さらに、揮発性メモリ107は、画像の記録時や再生時におけるバッファメモリの役割を果たす。なお、メインCPU103のワークエリアは、揮発性メモリ107に限られず、後述する外付けハードディスクやメモリカードなどであっても良い。   The volatile memory 107 is a temporary storage device such as a random access memory (RAM), and stores still image data, moving image data (hereinafter, image data) output from the imaging unit 102, and the like. The volatile memory 107 stores various information such as file system information and management information in addition to image data, and further serves as a work memory for the main CPU 103. Further, the volatile memory 107 serves as a buffer memory at the time of image recording and reproduction. The work area of the main CPU 103 is not limited to the volatile memory 107, and may be an external hard disk or a memory card described later.

不揮発性メモリ108は、ROM(Read Only Memory)などの電気的に消去・記録可能な、例えばフラッシュメモリなどの二次記憶装置である。不揮発性メモリ108には、メインCPU103の動作用の定数、プログラム等が記憶される。ここでいう、プログラムとは、後述する各種フローチャートを実行するためのプログラムのことである。また、不揮発性メモリ108には、撮影した画像ファイルや後述する無線接続情報などの接続履歴情報が保存される。   The nonvolatile memory 108 is a secondary storage device such as a flash memory that can be electrically erased and recorded, such as a ROM (Read Only Memory). The nonvolatile memory 108 stores constants, programs, etc. for the operation of the main CPU 103. Here, the program is a program for executing various flowcharts to be described later. The nonvolatile memory 108 stores captured image files and connection history information such as wireless connection information described later.

記録媒体109は、撮像部102から出力された画像データを記録することができる。記録媒体109は、デジタルカメラ100に着脱可能なよう構成してもよいし、デジタルカメラ100に内蔵されていてもよい。すなわち、デジタルカメラ100は少なくとも記録媒体109にアクセスする手段を有していればよい。記録媒体109には、揮発性メモリ107に格納された画像データが記録されたり、既に記録されている画像ファイルやカメラの制御に係る各種情報が読み出される。   The recording medium 109 can record the image data output from the imaging unit 102. The recording medium 109 may be configured to be detachable from the digital camera 100 or may be built in the digital camera 100. That is, the digital camera 100 only needs to have a means for accessing at least the recording medium 109. In the recording medium 109, image data stored in the volatile memory 107 is recorded, or an already recorded image file and various information relating to camera control are read out.

操作部110は、例えば、電源のオン/オフ、動画の記録開始/停止、静止画の撮影、ズーム操作、後述する動作モードの切り替え、GUI画面などによるユーザ操作を受け付けるスイッチ、カーソルキー、タッチパネルなどである。表示部111は、撮影時のビューファインダー画像の表示、撮影した画像の表示、対話的な操作のための文字表示などを行う。表示部111は、例えば、液晶ディスプレイ、有機ELディスプレイ等の表示デバイスである。表示部111は、デジタルカメラ100と一体化された構成であっても、デジタルカメラ100と接続された外部機器であっても良い。   The operation unit 110 includes, for example, power on / off, moving image recording start / stop, still image shooting, zoom operation, operation mode switching described later, a switch for receiving a user operation through a GUI screen, a cursor key, a touch panel, and the like. It is. The display unit 111 performs display of a viewfinder image at the time of shooting, display of a shot image, character display for interactive operation, and the like. The display unit 111 is a display device such as a liquid crystal display or an organic EL display. The display unit 111 may be configured to be integrated with the digital camera 100 or may be an external device connected to the digital camera 100.

通信部112は、外部装置と接続するためのインターフェースである。本実施形態のデジタルカメラ100は、通信部112を介して、外部装置とデータのやりとりを行うことができる。例えば、撮像部102で生成した画像データを、通信部112を介して外部装置に送信することができる。   The communication unit 112 is an interface for connecting to an external device. The digital camera 100 of this embodiment can exchange data with an external device via the communication unit 112. For example, image data generated by the imaging unit 102 can be transmitted to an external device via the communication unit 112.

なお、本実施形態では、通信部112は外部装置とIEEE802.11の規格に従った、いわゆる無線LANで通信するためのインターフェースを含む。無線専用CPU105は、通信部112を制御することで外部装置との無線通信を実現する。なお、通信方式は無線LANに限定されるものではなく、例えば赤外通信方式も含む。なお、デジタルカメラ100は通信部112にアクセスするための手段を有していれば良く、必ずしも通信部を有している必要はない。また、通信部が外部アクセサリとして、デジタルカメラ100に追加されることで外部機器と通信を行ってもよい。   In the present embodiment, the communication unit 112 includes an interface for communicating with an external apparatus via a so-called wireless LAN in accordance with the IEEE 802.11 standard. The dedicated wireless CPU 105 controls the communication unit 112 to realize wireless communication with an external device. Note that the communication method is not limited to the wireless LAN, and includes, for example, an infrared communication method. The digital camera 100 only needs to have a means for accessing the communication unit 112, and does not necessarily have a communication unit. Further, a communication unit may be added to the digital camera 100 as an external accessory to communicate with an external device.

また、通信部112をアクセスポイント(以下、AP)モードで動作させることにより、本実施形態におけるデジタルカメラ100は、APの一種ではあるが、より機能が限定された簡易的なAP(以下、簡易AP)として動作することも可能である。デジタルカメラ100が簡易APとして動作すると、デジタルカメラ100は自身でネットワークを形成する。デジタルカメラ100の周辺の装置は、デジタルカメラ100をAP機器と認識し、デジタルカメラ100が形成したネットワークに参加することが可能となる。上記のようにデジタルカメラ100を動作させるためのプログラムは不揮発性メモリ108に保持されているものとする。   In addition, by operating the communication unit 112 in an access point (hereinafter referred to as AP) mode, the digital camera 100 in the present embodiment is a kind of AP, but a simple AP (hereinafter simply referred to as a simple AP) with more limited functions. It is also possible to operate as AP). When the digital camera 100 operates as a simple AP, the digital camera 100 forms a network by itself. Devices around the digital camera 100 can recognize the digital camera 100 as an AP device and participate in a network formed by the digital camera 100. It is assumed that a program for operating the digital camera 100 is held in the nonvolatile memory 108 as described above.

なお、本実施形態におけるデジタルカメラ100はAPの一種であるものの、クライアント機器から受信したデータをインターネットプロバイダなどに転送するゲートウェイ機能は有していない簡易APである。したがって、自機が形成したネットワークに参加している他の装置からデータを受信しても、それをインターネットなどのネットワークに転送することはできない。   Note that although the digital camera 100 in this embodiment is a kind of AP, it is a simple AP that does not have a gateway function for transferring data received from a client device to an Internet provider or the like. Therefore, even if data is received from another device participating in the network formed by the own device, it cannot be transferred to a network such as the Internet.

近接無線通信部113は、例えば無線通信のためのアンテナと無線信号を処理するため変復調回路や通信コントローラから構成される。近接無線通信部113は、変調した無線信号をアンテナから出力し、またアンテナで受信した無線信号を復調することでISO/IEC 18092の規格(いわゆるNFC:Near Field Communication)に従った非接触近接通信を実現する。本実施形態の近接無線通信部113は、デジタルカメラ100の側部に配される。   The close proximity wireless communication unit 113 includes, for example, an antenna for wireless communication and a modulation / demodulation circuit and a communication controller for processing a wireless signal. The proximity wireless communication unit 113 outputs a modulated wireless signal from an antenna, and demodulates the wireless signal received by the antenna, thereby non-contact proximity communication in accordance with ISO / IEC 18092 standard (so-called NFC: Near Field Communication). To realize. The close proximity wireless transfer unit 113 of the present embodiment is disposed on the side of the digital camera 100.

デジタルカメラ100と同様に近接無線通信部を持つ外部機器と接続する場合、互いの近接無線通信部を近接させることにより通信を開始して接続される。なお、近接無線通信部を用いて接続させる場合、必ずしも近接無線通信部同士を接触させる必要はない。近接無線通信部は一定の距離だけ離れていても通信することができるため、互いの機器を接続するためには、近接無線通信可能な範囲まで近づければよい。以下の説明では、この近接無線通信可能な範囲まで近づけることを、近接させる、とも記載する。   Similar to the digital camera 100, when connecting to an external device having a close proximity wireless communication unit, communication is started by bringing the close proximity wireless communication units close to each other. In addition, when connecting using a close proximity wireless communication part, it is not necessary to contact close proximity wireless communication parts. Since the close proximity wireless communication unit can communicate even if they are separated from each other by a certain distance, in order to connect the devices to each other, it is only necessary to approach the range where close proximity wireless communication is possible. In the following description, it is also referred to as bringing close to the range where close proximity wireless communication is possible.

また、近接無線通信部113は、変調した無線信号をアンテナから出力し、またアンテナで受信した無線信号を復調することによりIEEE802.15の規格(いわゆるBluetooth(登録商標))に従った近距離無線通信で実現してもよい。本実施形態においてBluetooth(登録商標)通信は、低消費電力であるBluetooth(登録商標) Low Energyのバージョン4.0を採用する。このBluetooth(登録商標)通信は、無線LAN通信と比べて通信可能な範囲が狭い(つまり、通信可能な距離が短い)。また、Bluetooth(登録商標)通信は、無線LAN通信と比べて通信速度が遅い。その一方で、Bluetooth(登録商標)通信は、無線LAN通信と比べて消費電力が少ない。   Further, the close proximity wireless communication unit 113 outputs a modulated wireless signal from the antenna, and demodulates the wireless signal received by the antenna, thereby short-range wireless according to the IEEE 802.15 standard (so-called Bluetooth (registered trademark)). You may implement | achieve by communication. In this embodiment, Bluetooth (registered trademark) communication employs Bluetooth (registered trademark) Low Energy version 4.0, which has low power consumption. This Bluetooth (registered trademark) communication has a narrower communicable range than wireless LAN communication (that is, a communicable distance is short). In addition, Bluetooth (registered trademark) communication has a lower communication speed than wireless LAN communication. On the other hand, Bluetooth (registered trademark) communication consumes less power than wireless LAN communication.

<デジタルカメラ100の無線専用CUPの起動処理>
デジタルカメラ100の処理について説明する。本実施形態では、無線専用CPUを起動完了までの処理について例を挙げて説明する。
<Start-up process of wireless CUP of digital camera 100>
Processing of the digital camera 100 will be described. In the present embodiment, processing up to completion of activation of the wireless CPU will be described as an example.

以下、上記の動作を実現するデジタルカメラ100の処理について、図2を用いて説明する。図2は、本実施形態におけるデジタルカメラ100の動作を示すフローチャートである。なお、図2の処理は、無線機能が実行される直前に行われる。無線機能の実行は、デジタルカメラ100の操作部110により無線機能が選択されることをトリガーにしてもいい。または、近接通信部113を介して行われる近接無線通信による外部からの通信をトリガーにしてもいいし、デジタルカメラのある状態をトリガーにしてもいい。   Hereinafter, processing of the digital camera 100 that realizes the above-described operation will be described with reference to FIG. FIG. 2 is a flowchart showing the operation of the digital camera 100 in the present embodiment. 2 is performed immediately before the wireless function is executed. The execution of the wireless function may be triggered by the selection of the wireless function by the operation unit 110 of the digital camera 100. Alternatively, communication from the outside by proximity wireless communication performed via the proximity communication unit 113 may be used as a trigger, or a certain state of the digital camera may be used as a trigger.

ステップ201(図2の201)ではデジタルカメラが時間的制約の厳しい処理を行っているか否かを確認する。本実施形態ではライブビュー表示をしているか否かを確認する。ライブビュー表示をしていない場合は、ステップ202へ進む。ライブビュー表示をしている場合は、ステップ205へ進む。   In step 201 (201 in FIG. 2), it is confirmed whether or not the digital camera is performing processing with severe time constraints. In this embodiment, it is confirmed whether or not live view display is being performed. If the live view is not displayed, the process proceeds to step 202. If the live view is being displayed, the process proceeds to step 205.

ステップ202では、無線専用CPU105のデータロード方式をDMAに設定する。メインCPU103はDMAC104に対し、不揮発性メモリ108から揮発性メモリ107に向けてデータをロードするように、転送サイズ、転送データアドレス及び転送方向指示する。   In step 202, the data loading method of the wireless CPU 105 is set to DMA. The main CPU 103 instructs the DMAC 104 to transfer data, a transfer data address, and a transfer direction so as to load data from the nonvolatile memory 108 to the volatile memory 107.

ステップ203ではメインCPU103から転送開始指示を受けたDMAC104がデータのロードを実行する。DMAが終了すると、DMAC104からメインCPU103にコールバック等で転送完了を通知する。ステップ204ではメインCPU103がDMA終了を確認する。DMAが終了していない場合は、ひきつづきステップ203でデータ転送を継続する。転送が完了した場合は、ステップ207に進む。   In step 203, the DMAC 104 that receives a transfer start instruction from the main CPU 103 executes data loading. When the DMA is completed, the DMAC 104 notifies the main CPU 103 of the transfer completion by a callback or the like. In step 204, the main CPU 103 confirms the end of DMA. If the DMA has not ended, the data transfer is continued in step 203. When the transfer is completed, the process proceeds to step 207.

ステップ205では、無線専用CPUのデータロード方式をPIOに設定する。ステップ206ではPIOモードによってデータを転送する。メインCPU103は不揮発性メモリ108から揮発性メモリ107へデータをコピーする。この処理はライブビュー表示処理のRAMアクセスに影響を与えないようにするため、ライブビュー表示処理よりも低い優先度で実行される。データ転送が完了するとステップ207へ進む。   In step 205, the data loading method of the wireless dedicated CPU is set to PIO. In step 206, data is transferred in the PIO mode. The main CPU 103 copies data from the nonvolatile memory 108 to the volatile memory 107. This process is executed with a lower priority than the live view display process so as not to affect the RAM access of the live view display process. When the data transfer is completed, the process proceeds to step 207.

最後にステップ207において、メインCPU103の起動命令により無線専用CPUを起動させる。   Finally, in step 207, the wireless CPU is activated by the activation command of the main CPU 103.

<ロードするデータについて>
無線通信専用CPUの起動時にロードするデータの一部を事前にロードしておき、無線通信専用CPU起動時にロードするデータ量を少なくすることで、カメラのRAMアクセスとの衝突の影響を少なくできる。事前とは例えば、デジタルカメラの電源を投入後の起動処理中などがあげられる。
<About data to load>
By preloading a part of the data to be loaded when the wireless communication dedicated CPU is activated and reducing the amount of data loaded when the wireless communication dedicated CPU is activated, the influence of the collision with the RAM access of the camera can be reduced. The advance includes, for example, a startup process after turning on the power of the digital camera.

事前にロードするデータとしては、アルゴルや固定値など、処理によって変化のないデータがよい。これらのデータは処理によって変更されることがなく、一度ロードしておけば何度でも使うことができる。これに対し、変数など処理によって変化のあるデータは、処理を開始するたびにロードし初期化する必要がある。本実施形態では無線通信にかかわるパラメータを扱う変数がこれにあたり、無線通信を使用するたびにロードし直す。   The data to be loaded in advance is preferably data that does not change by processing, such as algorithm or fixed value. These data are not changed by processing, and once loaded, they can be used any number of times. On the other hand, data that changes due to processing such as variables must be loaded and initialized each time processing is started. In this embodiment, a variable for handling parameters related to wireless communication corresponds to this, and is reloaded every time wireless communication is used.

本実施形態では、時間的制限の厳しい処理としてライブビュー表示を例に説明したが、動画記録などの時間的制限の厳しい処理においても適用可能である。   In the present embodiment, live view display has been described as an example of processing with strict time restrictions. However, the present invention can also be applied to processes with strict time restrictions such as moving image recording.

本実施形態の効果により、ユーザーは、ライブビュー表示などの時間的制約の厳しい処理中であっても、ライブビュー表示などの時間的制約の厳しい処理に影響を与えることなく、無線通信処理専用のCPUを起動することができる。   Due to the effect of this embodiment, the user can use the dedicated wireless communication process without affecting the time-critical processing such as live view display even during the processing with severe time constraint such as live view display. The CPU can be activated.

実施形態1では、無線通信処理専用CPUを起動する前に、時間的制限の厳しい処理を行っているか否かを判定し、無線通信処理専用のCPUを起動するために必要なデータの転送方法を変更する方法について説明した。   In the first embodiment, before starting the CPU dedicated to wireless communication processing, it is determined whether or not processing with severe time restrictions is being performed, and a data transfer method necessary for starting the CPU dedicated to wireless communication processing is determined. Explained how to change.

第2の実施形態では、無線通信処理専用のCPUを起動する際に必要なデータを転送している最中に、時間的制限の厳しい処理を開始および終了した場合について説明する。無線通信処理専用のCPUを起動するために必要なデータをDMA転送している最中にライブビュー表示が開始された場合も、実施形態1同様にメインCPUのRAMアクセスと衝突してしまい、デジタルカメラの処理に影響が出てしまう。そのため、無線通信処理専用のCPUを起動するために必要なデータをDMA転送している最中にライブビュー表示が開始された場合、DMA転送を止め、PIO転送に切り替える必要がある。また、無線通信処理専用のCPUを起動するために必要なデータをPIO転送している最中にライブビュー表示が終了された場合も、転送をPIOからDMAに変更することで、データ転送時間の削減が可能である。   In the second embodiment, a case will be described in which processing with severe time restrictions is started and ended while data necessary for starting a CPU dedicated to wireless communication processing is being transferred. Even when the live view display is started during DMA transfer of data necessary for starting up the CPU dedicated to wireless communication processing, it collides with the RAM access of the main CPU as in the first embodiment, and the digital The processing of the camera will be affected. For this reason, when live view display is started during DMA transfer of data necessary for starting a CPU dedicated to wireless communication processing, it is necessary to stop DMA transfer and switch to PIO transfer. In addition, even if the live view display is terminated during the PIO transfer of data necessary for starting up the CPU dedicated to wireless communication processing, the data transfer time can be reduced by changing the transfer from PIO to DMA. Reduction is possible.

以下、第2の実施形態におけるデジタルカメラについて説明する。なお、本実施形態では、時間的制約の厳しい処理としてライブビュー表示を想定しているが、動画記録などの処理にも適用可能である。   Hereinafter, a digital camera according to the second embodiment will be described. In the present embodiment, live view display is assumed as processing with severe time constraints, but it can also be applied to processing such as moving image recording.

<デジタルカメラ100の構成>
本実施形態におけるデジタルカメラの構成は実施形態1と同じである。
<Configuration of Digital Camera 100>
The configuration of the digital camera in the present embodiment is the same as that in the first embodiment.

<デジタルカメラ100の無線専用CUPの起動処理>
デジタルカメラ100の処理について説明する。本実施形態では、無線専用CPUを起動完了までの処理について例を挙げて説明する。
<Start-up process of wireless CUP of digital camera 100>
Processing of the digital camera 100 will be described. In the present embodiment, processing up to completion of activation of the wireless CPU will be described as an example.

以下、上記の動作を実現するデジタルカメラ100の処理について、図3を用いて説明する。図3は、本実施形態におけるデジタルカメラ100の動作を示すフローチャートである。なお、図3の処理は、無線機能が実行される直前に行われる。無線機能の実行は、デジタルカメラ100の操作部110により無線機能が選択されることをトリガーにしてもいい。または、近接通信部113を介して行われる近接無線通信による外部からの通信をトリガーにしてもいいし、デジタルカメラのある状態をトリガーにしてもいい。   Hereinafter, processing of the digital camera 100 that realizes the above-described operation will be described with reference to FIG. FIG. 3 is a flowchart showing the operation of the digital camera 100 in the present embodiment. Note that the processing of FIG. 3 is performed immediately before the wireless function is executed. The execution of the wireless function may be triggered by the selection of the wireless function by the operation unit 110 of the digital camera 100. Alternatively, communication from the outside by proximity wireless communication performed via the proximity communication unit 113 may be used as a trigger, or a certain state of the digital camera may be used as a trigger.

ステップ301(図3の301)ではデジタルカメラが時間的制約の厳しい処理を行っているか否かを確認する。本実施形態ではライブビュー表示をしているか否かを確認する。ライブビュー表示をしていない場合は、ステップ302へ進む。ライブビュー表示をしている場合は、ステップ308へ進む。   In step 301 (301 in FIG. 3), it is confirmed whether or not the digital camera is performing processing with severe time constraints. In this embodiment, it is confirmed whether or not live view display is being performed. If the live view is not displayed, the process proceeds to step 302. If the live view is being displayed, the process proceeds to step 308.

ステップ302では、無線専用CPUのデータロード方式をDMAに設定する。メインCPU103はDMAC104に対し、不揮発性メモリ108から揮発性メモリ107に向けてデータをロードするように、転送サイズ、転送データアドレス及び転送方向指示する。ステップ303ではメインCPU103から転送開始指示を受けたDMAC104がデータのロードを実行する。DMAが終了すると、DMAC104からメインCPU103にコールバック等で転送完了を通知する。   In step 302, the data loading method of the wireless dedicated CPU is set to DMA. The main CPU 103 instructs the DMAC 104 to transfer data, a transfer data address, and a transfer direction so as to load data from the nonvolatile memory 108 to the volatile memory 107. In step 303, the DMAC 104 that has received a transfer start instruction from the main CPU 103 executes data loading. When the DMA is completed, the DMAC 104 notifies the main CPU 103 of the transfer completion by a callback or the like.

ステップ304では時間的制限の厳しい処理の状態がデータ転送中に変化したか(開始または終了したか)否かを確認する。変化していない場合、ステップ305へ進む。変化した場合、ステップ306へ進む。ステップ305ではメインCPU103がDMA終了を確認する。DMAが終了していない場合は、ひきつづきステップ303でデータ転送を継続する。転送が完了した場合は、ステップ314へ進む。   In step 304, it is confirmed whether or not the state of processing with severe time restrictions has changed (started or ended) during data transfer. If not, the process proceeds to step 305. If it has changed, go to Step 306. In step 305, the main CPU 103 confirms the end of DMA. If the DMA has not ended, the data transfer is continued in step 303. If the transfer is complete, the process proceeds to step 314.

ステップ306ではDMA転送を停止する。メインCPU103はDMAC104に対しDMA転送の停止を指示する。DMAC104はメインCPU103にDMA転送の停止完了通知と、転送済みのデータサイズを通知する。   In step 306, the DMA transfer is stopped. The main CPU 103 instructs the DMAC 104 to stop DMA transfer. The DMAC 104 notifies the main CPU 103 of DMA transfer stop completion notification and the transferred data size.

ステップ307ではステップ306で取得した転送済みデータサイズをもとに転送管理情報を更新する。転送管理情報とは、無線通信処理専用CPUを起動させるために必要なデータの全体データサイズ、転送をしたデータサイズ等を含む情報である。この情報を参照することでデータ転送を途中で停止した場合においても続きのデータから転送を再開することができる。ステップ307を終えると、再びステップ301へ戻り、ライブビュー表示中か否かを判断し、その状態によってステップ302およびステップ303においてデータロード方式を変更する。ここで先ほどの転送管理情報を参照し、無線通信処理専用CPUを起動させるために必要なデータの転送開始位置を指示して、続きから転送を再開する。   In step 307, the transfer management information is updated based on the transferred data size acquired in step 306. The transfer management information is information including the entire data size necessary for starting up the CPU dedicated to wireless communication processing, the transferred data size, and the like. By referring to this information, even when the data transfer is stopped halfway, the transfer can be resumed from the subsequent data. When step 307 ends, the process returns to step 301 again to determine whether or not the live view is being displayed, and the data loading method is changed in steps 302 and 303 depending on the state. Here, the transfer management information is referred to, the data transfer start position necessary for starting the CPU dedicated to wireless communication processing is designated, and the transfer is resumed from the next.

ステップ308では、無線専用CPUのデータロード方式をPIOに設定する。ステップ309ではPIOモードによってデータを転送する。メインCPU103は不揮発性メモリ108から揮発性メモリ107へデータをコピーする。この処理はライブビュー表示処理のRAMアクセスに影響を与えないようにするため、ライブビュー表示処理よりも低い優先度で実行される。   In step 308, the data loading method of the wireless dedicated CPU is set to PIO. In step 309, data is transferred in the PIO mode. The main CPU 103 copies data from the nonvolatile memory 108 to the volatile memory 107. This process is executed with a lower priority than the live view display process so as not to affect the RAM access of the live view display process.

ステップ310ではステップ304と同様にライブビュー表示処理の状態の変化を確認し、変化していない場合はステップ311へ進む。変化している場合は、ステップ312へ進む。ステップ311ではPIO転送が終了しているかを判断する。終了していない場合は、ひきつづきステップ309で転送を継続する。終了している場合は、ステップ314へ進む。   In step 310, as in step 304, a change in the state of the live view display process is confirmed. If it has changed, go to Step 312. In step 311, it is determined whether the PIO transfer has been completed. If not completed, the transfer is continued in step 309. If completed, go to step 314.

ステップ312でメインCPU103はPIO転送を停止する。ステップ313では、ステップ307と同様に転送管理情報を更新し、再びステップ301に戻り前述と同様に処理を継続する。最後にステップ314において、メインCPU103の起動命令により無線専用CPUを起動させる。   In step 312, the main CPU 103 stops the PIO transfer. In step 313, the transfer management information is updated in the same manner as in step 307, and the process returns to step 301 again to continue the processing as described above. Finally, in step 314, the wireless CPU is activated by the activation command of the main CPU 103.

本実施形態では、時間的制限の厳しい処理としてライブビュー表示を例に説明したが、動画記録などの時間的制限の厳しい処理においても適用可能である。   In the present embodiment, live view display has been described as an example of processing with strict time restrictions. However, the present invention can also be applied to processes with strict time restrictions such as moving image recording.

本実施形態の効果により、ユーザーは、無線通信処理専用のCPUを起動するために必要なデータをロードしている途中であっても、ライブビュー表示などの時間的制約の厳しい処理に影響を与えることなく、ライブビュー表示などの時間的制約の厳しい処理を実行することができる。   Due to the effect of the present embodiment, the user affects processing with severe time constraints such as live view display even while data necessary for starting a CPU dedicated to wireless communication processing is being loaded. Therefore, processing with severe time constraints such as live view display can be executed.

100 デジタルカメラ
101 光学系
102 撮像部
103 メインCPU
104 DMAC(Degital Memory Access Controller)
105 通信専用CPU
106 バス
107 揮発性メモリ
108 不揮発性メモリ
109 記録媒体
110 操作部
111 表示部
112 通信部
113 近接無線通信部
100 Digital Camera 101 Optical System 102 Imaging Unit 103 Main CPU
104 DMAC (Digital Memory Access Controller)
105 CPU dedicated to communication
106 Bus 107 Volatile Memory 108 Nonvolatile Memory 109 Recording Medium 110 Operation Unit 111 Display Unit 112 Communication Unit 113 Proximity Wireless Communication Unit

Claims (3)

撮像装置であって、
前記撮像装置の動作を制御する第1のCPUと、
無線通信を行う通信手段と、
前記通信手段のための専用の第2のCPUと、
前記第1のCPUにて使用されるデータと前記第2のCPUにて使用されるデータとを記憶した不揮発メモリとを有し、
一定期間内に処理を終了する必要のある所定の機能を実行中に第2のCPUが起動される場合、前記第2のCPUはPIOモードにより前記不揮発メモリからデータをロードし、前記所定の機能を実行していないときに前記第2のCPUが起動される場合、前記第2のCPUはDMAモードにより前記不揮発メモリからデータをロードすることを特徴とする撮像装置。
An imaging device,
A first CPU for controlling the operation of the imaging device;
A communication means for performing wireless communication;
A second CPU dedicated for the communication means;
A non-volatile memory storing data used in the first CPU and data used in the second CPU;
When the second CPU is activated during execution of a predetermined function that needs to finish processing within a certain period, the second CPU loads data from the nonvolatile memory in the PIO mode, and the predetermined function When the second CPU is activated when the second CPU is not executed, the second CPU loads data from the nonvolatile memory in the DMA mode.
前記不揮発メモリは、前記第2のCPUにて使用されるデータとして、アルゴルと固定値を扱う第1のデータと、変数を扱う第2のデータとを含み、
前記第2のCPUは、前記撮像装置の起動時に前記第1のデータを前記不揮発メモリからロードし、前記第2のCPUを起動する直前に前記第2のデータを前記不揮発メモリからロードすることを特徴とする請求項1に記載の撮像装置。
The nonvolatile memory includes, as data used by the second CPU, first data that handles algorithms and fixed values, and second data that handles variables,
The second CPU loads the first data from the non-volatile memory when the image pickup apparatus is activated, and loads the second data from the non-volatile memory immediately before the second CPU is activated. The imaging apparatus according to claim 1, wherein the imaging apparatus is characterized.
前記第2のCPUが前記DMAモードで前記不揮発メモリからデータをロードしているときに前記所定の機能が実行される状態に変わった場合、前記第2のCPUは、前記不揮発メモリからのデータのロードを停止して、前記DMAモードから前記PIOモードに切り替えた後、前記PIOモードで前記不揮発メモリからのデータのロードを再開することを特徴とする請求項1に記載の撮像装置。   When the second CPU is loaded with data from the nonvolatile memory in the DMA mode and changes to a state in which the predetermined function is executed, the second CPU reads data from the nonvolatile memory. The imaging apparatus according to claim 1, wherein after loading is stopped and the DMA mode is switched to the PIO mode, loading of data from the nonvolatile memory is resumed in the PIO mode.
JP2016250378A 2016-12-26 2016-12-26 Imaging device Pending JP2018107561A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016250378A JP2018107561A (en) 2016-12-26 2016-12-26 Imaging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016250378A JP2018107561A (en) 2016-12-26 2016-12-26 Imaging device

Publications (1)

Publication Number Publication Date
JP2018107561A true JP2018107561A (en) 2018-07-05

Family

ID=62787493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016250378A Pending JP2018107561A (en) 2016-12-26 2016-12-26 Imaging device

Country Status (1)

Country Link
JP (1) JP2018107561A (en)

Similar Documents

Publication Publication Date Title
JP6366386B2 (en) COMMUNICATION DEVICE, IMAGING DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6433265B2 (en) Information processing apparatus, electronic device, control method thereof, program, and storage medium
JP6383187B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6463050B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
US10158801B2 (en) Image capturing apparatus communicating with an external apparatus and method for controlling the same and storage medium
JP6478539B2 (en) Wireless communication apparatus, control method, and program
JP7319820B2 (en) Communication device and its control method and program
CN106713705B (en) Communication apparatus and control method thereof
JP2018107561A (en) Imaging device
JP2018026013A (en) Electronic apparatus and control method thereof
JP6767859B2 (en) Communication devices and their control methods, programs and storage media
JP6602106B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
JP5975005B2 (en) Image processing apparatus, information processing apparatus, and image transfer method
JP7129154B2 (en) IMAGING DEVICE, CONTROL METHOD AND PROGRAM
JP6790155B2 (en) Communication equipment and its control method
JP6570575B2 (en) Imaging apparatus, control method therefor, and program
JP6468827B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM
JP2007096854A (en) Photographing device and image transmission system
JP7327965B2 (en) Communication device, its control method, and its program
JP6292875B2 (en) Imaging apparatus, control method thereof, and program
JP6116234B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP7319777B2 (en) Information processing device for authentication, its control method, and program
JP7155000B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
US20190281615A1 (en) Communication control apparatus and communication control method
JP2024090237A (en) Control device, imaging device, control method, and program