WO2016136014A1 - Monitoring recorder - Google Patents

Monitoring recorder Download PDF

Info

Publication number
WO2016136014A1
WO2016136014A1 PCT/JP2015/078440 JP2015078440W WO2016136014A1 WO 2016136014 A1 WO2016136014 A1 WO 2016136014A1 JP 2015078440 W JP2015078440 W JP 2015078440W WO 2016136014 A1 WO2016136014 A1 WO 2016136014A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
storage area
processor
activation
cpu
Prior art date
Application number
PCT/JP2015/078440
Other languages
French (fr)
Japanese (ja)
Inventor
正英 小池
丸山 清泰
敬志 上村
Original Assignee
三菱電機株式会社
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 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to JP2016508503A priority Critical patent/JPWO2016136014A1/en
Publication of WO2016136014A1 publication Critical patent/WO2016136014A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring

Definitions

  • the present invention relates to a monitoring recorder, and more particularly to a monitoring recorder including a plurality of processors.
  • a surveillance recorder which is a video recording / playback apparatus in a surveillance system includes a recording system for recording video data transmitted from a camera in a large-capacity memory and a playback system for playing back video data recorded in the large-capacity memory.
  • a recording system CPU Central Processing Unit
  • a playback system CPU that is a playback system processor
  • the monitoring recorder needs to update the program for the purpose of responding to security threats that change from moment to moment, improving operability, or dealing with malfunctions.
  • the recording system CPU and the playback system CPU in order for the recording system CPU and the playback system CPU to cooperate and operate normally as a monitoring recorder, it has been verified that the version of the program executed by each of the recording system CPU and the playback system CPU operates normally. Must be a combination.
  • the recording system CPU starts up with the updated new program. And the reproduction system CPU may not operate correctly and may not function normally as a monitoring recorder. Therefore, it is necessary to perform a program update process and a start process that are a combination of programs that can operate normally.
  • each CPU stores a version of a program stored in a memory of a plurality of CPUs by using a single CPU and centrally managing version numbers.
  • the program to be executed in the above is a combination that can operate normally.
  • the multi-CPU system described in Patent Document 2 includes a main bank and a storage bank for each of the plurality of CPUs, and stores the update program in the main bank and the program before the update in the storage bank.
  • each CPU notifies its own program version to other CPUs, and it is confirmed that the versions of the programs in all main banks are a combination that allows normal operation. If the combination is capable of normal operation, all the CPUs start the main bank program. If the combination is not capable of normal operation, the pre-update program and the post-update program are mixed, so each CPU is restarted, and the program in the main bank is started in the CPU before the program update.
  • the updated CPU activates the pre-update program stored in the storage bank. As a result, a combination program capable of normal operation is executed in each CPU.
  • each CPU first reads its version from the memory and transmits it to the other CPU according to a specific communication protocol in order to confirm the version of the program. . Also, each CPU needs to receive the version transmitted from the other CPU and confirm that the combination is capable of normal operation. In order to perform such processing at the time of startup, a startup program or an OS (Operating System) needs to be normally started. If an error occurs during startup of the startup program or OS, each CPU cannot confirm the program version of the other CPU, and even when restarted, it is impossible to execute a combination of programs that can operate normally. .
  • OS Operating System
  • the present invention has been made to solve the above-described problem, and even when the program is not updated correctly, the program can be updated again, and it is not necessary to check the version of the program. It is an object of each CPU to be able to execute a combination of programs that can operate normally.
  • a monitoring recorder includes a first processor, a first storage area that stores a first program used to start the first processor, and the first program.
  • a first storage unit having a second storage area for storing a second program used to start up the first processor, a second processor, and the second processor And a third storage area for storing a third program corresponding to the first program, and a second storage area used for starting the second processor.
  • a second storage unit having a fourth storage area for storing a corresponding fourth program, wherein the first processor stores the first program or the second program. And informing the second processor of storage area information indicating a storage area of a program necessary for the activation of the third storage area and the fourth storage area. Is started using a program stored in the storage area indicated in the storage area information notified from the first processor.
  • the program can be updated again, and it is not necessary to check the version of the program.
  • the program can be executed.
  • FIG. 1 is a block diagram schematically showing a configuration of a monitoring recorder according to Embodiment 1.
  • FIG. 4 is a schematic diagram illustrating an example of a program stored in a recording system program storage unit in Embodiment 1.
  • FIG. 4 is a schematic diagram illustrating an example of a program management area in the first embodiment.
  • FIG. 6 is a schematic diagram illustrating an example of a value of a write completion flag in the first embodiment.
  • FIG. 3 is a schematic diagram showing an example of a program stored in a reproduction system program storage unit in Embodiment 1.
  • FIG. 3 is a flowchart illustrating an example of a process for determining a startup surface in the first embodiment.
  • 3 is a flowchart showing a start-up operation of a playback unit in the first embodiment.
  • FIG. 3 is a schematic diagram illustrating a relationship between a start operation of a recording unit and a start operation of a reproduction unit in the first embodiment.
  • 4 is a flowchart showing a program update process of the monitoring recorder in the first embodiment. It is the schematic which shows the timing from before the program update of the monitoring recorder in Embodiment 1 to after the update.
  • Embodiment 1 FIG. Next, embodiments of the present invention will be described with reference to the drawings.
  • the same or similar parts are denoted by the same or similar reference numerals.
  • the drawings are schematic and ratios of dimensions and the like are different from actual ones. Accordingly, specific dimensions and the like should be determined in consideration of the following description. Moreover, it is a matter of course that portions having different dimensional relationships or ratios are included between the drawings.
  • FIG. 1 is a block diagram schematically showing the configuration of the monitoring recorder 110 according to the first embodiment.
  • a monitoring system 100 including a monitoring recorder 110 includes a plurality of cameras 150A, 150B, and 150C as monitoring cameras and a display device 160 as a video display device in addition to the monitoring recorder 110.
  • the surveillance camera includes a first camera 150A, a second camera 150B, and a third camera 150C, each of which is connected to the surveillance recorder 110.
  • the first camera 150 ⁇ / b> A, the second camera 150 ⁇ / b> B, and the third camera 150 ⁇ / b> C are each referred to as a camera 150 when it is not necessary to distinguish between them.
  • the camera 150 transmits video data obtained by photographing the monitoring target to the monitoring recorder 110.
  • the camera 150 may be installed at a location away from the monitoring recorder 110.
  • the monitoring recorder 110 functions as a video recording / reproducing device that receives and records video data transmitted from the camera 150.
  • the display device 160 is an output device connected to the monitoring recorder 110 and displays a recorded video based on the video data recorded on the monitoring recorder 110 or a current video based on video data generated by shooting by the camera 150.
  • the number of cameras 150 is three here, it goes without saying that the number is not limited to three. For example, it may be one, two, or four or more.
  • the connection between the camera 150 and the monitoring recorder 110 may be either a wired or wireless connection method as long as data can be exchanged, or a mixed connection method. Moreover, the connection via a network or another relay device may be used.
  • the monitoring recorder 110 includes a communication interface (I / F) unit 111, an output I / F unit 112, a connection I / F unit 113, and a recording system as a first system.
  • Unit 120 a playback unit 130 that is a playback system as the second system, a program activation control unit 140, and a notification unit 145.
  • the communication I / F unit 111 is an interface that performs communication with the camera 150.
  • the communication I / F unit 111 receives video data transmitted from the camera 150.
  • the output I / F unit 112 is an interface that performs communication with the display device 160.
  • the output I / F unit 112 outputs reproduction data to the display device 160.
  • the connection I / F unit 113 is an interface for connecting the external storage device 170.
  • the recording unit 120 acquires video data from the camera 150 via the communication I / F unit 111 and performs recording.
  • the recording unit 120 includes a recording system program storage unit 121, a recording system work memory 122, an information storage unit 123, and a recording system CPU 124 as a first processor.
  • the recording system program storage unit 121 is a storage unit that stores a program to be executed when the power of the monitoring recorder 110 is turned on and the recording system CPU 124 starts a startup process.
  • the recording system program storage unit 121 can be realized by a non-volatile memory that retains stored contents even when the power is turned off.
  • the program executed by the recording system CPU 124 is a boot loader, an OS, and a recording system AP (Application Program).
  • the boot loader is a program that executes processing for starting the OS.
  • the boot loader specifies an OS to be executed, initializes a work memory, acquires a start log, and the like.
  • the boot loader has limited functions compared to the OS, and generally cannot process a plurality of processes in parallel.
  • the OS is basic software for managing the entire recording unit 120.
  • the recording system AP includes, for example, a program that receives the video data transmitted from the camera 150 and records it in the information storage unit 123.
  • the recording AP can start processing after the OS is started. Also, after the OS is started, a plurality of the same APs can be executed simultaneously, and a plurality of different APs can be executed simultaneously.
  • the OS and the recording system AP are programs for the recording system CPU 124 to perform predetermined processing.
  • FIG. 2 is a schematic diagram illustrating an example of a program stored in the recording system program storage unit 121.
  • the recording system program storage unit 121 includes a recording system boot loader 121a, a program management area 121f, a first recording system program area 121g as a first storage area, and a second storage area as a second storage area. 2 recording system program areas 121h.
  • the first recording system program area 121g has a first recording system OS 121b and a first recording system AP 121c.
  • the second recording system program area 121h includes a second recording system OS 121d and a second recording system AP 121e.
  • the program (first program) stored in the first recording system program area 121g is used, and the first When the second activation surface is designated, the program (second program) stored in the second recording system program area 121h is used.
  • FIG. 3 is a schematic diagram showing an example of the program management area 121f.
  • the program management area 121 f includes a first management area 301 and a second management area 302.
  • the first management area 301 and the second management area 302 have write completion flags 303a and 303b (referred to as the write completion flag 303 when there is no need to distinguish between them) and management area version numbers 304a and 304b.
  • the monitoring recorder 110 provides redundancy by providing two areas, a first management area 301 and a second management area 302. Even when the contents of one area are broken, the monitoring recorder 110 is activated by the information of the other area. can do.
  • the recording system OS and the recording system AP used in the recording unit 120 are updated for reasons such as security measures, performance improvement, operability improvement, or defect repair.
  • the program is updated by rewriting the recording system OS and recording system AP in a program area different from the program area in which the recording system OS and recording system AP being executed are stored. For example, when the recording system CPU 124 is executing the first recording system OS 121b and the first recording system AP 121c stored in the first recording system program area 121g, the second recording system program area 121h in the second recording system program area 121h is used.
  • the second recording system OS 121d and the second recording system AP 121e are rewritten with new programs.
  • the first recording system OS 121b and the first recording system AP 121c are older versions of the programs of the second recording system OS 121d and the second recording system AP 121e.
  • the old version of the program has already been processed, and is a program that can be stably executed and is compatible with the playback unit 130 described later.
  • the recording system CPU 124 is activated by the first recording system OS 121b and the first recording system AP 121c that were activated last time, or the newly updated second recording system OS 121d and second recording system AP 121e. Select whether to start with.
  • a starting surface designation value 305 that is a basis for this selection is stored in the program management area 121f.
  • the program management area 121f is rewritten to select a newly updated OS and AP.
  • the contents of the program management area 121f are updated every time the program is updated. Details of the program management area 121f will be described below.
  • the write completion flag 303 is a flag indicating the program update status.
  • FIG. 4 is a schematic diagram illustrating an example of the value of the write completion flag.
  • the write completion flag when the write completion flag is “0xffffffff”, it indicates that the program is being updated.
  • the write completion flag when the write completion flag is “0x000000000000”, it indicates that the program update has been completed and the monitoring recorder 110 has already been started at least once.
  • the write completion flag is “0x80000000”, it indicates that the update of the program is completed, but the monitoring recorder 110 has not been activated yet.
  • the write completion flag is changed to “0xffffffff” when the program update is started, and the write completion flag is changed to “0x80000000” when the program update is completed.
  • the monitoring recorder 110 starts up normally, the write completion flag is changed to “0x00000000”. In this way, the recording system CPU 124 can determine the program update status from the write completion flag 303.
  • Management area version number 304 is a version number for indicating the version of each management area (first management area 301 or second management area 302). For example, “0” is written at the first program write, and a value incremented by “1” is written at the subsequent program update. As a result, by comparing the management area version number 304a of the first management area 301 and the management area version number 304b of the second management area 302, it is possible to determine which is the latest. .
  • the start surface designation value 305 is a value for indicating which of the first recording system program area 121g and the second recording system program area 121h in the recording system program storage unit 121 is to be used for activation. is there.
  • the activation surface designation value 305 indicates which of the first reproduction system program area 131g and the second reproduction system program area 131h in the reproduction system program storage unit 131, which will be described later, is used for activation. It is also a value to show. If each of the recording system program storage unit 121 and the playback system program storage unit 131 has an activation surface designation value 305 indicating a program area used for activation, a writing error of the activation surface designation value 305 or aging deterioration is caused.
  • the recording system CPU 124 is activated using the program in the first recording system program area 121 g in the recording system program storage unit 121.
  • the reproduction system CPU 133 is activated using a program in the first reproduction system program area 131g in the reproduction system program storage unit 131.
  • the first recording system program area 121g and the first reproduction system program area 131g are expressed as a first startup surface.
  • the recording system CPU 124 is activated using the program in the second recording system program area 121 h in the recording system program storage unit 121.
  • the reproduction system CPU 133 is activated using a program in the second reproduction system program area 131h in the reproduction system program storage unit 131.
  • the second recording system program area 121h and the second reproduction system program area 131h are expressed as a second activation surface.
  • the activation surface designation value 305 can be selected correctly even if data corruption of several bits occurs by providing redundancy as a multi-bit value. Become.
  • the OS version number 306 indicates the version number of the first recording system OS 121b or the second recording system OS 121d stored in the recording system program storage unit 121.
  • the AP version number 307 indicates the version number of the first recording system AP 121c or the second recording system AP 121e stored in the recording system program storage unit 121.
  • these OS and AP version numbers are not used when selecting a program to be activated, but are used when managing the version of the program at the AP.
  • the CRC value 308 is a check value for confirming that the information in the management area (the first management area 301 or the second management area 302) is normal without being broken, in other words, an error in the management area. .
  • the CRC value 308a in the first management area 301 is used, and it is confirmed that the information in the second management area 302 is normal.
  • the CRC value 308b in the second management area 302 is used.
  • the CRC value 308a in the first management area 301 includes, for example, a write completion flag 303a in the first management area 301, a management area version number 304a, a startup surface designation value 305a, an OS version number 306a, an AP
  • the version number 307a is calculated based on the value of the area in which it is stored.
  • x ⁇ 16 + x ⁇ 12 + x ⁇ 5 + 1 is used as the CRC polynomial for calculating the CRC value.
  • represents a power.
  • the CRC polynomial is not limited to this polynomial, and may be other polynomials.
  • the CRC value 308 is at least information on the CRC calculation target area such as the write completion flag 303a, the management area version number 304a, the activation surface designation value 305a, the OS version number 306a, and the AP version number 307a in the first management area 301. Each time one or more are updated, it is calculated again and updated with a new CRC value.
  • program management information the information stored in the program management area 121f is referred to as program management information
  • first management information the information stored in the first management area 301
  • second management area 302. This information may be referred to as second program management information.
  • first program the first recording system OS 121b and the first recording system AP 121c are referred to as a first recording system program (first program), and the second recording system OS 121d and the second recording system AP 121e are used as a second recording system.
  • second program Sometimes referred to as a system program (second program).
  • the program is updated by connecting the external storage device 170 to the connection I / F unit 113 of the monitoring recorder 110 and reading the data.
  • the external storage device 170 may be a storage medium such as a USB memory, or may be an information processing device such as a computer connected to a network.
  • the camera 150 can perform power-on control from the monitoring recorder 110, and starts activation by a control signal transmitted from the recording unit 120 during the activation processing after the power-on of the monitoring recorder 110. To do.
  • the recording work memory 122 is a memory used by the recording CPU 124 as a work area.
  • the recording work memory 122 is, for example, a RAM (Random Access Memory).
  • the recording system CPU 124 reads the OS or AP from the recording system program storage unit 121, writes it in the recording system work memory 122, executes it, and controls the operation of the recording unit 120.
  • the information storage unit 123 is an information storage unit that records video data of video captured by the camera 150.
  • the information storage unit 123 is configured by a storage medium such as a flash memory or an HDD (Hard Disk Drive), for example. Note that the information storage unit 123 may be configured independently by being separated from the outside of the recording unit 120 or the outside of the monitoring recorder 110. The information storage unit 123 may be configured to be detachable from the monitoring recorder 110.
  • the recording system CPU 124 is a recording system processing unit that activates the first recording system program or the second recording system program stored in the recording system program storage unit 121 and controls processing in the recording unit 120. .
  • the recording system CPU 124 sequentially executes the activation process according to the instruction.
  • the recording system CPU 124 has a function of controlling the activation of the camera 150, for example, in addition to its own activation process.
  • the recording system CPU 124 has a function of outputting not only its own activation status but also information indicating the activation status of what the recording system CPU 124 performs activation control to, for example, the program activation control unit 140 or the information storage unit 123. Further, when the monitoring recorder 110 is turned on, the recording system CPU 124 reads out the OS or AP from the recording system program storage unit 121 to the recording system work memory 122 and executes it, thereby controlling the activation operation of the recording unit 120.
  • the signal line 180 is a signal line for transmitting the activation surface information as the storage area information indicating the storage area of the program necessary for activation determined by the recording system CPU 124 to the reproduction system CPU 133. Since the activation surface information is information for selecting one of the two program areas and executing the program stored therein, the signal line 180 is a signal that can transmit one bit of data at a time. Is a line. Since the activation surface information is information that is updated only once per activation, the signal line 180 can be realized by a low-speed signal line. Further, since it is only necessary to transmit the activation surface information from the recording system CPU 124 to the reproduction system CPU 133, it can be realized by a unidirectional signal line.
  • a bidirectional port capable of transmitting and receiving is not necessary as a port to which the signal line 180 is connected.
  • the recording CPU 124 only needs to have a transmission port, and the reproduction CPU 133 only needs to have a reception port.
  • the signal line 181 is a bidirectional signal line for communicating between the CPUs after both the recording system CPU 124 and the reproduction system CPU 133 have been activated.
  • the signal line 181 includes a signal line capable of transmitting a large amount of data at a higher speed than the signal line 180.
  • the signal line 181 can be realized by, for example, Ethernet (registered trademark).
  • the program When the program is updated, it is necessary to transmit a new program from the recording system CPU 124 to the reproduction system CPU 133. Further, after writing the new program received by the playback system CPU 133 into the playback system program storage unit 131, it is necessary to notify the recording system CPU 124 of the completion of writing from the playback system CPU 133.
  • the program update is performed after both the recording system CPU 124 and the playback system CPU 133 have been activated and the inter-CPU communication via the signal line 181 is also valid. Therefore, the signal line 181 can notify the transmission of a new program and the completion of writing of the new program in the reproduction system CPU 133.
  • the playback unit 130 Based on the video data recorded in the information storage unit 123 in the recording unit 120, the playback unit 130 generates playback data that plays back the video, sends the playback data to the display device 160, and the video based on the video data. Is displayed on the display device 160.
  • the playback unit 130 can also display the video based on the video data captured by the camera 150 on the display device 160 in real time.
  • the playback unit 130 includes a playback system program storage unit 131, a playback system work memory 132, and a playback system CPU 133 as a second processor.
  • the reproduction system program storage unit 131 is a storage unit that stores a program that is executed when the power of the monitoring recorder 110 is turned on and the reproduction system CPU 133 starts a startup process.
  • the programs executed by the reproduction system CPU 133 are a boot loader, an OS, and a reproduction system AP.
  • the boot loader is a program that executes processing for starting the OS.
  • the OS is basic software for managing the entire playback unit 130.
  • the reproduction AP is a program that reads a plurality of video data recorded in the information storage unit 123 and displays a plurality of videos side by side on the display device 160 based on the plurality of read video data.
  • the playback AP can start processing after the OS is activated. Also, after the OS is started, a plurality of the same APs can be executed simultaneously, and a plurality of different APs can be executed simultaneously.
  • FIG. 5 is a schematic diagram illustrating an example of a program stored in the reproduction system program storage unit 131.
  • the reproduction system program storage unit 131 includes a reproduction system boot loader 131a, a first reproduction system program area 131g as a third storage area, and a second reproduction system program area as a fourth storage area. 131h.
  • the first reproduction system program area 131g has a first reproduction system OS 131b and a first reproduction system AP 131c.
  • the second playback system program area 131h includes a second playback system OS 131d and a second playback system AP 131e.
  • the playback system OS and playback system AP used in the playback unit 130 are updated for reasons such as security measures, performance improvement, operability improvement, or defect repair.
  • the program is updated by rewriting the playback system OS and playback system AP in a program area different from the program area in which the playback system OS and playback system AP being executed are stored. For example, when the reproduction system CPU 133 is executing the first reproduction system OS 131b and the first reproduction system AP 131c stored in the first reproduction system program area 131g, the reproduction system CPU 133 executes the first reproduction system OS 131b and the first reproduction system AP 131c in the second reproduction system program area 131h.
  • the second playback system OS 131d and the second playback system AP 131e are rewritten with new programs.
  • the first reproduction system OS 131b and the first reproduction system AP 131c are old versions of the programs of the second reproduction system OS 131d and the second reproduction system AP 131e.
  • the old version of the program is a program that has already been processed and is compatible with the recording unit 120 and can be stably executed. Therefore, the playback system CPU 133 starts up with the first playback system OS 131b and the first playback system AP 131c that were started last time, or the newly updated second playback system OS 131d and the second playback system AP 131e. Select whether to start with. For this selection, the reproduction system CPU 133 receives and uses the activation surface information output from the recording system CPU 124.
  • first playback system OS 131b and the first playback system AP 131c are referred to as a first playback system program (third program), and the second playback system OS 131d and the second playback system AP 131e are used as a second playback system.
  • system program fourth program
  • the playback system program storage unit 131 Since the startup surface information is transmitted from the recording system CPU 124 to the playback system CPU 133, the playback system program storage unit 131 does not need a program management area for storing information about the startup surface. Therefore, the playback system program storage unit 131 can have a smaller storage capacity than when there is a program management area. Further, when updating the program stored in the reproduction system program storage unit 131, it is not necessary to write to the program management area in the reproduction system program storage unit 131, so that the program update time can be shortened.
  • the reproduction system work memory 132 is a memory used by the reproduction system CPU 133 as a work area.
  • the reproduction work memory 132 is, for example, a RAM.
  • the playback system CPU 133 reads the OS or AP from the playback system program storage unit 131, writes it in the playback system work memory 132, executes it, and controls the startup operation of the playback unit 130.
  • the reproduction system CPU 133 is a reproduction system processing unit that activates the first reproduction system program or the second reproduction system program stored in the reproduction system program storage unit 131 and controls processing in the reproduction unit 130. .
  • the playback system CPU 133 sequentially executes the start processing according to the command.
  • the program activation control unit 140 controls the activation process in the monitoring recorder 110, in other words, the activation process in the recording system CPU 124 and the reproduction system CPU 133. For example, when the monitoring recorder 110 is turned on, the program activation control unit 140 checks the activation status of the recording system CPU 124 and the reproduction system CPU 133. Then, the program activation control unit 140 issues an activation process start command to each.
  • the program activation control unit 140 stores in advance information on the activation operation of the recording CPU 124 and the reproduction CPU 133, for example, the order of activation processing, and confirms the activation status so that the activation operation proceeds correctly in that order, and the activation is started. Issue processing instructions.
  • the program activation control unit 140 restarts the recording system CPU 124 and the reproduction system CPU 133 when an error occurs in activation of at least one of the recording system CPU 124 and the reproduction system CPU 133. For example, the program activation control unit 140 measures the elapsed time after the recording system CPU 124 and the reproduction system CPU 133 notify the activation status, and a predetermined time has elapsed until the next activation status is notified. In this case, a reset signal for restarting the recording system CPU 124 and the reproduction system CPU 133 is output. Further, when the recording system CPU 124 and the playback system CPU 133 are restarted, the program activation control unit 140 stores the recording system CPU 124 in a different activation surface than the activation surface designated by the activation surface designation value 305.
  • the program start control unit 140 causes the recording system CPU 124 and the playback system CPU 133 to restart the restarting program so that the recording system CPU 124 and the playback system CPU 133 return to an old version with a track record of operation. Change the value of and output.
  • the recording system CPU 124 fails to start the second recording system program that is the latest version
  • the playback system CPU 133 fails to start the second playback system program that is the latest version.
  • the recording system CPU 124 is restarted to cause the recording system CPU 124 to execute the old version of the first recording system program
  • the playback system CPU 133 is restarted to cause the playback system CPU 133 to restart the old version of the first playback. Run the system program.
  • the program activation control unit 140 sends the second recording system program to the recording system CPU 124 as an old version program.
  • the CPU 133 is caused to execute the second reproduction system program.
  • the program activation control unit 140 can also be realized by including a CPU (not shown).
  • the program activation control unit 140 includes a memory 140a for storing information such as a flag.
  • the memory 140a may be a volatile memory or a non-volatile memory.
  • the program activation control unit 140 can also be realized by a programmable logic device such as CPLD (Complex Programmable Logic Device) instead of a CPU (not shown).
  • CPLD Complex Programmable Logic Device
  • the notification unit 145 notifies that a startup error has occurred.
  • the notification unit 145 includes an LED (Light Emitting Diode), and notifies that a start-up error has occurred due to its lighting.
  • the operation of the monitoring recorder 110 according to the first embodiment that is, the activation control method of the monitoring recorder 110 will be described.
  • FIG. 6 is a flowchart showing the starting operation of the recording unit 120.
  • the recording system CPU 124 starts the process written in the recording system boot loader 121a stored in the recording system program storage unit 121 (S10).
  • the recording system boot loader 121a causes the recording system CPU 124 to initialize the H / W circuit such as the recording system work memory 122 (S11).
  • the recording system CPU 124 selects either the first management area 301 or the second management area 302 in the program management area 121f (S12). The processing here will be described in detail with reference to FIG.
  • the recording system CPU 124 determines the activation surface (S13). This process will be described in detail with reference to FIG.
  • the recording system CPU 124 outputs the activation surface determined in step S13 as activation surface information to the reproducing unit 130 via the signal line 180 (S14).
  • the recording system CPU 124 selects one of the first recording system program area 121g and the second recording system program area 121h according to the startup surface determined in step S13, and is stored in the selected program area.
  • the operating system is started (S15).
  • the recording CPU 124 When the activation of the OS is completed, the recording CPU 124 outputs an OS activation completion notification (S16).
  • the completion notification output here is notified to the reproduction system CPU 133 via, for example, the program activation control unit 140 of FIG.
  • the recording CPU 124 activates the AP stored in the program area selected in step S15 (S17). If the value of the write completion flag 303 in the management area used for activation is “0x80000000”, the recording CPU 124 changes the value to “0x00000000” and completes the CRC value 308 after completion of activation. Calculate and update again.
  • FIG. 7 is a flowchart illustrating an example of processing contents in management area selection.
  • the recording system CPU 124 performs CRC checks on the first management area 301 and the second management area 302 in the program management area 121f, and confirms whether the CRC check results in both areas are NG (S20). ).
  • the CRC check of the first management area 301 stores, for example, a write completion flag 303a, a management area version number 304a, a startup surface designation value 305a, an OS version number 306a, and an AP version number 307a in the first management area 301. This is performed by calculating the CRC value of the area that has been set, and comparing the CRC value obtained as a result of the calculation with the CRC value 308a in the first management area 301.
  • step S21 If the CRC value obtained as a result of the calculation matches the CRC value 308a in the first management area 301, it is determined that the CRC check is OK, and if it does not match, it is determined that the CRC check is NG.
  • the CRC check of the second management area 302 is performed in the same manner as the CRC check of the first management area 301. If the CRC check results in both areas are NG (YES in S20), it is determined that the program management area 121f is invalid, and the process proceeds to step S31 (management area NG). In other cases (NO in S20), the process proceeds to step S21.
  • step S21 the recording CPU 124 confirms whether or not the CRC check of the first management area 301 is OK and the CRC check of the second management area 302 is NG. If the CRC check of the first management area 301 is OK and the CRC check of the second management area 302 is NG (YES in S21), the process proceeds to step S29 (uses the first management area). . In other cases (NO in S21), the process proceeds to step S22.
  • step S22 the recording CPU 124 checks whether or not the CRC check of the first management area 301 is NG and the CRC check of the second management area 302 is OK. If the CRC check of the first management area 301 is NG and the CRC check of the second management area 302 is OK (YES in S22), the process proceeds to step S30 (using the second management area). In other cases (NO in S22), the process proceeds to step S23.
  • step S23 the recording CPU 124 checks whether or not the management area version numbers 304 stored in the first management area 301 and the second management area 302 are both “0xffffff”.
  • the recording system program storage unit 121 is configured by a nonvolatile memory such as a flash memory
  • the management area version number 304 is not written in the first management area 301 and the second management area 302, the initial value “0xffffff” ”State. If both management area version numbers 304 are initial values (YES in S23), the process proceeds to step S29 (using the first management area). In other cases (NO in S23), the process proceeds to step S24.
  • step S24 the recording CPU 124 checks whether or not the write completion flag 303a in the first management area 301 is invalid. For example, during the program update, the value of the write completion flag 303 is “0xfffffff”. Further, the value of the write completion flag 303 is “0x80000000” until the first activation after the program update. Further, after the first activation after the program update, the value of the write completion flag 303 is “0x00000000”. If the write completion flag 303a in the first management area 301 is invalid in any of these values (YES in S24), the process proceeds to step S30 (uses the second management area). In other cases (NO in S24), the process proceeds to step S25.
  • step S25 the recording system CPU 124 checks whether or not the second management area 302 is being updated. For example, when the value of the write completion flag 303b in the second management area 302 is “0xfffffff” and writing is in progress (YES in S25), the process proceeds to step S29 (uses the first management area). In other cases (NO in S25), the process proceeds to step S26.
  • step S26 the recording CPU 124 confirms whether or not the first management area 301 is being updated. If the value of the write completion flag 303a in the first management area 301 is, for example, “0xffffffff” and writing is in progress (YES in S26), the process proceeds to step S30 (using the second management area). In other cases (NO in S26), the process proceeds to step S27.
  • step S27 the recording CPU 124 checks whether or not the write completion flag 303b in the second management area 302 is invalid. As described in step S24, the write completion flag 303 is one of a plurality of predetermined values. For this reason, if the write completion flag 303b in the second management area 302 is not any of these values and is invalid (YES in S27), the process proceeds to step S29 (uses the first management area). . In other cases (NO in S27), the process proceeds to step S28.
  • step S28 the recording CPU 124 compares the management area version number 304a of the first management area 301 with the management area version number 304b of the second management area 302. If management area version number 304a is smaller than management area version number 304b (YES in S28), the process proceeds to step S30 (using the second management area). In other cases (NO in S28), the process proceeds to step S29 (using the first management area).
  • step S ⁇ b> 29 the recording CPU 124 determines to select and use the first management area 301 from the first management area 301 and the second management area 302.
  • step S30 the recording system CPU 124 determines to select and use the second management area 302 from the first management area 301 and the second management area 302.
  • step S31 the recording system CPU 124 determines that both the first management area 301 and the second management area 302 are invalid, and determines to stop and start the system.
  • step S31 depending on the specifications of the apparatus, instead of determining whether to start or stop the system, one of the management areas, for example, the first management area 301 may be forcibly used.
  • the management area is selected in the management area selection (step S12) in FIG.
  • a CRC check is performed on the first management area 301 and the second management area 302 using the CRC value 308 to store in the first management area 301 or the second management area 302. If the information is broken, it can be started using the information in the management area that is not broken.
  • the information of the area where the program update has not been completed in the first management area 301 or the second management area 302 is not used, and the area where the program update has been completed is not used. Can be activated using information.
  • FIG. 8 is a flowchart showing an example of the processing content in the activation plane determination.
  • step S40 the recording system CPU 124 selects the management area selected in the management area selection (step S12) in FIG. 6 from the first management area 301 and the second management area 302 shown in FIG.
  • the activation surface designation value 305 is read out.
  • step S41 the recording system CPU 124 counts the number of bits whose value is “1” when the activation surface designation value 305 read in step S40 is expressed in binary. For example, when the activation surface designation value 305 is “0xfffffff”, it is expressed as “11111111, 11111111, 11111111, 11111111” when expressed in binary, so the number of bits having a value of “1” is “32”.
  • step S42 the recording CPU 124 determines whether or not the number of bits counted in step S41 is equal to or greater than a predetermined threshold value (for example, 16). If the number of bits is equal to or greater than a predetermined threshold value (YES in S42), the process proceeds to step S43 (tentatively determined as the first activation surface). In other cases (NO in S42), the process proceeds to step S46 (tentatively determined as the second startup surface). By tentatively determining the activation plane in this way, it is possible to select the activation plane correctly even when the information of the activation plane designation value 305 is broken by several bits.
  • a predetermined threshold value for example, 16
  • step S43 the recording system CPU 124 provisionally determines the activation surface as the first activation surface.
  • step S44 the recording CPU 124 determines whether or not the activation surface change flag input from the program activation control unit 140 is “1”. If the activation surface change flag is “1” (YES in S44), the process proceeds to step S48 (determined as the second activation surface) to invert the activation surface. In other cases (NO in S44), the process proceeds to step S45 (determined as the first activation surface).
  • step S46 the recording system CPU 124 provisionally determines the activation surface as the second activation surface.
  • step S47 the recording CPU 124 determines whether or not the activation surface change flag input from the program activation control unit 140 is “1”. If the activation surface change flag is “1” (YES in S47), the process proceeds to step S45 (determined as the first activation surface) in order to reverse the activation surface. In other cases (NO in S47), the process proceeds to step S48 (determined as the second activation surface).
  • step S45 the recording system CPU 124 determines the activation surface as the first activation surface.
  • step S48 the recording system CPU 124 determines the activation surface as the second activation surface.
  • the activation plane is determined in the activation plane determination (step S13) in FIG.
  • the activation plane is determined in the activation plane determination (step S13) in FIG.
  • the recording unit 120 of the monitoring recorder 110 is activated.
  • FIG. 9 is a flowchart showing the starting operation of the playback unit 130.
  • the reproduction system CPU 133 activates the process written in the reproduction system boot loader 131a stored in the reproduction system program storage unit 131 (S50).
  • the reproduction system CPU 133 initializes the H / W circuit such as the reproduction system work memory 132 by the reproduction system boot loader 131a (S51).
  • the reproduction system CPU 133 waits for the completion of OS activation in the recording system CPU 124 (S52).
  • the reproduction system CPU 133 is notified of the OS activation completion in the recording system CPU 124 in step S14 of the flowchart relating to the activation of the recording system CPU 124 shown in FIG. 6, the process proceeds to the next step S53.
  • step S53 the reproduction system CPU 133 receives the activation surface information output from the recording system CPU 124 via the signal line 180.
  • the playback system CPU 133 selects one of the first playback system program area 131g and the second playback system program area 131h based on the activation surface information received in step S53, and within the selected program area.
  • the stored OS is activated (S54).
  • Step S53 the reproduction system CPU 133 activates the AP stored in the program area selected in Step S53 (S55).
  • the playback unit 130 of the monitoring recorder 110 according to Embodiment 1 is activated.
  • FIG. 10 is a diagram showing the relationship between the flowchart showing the startup operation of the recording unit 120 shown in FIG. 6 and the flowchart showing the startup operation of the playback unit 130 shown in FIG. When the power is turned on, the recording unit 120 and the playback unit 130 start operating simultaneously. In FIG. 9, this is shown at timing T0.
  • the recording system CPU 124 switches the port connected to the signal line 180 for transmitting the activation surface information to the output state as one of the processes in the H / W initialization in step S11, and outputs the initial value.
  • the initial value is “0”, for example. In FIG. 9, this is shown at timing T1.
  • the recording system CPU 124 outputs the activation surface information indicating the activation surface determined in step S13 from the port connected to the signal line 180 that conveys the activation surface information in the activation surface information output in step S14. In FIG. 9, this is shown at timing T2. At this time, the reproduction system CPU 133 waits for the completion of the OS activation in the recording system CPU 124 while waiting for the completion of the activation of the recording system OS in step S52.
  • the recording CPU 124 When the OS activation is completed in step S15, the recording CPU 124 notifies the reproduction CPU 133 of the OS activation completion in step S16. In FIG. 9, this is shown at timing T3.
  • the reproduction system CPU 133 receives the OS activation completion notification from the recording system CPU 124, ends the recording system OS activation completion waiting in step S52, and receives the activation surface information output by the recording system CPU 124 in step S53. In FIG. 9, this is shown at timing T4.
  • the reproduction system CPU 133 receives the activation surface information in step S53 without waiting for the recording system OS activation completion in step S52, there is a possibility that the activation surface information cannot be received normally. This occurs when the start-up surface reception in step S53 of the reproduction system CPU 133 is executed at an earlier timing than the start-up surface information output in step S14 of the recording system CPU 124. At this time, the playback system CPU 133 may select and execute a program stored in the playback system program storage unit 131 with incorrect startup surface reception information, and the monitoring recorder 110 may not operate normally. On the other hand, by waiting for the activation of the recording system OS in step S52, the activation surface information can be normally transmitted from the recording system CPU 124 to the reproduction system CPU 133. For this reason, the reproduction system CPU 133 can select the program stored in the reproduction system program storage unit 131 and execute it according to the transmitted activation surface information, so that the monitoring recorder 110 can be activated normally.
  • the recording CPU 124 needs to continuously output the activation surface information to the signal line 180 during the period from the timing T2 to the timing T4 in FIG.
  • the recording system CPU 124 outputs the activation surface information in step S14, and then starts the OS in step S15.
  • each port of the recording system CPU 124 is initialized.
  • the port of the CPU 124 connected to the signal line 180 is also initialized, and it becomes impossible to continue outputting the startup surface information.
  • the port that outputs the startup surface information of the recording system CPU 124 is set to an operation of holding the previous state at the time of initial setting at the startup of the OS. Then, after the reproduction system CPU 133 receives the activation surface information, that is, after timing T4 in FIG. 10, the port is set.
  • the OS activation (step S54) of the reproduction unit 130 is completed, the OS activation is completed from the reproduction system CPU 133 to the recording system CPU 124 by a signal line (not shown) that directly connects the recording system CPU 124 and the reproduction system CPU 133.
  • the recording system CPU 124 can recognize that the reproduction system CPU 133 has received the activation surface information.
  • the activation surface information can be normally transmitted from the recording system CPU 124 to the reproduction system CPU 133, and the reproduction system CPU 133 selects and executes the program stored in the reproduction system program storage unit 131 based on the transmitted activation surface information.
  • the monitoring recorder 110 can be started normally.
  • the port for outputting the activation surface information in the recording system CPU 124 can be used for another purpose after transmitting the activation surface information.
  • the recording system CPU 124 does not use the port for outputting the activation surface information after transmitting the activation surface information for another use, it is possible to omit the setting of the port after the activation surface information is transmitted. .
  • FIG. 11 is a flowchart showing the program update process of the monitoring recorder 110.
  • the recording system CPU 124 and the playback system CPU 133 can communicate at high speed via the signal line 181, and then the operator of the monitoring recorder 110 However, when a program update is instructed by a user I / F not shown in FIG. 1, the monitoring recorder 110 starts updating the program.
  • step S60 the recording CPU 124 confirms whether the first management area 301 has been selected and activated.
  • the recording system CPU 124 stores the management area used for activation in the recording system work memory 122 or the like. If the first management area is selected and activated (YES in S60), the process proceeds to step S61. If the second management area is selected and activated (NO in S60), the process proceeds to step S62.
  • step S61 the recording system CPU 124 rewrites the write completion flag 303b in the second management area 302 during the program update. For example, as shown in FIG. 4, the recording system CPU 124 rewrites the value to “0xffffff”. Then, the process proceeds to step S63.
  • step S62 the recording system CPU 124 rewrites the write completion flag 303a in the first management area 301 during the program update in the same manner as in step S61. Then, the process proceeds to step S63.
  • step S63 the recording system CPU 124 obtains an activation surface that indicates which of the first program area and the second program area is used for activation, and whether or not the activation is performed on the first activation surface. Judging. For example, the recording system CPU 124 stores the activation surface or program area used for activation in the recording system work memory 122 or the like. If activated on the first activation surface, that is, activated using the first program area (YES in S63), the process proceeds to step S64. If activated on the second activation surface, that is, activated using the second program area (NO in S63), the process proceeds to step S66.
  • step S64 the recording system CPU 124 transmits the new playback system OS and the new playback system AP to the playback system CPU 133 by high-speed communication through the signal line 181.
  • the reproduction system CPU 133 rewrites the second reproduction system OS 131d and the second reproduction system AP 131e in the second reproduction system program area 131h of the reproduction system program storage unit 131 by using the received new reproduction system OS and new reproduction system AP. .
  • the reproducing system CPU 133 notifies the recording system CPU 124 of the completion of writing via the signal line 181.
  • step S65 the recording system CPU 124 uses the new recording system OS and the new recording system AP to execute the second recording system OS 121d and the second recording system AP 121e in the second recording system program area 121h of the recording system program storage unit 121. Rewrite.
  • step S66 the playback system CPU 133 rewrites the first playback system program area 131g of the playback system program storage unit 131 in the same manner as in step S64.
  • the reproducing system CPU 133 notifies the recording system CPU 124 of the completion of writing via the signal line 181.
  • step S67 the recording system CPU 124 rewrites the first recording system program area 121g of the recording system program storage unit 121 in the same manner as in step S65.
  • step S68 the recording CPU 124 confirms whether the first management area 301 has been selected and activated. If the first management area is selected and activated (YES in S68), the process proceeds to step S69. If the second management area is selected and activated (NO in S68), the process proceeds to step S74.
  • step S69 the recording CPU 124 rewrites the management area version number 304b of the second management area 302.
  • the recording system CPU 124 reads, for example, the management area version number 304a of the first management area 301 used for activation, increments the read value by, for example, “1”, and then the management area version of the second management area 302 Write as number 304b.
  • step S ⁇ b> 70 the recording system CPU 124 rewrites the activation surface designation value 305 b in the second management area 302.
  • the recording system CPU 124 obtains a start surface indicating which one of the first program area and the second program area is used for starting, and then uses the value indicating the opposite start surface to determine the second management area.
  • the activation surface designation value 305b 302 is rewritten.
  • the recording system CPU 124 is activated by the first activation surface, for example, “0x00000000” is written as a value indicating the second activation surface.
  • the recording system CPU 124 is activated by the second activation surface, for example, “0xffffffff” is written as a value indicating the first activation surface.
  • the recording system CPU 124 rewrites the activation surface designation value 305b.
  • step S71 the recording CPU 124 rewrites the OS version number 306b and the AP version number 307b in the second management area 302. Since these values are not used for selecting a program area at the time of activation, the recording CPU 124 may select a number that is convenient for OS and application management.
  • step S72 the recording system CPU 124 rewrites the CRC value 308b of the second management area 302.
  • the CRC value 308b is based on, for example, an area in which the write completion flag 303b, the management area version number 304b, the activation surface designation value 305b, the OS version number 306b, and the AP version number 307b in the second management area 302 are stored. Calculated.
  • step S73 the recording system CPU 124 rewrites the write completion flag 303b in the second management area 302 to the completion of program update (not activated). For example, as shown in FIG. 4, the recording system CPU 124 rewrites the value to “0x80000000”.
  • step S74 the recording CPU 124 rewrites the management area version number 304a of the first management area 301 in the same manner as in step S69.
  • step S75 similarly to step S70, the recording CPU 124 rewrites the activation surface designation value 305a of the first management area 301.
  • step S76 the recording system CPU 124 rewrites the OS version number 306a and the AP version number 307a of the first management area 301 in the same manner as in step S71.
  • step S77 the recording CPU 124 rewrites the CRC value 308a of the first management area 301 in the same manner as in step S72.
  • step S78 in the same manner as in step S73, the recording CPU 124 rewrites the write completion flag 303a in the first management area 301 to complete program update (not activated).
  • the program of the monitoring recorder 110 is updated by the procedure as described above. According to the procedure described above, both the recording system CPU 124 and the reproduction system CPU 133 can be updated with the versions matched.
  • FIG. 12 is a schematic diagram showing the timing from before the update of the program of the monitoring recorder 110 to after the update.
  • the program update operation shown in the flowchart of FIG. 11 is performed in the period from timing Tb to timing Tc in FIG.
  • the power of the monitoring recorder 110 is turned on, and the recording system CPU 124 and the reproduction system CPU 133 are activated.
  • the recording CPU 124 executes processing according to the flowchart shown in FIG.
  • the reproduction system CPU 133 executes processing in accordance with the flowchart shown in FIG.
  • a case is shown in which the first activation surface is used for activation.
  • a case is shown in which the activation surface change flag output from the program activation control unit 140 is “0 (no activation surface change)”.
  • the activation plane is determined as the first activation plane according to the flowchart shown in FIG. 8, and activation plane information indicating the first activation plane is output.
  • the recording system CPU 124 executes the first startup surface program, that is, the program stored in the first recording system program area 121g of FIG. Further, the reproduction system CPU 133 also executes the first startup surface program, that is, the program stored in the first reproduction system program area 131g of FIG.
  • the recording system CPU 124 updates new programs stored in the external storage device 170 (both for the recording system CPU 124 and the playback system CPU 133. Program).
  • the recording system CPU 124 writes a new program for the recording system CPU 124 in the second recording system program area 121h (second startup surface) in the recording system program storage unit 121 according to the procedure shown in the flowchart of FIG. That is, since it is activated by the first activation surface, the recording CPU 124 writes it on the second activation surface that is not currently used. Further, the recording system CPU 124 transmits a new program for the reproduction system CPU 133 to the reproduction system CPU 133 at high speed using the signal line 181. As shown in the flowchart of FIG.
  • the reproduction system CPU 133 transmits a new program for the reproduction system CPU 133 transmitted from the recording system CPU 124 to the second reproduction system program area 131h (second program) in the reproduction system program storage unit 131. Write to the starting surface). That is, since it is activated by the first activation surface, the reproduction system CPU 133 writes it on the second activation surface that is not currently used.
  • the reproducing system CPU 133 notifies the recording system CPU 124 of the completion of writing via the signal line 181.
  • the recording system CPU 124 receives the writing completion notification from the reproduction system CPU 133 and completes the new program writing of the recording system CPU 124 itself, as shown in the flowchart of FIG. 11, the first management of the program management area 121f is performed. The area 301 or the second management area 302 is rewritten. In FIG. 12, this is indicated by timing Tc.
  • FIG. 12 shows that the activation surface designation value used at the next activation is changed from the first activation surface to the second activation surface by the program update.
  • the program update is completed and the power of the monitoring recorder 110 is turned off.
  • the process of turning off the power of the monitoring recorder 110 and turning it on again may be automatically executed by the monitoring recorder 110 or manually by the user of the monitoring recorder.
  • the power of the monitoring recorder 110 is turned on again, and the recording system CPU 124 and the reproduction system CPU 133 are activated.
  • the recording CPU 124 executes processing according to the flowchart shown in FIG.
  • the reproduction system CPU 133 executes processing in accordance with the flowchart shown in FIG.
  • the activation surface designation value read by the recording system CPU 124 is switched to the second activation surface by program update.
  • the activation surface change flag output from the program activation control unit 140 remains “0 (no activation surface change)”. For this reason, according to the flowchart shown in FIG. 8, the use of the second activation plane is determined, and activation plane information indicating the second activation plane is output.
  • the recording system CPU 124 executes the second startup surface program, that is, the updated new program stored in the second recording system program area 121h of FIG.
  • the reproduction system CPU 133 also executes the second startup surface program, that is, the updated new program stored in the second reproduction system program area 131h of FIG.
  • the program activation control unit 140 detects this, and changes the activation surface change flag from “0” to “1”.
  • the recording system CPU 124 and the reproduction system CPU 133 are restarted.
  • the program activation control unit 140 is connected to, for example, the recording system CPU 124 and the reproduction system CPU 133 through signal lines 182 and 183, and communicates with the CPUs 124 and 133 through these signal lines 182 and 183. It shall be determined whether or not it has started normally.
  • the recording system CPU 124 and the playback system CPU 133 are restarted.
  • the recording CPU 124 executes processing according to the flowchart shown in FIG.
  • the activation surface designation value read by the recording system CPU 124 is switched to the second activation surface by program update.
  • the activation surface change flag output from the program activation control unit 140 is changed to “1”.
  • the activation surface to be used is determined as the first activation surface, and activation surface information indicating the first activation surface is output.
  • the recording system CPU 124 executes the first startup surface program, that is, the program stored in the first recording system program area 121g of FIG.
  • the reproduction system CPU 133 also executes the first startup surface program, that is, the program stored in the first reproduction system program area 131g of FIG.
  • the recording system CPU 124 operates normally until the application is activated (step S17 in FIG. 6) and the reproduction system CPU 133 operates normally until the application is activated (step S55 in FIG. 9)
  • the CPUs 124 and 133 notify the program activation control unit 140 of this fact. Thereby, the program activation control unit 140 returns the activation surface change flag from “1” to “0”.
  • the program on the first startup surface with a track record of operation is used. It is possible to start normally. Then, after the normal activation, the program update is performed again on the second activation surface, whereby the program update can be completed.
  • each of the recording system CPU 124 and the playback system CPU 133 has a plurality of program areas, the program is not updated correctly when the program is updated, and the new program is damaged. Even in such a case, it is possible to select the program area in which the program before the update is stored, start the system, and further execute the program update process again.
  • the recording system CPU 124 and the playback system CPU 133 use the common startup surface information to select a program area in which the programs to be started by the respective CPUs are selected, the programs of the multiple CPUs can be checked without checking the program versions.
  • the version can be a combination that can operate normally.
  • monitoring system 110 monitoring recorder, 111 communication I / F unit, 112 output I / F unit, 113 connection I / F unit, 120 recording unit, 121 recording system program storage unit, 122 recording system work memory, 123 information storage unit , 124 recording system CPU, 130 playback unit, 131 playback system program storage unit, 132 playback system work memory, 133 playback system CPU, 140 program start control unit, 145 notification unit, 150 camera, 160 display device, 170 external storage device, 180, 181, 182, 183 signal lines.

Abstract

The present invention is provided with a recording-system program storage unit 121 having a first storage region for storing a first program and a second storage region for storing a second program, and a playback-system program storage unit 131 having a third storage region for storing a third program corresponding to the first program and a fourth recording region for storing a fourth program corresponding to the second program. A recording-system CPU 124 uses the first program or the second program to start up, and also notifies a playback-system CPU 133 of storage region information indicative of the storage region of the program needed for startup and causes the playback-system CPU 133 to start up.

Description

監視レコーダSurveillance recorder
 本発明は、監視レコーダに関し、特に、複数のプロセッサを備える監視レコーダに関する。 The present invention relates to a monitoring recorder, and more particularly to a monitoring recorder including a plurality of processors.
 一般に、監視システムにおける映像記録再生装置である監視レコーダは、カメラから送信される映像データを大容量メモリに記録する記録系と、大容量メモリに記録された映像データを再生する再生系とを備える。 In general, a surveillance recorder which is a video recording / playback apparatus in a surveillance system includes a recording system for recording video data transmitted from a camera in a large-capacity memory and a playback system for playing back video data recorded in the large-capacity memory. .
 特に、監視レコーダは、カメラから送信される映像データを記録し続けることが重要である。このため記録系のプロセッサである記録系CPU(Central Processing Unit)と再生系のプロセッサである再生系CPUとを別個独立して備えることで、再生系CPUからの影響を受けることなく記録系CPUを動作させ続けることができる。 Especially, it is important for the surveillance recorder to keep recording video data transmitted from the camera. For this reason, a recording system CPU (Central Processing Unit) that is a recording system processor and a playback system CPU that is a playback system processor are provided separately and independently so that the recording system CPU is not affected by the playback system CPU. Can continue to operate.
 監視レコーダでは、時々刻々と変化するセキュリティの脅威への対応、操作性の向上又は動作不具合への対応を目的として、プログラムの更新が必要となる。一方、記録系CPUと再生系CPUとで協調動作して監視レコーダとして正常に動作するために、記録系CPU及び再生系CPUのそれぞれで実行するプログラムのバージョンが、正常動作することを検証済みの組み合わせとなっている必要がある。 The monitoring recorder needs to update the program for the purpose of responding to security threats that change from moment to moment, improving operability, or dealing with malfunctions. On the other hand, in order for the recording system CPU and the playback system CPU to cooperate and operate normally as a monitoring recorder, it has been verified that the version of the program executed by each of the recording system CPU and the playback system CPU operates normally. Must be a combination.
 プログラムの更新処理が正常に終了しなかった場合、あるいは、新しく更新されたプログラム同士のバージョンが正常動作不可能な組み合わせとなっている場合等に、更新された新しいプログラムで起動すると、記録系CPUと再生系CPUとが正しく協調動作せず、正常に監視レコーダとして機能しないことがある。そのため、正常動作可能なプログラムの組み合わせとなるようなプログラム更新処理及び起動処理が必要となる。 When the program update process does not end normally, or when the versions of the newly updated programs are in a combination incapable of normal operation, the recording system CPU starts up with the updated new program. And the reproduction system CPU may not operate correctly and may not function normally as a monitoring recorder. Therefore, it is necessary to perform a program update process and a start process that are a combination of programs that can operate normally.
 そこで、例えば、特許文献1に記載のソフトウエアバージョンアップ管理システムでは、複数のCPUのメモリ内に格納するプログラムを、1つのCPUでバージョンアップすると共に、バージョン番号を一元管理することで、各CPUで実行するプログラムが正常動作可能な組み合せとなるようにしている。 Therefore, for example, in the software version upgrade management system described in Patent Document 1, each CPU stores a version of a program stored in a memory of a plurality of CPUs by using a single CPU and centrally managing version numbers. The program to be executed in the above is a combination that can operate normally.
 また、特許文献2に記載されたマルチCPUシステムでは、複数のCPUのそれぞれについて、主バンクと蓄積バンクとを備え、更新プログラムを主バンクに、更新前のプログラムを蓄積バンクに格納する。システム起動時に、各CPUが自己のプログラムバージョンを他のCPUに通知し、すべての主バンクのプログラムのバージョンが、正常動作可能な組み合せとなっていることを確認する。正常動作可能な組み合せとなっている場合、全てのCPUは、主バンクのプログラムを起動する。正常動作可能な組み合せではない場合、更新前のプログラムと更新後のプログラムとが混在している状態のため、各CPUを再起動し、プログラム更新前のCPUでは主バンクのプログラムを起動し、プログラム更新後のCPUでは蓄積バンクに格納した更新前のプログラムを起動する。これにより、各CPUにおいて、正常動作可能な組み合せのプログラムが実行される。 Further, the multi-CPU system described in Patent Document 2 includes a main bank and a storage bank for each of the plurality of CPUs, and stores the update program in the main bank and the program before the update in the storage bank. When the system is started, each CPU notifies its own program version to other CPUs, and it is confirmed that the versions of the programs in all main banks are a combination that allows normal operation. If the combination is capable of normal operation, all the CPUs start the main bank program. If the combination is not capable of normal operation, the pre-update program and the post-update program are mixed, so each CPU is restarted, and the program in the main bank is started in the CPU before the program update. The updated CPU activates the pre-update program stored in the storage bank. As a result, a combination program capable of normal operation is executed in each CPU.
特開2001-117760号公報JP 2001-117760 A 特開2003-16047号公報JP 2003-16047 A
 しかしながら、特許文献1に記載されたバージョンアップ管理システムでは、プログラムの更新処理の際にプログラムが正しく更新されなかった場合、システムが起動しなくなり、プログラムの更新処理の再実行も不可能な状態に陥る。そのような場合、メーカーの工場にて、専用のプログラム書き込み装置を使用して、プログラムを書き込み直す必要がある。 However, in the version upgrade management system described in Patent Document 1, if the program is not updated correctly during the program update process, the system will not start, and the program update process cannot be re-executed. I fall. In such a case, it is necessary to rewrite the program at the manufacturer's factory using a dedicated program writing device.
 また、特許文献2に記載されたマルチCPUシステムにおいては、プログラムのバージョンを確認するために、まず、各々のCPUは、自己のバージョンをメモリから読み出して特定の通信プロトコルに従って他方のCPUに送信する。また、各々のCPUは、他方のCPUから送信されたバージョンを受信して、正常動作可能な組み合せとなっていることを確認する必要がある。起動時にこのような処理を行うためには、起動プログラム又はOS(Operating System)が正常に起動する必要がある。起動プログラム又はOSの起動時にエラーが発生した場合には、各々のCPUは他方のCPUのプログラムバージョンを確認できず、再起動しても、正常動作可能な組み合せのプログラムの実行が不可能である。 In the multi-CPU system described in Patent Document 2, each CPU first reads its version from the memory and transmits it to the other CPU according to a specific communication protocol in order to confirm the version of the program. . Also, each CPU needs to receive the version transmitted from the other CPU and confirm that the combination is capable of normal operation. In order to perform such processing at the time of startup, a startup program or an OS (Operating System) needs to be normally started. If an error occurs during startup of the startup program or OS, each CPU cannot confirm the program version of the other CPU, and even when restarted, it is impossible to execute a combination of programs that can operate normally. .
 そこで、本発明は、上記の課題を解決するためになされたものであり、プログラムが正しく更新されなかった場合でも、再度プログラムを更新することができ、また、プログラムのバージョン確認が不要で、複数CPUのそれぞれにおいて、正常動作可能な組み合せのプログラムを実行できるようにすることを目的としている。 Therefore, the present invention has been made to solve the above-described problem, and even when the program is not updated correctly, the program can be updated again, and it is not necessary to check the version of the program. It is an object of each CPU to be able to execute a combination of programs that can operate normally.
 本発明の一態様に係る監視レコーダは、第1のプロセッサと、前記第1のプロセッサを起動するために使用される第1のプログラムを記憶する第1の記憶領域、及び、当該第1のプログラムとバージョンが異なり、前記第1のプロセッサを起動するために使用される第2のプログラムを記憶する第2の記憶領域を有する第1の記憶部と、第2のプロセッサと、前記第2のプロセッサを起動するために使用され、前記第1のプログラムに対応する第3のプログラムを記憶する第3の記憶領域、及び、前記第2のプロセッサを起動するために使用され、前記第2のプログラムに対応する第4のプログラムを記憶する第4の記憶領域を有する第2の記憶部と、を備え、前記第1のプロセッサは、前記第1のプログラム又は前記第2のプログラムを使用して起動するとともに、前記第3の記憶領域及び第4の記憶領域の内、起動に必要なプログラムの記憶領域を示す記憶領域情報を前記第2のプロセッサに通知し、前記第2のプロセッサは、前記第1のプロセッサから通知された記憶領域情報に示されている記憶領域に記憶されているプログラムを使用して起動することを特徴とする。 A monitoring recorder according to an aspect of the present invention includes a first processor, a first storage area that stores a first program used to start the first processor, and the first program. A first storage unit having a second storage area for storing a second program used to start up the first processor, a second processor, and the second processor And a third storage area for storing a third program corresponding to the first program, and a second storage area used for starting the second processor. And a second storage unit having a fourth storage area for storing a corresponding fourth program, wherein the first processor stores the first program or the second program. And informing the second processor of storage area information indicating a storage area of a program necessary for the activation of the third storage area and the fourth storage area. Is started using a program stored in the storage area indicated in the storage area information notified from the first processor.
 本発明の一態様によれば、プログラムが正しく更新されなかった場合でも、再度プログラムを更新することができ、また、プログラムのバージョン確認が不要で、複数CPUのそれぞれにおいて、正常動作可能な組み合せのプログラムを実行することができる。 According to one aspect of the present invention, even if the program is not updated correctly, the program can be updated again, and it is not necessary to check the version of the program. The program can be executed.
実施の形態1に係る監視レコーダの構成を概略的に示すブロック図である。1 is a block diagram schematically showing a configuration of a monitoring recorder according to Embodiment 1. FIG. 実施の形態1における記録系プログラム記憶部に記憶されているプログラムの一例を示す概略図である。4 is a schematic diagram illustrating an example of a program stored in a recording system program storage unit in Embodiment 1. FIG. 実施の形態1におけるプログラム管理領域の一例を示す概略図である。4 is a schematic diagram illustrating an example of a program management area in the first embodiment. FIG. 実施の形態1における書き込み完了フラグの値の一例を示す概略図である。6 is a schematic diagram illustrating an example of a value of a write completion flag in the first embodiment. FIG. 実施の形態1における再生系プログラム記憶部に記憶されているプログラムの一例を示す概略図である。3 is a schematic diagram showing an example of a program stored in a reproduction system program storage unit in Embodiment 1. FIG. 実施の形態1における記録部の起動動作を示すフローチャートである。3 is a flowchart showing a start-up operation of a recording unit in the first embodiment. 実施の形態1における管理領域を選択する処理の一例を示すフローチャートである。6 is a flowchart illustrating an example of processing for selecting a management area in the first embodiment. 実施の形態1における起動面を決定する処理の一例を示すフローチャートである。3 is a flowchart illustrating an example of a process for determining a startup surface in the first embodiment. 実施の形態1における再生部の起動動作を示すフローチャートである。3 is a flowchart showing a start-up operation of a playback unit in the first embodiment. 実施の形態1における、記録部の起動動作と、再生部の起動動作との関係を示す概略図である。FIG. 3 is a schematic diagram illustrating a relationship between a start operation of a recording unit and a start operation of a reproduction unit in the first embodiment. 実施の形態1における監視レコーダのプログラム更新処理を示すフローチャートである。4 is a flowchart showing a program update process of the monitoring recorder in the first embodiment. 実施の形態1における監視レコーダのプログラム更新前から更新後までのタイミングを示す概略図である。It is the schematic which shows the timing from before the program update of the monitoring recorder in Embodiment 1 to after the update.
実施の形態1.
 次に、図面を用いて、この発明の実施の形態を説明する。図面において、同一又は類似の部分には同一又は類似の符号を付している。但し、図面は模式的なものであり、各寸法の比率等は現実のものとは異なる。従って、具体的な寸法等は以下の説明を参酌して判断すべきものである。また、図面相互間においても互いの寸法の関係又は比率が異なる部分が含まれていることは勿論である。
Embodiment 1 FIG.
Next, embodiments of the present invention will be described with reference to the drawings. In the drawings, the same or similar parts are denoted by the same or similar reference numerals. However, the drawings are schematic and ratios of dimensions and the like are different from actual ones. Accordingly, specific dimensions and the like should be determined in consideration of the following description. Moreover, it is a matter of course that portions having different dimensional relationships or ratios are included between the drawings.
 図1は、実施の形態1に係る監視レコーダ110の構成を概略的に示すブロック図である。図1において、監視レコーダ110を含む監視システム100は、監視レコーダ110以外に監視カメラとしての複数のカメラ150A、150B、150C及び映像表示装置としての表示装置160を含む。 FIG. 1 is a block diagram schematically showing the configuration of the monitoring recorder 110 according to the first embodiment. In FIG. 1, a monitoring system 100 including a monitoring recorder 110 includes a plurality of cameras 150A, 150B, and 150C as monitoring cameras and a display device 160 as a video display device in addition to the monitoring recorder 110.
 監視カメラは、第1のカメラ150A、第2のカメラ150B及び第3のカメラ150Cからなり、それぞれが監視レコーダ110に接続されている。なお、第1のカメラ150A、第2のカメラ150B及び第3のカメラ150Cの各々を特に区別する必要がない場合には、カメラ150という。カメラ150は、監視対象を撮影して得られた映像データを監視レコーダ110に送信する。カメラ150は、例えば、監視レコーダ110から離れた場所に設置されてもよい。 The surveillance camera includes a first camera 150A, a second camera 150B, and a third camera 150C, each of which is connected to the surveillance recorder 110. Note that the first camera 150 </ b> A, the second camera 150 </ b> B, and the third camera 150 </ b> C are each referred to as a camera 150 when it is not necessary to distinguish between them. The camera 150 transmits video data obtained by photographing the monitoring target to the monitoring recorder 110. For example, the camera 150 may be installed at a location away from the monitoring recorder 110.
 監視レコーダ110は、カメラ150から送信された映像データを受信し記録する映像記録再生装置として機能する。表示装置160は、監視レコーダ110に接続される出力装置であり、監視レコーダ110に記録された映像データに基づく記録映像、又は、カメラ150の撮影によって生成された映像データに基づく現在映像を表示する。なお、ここでカメラ150の台数を3台としたが、3台に限られないことはいうまでもない。例えば、1台、2台又は4台以上のいずれであってもよい。カメラ150と監視レコーダ110との接続は、データのやり取りが可能な接続であれば、有線及び無線の何れの接続方式でもよく、それらが混在した接続方式でもよい。また、ネットワーク又は他の中継装置を介した接続であってもよい。 The monitoring recorder 110 functions as a video recording / reproducing device that receives and records video data transmitted from the camera 150. The display device 160 is an output device connected to the monitoring recorder 110 and displays a recorded video based on the video data recorded on the monitoring recorder 110 or a current video based on video data generated by shooting by the camera 150. . Although the number of cameras 150 is three here, it goes without saying that the number is not limited to three. For example, it may be one, two, or four or more. The connection between the camera 150 and the monitoring recorder 110 may be either a wired or wireless connection method as long as data can be exchanged, or a mixed connection method. Moreover, the connection via a network or another relay device may be used.
 図1に示されるように、監視レコーダ110は、通信I/F(InterFace)部111と、出力I/F部112と、接続I/F部113と、第1システムとしての記録系である記録部120と、第2システムとしての再生系である再生部130と、プログラム起動制御部140と、通知部145とを備える。 As shown in FIG. 1, the monitoring recorder 110 includes a communication interface (I / F) unit 111, an output I / F unit 112, a connection I / F unit 113, and a recording system as a first system. Unit 120, a playback unit 130 that is a playback system as the second system, a program activation control unit 140, and a notification unit 145.
 通信I/F部111は、カメラ150との間の通信を行うインタフェースである。例えば、通信I/F部111は、カメラ150から送信された映像データを受信する。
 出力I/F部112は、表示装置160との間の通信を行うインタフェースである。例えば、出力I/F部112は、表示装置160に再生データを出力する。
 接続I/F部113は、外部記憶装置170を接続するためのインタフェースである。
The communication I / F unit 111 is an interface that performs communication with the camera 150. For example, the communication I / F unit 111 receives video data transmitted from the camera 150.
The output I / F unit 112 is an interface that performs communication with the display device 160. For example, the output I / F unit 112 outputs reproduction data to the display device 160.
The connection I / F unit 113 is an interface for connecting the external storage device 170.
 記録部120は、通信I/F部111を介して、カメラ150から映像データを取得して、記録を行う。記録部120は、記録系プログラム記憶部121と、記録系ワークメモリ122と、情報格納部123と、第1のプロセッサとしての記録系CPU124とを備える。 The recording unit 120 acquires video data from the camera 150 via the communication I / F unit 111 and performs recording. The recording unit 120 includes a recording system program storage unit 121, a recording system work memory 122, an information storage unit 123, and a recording system CPU 124 as a first processor.
 記録系プログラム記憶部121は、監視レコーダ110の電源が投入され記録系CPU124が起動処理を開始するときに実行するプログラムを記憶する記憶部である。記録系プログラム記憶部121は、電源を落としても記憶内容が保持される不揮発のメモリにより実現できる。実施の形態1では、記録系CPU124で実行されるプログラムは、ブートローダ、OS及び記録系AP(Application Program)であるものとして説明する。 The recording system program storage unit 121 is a storage unit that stores a program to be executed when the power of the monitoring recorder 110 is turned on and the recording system CPU 124 starts a startup process. The recording system program storage unit 121 can be realized by a non-volatile memory that retains stored contents even when the power is turned off. In the first embodiment, it is assumed that the program executed by the recording system CPU 124 is a boot loader, an OS, and a recording system AP (Application Program).
 ブートローダは、OSを起動するための処理を実行するプログラムである。例えば、ブートローダは、実行するOSの指定、ワークメモリの初期化及び起動ログの取得等を行う。さらに、ブートローダは、OSに比べ機能が制限されており、一般的に複数の処理を並列的に処理することができない。OSは、記録部120の全体を管理するための基本ソフトである。 The boot loader is a program that executes processing for starting the OS. For example, the boot loader specifies an OS to be executed, initializes a work memory, acquires a start log, and the like. Furthermore, the boot loader has limited functions compared to the OS, and generally cannot process a plurality of processes in parallel. The OS is basic software for managing the entire recording unit 120.
 記録系APは、例えば、カメラ150から送信された映像データを受け取り、情報格納部123に記録する動作を行うプログラム等を含む。記録系APは、OSの起動後に、処理を開始することができる。また、OSの起動後であれば、同じAPを複数同時に実行することができ、また、異なるAPを複数同時に実行することもできる。言い換えると、OS及び記録系APは、記録系CPU124が予め定められた処理を行うためのプログラムである。 The recording system AP includes, for example, a program that receives the video data transmitted from the camera 150 and records it in the information storage unit 123. The recording AP can start processing after the OS is started. Also, after the OS is started, a plurality of the same APs can be executed simultaneously, and a plurality of different APs can be executed simultaneously. In other words, the OS and the recording system AP are programs for the recording system CPU 124 to perform predetermined processing.
 図2は、記録系プログラム記憶部121に記憶されているプログラムの一例を示す概略図である。
 図示するように、記録系プログラム記憶部121は、記録系ブートローダ121aと、プログラム管理領域121fと、第1の記憶領域としての第1の記録系プログラム領域121gと、第2の記憶領域としての第2の記録系プログラム領域121hとを有する。
 また、第1の記録系プログラム領域121gは、第1の記録系OS121bと、第1の記録系AP121cとを有する。
 第2の記録系プログラム領域121hは、第2の記録系OS121dと、第2の記録系AP121eとを有する。
 なお、監視レコーダ110を起動する際に、第1の起動面が指定されている場合には、第1の記録系プログラム領域121gに記憶されているプログラム(第1のプログラム)が使用され、第2の起動面が指定されている場合には、第2の記録系プログラム領域121hに記憶されているプログラム(第2のプログラム)が使用される。
FIG. 2 is a schematic diagram illustrating an example of a program stored in the recording system program storage unit 121.
As illustrated, the recording system program storage unit 121 includes a recording system boot loader 121a, a program management area 121f, a first recording system program area 121g as a first storage area, and a second storage area as a second storage area. 2 recording system program areas 121h.
The first recording system program area 121g has a first recording system OS 121b and a first recording system AP 121c.
The second recording system program area 121h includes a second recording system OS 121d and a second recording system AP 121e.
When starting the monitoring recorder 110, if the first startup surface is designated, the program (first program) stored in the first recording system program area 121g is used, and the first When the second activation surface is designated, the program (second program) stored in the second recording system program area 121h is used.
 図3は、プログラム管理領域121fの一例を示す概略図である。
 図示するように、プログラム管理領域121fは、第1の管理領域301と、第2の管理領域302とを有する。
 また、第1の管理領域301及び第2の管理領域302は、書き込み完了フラグ303a、303b(特に各々を区別する必要がないときは、書き込み完了フラグ303という)と、管理領域バージョン番号304a、304b(特に各々を区別する必要がないときは、管理領域バージョン番号304という)と、記憶領域指定値としての起動面指定値305a、305b(特に各々を区別する必要がないときは、起動面指定値305という)と、OSバージョン番号306a、306b(特に各々を区別する必要がないときは、OSバージョン番号306という)と、APバージョン番号307a、307b(特に各々を区別する必要がないときは、APバージョン番号307という)と、CRC値308a、308b(特に各々を区別する必要がないときは、CRC値308という)とを有する。
 監視レコーダ110は、第1の管理領域301と第2の管理領域302という2つの領域を設けることにより冗長性を持たせ、一方の領域の内容が壊れた場合でも他方の領域の情報により、起動することができる。
FIG. 3 is a schematic diagram showing an example of the program management area 121f.
As illustrated, the program management area 121 f includes a first management area 301 and a second management area 302.
The first management area 301 and the second management area 302 have write completion flags 303a and 303b (referred to as the write completion flag 303 when there is no need to distinguish between them) and management area version numbers 304a and 304b. (When there is no particular need to distinguish each, it is referred to as a management area version number 304) and activation plane designation values 305a and 305b as storage area designation values (when there is no particular need to distinguish each, the activation plane designation value) 305), OS version numbers 306a and 306b (especially OS version number 306 when it is not necessary to distinguish each) and AP version numbers 307a and 307b (especially when it is not necessary to distinguish each other, AP Version number 307) and CRC values 308a and 308b (particularly distinguishing each) When not needed, and a called CRC value 308).
The monitoring recorder 110 provides redundancy by providing two areas, a first management area 301 and a second management area 302. Even when the contents of one area are broken, the monitoring recorder 110 is activated by the information of the other area. can do.
 記録部120で使用する記録系OS及び記録系APは、セキュリティ対策、性能向上、操作性向上又は不具合の改修等の理由により、更新される。プログラムの更新は、実行中の記録系OS及び記録系APが格納されたプログラム領域とは異なるプログラム領域の記録系OS及び記録系APを書き換えることにより行われる。例えば、記録系CPU124が、第1の記録系プログラム領域121gに格納された第1の記録系OS121b及び第1の記録系AP121cを実行している場合、第2の記録系プログラム領域121h内の第2の記録系OS121d及び第2の記録系AP121eが新しいプログラムに書き換えられる。
 この場合、第1の記録系OS121b及び第1の記録系AP121cは、第2の記録系OS121d及び第2の記録系AP121eの古いバージョンのプログラムとなる。古いバージョンのプログラムは、既に処理が実行されており、後述する再生部130と互換性のとれた、安定して実行することのできるプログラムである。従って、記録系CPU124は、起動時に、前回起動した第1の記録系OS121b及び第1の記録系AP121cで起動するか、又は、新しく更新された第2の記録系OS121d及び第2の記録系AP121eで起動するかを選択する。この選択のための基となる起動面指定値305が、プログラム管理領域121fに格納されている。プログラムの更新の際には、新しく更新されたOS及びAPを選択するようにプログラム管理領域121fが書き換えられる。
The recording system OS and the recording system AP used in the recording unit 120 are updated for reasons such as security measures, performance improvement, operability improvement, or defect repair. The program is updated by rewriting the recording system OS and recording system AP in a program area different from the program area in which the recording system OS and recording system AP being executed are stored. For example, when the recording system CPU 124 is executing the first recording system OS 121b and the first recording system AP 121c stored in the first recording system program area 121g, the second recording system program area 121h in the second recording system program area 121h is used. The second recording system OS 121d and the second recording system AP 121e are rewritten with new programs.
In this case, the first recording system OS 121b and the first recording system AP 121c are older versions of the programs of the second recording system OS 121d and the second recording system AP 121e. The old version of the program has already been processed, and is a program that can be stably executed and is compatible with the playback unit 130 described later. Accordingly, at the time of activation, the recording system CPU 124 is activated by the first recording system OS 121b and the first recording system AP 121c that were activated last time, or the newly updated second recording system OS 121d and second recording system AP 121e. Select whether to start with. A starting surface designation value 305 that is a basis for this selection is stored in the program management area 121f. When the program is updated, the program management area 121f is rewritten to select a newly updated OS and AP.
 プログラム管理領域121fは、プログラム更新の度に、内容が更新される。プログラム管理領域121fについて詳細を以下に説明する。 The contents of the program management area 121f are updated every time the program is updated. Details of the program management area 121f will be described below.
 書き込み完了フラグ303は、プログラム更新の状況を示すフラグである。
 図4は、書き込み完了フラグの値の一例を示す概略図である。図4の例では、書き込み完了フラグが「0xffffffff」のときには、プログラム更新の途中であることを示す。また、書き込み完了フラグが「0x000000000」のときには、プログラムの更新が完了し、すでに1回以上、監視レコーダ110が起動されたことを示している。さらに、書き込み完了フラグが「0x80000000」のときには、プログラムの更新が完了したものの、まだ1度も監視レコーダ110が起動されていないことを示している。
 この例の場合、プログラムの更新開始の際に、書き込み完了フラグが「0xffffffff」に変更され、プログラム更新が完了した時点で、書き込み完了フラグが「0x80000000」に変更される。次に、監視レコーダ110が正常に起動した時点で、書き込み完了フラグが「0x00000000」に変更される。このようにすることで、記録系CPU124は、書き込み完了フラグ303により、プログラム更新の状況を判断することができる。
The write completion flag 303 is a flag indicating the program update status.
FIG. 4 is a schematic diagram illustrating an example of the value of the write completion flag. In the example of FIG. 4, when the write completion flag is “0xffffffff”, it indicates that the program is being updated. Further, when the write completion flag is “0x000000000000”, it indicates that the program update has been completed and the monitoring recorder 110 has already been started at least once. Furthermore, when the write completion flag is “0x80000000”, it indicates that the update of the program is completed, but the monitoring recorder 110 has not been activated yet.
In this example, the write completion flag is changed to “0xffffffff” when the program update is started, and the write completion flag is changed to “0x80000000” when the program update is completed. Next, when the monitoring recorder 110 starts up normally, the write completion flag is changed to “0x00000000”. In this way, the recording system CPU 124 can determine the program update status from the write completion flag 303.
 管理領域バージョン番号304は、それぞれの管理領域(第1の管理領域301又は第2の管理領域302)のバージョンを示すためのバージョン番号である。例えば、最初のプログラム書き込みの際に、「0」を書き込まれ、それ以降のプログラム更新の際に「1」ずつインクリメントした値が書き込まれる。これにより、第1の管理領域301の管理領域バージョン番号304aと第2の管理領域302の管理領域バージョン番号304bとを比較することにより、どちらが最新のものであるかを判定することが可能となる。 Management area version number 304 is a version number for indicating the version of each management area (first management area 301 or second management area 302). For example, “0” is written at the first program write, and a value incremented by “1” is written at the subsequent program update. As a result, by comparing the management area version number 304a of the first management area 301 and the management area version number 304b of the second management area 302, it is possible to determine which is the latest. .
 起動面指定値305は、記録系プログラム記憶部121内の第1の記録系プログラム領域121g及び第2の記録系プログラム領域121hのいずれの領域のプログラムを用いて起動するかを示すための値である。また、起動面指定値305は、後述する、再生系プログラム記憶部131内の第1の再生系プログラム領域131g及び第2の再生系プログラム領域131hのいずれの領域のプログラムを用いて起動するかを示すための値でもある。
 仮に、記録系プログラム記憶部121と再生系プログラム記憶部131のそれぞれに、起動に用いるプログラム領域を示す起動面指定値305を持たせた場合、起動面指定値305の書き込み誤り、又は、経年劣化による起動面指定値305の値の変化により、記録系CPU124と再生系CPU133で想定しない組み合せのプログラムを使用する可能性がある。これに対し、本実施の形態では、記録部120と再生部130とで共通の起動面指定値305を使用するため、記録系CPU124と再生系CPU133で起動面の不整合が発生しないようにすることができる。
The start surface designation value 305 is a value for indicating which of the first recording system program area 121g and the second recording system program area 121h in the recording system program storage unit 121 is to be used for activation. is there. The activation surface designation value 305 indicates which of the first reproduction system program area 131g and the second reproduction system program area 131h in the reproduction system program storage unit 131, which will be described later, is used for activation. It is also a value to show.
If each of the recording system program storage unit 121 and the playback system program storage unit 131 has an activation surface designation value 305 indicating a program area used for activation, a writing error of the activation surface designation value 305 or aging deterioration is caused. Due to the change in the value of the activation surface designation value 305 due to the recording system CPU 124 and the reproduction system CPU 133, there is a possibility of using a combination program that is not supposed to be used. On the other hand, in the present embodiment, since a common activation surface designation value 305 is used by the recording unit 120 and the reproduction unit 130, inconsistency of activation surfaces between the recording system CPU 124 and the reproduction system CPU 133 does not occur. be able to.
 起動面指定値305が、例えば、「0xffffffff」のとき、記録系CPU124は、記録系プログラム記憶部121内の第1の記録系プログラム領域121gのプログラムを用いて起動する。また、後述するように、再生系CPU133は、再生系プログラム記憶部131内の第1の再生系プログラム領域131gのプログラムを用いて起動する。便宜的に、ここでは、第1の記録系プログラム領域121gと第1の再生系プログラム領域131gを第1の起動面と表現する。
 起動面指定値305が、例えば、「0x00000000」のとき、記録系CPU124は、記録系プログラム記憶部121内の第2の記録系プログラム領域121hのプログラムを用いて起動する。また、再生系CPU133は、後述するように、再生系プログラム記憶部131内の第2の再生系プログラム領域131hのプログラムを用いて起動する。便宜的に、ここでは、第2の記録系プログラム領域121hと第2の再生系プログラム領域131hを第2の起動面と表現する。
 起動面指定値305は、ここに記載した例のように、多ビットの値として冗長性を持たせることにより、数ビットのデータ化けが発生しても、起動面を正しく選択することが可能となる。
For example, when the activation surface designation value 305 is “0xffffffff”, the recording system CPU 124 is activated using the program in the first recording system program area 121 g in the recording system program storage unit 121. Further, as will be described later, the reproduction system CPU 133 is activated using a program in the first reproduction system program area 131g in the reproduction system program storage unit 131. For the sake of convenience, here, the first recording system program area 121g and the first reproduction system program area 131g are expressed as a first startup surface.
For example, when the activation surface designation value 305 is “0x00000000”, the recording system CPU 124 is activated using the program in the second recording system program area 121 h in the recording system program storage unit 121. Further, as will be described later, the reproduction system CPU 133 is activated using a program in the second reproduction system program area 131h in the reproduction system program storage unit 131. For convenience, here, the second recording system program area 121h and the second reproduction system program area 131h are expressed as a second activation surface.
As shown in the example described here, the activation surface designation value 305 can be selected correctly even if data corruption of several bits occurs by providing redundancy as a multi-bit value. Become.
 OSバージョン番号306は、記録系プログラム記憶部121内に格納する第1の記録系OS121b又は第2の記録系OS121dのバージョン番号を示す。
 また、APバージョン番号307は、記録系プログラム記憶部121内に格納する第1の記録系AP121c又は第2の記録系AP121eのバージョン番号を示す。
 ただし、これらのOSとAPのバージョン番号は、起動するプログラムの選択の際には使用せず、APにてプログラムのバージョンを管理する際に使用するためのものである。
The OS version number 306 indicates the version number of the first recording system OS 121b or the second recording system OS 121d stored in the recording system program storage unit 121.
The AP version number 307 indicates the version number of the first recording system AP 121c or the second recording system AP 121e stored in the recording system program storage unit 121.
However, these OS and AP version numbers are not used when selecting a program to be activated, but are used when managing the version of the program at the AP.
 CRC値308は、管理領域(第1の管理領域301又は第2の管理領域302)の情報が壊れておらず正常であること、言い換えると、管理領域の誤りを確認するためのチェック値である。
 第1の管理領域301の情報が正常であることの確認のためには、第1の管理領域301内のCRC値308aが使用され、第2の管理領域302の情報が正常であることの確認のためには、第2の管理領域302内のCRC値308bが使用される。
 第1の管理領域301内のCRC値308aは、例えば、第1の管理領域301内の書き込み完了フラグ303aと、管理領域バージョン番号304aと、起動面指定値305aと、OSバージョン番号306aと、APバージョン番号307aとが格納されている領域の値に基づいて計算される。
 ここで、CRC値を計算するためのCRC多項式としては、例えば、x^16+x^12+x^5+1を使用する。ただし、^はべき乗を表すものとする。またCRC多項式としては、この多項式に限らず、他の多項式としても良い。
 このCRC値308を使用して、第1の管理領域301と第2の管理領域302のそれぞれの情報が壊れているかどうかを確認することが可能である。なおCRC値308は、第1の管理領域301内の書き込み完了フラグ303a、管理領域バージョン番号304a、起動面指定値305a、OSバージョン番号306a及びAPバージョン番号307a等、CRC計算対象領域の情報の少なくとも1つ、又は、複数が更新される度に、再度計算され、新しいCRC値により更新されるものとする。
The CRC value 308 is a check value for confirming that the information in the management area (the first management area 301 or the second management area 302) is normal without being broken, in other words, an error in the management area. .
In order to confirm that the information in the first management area 301 is normal, the CRC value 308a in the first management area 301 is used, and it is confirmed that the information in the second management area 302 is normal. For this purpose, the CRC value 308b in the second management area 302 is used.
The CRC value 308a in the first management area 301 includes, for example, a write completion flag 303a in the first management area 301, a management area version number 304a, a startup surface designation value 305a, an OS version number 306a, an AP The version number 307a is calculated based on the value of the area in which it is stored.
Here, for example, x ^ 16 + x ^ 12 + x ^ 5 + 1 is used as the CRC polynomial for calculating the CRC value. However, ^ represents a power. The CRC polynomial is not limited to this polynomial, and may be other polynomials.
Using this CRC value 308, it is possible to check whether the information in each of the first management area 301 and the second management area 302 is broken. Note that the CRC value 308 is at least information on the CRC calculation target area such as the write completion flag 303a, the management area version number 304a, the activation surface designation value 305a, the OS version number 306a, and the AP version number 307a in the first management area 301. Each time one or more are updated, it is calculated again and updated with a new CRC value.
 以下、プログラム管理領域121fに記憶されている情報をプログラム管理情報といい、第1の管理領域301に記憶されている情報を第1のプログラム管理情報といい、第2の管理領域302に記憶されている情報を第2のプログラム管理情報という場合がある。 Hereinafter, the information stored in the program management area 121f is referred to as program management information, and the information stored in the first management area 301 is referred to as first program management information and is stored in the second management area 302. This information may be referred to as second program management information.
 以下では、第1の記録系OS121b及び第1の記録系AP121cを第1の記録系プログラム(第1のプログラム)といい、第2の記録系OS121d及び第2の記録系AP121eを第2の記録系プログラム(第2のプログラム)という場合もある。 Hereinafter, the first recording system OS 121b and the first recording system AP 121c are referred to as a first recording system program (first program), and the second recording system OS 121d and the second recording system AP 121e are used as a second recording system. Sometimes referred to as a system program (second program).
 プログラムの更新は、監視レコーダ110の接続I/F部113に外部記憶装置170を接続し、データを読み出すことで行われる。外部記憶装置170は、例えば、USBメモリのような記憶媒体であってもよいし、ネットワークに接続されたコンピュータ等の情報処理装置であってもよい。 The program is updated by connecting the external storage device 170 to the connection I / F unit 113 of the monitoring recorder 110 and reading the data. The external storage device 170 may be a storage medium such as a USB memory, or may be an information processing device such as a computer connected to a network.
 図1に戻り、カメラ150は、監視レコーダ110から電源の投入制御を行うことが可能であり、監視レコーダ110の電源投入以降の起動処理中に記録部120から送信される制御信号によって起動を開始する。 Returning to FIG. 1, the camera 150 can perform power-on control from the monitoring recorder 110, and starts activation by a control signal transmitted from the recording unit 120 during the activation processing after the power-on of the monitoring recorder 110. To do.
 記録系ワークメモリ122は、記録系CPU124が作業領域として使用するメモリである。記録系ワークメモリ122は、例えば、RAM(Random Access Memory)である。記録系CPU124は、OS又はAP等を記録系プログラム記憶部121から読み出し、記録系ワークメモリ122に書き込んだ上で実行し、記録部120の動作を制御する。 The recording work memory 122 is a memory used by the recording CPU 124 as a work area. The recording work memory 122 is, for example, a RAM (Random Access Memory). The recording system CPU 124 reads the OS or AP from the recording system program storage unit 121, writes it in the recording system work memory 122, executes it, and controls the operation of the recording unit 120.
 情報格納部123は、カメラ150で撮影された映像の映像データを記録する情報記憶部である。情報格納部123は、例えば、フラッシュメモリ又はHDD(Hard Disk Drive)といった記憶媒体で構成される。なお、情報格納部123は、記録部120の外部、又は、監視レコーダ110の外部に切り離して独立に構成されてもよい。また、情報格納部123は、監視レコーダ110に、着脱可能に構成されてもよい。 The information storage unit 123 is an information storage unit that records video data of video captured by the camera 150. The information storage unit 123 is configured by a storage medium such as a flash memory or an HDD (Hard Disk Drive), for example. Note that the information storage unit 123 may be configured independently by being separated from the outside of the recording unit 120 or the outside of the monitoring recorder 110. The information storage unit 123 may be configured to be detachable from the monitoring recorder 110.
 記録系CPU124は、記録系プログラム記憶部121に記憶されている第1の記録系プログラム又は第2の記録系プログラムを起動して、記録部120での処理を制御する記録系の処理部である。記録系CPU124は、監視レコーダ110の電源が投入され、プログラム起動制御部140から起動処理開始の命令が発行されると、その命令に従い起動処理を順次実行する。また、記録系CPU124は、自己の起動処理だけでなく、例えば、カメラ150の起動を制御する機能も有する。記録系CPU124は、自己の起動状況だけでなく、記録系CPU124が起動制御を行うものの起動状況を示す情報を、例えば、プログラム起動制御部140又は情報格納部123に出力する機能を有する。
 さらに、記録系CPU124は、監視レコーダ110の電源投入時に、記録系プログラム記憶部121から、OS又はAP等を、記録系ワークメモリ122に読み出して実行し、記録部120の起動動作を制御する。
The recording system CPU 124 is a recording system processing unit that activates the first recording system program or the second recording system program stored in the recording system program storage unit 121 and controls processing in the recording unit 120. . When the power of the monitoring recorder 110 is turned on and an instruction for starting the activation process is issued from the program activation control unit 140, the recording system CPU 124 sequentially executes the activation process according to the instruction. In addition, the recording system CPU 124 has a function of controlling the activation of the camera 150, for example, in addition to its own activation process. The recording system CPU 124 has a function of outputting not only its own activation status but also information indicating the activation status of what the recording system CPU 124 performs activation control to, for example, the program activation control unit 140 or the information storage unit 123.
Further, when the monitoring recorder 110 is turned on, the recording system CPU 124 reads out the OS or AP from the recording system program storage unit 121 to the recording system work memory 122 and executes it, thereby controlling the activation operation of the recording unit 120.
 信号線180は、記録系CPU124で決定した、起動に必要なプログラムの記憶領域を示す記憶領域情報としての起動面情報を再生系CPU133に伝えるための信号線である。起動面情報は、2つのプログラム領域の何れかを選択して、そこに格納されたプログラムを実行するための情報であるため、信号線180は、1度に1ビットのデータを伝達可能な信号線である。起動面情報は、1回の起動につき、1回更新されるだけの情報であるため、信号線180は、低速の信号線により実現できる。また、記録系CPU124から再生系CPU133に向けて起動面情報を伝達できれば良いため、単方向の信号線により実現できる。そのため、記録系CPU124と再生系CPU133において、信号線180が接続されるポートとして、送受信可能な双方向ポートは不要である。記録系CPU124は送信ポート、再生系CPU133は受信ポートのみ備えていれば良い。 The signal line 180 is a signal line for transmitting the activation surface information as the storage area information indicating the storage area of the program necessary for activation determined by the recording system CPU 124 to the reproduction system CPU 133. Since the activation surface information is information for selecting one of the two program areas and executing the program stored therein, the signal line 180 is a signal that can transmit one bit of data at a time. Is a line. Since the activation surface information is information that is updated only once per activation, the signal line 180 can be realized by a low-speed signal line. Further, since it is only necessary to transmit the activation surface information from the recording system CPU 124 to the reproduction system CPU 133, it can be realized by a unidirectional signal line. Therefore, in the recording system CPU 124 and the reproduction system CPU 133, a bidirectional port capable of transmitting and receiving is not necessary as a port to which the signal line 180 is connected. The recording CPU 124 only needs to have a transmission port, and the reproduction CPU 133 only needs to have a reception port.
 信号線181は、記録系CPU124と再生系CPU133の両方が起動完了した後で、CPU間で通信するための双方向の信号線である。信号線181は、信号線180に比較して大容量のデータを高速に伝送することが可能な信号線により構成する。信号線181は、例えば、イーサネット(登録商標)により実現できる。 The signal line 181 is a bidirectional signal line for communicating between the CPUs after both the recording system CPU 124 and the reproduction system CPU 133 have been activated. The signal line 181 includes a signal line capable of transmitting a large amount of data at a higher speed than the signal line 180. The signal line 181 can be realized by, for example, Ethernet (registered trademark).
 システムが起動完了するまでは、信号線181による高速通信は使用できないため、信号線180により起動に必要な情報を記録系CPU124から再生系CPU133へ伝達することができる。また、システムが起動した後は、信号線181により、記録系CPU124と再生系CPU133の間でデータを高速に伝送することができる。 Since high-speed communication using the signal line 181 cannot be used until the activation of the system is completed, information necessary for activation can be transmitted from the recording system CPU 124 to the reproduction system CPU 133 through the signal line 180. In addition, after the system is activated, data can be transmitted at high speed between the recording CPU 124 and the reproduction CPU 133 via the signal line 181.
 プログラム更新の際に、記録系CPU124から再生系CPU133に新しいプログラムを伝送する必要がある。また、再生系CPU133が受信した新しいプログラムを再生系プログラム記憶部131に書き込んだ後に、再生系CPU133から記録系CPU124に書き込み完了を通知する必要がある。プログラムの更新は、記録系CPU124と再生系CPU133の両方が起動完了し、信号線181によるCPU間通信も有効となった後で実施される。このため、信号線181により、新しいプログラムの伝送、再生系CPU133での新しいプログラムの書き込み完了を通知することができる。 When the program is updated, it is necessary to transmit a new program from the recording system CPU 124 to the reproduction system CPU 133. Further, after writing the new program received by the playback system CPU 133 into the playback system program storage unit 131, it is necessary to notify the recording system CPU 124 of the completion of writing from the playback system CPU 133. The program update is performed after both the recording system CPU 124 and the playback system CPU 133 have been activated and the inter-CPU communication via the signal line 181 is also valid. Therefore, the signal line 181 can notify the transmission of a new program and the completion of writing of the new program in the reproduction system CPU 133.
 再生部130は、記録部120内の情報格納部123に記録された映像データに基づいて、映像を再生した再生データを生成して、この再生データを表示装置160に送り、映像データに基づく映像を表示装置160に表示させる。再生部130は、カメラ150によって撮影された映像データに基づく映像をリアルタイムで表示装置160に表示させることもできる。再生部130は、再生系プログラム記憶部131と、再生系ワークメモリ132と、第2のプロセッサとしての再生系CPU133とを備える。 Based on the video data recorded in the information storage unit 123 in the recording unit 120, the playback unit 130 generates playback data that plays back the video, sends the playback data to the display device 160, and the video based on the video data. Is displayed on the display device 160. The playback unit 130 can also display the video based on the video data captured by the camera 150 on the display device 160 in real time. The playback unit 130 includes a playback system program storage unit 131, a playback system work memory 132, and a playback system CPU 133 as a second processor.
 再生系プログラム記憶部131は、監視レコーダ110の電源が投入され再生系CPU133が起動処理を開始するときに実行するプログラムが記憶されている記憶部である。実施の形態1では、再生系CPU133で実行されるプログラムは、ブートローダ、OS及び再生系APであるものとして説明する。 The reproduction system program storage unit 131 is a storage unit that stores a program that is executed when the power of the monitoring recorder 110 is turned on and the reproduction system CPU 133 starts a startup process. In the first embodiment, it is assumed that the programs executed by the reproduction system CPU 133 are a boot loader, an OS, and a reproduction system AP.
 ブートローダは、上述のように、OSを起動するための処理を実行するプログラムである。OSは、再生部130の全体を管理するための基本ソフトである。
 再生系APは、例えば、情報格納部123に記録された映像データを複数読み出し、読み出した複数の映像データに基づいて、複数の映像を表示装置160に並べて表示させるプログラムである。再生系APは、OSが起動後に、処理を開始することができる。また、OSの起動後であれば、同じAPを複数同時に実行することができ、また、異なるAPを複数同時に実行することもできる。
As described above, the boot loader is a program that executes processing for starting the OS. The OS is basic software for managing the entire playback unit 130.
For example, the reproduction AP is a program that reads a plurality of video data recorded in the information storage unit 123 and displays a plurality of videos side by side on the display device 160 based on the plurality of read video data. The playback AP can start processing after the OS is activated. Also, after the OS is started, a plurality of the same APs can be executed simultaneously, and a plurality of different APs can be executed simultaneously.
 図5は、再生系プログラム記憶部131に記憶されているプログラムの一例を示す概略図である。
 図示するように、再生系プログラム記憶部131は、再生系ブートローダ131aと、第3の記憶領域としての第1の再生系プログラム領域131gと、第4の記憶領域としての第2の再生系プログラム領域131hとを有する。第1の再生系プログラム領域131gは、第1の再生系OS131bと、第1の再生系AP131cとを有する。第2の再生系プログラム領域131hは、第2の再生系OS131dと、第2の再生系AP131eとを有する。
FIG. 5 is a schematic diagram illustrating an example of a program stored in the reproduction system program storage unit 131.
As illustrated, the reproduction system program storage unit 131 includes a reproduction system boot loader 131a, a first reproduction system program area 131g as a third storage area, and a second reproduction system program area as a fourth storage area. 131h. The first reproduction system program area 131g has a first reproduction system OS 131b and a first reproduction system AP 131c. The second playback system program area 131h includes a second playback system OS 131d and a second playback system AP 131e.
 再生部130で使用する再生系OS及び再生系APは、セキュリティ対策、性能向上、操作性向上又は不具合の改修等の理由により、更新される。プログラムの更新は、実行中の再生系OS及び再生系APが格納されたプログラム領域とは異なるプログラム領域の再生系OS及び再生系APを書き換えることにより行われる。例えば、再生系CPU133が、第1の再生系プログラム領域131gに格納された第1の再生系OS131b及び第1の再生系AP131cを実行している場合、第2の再生系プログラム領域131h内の第2の再生系OS131d及び第2の再生系AP131eが新しいプログラムに書き換えられる。
 この場合、第1の再生系OS131b及び第1の再生系AP131cは、第2の再生系OS131d及び第2の再生系AP131eの古いバージョンのプログラムである。古いバージョンのプログラムは、既に処理が実行されており、記録部120と互換性のとれた、安定して実行することのできるプログラムである。従って、再生系CPU133は、起動時に、前回起動した第1の再生系OS131b及び第1の再生系AP131cで起動するか、又は、新しく更新された第2の再生系OS131d及び第2の再生系AP131eで起動するかを選択する。この選択のために、再生系CPU133は、記録系CPU124が出力した起動面情報を受信して使用する。
The playback system OS and playback system AP used in the playback unit 130 are updated for reasons such as security measures, performance improvement, operability improvement, or defect repair. The program is updated by rewriting the playback system OS and playback system AP in a program area different from the program area in which the playback system OS and playback system AP being executed are stored. For example, when the reproduction system CPU 133 is executing the first reproduction system OS 131b and the first reproduction system AP 131c stored in the first reproduction system program area 131g, the reproduction system CPU 133 executes the first reproduction system OS 131b and the first reproduction system AP 131c in the second reproduction system program area 131h. The second playback system OS 131d and the second playback system AP 131e are rewritten with new programs.
In this case, the first reproduction system OS 131b and the first reproduction system AP 131c are old versions of the programs of the second reproduction system OS 131d and the second reproduction system AP 131e. The old version of the program is a program that has already been processed and is compatible with the recording unit 120 and can be stably executed. Therefore, the playback system CPU 133 starts up with the first playback system OS 131b and the first playback system AP 131c that were started last time, or the newly updated second playback system OS 131d and the second playback system AP 131e. Select whether to start with. For this selection, the reproduction system CPU 133 receives and uses the activation surface information output from the recording system CPU 124.
 以下では、第1の再生系OS131b及び第1の再生系AP131cを第1の再生系プログラム(第3のプログラム)といい、第2の再生系OS131d及び第2の再生系AP131eを第2の再生系プログラム(第4のプログラム)という場合もある。 Hereinafter, the first playback system OS 131b and the first playback system AP 131c are referred to as a first playback system program (third program), and the second playback system OS 131d and the second playback system AP 131e are used as a second playback system. Sometimes referred to as a system program (fourth program).
 記録系CPU124から再生系CPU133へ起動面情報を伝える構成としているため、再生系プログラム記憶部131は、起動面に関する情報を格納しておくためのプログラム管理領域を必要としない。そのため、再生系プログラム記憶部131は、プログラム管理領域がある場合に比べて、記憶容量を小さくすることが可能となる。また、再生系プログラム記憶部131に格納したプログラムの更新の際に、再生系プログラム記憶部131内のプログラム管理領域への書き込みが不要となるため、プログラム更新の時間を短縮することができる。 Since the startup surface information is transmitted from the recording system CPU 124 to the playback system CPU 133, the playback system program storage unit 131 does not need a program management area for storing information about the startup surface. Therefore, the playback system program storage unit 131 can have a smaller storage capacity than when there is a program management area. Further, when updating the program stored in the reproduction system program storage unit 131, it is not necessary to write to the program management area in the reproduction system program storage unit 131, so that the program update time can be shortened.
 図1に戻り、再生系ワークメモリ132は、再生系CPU133が作業領域として使用するメモリである。再生系ワークメモリ132は、例えば、RAMである。再生系CPU133は、OS又はAP等を再生系プログラム記憶部131から読み出し、再生系ワークメモリ132に書き込んだ上で実行し、再生部130の起動動作を制御する。 Returning to FIG. 1, the reproduction system work memory 132 is a memory used by the reproduction system CPU 133 as a work area. The reproduction work memory 132 is, for example, a RAM. The playback system CPU 133 reads the OS or AP from the playback system program storage unit 131, writes it in the playback system work memory 132, executes it, and controls the startup operation of the playback unit 130.
 再生系CPU133は、再生系プログラム記憶部131に記憶されている第1の再生系プログラム又は第2の再生系プログラムを起動して、再生部130での処理を制御する再生系の処理部である。再生系CPU133は、監視レコーダ110の電源が投入され、プログラム起動制御部140から起動処理開始の命令が発行されると、その命令に従い起動処理を順次実行する。 The reproduction system CPU 133 is a reproduction system processing unit that activates the first reproduction system program or the second reproduction system program stored in the reproduction system program storage unit 131 and controls processing in the reproduction unit 130. . When the power of the monitoring recorder 110 is turned on and a start command for starting processing is issued from the program start control unit 140, the playback system CPU 133 sequentially executes the start processing according to the command.
 プログラム起動制御部140は、監視レコーダ110での起動処理、言い換えると、記録系CPU124及び再生系CPU133における起動処理を制御する。例えば、プログラム起動制御部140は、監視レコーダ110の電源が投入されると、記録系CPU124及び再生系CPU133の起動状況を確認する。そして、プログラム起動制御部140は、それぞれに対し起動処理開始命令を発行する。プログラム起動制御部140は、予め記録系CPU124及び再生系CPU133の起動動作における情報、例えば、起動処理の順序を記憶しており、正しくその順序で起動動作が進むように起動状況を確認し、起動処理命令を発行する。 The program activation control unit 140 controls the activation process in the monitoring recorder 110, in other words, the activation process in the recording system CPU 124 and the reproduction system CPU 133. For example, when the monitoring recorder 110 is turned on, the program activation control unit 140 checks the activation status of the recording system CPU 124 and the reproduction system CPU 133. Then, the program activation control unit 140 issues an activation process start command to each. The program activation control unit 140 stores in advance information on the activation operation of the recording CPU 124 and the reproduction CPU 133, for example, the order of activation processing, and confirms the activation status so that the activation operation proceeds correctly in that order, and the activation is started. Issue processing instructions.
 また、プログラム起動制御部140は、記録系CPU124及び再生系CPU133の少なくとも何れか一方の起動にエラーが生じた場合には、記録系CPU124及び再生系CPU133を再起動させる。例えば、プログラム起動制御部140は、記録系CPU124及び再生系CPU133が起動状況を通知してからの経過時間を計測しており、次の起動状況を通知するまでに予め定められた時間を経過した場合には、記録系CPU124及び再生系CPU133を再起動させるためのリセット信号を出力する。
 さらに、プログラム起動制御部140は、記録系CPU124及び再生系CPU133を再起動させる際には、記録系CPU124に、起動面指定値305で指定される起動面とは別の起動面に記憶されているプログラムを使用して起動するように指示する。例えば、プログラム起動制御部140は、監視レコーダ110の再起動を行う際には、記録系CPU124及び再生系CPU133が再起動を行うプログラムを動作実績のある古いバージョンに戻すために、起動面変更フラグの値を変更して出力する。プログラム起動制御部140は、記録系CPU124が最新のバージョンである第2の記録系プログラムの起動に失敗した場合、又は、再生系CPU133が最新のバージョンである第2の再生系プログラムの起動に失敗した場合には、記録系CPU124を再起動させ、記録系CPU124に古いバージョンの第1の記録系プログラムを実行させるとともに、再生系CPU133を再起動させ、再生系CPU133に古いバージョンの第1の再生系プログラムを実行させる。これによりプログラムの更新に失敗して、最新のプログラムで起動できなくなっても、古いプログラムで再度起動して、再度プログラムの更新を行うことが可能となる。なお、第1の記録系プログラム及び第1の再生系プログラムが最新である場合には、プログラム起動制御部140は、古いバージョンのプログラムとして、記録系CPU124に第2の記録系プログラムを、再生系CPU133に第2の再生系プログラムを実行させる。
The program activation control unit 140 restarts the recording system CPU 124 and the reproduction system CPU 133 when an error occurs in activation of at least one of the recording system CPU 124 and the reproduction system CPU 133. For example, the program activation control unit 140 measures the elapsed time after the recording system CPU 124 and the reproduction system CPU 133 notify the activation status, and a predetermined time has elapsed until the next activation status is notified. In this case, a reset signal for restarting the recording system CPU 124 and the reproduction system CPU 133 is output.
Further, when the recording system CPU 124 and the playback system CPU 133 are restarted, the program activation control unit 140 stores the recording system CPU 124 in a different activation surface than the activation surface designated by the activation surface designation value 305. To start using a program that For example, when the monitoring starter 110 is restarted, the program start control unit 140 causes the recording system CPU 124 and the playback system CPU 133 to restart the restarting program so that the recording system CPU 124 and the playback system CPU 133 return to an old version with a track record of operation. Change the value of and output. When the recording system CPU 124 fails to start the second recording system program that is the latest version, or the playback system CPU 133 fails to start the second playback system program that is the latest version. In this case, the recording system CPU 124 is restarted to cause the recording system CPU 124 to execute the old version of the first recording system program, and the playback system CPU 133 is restarted to cause the playback system CPU 133 to restart the old version of the first playback. Run the system program. As a result, even if the program update fails and the latest program cannot be started, the old program can be started again and the program can be updated again. When the first recording system program and the first reproduction system program are the latest, the program activation control unit 140 sends the second recording system program to the recording system CPU 124 as an old version program. The CPU 133 is caused to execute the second reproduction system program.
 なお、プログラム起動制御部140についても、図示しないCPUを備えることにより実現することができる。また、プログラム起動制御部140は、フラグ等の情報を記憶するためのメモリ140aを備えている。このメモリ140aは、揮発性のメモリであっても、不揮発性のメモリであってもよい。また、プログラム起動制御部140は、図示しないCPUの代わりに、CPLD(Complex Programmable Logic Device)等のプログラマブルロジックデバイスにより実現することもできる。 Note that the program activation control unit 140 can also be realized by including a CPU (not shown). In addition, the program activation control unit 140 includes a memory 140a for storing information such as a flag. The memory 140a may be a volatile memory or a non-volatile memory. The program activation control unit 140 can also be realized by a programmable logic device such as CPLD (Complex Programmable Logic Device) instead of a CPU (not shown).
 通知部145は、起動エラーが生じたことを通知する。例えば、通知部145は、LED(Light Emitting Diode)を備え、その点灯により起動エラーが生じたことを通知する。 The notification unit 145 notifies that a startup error has occurred. For example, the notification unit 145 includes an LED (Light Emitting Diode), and notifies that a start-up error has occurred due to its lighting.
 以下に、実施の形態1に係る監視レコーダ110の動作、すなわち、監視レコーダ110の起動制御方法について説明する。 Hereinafter, the operation of the monitoring recorder 110 according to the first embodiment, that is, the activation control method of the monitoring recorder 110 will be described.
 まず、実施の形態1に係る監視レコーダ110の記録部120の起動動作を説明する。
 図6は、記録部120の起動動作を示すフローチャートである。
 まず、電源が投入されると、記録系CPU124は、記録系プログラム記憶部121に記憶されている記録系ブートローダ121aに書かれた処理を起動する(S10)。
First, the starting operation of the recording unit 120 of the monitoring recorder 110 according to the first embodiment will be described.
FIG. 6 is a flowchart showing the starting operation of the recording unit 120.
First, when the power is turned on, the recording system CPU 124 starts the process written in the recording system boot loader 121a stored in the recording system program storage unit 121 (S10).
 記録系ブートローダ121aにより、記録系CPU124は、記録系ワークメモリ122等のH/W回路を初期設定する(S11)。 The recording system boot loader 121a causes the recording system CPU 124 to initialize the H / W circuit such as the recording system work memory 122 (S11).
 次に、記録系CPU124は、プログラム管理領域121f内の第1の管理領域301及び第2の管理領域302の何れかを選択する(S12)。ここでの処理は、図7を用いて詳細に説明する。 Next, the recording system CPU 124 selects either the first management area 301 or the second management area 302 in the program management area 121f (S12). The processing here will be described in detail with reference to FIG.
 次に、記録系CPU124は、起動面を決定する(S13)。ここでの処理は、図8を用いて詳細に説明する。 Next, the recording system CPU 124 determines the activation surface (S13). This process will be described in detail with reference to FIG.
 次に、記録系CPU124は、ステップS13で決定した起動面を起動面情報として、信号線180を介して、再生部130に出力する(S14)。 Next, the recording system CPU 124 outputs the activation surface determined in step S13 as activation surface information to the reproducing unit 130 via the signal line 180 (S14).
 次に、記録系CPU124は、ステップS13で決定した起動面により、第1の記録系プログラム領域121g及び第2の記録系プログラム領域121hの何れかを選択し、選択したプログラム領域内に格納されているOSを起動する(S15)。 Next, the recording system CPU 124 selects one of the first recording system program area 121g and the second recording system program area 121h according to the startup surface determined in step S13, and is stored in the selected program area. The operating system is started (S15).
 OSの起動が完了したら、記録系CPU124は、OS起動完了通知を出力する(S16)。ここで出力される完了通知は、例えば、図1のプログラム起動制御部140経由で、再生系CPU133へ通知される。 When the activation of the OS is completed, the recording CPU 124 outputs an OS activation completion notification (S16). The completion notification output here is notified to the reproduction system CPU 133 via, for example, the program activation control unit 140 of FIG.
 次に、記録系CPU124は、ステップS15にて選択されたプログラム領域内に格納されているAPを起動する(S17)。
 なお、記録系CPU124は、起動に使用した管理領域の書き込み完了フラグ303の値が「0x80000000」である場合には、起動完了後に、その値を「0x00000000」に変更するとともに、そのCRC値308を再度計算して、更新する。
Next, the recording CPU 124 activates the AP stored in the program area selected in step S15 (S17).
If the value of the write completion flag 303 in the management area used for activation is “0x80000000”, the recording CPU 124 changes the value to “0x00000000” and completes the CRC value 308 after completion of activation. Calculate and update again.
 以上に記載したような手順により、記録部120が起動する。次に、図6の管理領域選択(ステップS12)について詳細に説明する。
 図7は、管理領域選択での処理内容の一例を示すフローチャートである。
The recording unit 120 is activated according to the procedure described above. Next, the management area selection (step S12) in FIG. 6 will be described in detail.
FIG. 7 is a flowchart illustrating an example of processing contents in management area selection.
 まず、記録系CPU124は、プログラム管理領域121f内の第1の管理領域301及び第2の管理領域302のCRCチェックを実施し、両方の領域のCRCチェック結果がNGか否かを確認する(S20)。第1の管理領域301のCRCチェックは、例えば、第1の管理領域301内の、書き込み完了フラグ303a、管理領域バージョン番号304a、起動面指定値305a、OSバージョン番号306a及びAPバージョン番号307aが格納されている領域のCRC値を計算し、計算の結果得られたCRC値と、第1の管理領域301内のCRC値308aを比較することにより行われる。計算の結果得られたCRC値と、第1の管理領域301内のCRC値308aとが一致していれば、CRCチェックOKと判定し、不一致の場合はCRCチェックNGと判定する。第2の管理領域302のCRCチェックも、第1の管理領域301のCRCチェックと同様に行われる。両方の領域のCRCチェック結果がNGの場合(S20でYES)には、プログラム管理領域121fが無効であると判断し、処理はステップS31(管理領域NG)へ進む。それ以外の場合(S20でNO)には、処理はステップS21へ進む。 First, the recording system CPU 124 performs CRC checks on the first management area 301 and the second management area 302 in the program management area 121f, and confirms whether the CRC check results in both areas are NG (S20). ). The CRC check of the first management area 301 stores, for example, a write completion flag 303a, a management area version number 304a, a startup surface designation value 305a, an OS version number 306a, and an AP version number 307a in the first management area 301. This is performed by calculating the CRC value of the area that has been set, and comparing the CRC value obtained as a result of the calculation with the CRC value 308a in the first management area 301. If the CRC value obtained as a result of the calculation matches the CRC value 308a in the first management area 301, it is determined that the CRC check is OK, and if it does not match, it is determined that the CRC check is NG. The CRC check of the second management area 302 is performed in the same manner as the CRC check of the first management area 301. If the CRC check results in both areas are NG (YES in S20), it is determined that the program management area 121f is invalid, and the process proceeds to step S31 (management area NG). In other cases (NO in S20), the process proceeds to step S21.
 ステップS21では、記録系CPU124は、第1の管理領域301のCRCチェックがOK、かつ、第2の管理領域302のCRCチェックがNGであるか否かを確認する。第1の管理領域301のCRCチェックがOK、かつ、第2の管理領域302のCRCチェックがNGの場合(S21でYES)には、処理はステップS29(第1の管理領域を使用)へ進む。それ以外の場合(S21でNO)には、処理はステップS22へ進む。 In step S21, the recording CPU 124 confirms whether or not the CRC check of the first management area 301 is OK and the CRC check of the second management area 302 is NG. If the CRC check of the first management area 301 is OK and the CRC check of the second management area 302 is NG (YES in S21), the process proceeds to step S29 (uses the first management area). . In other cases (NO in S21), the process proceeds to step S22.
 ステップS22では、記録系CPU124は、第1の管理領域301のCRCチェックがNG、かつ、第2の管理領域302のCRCチェックがOKであるか否かを確認する。第1の管理領域301のCRCチェックがNG、かつ、第2の管理領域302のCRCチェックがOKの場合(S22でYES)、処理はステップS30(第2の管理領域を使用)へ進む。それ以外の場合(S22でNO)、処理はステップS23へ進む。 In step S22, the recording CPU 124 checks whether or not the CRC check of the first management area 301 is NG and the CRC check of the second management area 302 is OK. If the CRC check of the first management area 301 is NG and the CRC check of the second management area 302 is OK (YES in S22), the process proceeds to step S30 (using the second management area). In other cases (NO in S22), the process proceeds to step S23.
 ステップS23では、記録系CPU124は、第1の管理領域301及び第2の管理領域302内に格納された管理領域バージョン番号304が、ともに「0xffffffff」であるか否かを確認する。記録系プログラム記憶部121がフラッシュメモリ等の不揮発メモリにより構成される場合、第1の管理領域301及び第2の管理領域302に管理領域バージョン番号304が書き込まれていないときは、初期値「0xffffffff」の状態となる。管理領域バージョン番号304がともに初期値の場合(S23でYES)、処理はステップS29(第1の管理領域を使用)へ進む。それ以外の場合(S23でNO)、処理はステップS24へ進む。 In step S23, the recording CPU 124 checks whether or not the management area version numbers 304 stored in the first management area 301 and the second management area 302 are both “0xffffffff”. When the recording system program storage unit 121 is configured by a nonvolatile memory such as a flash memory, when the management area version number 304 is not written in the first management area 301 and the second management area 302, the initial value “0xffffffff” ”State. If both management area version numbers 304 are initial values (YES in S23), the process proceeds to step S29 (using the first management area). In other cases (NO in S23), the process proceeds to step S24.
 ステップS24では、記録系CPU124は、第1の管理領域301内の書き込み完了フラグ303aが、無効であるか否かを確認する。例えば、プログラム更新中は、書き込み完了フラグ303の値は「0xffffffff」である。また、プログラム更新後の初回起動までは、書き込み完了フラグ303の値は「0x80000000」である。さらに、プログラム更新後の初回起動以降は、書き込み完了フラグ303の値は「0x00000000」である。第1の管理領域301内の書き込み完了フラグ303aが、これらのいずれの値でも無く、無効である場合(S24でYES)には、処理はステップS30(第2の管理領域を使用)へ進む。それ以外の場合(S24でNO)、処理はステップS25へ進む。 In step S24, the recording CPU 124 checks whether or not the write completion flag 303a in the first management area 301 is invalid. For example, during the program update, the value of the write completion flag 303 is “0xffffffff”. Further, the value of the write completion flag 303 is “0x80000000” until the first activation after the program update. Further, after the first activation after the program update, the value of the write completion flag 303 is “0x00000000”. If the write completion flag 303a in the first management area 301 is invalid in any of these values (YES in S24), the process proceeds to step S30 (uses the second management area). In other cases (NO in S24), the process proceeds to step S25.
 ステップS25では、記録系CPU124は、第2の管理領域302がプログラム更新中であるか否かを確認する。第2の管理領域302内の書き込み完了フラグ303bの値が、例えば、「0xffffffff」で書き込み途中の場合(S25でYES)には、処理はステップS29(第1の管理領域を使用)へ進む。それ以外の場合(S25でNO)には、処理はステップS26へ進む。 In step S25, the recording system CPU 124 checks whether or not the second management area 302 is being updated. For example, when the value of the write completion flag 303b in the second management area 302 is “0xffffffff” and writing is in progress (YES in S25), the process proceeds to step S29 (uses the first management area). In other cases (NO in S25), the process proceeds to step S26.
 ステップS26では、記録系CPU124は、第1の管理領域301がプログラム更新中であるか否かを確認する。第1の管理領域301内の書き込み完了フラグ303aの値が、例えば、「0xffffffff」で書き込み途中の場合(S26でYES)、処理はステップS30(第2の管理領域を使用)へ進む。それ以外の場合(S26でNO)、処理はステップS27へ進む。 In step S26, the recording CPU 124 confirms whether or not the first management area 301 is being updated. If the value of the write completion flag 303a in the first management area 301 is, for example, “0xffffffff” and writing is in progress (YES in S26), the process proceeds to step S30 (using the second management area). In other cases (NO in S26), the process proceeds to step S27.
 ステップS27では、記録系CPU124は、第2の管理領域302内の書き込み完了フラグ303bが、無効であるか否かを確認する。ステップS24で説明したように、書き込み完了フラグ303は、予め定められた複数の値の何れかである。このため、第2の管理領域302内の書き込み完了フラグ303bが、これらの何れの値でも無く、無効である場合(S27でYES)、処理はステップS29(第1の管理領域を使用)へ進む。それ以外の場合(S27でNO)、処理はステップS28へ進む。 In step S27, the recording CPU 124 checks whether or not the write completion flag 303b in the second management area 302 is invalid. As described in step S24, the write completion flag 303 is one of a plurality of predetermined values. For this reason, if the write completion flag 303b in the second management area 302 is not any of these values and is invalid (YES in S27), the process proceeds to step S29 (uses the first management area). . In other cases (NO in S27), the process proceeds to step S28.
 ステップS28では、記録系CPU124は、第1の管理領域301の管理領域バージョン番号304aと、第2の管理領域302の管理領域バージョン番号304bとを比較する。管理領域バージョン番号304aが管理領域バージョン番号304bより小さい場合(S28でYES)、処理はステップS30(第2の管理領域を使用)へ進む。それ以外の場合(S28でNO)、ステップS29(第1の管理領域を使用)へ進む。 In step S28, the recording CPU 124 compares the management area version number 304a of the first management area 301 with the management area version number 304b of the second management area 302. If management area version number 304a is smaller than management area version number 304b (YES in S28), the process proceeds to step S30 (using the second management area). In other cases (NO in S28), the process proceeds to step S29 (using the first management area).
 ステップS29では、記録系CPU124は、第1の管理領域301及び第2の管理領域302のうち、第1の管理領域301を選択して使用することを決定する。 In step S <b> 29, the recording CPU 124 determines to select and use the first management area 301 from the first management area 301 and the second management area 302.
 ステップS30では、記録系CPU124は、第1の管理領域301及び第2の管理領域302のうち、第2の管理領域302を選択して使用することを決定する。 In step S30, the recording system CPU 124 determines to select and use the second management area 302 from the first management area 301 and the second management area 302.
 ステップS31では、記録系CPU124は、第1の管理領域301及び第2の管理領域302の両方が無効であるとして、システムの起動停止を決定する。なお、ステップS31にて、装置の仕様によっては、システムの起動停止を決定する代わりに、強制的に何れか一方の管理領域、例えば、第1の管理領域301を使用するとしてもよい。 In step S31, the recording system CPU 124 determines that both the first management area 301 and the second management area 302 are invalid, and determines to stop and start the system. In step S31, depending on the specifications of the apparatus, instead of determining whether to start or stop the system, one of the management areas, for example, the first management area 301 may be forcibly used.
 以上のようにして、図6の管理領域選択(ステップS12)では、管理領域を選択する。以上に記載したように、CRC値308を使用して第1の管理領域301と第2の管理領域302のCRCチェックを行うことにより、第1の管理領域301又は第2の管理領域302に格納された情報が壊れている場合、壊れていない方の管理領域の情報を使用して起動することができる。 As described above, the management area is selected in the management area selection (step S12) in FIG. As described above, a CRC check is performed on the first management area 301 and the second management area 302 using the CRC value 308 to store in the first management area 301 or the second management area 302. If the information is broken, it can be started using the information in the management area that is not broken.
 また、書き込み完了フラグ303で示される状態により、第1の管理領域301又は第2の管理領域302のうち、プログラム更新が完了していない領域の情報は使用せず、プログラム更新が完了した領域の情報を使用して起動することができる。 Further, depending on the state indicated by the write completion flag 303, the information of the area where the program update has not been completed in the first management area 301 or the second management area 302 is not used, and the area where the program update has been completed is not used. Can be activated using information.
 また、第1の管理領域301又は第2の管理領域302のうち、管理領域バージョン番号304の値が大きい方の領域を選択して使用することにより、最新の管理情報での起動が可能となる。 Further, by selecting and using the area having the larger management area version number 304 out of the first management area 301 or the second management area 302, it is possible to start up with the latest management information. .
 次に、図6の起動面決定(ステップS13)について詳細に説明する。
 図8は、起動面決定での処理内容の一例を示すフローチャートである。
Next, the activation surface determination (step S13) in FIG. 6 will be described in detail.
FIG. 8 is a flowchart showing an example of the processing content in the activation plane determination.
 ステップS40では、記録系CPU124は、図3に示されている第1の管理領域301及び第2の管理領域302のうち、図6の管理領域選択(ステップS12)にて選択された管理領域から、起動面指定値305を読み出す。 In step S40, the recording system CPU 124 selects the management area selected in the management area selection (step S12) in FIG. 6 from the first management area 301 and the second management area 302 shown in FIG. The activation surface designation value 305 is read out.
 ステップS41では、記録系CPU124は、ステップS40で読み出された起動面指定値305を2進数で表現したときに、値が「1」であるビットの数を数える。例えば、起動面指定値305が「0xffffffff」の場合、2進数で表現すると「11111111 11111111 11111111 11111111」となるため、値が「1」であるビットの数は「32」となる。 In step S41, the recording system CPU 124 counts the number of bits whose value is “1” when the activation surface designation value 305 read in step S40 is expressed in binary. For example, when the activation surface designation value 305 is “0xffffffff”, it is expressed as “11111111, 11111111, 11111111, 11111111” when expressed in binary, so the number of bits having a value of “1” is “32”.
 ステップS42では、記録系CPU124は、ステップS41で数えたビットの数が、予め定められたしきい値(例えば、16)以上であるか否かを判断する。そのビットの数が予め定められたしきい値以上である場合(S42でYES)には、処理はステップS43(第1の起動面に仮決め)に進む。それ以外の場合(S42でNO)には、処理はステップS46(第2の起動面に仮決め)に進む。このようにして起動面の仮決めを行うことにより、起動面指定値305の情報が、数ビット壊れている場合でも、正しく起動面を選択することが可能となる。 In step S42, the recording CPU 124 determines whether or not the number of bits counted in step S41 is equal to or greater than a predetermined threshold value (for example, 16). If the number of bits is equal to or greater than a predetermined threshold value (YES in S42), the process proceeds to step S43 (tentatively determined as the first activation surface). In other cases (NO in S42), the process proceeds to step S46 (tentatively determined as the second startup surface). By tentatively determining the activation plane in this way, it is possible to select the activation plane correctly even when the information of the activation plane designation value 305 is broken by several bits.
 ステップS43では、記録系CPU124は、起動面を第1の起動面に仮決めする。
 ステップS44では、記録系CPU124は、プログラム起動制御部140から入力される起動面変更フラグが「1」であるか否かを判断する。起動面変更フラグが「1」の場合(S44でYES)には、起動面を反転するために、処理はステップS48(第2の起動面に決定)に進む。それ以外の場合(S44でNO)には、処理はステップS45(第1の起動面に決定)に進む。
In step S43, the recording system CPU 124 provisionally determines the activation surface as the first activation surface.
In step S44, the recording CPU 124 determines whether or not the activation surface change flag input from the program activation control unit 140 is “1”. If the activation surface change flag is “1” (YES in S44), the process proceeds to step S48 (determined as the second activation surface) to invert the activation surface. In other cases (NO in S44), the process proceeds to step S45 (determined as the first activation surface).
 ステップS46では、記録系CPU124は、起動面を第2の起動面に仮決めする。
 ステップS47では、記録系CPU124は、プログラム起動制御部140から入力される起動面変更フラグが「1」であるか否かを判断する。起動面変更フラグが「1」の場合(S47でYES)には、起動面を反転するために、処理はステップS45(第1の起動面に決定)に進む。それ以外の場合(S47でNO)には、処理はステップS48(第2の起動面に決定)に進む。
In step S46, the recording system CPU 124 provisionally determines the activation surface as the second activation surface.
In step S47, the recording CPU 124 determines whether or not the activation surface change flag input from the program activation control unit 140 is “1”. If the activation surface change flag is “1” (YES in S47), the process proceeds to step S45 (determined as the first activation surface) in order to reverse the activation surface. In other cases (NO in S47), the process proceeds to step S48 (determined as the second activation surface).
 ステップS45では、記録系CPU124は、起動面を第1の起動面に決定する。
 一方、ステップS48では、記録系CPU124は、起動面を第2の起動面に決定する。
In step S45, the recording system CPU 124 determines the activation surface as the first activation surface.
On the other hand, in step S48, the recording system CPU 124 determines the activation surface as the second activation surface.
 以上のようにして、図6の起動面決定(ステップS13)では、起動面を決定する。このようにして起動面を決定することにより、プログラム起動制御部140から出力される起動面変更フラグにより、記録系CPU124と再生系CPU133の起動面を変更することが可能となる。 As described above, the activation plane is determined in the activation plane determination (step S13) in FIG. By determining the activation plane in this way, it is possible to change the activation planes of the recording system CPU 124 and the reproduction system CPU 133 by the activation plane change flag output from the program activation control unit 140.
 これまで述べてきたようにして、実施の形態1に係る監視レコーダ110の記録部120は起動する。 As described above, the recording unit 120 of the monitoring recorder 110 according to the first embodiment is activated.
 次に、実施の形態1に係る監視レコーダ110の再生部130の起動動作を説明する。
 図9は、再生部130の起動動作を示すフローチャートである。
 まず、電源が投入されると、再生系CPU133は、再生系プログラム記憶部131に記憶されている再生系ブートローダ131aに書かれた処理を起動する(S50)。
Next, the starting operation of the playback unit 130 of the monitoring recorder 110 according to Embodiment 1 will be described.
FIG. 9 is a flowchart showing the starting operation of the playback unit 130.
First, when the power is turned on, the reproduction system CPU 133 activates the process written in the reproduction system boot loader 131a stored in the reproduction system program storage unit 131 (S50).
 再生系ブートローダ131aにより、再生系CPU133は、再生系ワークメモリ132等のH/W回路を初期設定する(S51)。 The reproduction system CPU 133 initializes the H / W circuit such as the reproduction system work memory 132 by the reproduction system boot loader 131a (S51).
 次に、再生系CPU133は、記録系CPU124でのOS起動完了を待つ(S52)。図6に示された記録系CPU124の起動に関するフローチャートのステップS14により、記録系CPU124でのOS起動完了が、再生系CPU133へ通知されると、処理は次のステップS53に進む。 Next, the reproduction system CPU 133 waits for the completion of OS activation in the recording system CPU 124 (S52). When the reproduction system CPU 133 is notified of the OS activation completion in the recording system CPU 124 in step S14 of the flowchart relating to the activation of the recording system CPU 124 shown in FIG. 6, the process proceeds to the next step S53.
 ステップS53では、再生系CPU133は、信号線180を介して、記録系CPU124から出力された起動面情報を受信する。 In step S53, the reproduction system CPU 133 receives the activation surface information output from the recording system CPU 124 via the signal line 180.
 次に、再生系CPU133は、ステップS53にて受信された起動面情報により、第1の再生系プログラム領域131g及び第2の再生系プログラム領域131hの何れかを選択し、選択したプログラム領域内に格納されているOSを起動する(S54)。 Next, the playback system CPU 133 selects one of the first playback system program area 131g and the second playback system program area 131h based on the activation surface information received in step S53, and within the selected program area. The stored OS is activated (S54).
 次に、再生系CPU133は、ステップS53にて選択されたプログラム領域内に格納されているAPを起動する(S55)。 Next, the reproduction system CPU 133 activates the AP stored in the program area selected in Step S53 (S55).
 これまで述べてきたようにして、実施の形態1に係る監視レコーダ110の再生部130は起動する。 As described above, the playback unit 130 of the monitoring recorder 110 according to Embodiment 1 is activated.
 図10は、図6に示された記録部120の起動動作を示すフローチャートと、図9に示された再生部130の起動動作を示すフローチャートとの関係を示した図である。
 電源が投入されると記録部120と再生部130とが同時に動作を開始する。図9では、これはタイミングT0で示されている。
FIG. 10 is a diagram showing the relationship between the flowchart showing the startup operation of the recording unit 120 shown in FIG. 6 and the flowchart showing the startup operation of the playback unit 130 shown in FIG.
When the power is turned on, the recording unit 120 and the playback unit 130 start operating simultaneously. In FIG. 9, this is shown at timing T0.
 記録系CPU124は、ステップS11のH/W初期化での処理の1つとして、起動面情報を伝える信号線180に接続されるポートを出力状態に切り替え、初期値を出力する。初期値は、例えば、「0」である。図9では、これはタイミングT1で示されている。 The recording system CPU 124 switches the port connected to the signal line 180 for transmitting the activation surface information to the output state as one of the processes in the H / W initialization in step S11, and outputs the initial value. The initial value is “0”, for example. In FIG. 9, this is shown at timing T1.
 記録系CPU124は、ステップS14の起動面情報出力にて、起動面情報を伝える信号線180に接続されるポートから、ステップS13にて決定した起動面を示す起動面情報を出力する。図9では、これはタイミングT2で示されている。このとき、再生系CPU133は、ステップS52の記録系OS起動完了待ちにて、記録系CPU124でのOS起動完了を待ち続けている。 The recording system CPU 124 outputs the activation surface information indicating the activation surface determined in step S13 from the port connected to the signal line 180 that conveys the activation surface information in the activation surface information output in step S14. In FIG. 9, this is shown at timing T2. At this time, the reproduction system CPU 133 waits for the completion of the OS activation in the recording system CPU 124 while waiting for the completion of the activation of the recording system OS in step S52.
 記録系CPU124は、ステップS15でOS起動が完了すると、ステップS16でOS起動完了を再生系CPU133へ通知する。図9では、これはタイミングT3で示されている。
 再生系CPU133は、記録系CPU124からのOS起動完了通知を受けて、ステップS52の記録系OS起動完了待ちを終了し、ステップS53にて、記録系CPU124が出力した起動面情報を受信する。図9では、これはタイミングT4で示されている。
When the OS activation is completed in step S15, the recording CPU 124 notifies the reproduction CPU 133 of the OS activation completion in step S16. In FIG. 9, this is shown at timing T3.
The reproduction system CPU 133 receives the OS activation completion notification from the recording system CPU 124, ends the recording system OS activation completion waiting in step S52, and receives the activation surface information output by the recording system CPU 124 in step S53. In FIG. 9, this is shown at timing T4.
 仮に、再生系CPU133が、ステップS52の記録系OS起動完了待ちを行わずに、ステップS53の起動面情報受信を行った場合、起動面情報を正常に受け取れない可能性がある。これは、記録系CPU124のステップS14での起動面情報出力よりも、再生系CPU133のステップS53の起動面受信の方が早いタイミングで実行された場合に発生する。このとき、再生系CPU133は、誤った起動面受信情報で、再生系プログラム記憶部131に格納されたプログラムを選択して実行し、監視レコーダ110が正常に動作できなくなる可能性がある。これに対して、ステップS52にて記録系OSの起動を待つことにより、記録系CPU124から再生系CPU133へ起動面情報を正常に伝えることができる。このため、伝えられた起動面情報により、再生系CPU133が、再生系プログラム記憶部131に格納されたプログラムを選択して実行することにより、監視レコーダ110を正常に起動できるという効果がある。 If the reproduction system CPU 133 receives the activation surface information in step S53 without waiting for the recording system OS activation completion in step S52, there is a possibility that the activation surface information cannot be received normally. This occurs when the start-up surface reception in step S53 of the reproduction system CPU 133 is executed at an earlier timing than the start-up surface information output in step S14 of the recording system CPU 124. At this time, the playback system CPU 133 may select and execute a program stored in the playback system program storage unit 131 with incorrect startup surface reception information, and the monitoring recorder 110 may not operate normally. On the other hand, by waiting for the activation of the recording system OS in step S52, the activation surface information can be normally transmitted from the recording system CPU 124 to the reproduction system CPU 133. For this reason, the reproduction system CPU 133 can select the program stored in the reproduction system program storage unit 131 and execute it according to the transmitted activation surface information, so that the monitoring recorder 110 can be activated normally.
 このような起動面情報の伝達動作において、図10のタイミングT2~タイミングT4までの期間、記録系CPU124は、信号線180に起動面情報を出力し続ける必要がある。ところが、記録系CPU124は、ステップS14にて起動面情報を出力した後、ステップS15にてOSの起動を開始し、OSの起動処理では記録系CPU124の各ポートが初期設定される。これにより、信号線180に接続されるCPU124のポートも初期化され、起動面情報を出力し続けることが不可能となる。 In such an operation of transmitting the activation surface information, the recording CPU 124 needs to continuously output the activation surface information to the signal line 180 during the period from the timing T2 to the timing T4 in FIG. However, the recording system CPU 124 outputs the activation surface information in step S14, and then starts the OS in step S15. In the OS activation process, each port of the recording system CPU 124 is initialized. As a result, the port of the CPU 124 connected to the signal line 180 is also initialized, and it becomes impossible to continue outputting the startup surface information.
 そこで、記録系CPU124の起動面情報を出力するポートについては、OSの起動時の初期設定の際に、それ以前の状態を保持する動作とする。そして、再生系CPU133が起動面情報を受け取った後、つまり図10のタイミングT4以降に、ポートの設定が行われる。なお、再生部130のOS起動(ステップS54)が完了した時点で、記録系CPU124と再生系CPU133を直接接続する図示されていない信号線により、再生系CPU133から記録系CPU124へ、OS起動完了を通知することで、記録系CPU124は、再生系CPU133が起動面情報を受け取ったことを認識することができる。
 これにより、記録系CPU124から再生系CPU133へ起動面情報を正常に伝えることができ、伝えられた起動面情報により、再生系CPU133が、再生系プログラム記憶部131に格納されたプログラムを選択及び実行して、監視レコーダ110を正常に起動できる。また、これにより、記録系CPU124にて、起動面情報を出力するポートは、起動面情報を伝達した後は、別の用途に使用可能となる。なお、記録系CPU124にて、起動面情報の伝達後に、起動面情報を出力するポートを別の用途に使用しない場合は、起動面情報の伝達後のポートの設定を省略することも可能である。
Therefore, the port that outputs the startup surface information of the recording system CPU 124 is set to an operation of holding the previous state at the time of initial setting at the startup of the OS. Then, after the reproduction system CPU 133 receives the activation surface information, that is, after timing T4 in FIG. 10, the port is set. When the OS activation (step S54) of the reproduction unit 130 is completed, the OS activation is completed from the reproduction system CPU 133 to the recording system CPU 124 by a signal line (not shown) that directly connects the recording system CPU 124 and the reproduction system CPU 133. By notifying, the recording system CPU 124 can recognize that the reproduction system CPU 133 has received the activation surface information.
As a result, the activation surface information can be normally transmitted from the recording system CPU 124 to the reproduction system CPU 133, and the reproduction system CPU 133 selects and executes the program stored in the reproduction system program storage unit 131 based on the transmitted activation surface information. Thus, the monitoring recorder 110 can be started normally. Accordingly, the port for outputting the activation surface information in the recording system CPU 124 can be used for another purpose after transmitting the activation surface information. When the recording system CPU 124 does not use the port for outputting the activation surface information after transmitting the activation surface information for another use, it is possible to omit the setting of the port after the activation surface information is transmitted. .
 次に、実施の形態1に係る監視レコーダ110のプログラム更新方法について説明する。
 図11は、監視レコーダ110のプログラム更新処理を示すフローチャートである。
Next, a program update method for the monitoring recorder 110 according to the first embodiment will be described.
FIG. 11 is a flowchart showing the program update process of the monitoring recorder 110.
 監視レコーダ110において、記録部120及び再生部130の両方でアプリケーションの起動が完了し、信号線181により記録系CPU124と再生系CPU133とが高速に通信可能になった後、監視レコーダ110の操作者が図1には記載していないユーザI/Fにより、プログラム更新を指示すると、監視レコーダ110は、プログラムの更新を開始する。 In the monitoring recorder 110, after the start of the application is completed in both the recording unit 120 and the playback unit 130, the recording system CPU 124 and the playback system CPU 133 can communicate at high speed via the signal line 181, and then the operator of the monitoring recorder 110 However, when a program update is instructed by a user I / F not shown in FIG. 1, the monitoring recorder 110 starts updating the program.
 まず、ステップS60では、記録系CPU124は、第1の管理領域301を選択して起動したかを確認する。例えば、記録系CPU124は、起動に使用した管理領域を記録系ワークメモリ122等に記憶させておくものとする。第1の管理領域を選択して起動した場合(S60でYES)、処理はステップS61に進む。第2の管理領域を選択して起動した場合(S60でNO)、処理はステップS62に進む。 First, in step S60, the recording CPU 124 confirms whether the first management area 301 has been selected and activated. For example, the recording system CPU 124 stores the management area used for activation in the recording system work memory 122 or the like. If the first management area is selected and activated (YES in S60), the process proceeds to step S61. If the second management area is selected and activated (NO in S60), the process proceeds to step S62.
 ステップS61では、記録系CPU124は、第2の管理領域302の書き込み完了フラグ303bをプログラム更新中に書き換える。例えば、図4に示されているように、記録系CPU124は、その値を「0xffffffff」に書き換える。そして、処理はステップS63に進む。
 ステップS62では、記録系CPU124は、第1の管理領域301の書き込み完了フラグ303aを、ステップS61と同様にプログラム更新中に書き換える。そして、処理はステップS63に進む。
In step S61, the recording system CPU 124 rewrites the write completion flag 303b in the second management area 302 during the program update. For example, as shown in FIG. 4, the recording system CPU 124 rewrites the value to “0xffffffff”. Then, the process proceeds to step S63.
In step S62, the recording system CPU 124 rewrites the write completion flag 303a in the first management area 301 during the program update in the same manner as in step S61. Then, the process proceeds to step S63.
 ステップS63では、記録系CPU124は、第1のプログラム領域と第2のプログラム領域のいずれの領域を使用して起動したかを示す起動面を取得し、第1の起動面で起動したか否かを判断する。例えば、記録系CPU124は、起動に使用した起動面又はプログラム領域を記録系ワークメモリ122等に記憶させておくものとする。
 第1の起動面で起動した場合、つまり第1のプログラム領域を使用して起動した場合(S63でYES)には、処理はステップS64に進む。第2の起動面で起動した場合、つまり第2のプログラム領域を使用して起動した場合(S63でNO)には、処理はステップS66に進む。
In step S63, the recording system CPU 124 obtains an activation surface that indicates which of the first program area and the second program area is used for activation, and whether or not the activation is performed on the first activation surface. Judging. For example, the recording system CPU 124 stores the activation surface or program area used for activation in the recording system work memory 122 or the like.
If activated on the first activation surface, that is, activated using the first program area (YES in S63), the process proceeds to step S64. If activated on the second activation surface, that is, activated using the second program area (NO in S63), the process proceeds to step S66.
 ステップS64では、記録系CPU124は、信号線181による高速通信により、新しい再生系OSと新しい再生系APを、再生系CPU133に伝送する。再生系CPU133は、受信した新しい再生系OSと新しい再生系APにより、再生系プログラム記憶部131の第2の再生系プログラム領域131hの第2の再生系OS131dと第2の再生系AP131eとを書き換える。なお、再生系CPU133は、新しいプログラムの書き込みを完了すると、信号線181経由で、記録系CPU124へ書き込み完了を通知する。 In step S64, the recording system CPU 124 transmits the new playback system OS and the new playback system AP to the playback system CPU 133 by high-speed communication through the signal line 181. The reproduction system CPU 133 rewrites the second reproduction system OS 131d and the second reproduction system AP 131e in the second reproduction system program area 131h of the reproduction system program storage unit 131 by using the received new reproduction system OS and new reproduction system AP. . When the writing of the new program is completed, the reproducing system CPU 133 notifies the recording system CPU 124 of the completion of writing via the signal line 181.
 ステップS65では、記録系CPU124は、新しい記録系OSと新しい記録系APにより、記録系プログラム記憶部121の第2の記録系プログラム領域121hの第2の記録系OS121dと第2の記録系AP121eとを書き換える。 In step S65, the recording system CPU 124 uses the new recording system OS and the new recording system AP to execute the second recording system OS 121d and the second recording system AP 121e in the second recording system program area 121h of the recording system program storage unit 121. Rewrite.
 ステップS66では、ステップS64と同様にして、再生系CPU133は、再生系プログラム記憶部131の第1の再生系プログラム領域131gを書き換える。なお、再生系CPU133は、新しいプログラムの書き込みを完了すると、信号線181経由で、記録系CPU124へ書き込み完了を通知する。 In step S66, the playback system CPU 133 rewrites the first playback system program area 131g of the playback system program storage unit 131 in the same manner as in step S64. When the writing of the new program is completed, the reproducing system CPU 133 notifies the recording system CPU 124 of the completion of writing via the signal line 181.
 ステップS67では、ステップS65と同様にして、記録系CPU124は、記録系プログラム記憶部121の第1の記録系プログラム領域121gを書き換える。 In step S67, the recording system CPU 124 rewrites the first recording system program area 121g of the recording system program storage unit 121 in the same manner as in step S65.
 ステップS68では、記録系CPU124は、第1の管理領域301を選択して起動したか否かを確認する。第1の管理領域を選択して起動した場合(S68でYES)には、処理はステップS69に進む。第2の管理領域を選択して起動した場合(S68でNO)、処理はステップS74に進む。 In step S68, the recording CPU 124 confirms whether the first management area 301 has been selected and activated. If the first management area is selected and activated (YES in S68), the process proceeds to step S69. If the second management area is selected and activated (NO in S68), the process proceeds to step S74.
 ステップS69では、記録系CPU124は、第2の管理領域302の管理領域バージョン番号304bを書き換える。記録系CPU124は、例えば、起動に使用した第1の管理領域301の管理領域バージョン番号304aを読み出し、読み出した値を、例えば「1」増加させた後、第2の管理領域302の管理領域バージョン番号304bとして書き込む。 In step S69, the recording CPU 124 rewrites the management area version number 304b of the second management area 302. The recording system CPU 124 reads, for example, the management area version number 304a of the first management area 301 used for activation, increments the read value by, for example, “1”, and then the management area version of the second management area 302 Write as number 304b.
 ステップS70では、記録系CPU124は、第2の管理領域302の起動面指定値305bを書き換える。記録系CPU124は、第1のプログラム領域と第2のプログラム領域のいずれの領域を使用して起動したかを示す起動面を得た後、反対の起動面を示す値により、第2の管理領域302の起動面指定値305bを書き換える。第1の起動面により起動した場合は、記録系CPU124は、第2の起動面を示す値として、例えば、「0x00000000」を書き込む。第2の起動面により起動した場合は、記録系CPU124は、第1の起動面を示す値として、例えば、「0xffffffff」を書き込む。
 ここで、記録系CPU124及び再生系CPU133が新しいプログラムの書き込みを完了した後に、記録系CPU124は、起動面指定値305bの書き換えを行う。
In step S <b> 70, the recording system CPU 124 rewrites the activation surface designation value 305 b in the second management area 302. The recording system CPU 124 obtains a start surface indicating which one of the first program area and the second program area is used for starting, and then uses the value indicating the opposite start surface to determine the second management area. The activation surface designation value 305b 302 is rewritten. When the recording system CPU 124 is activated by the first activation surface, for example, “0x00000000” is written as a value indicating the second activation surface. When the recording system CPU 124 is activated by the second activation surface, for example, “0xffffffff” is written as a value indicating the first activation surface.
Here, after the recording system CPU 124 and the reproduction system CPU 133 complete the writing of the new program, the recording system CPU 124 rewrites the activation surface designation value 305b.
 ステップS71では、記録系CPU124は、第2の管理領域302のOSバージョン番号306b及びAPバージョン番号307bを書き換える。これらの値は、起動時のプログラム領域の選択には使用しないため、記録系CPU124は、OSやアプリケーションの管理に都合の良い番号を選べば良い。 In step S71, the recording CPU 124 rewrites the OS version number 306b and the AP version number 307b in the second management area 302. Since these values are not used for selecting a program area at the time of activation, the recording CPU 124 may select a number that is convenient for OS and application management.
 ステップS72では、記録系CPU124は、第2の管理領域302のCRC値308bを書き換える。CRC値308bは、例えば、第2の管理領域302内の書き込み完了フラグ303b、管理領域バージョン番号304b、起動面指定値305b、OSバージョン番号306b及びAPバージョン番号307bが格納されている領域に基づいて算出される。 In step S72, the recording system CPU 124 rewrites the CRC value 308b of the second management area 302. The CRC value 308b is based on, for example, an area in which the write completion flag 303b, the management area version number 304b, the activation surface designation value 305b, the OS version number 306b, and the AP version number 307b in the second management area 302 are stored. Calculated.
 ステップS73では、記録系CPU124は、第2の管理領域302の書き込み完了フラグ303bをプログラム更新完了(未起動)に書き換える。例えば、図4に示されているように、記録系CPU124は、その値を「0x80000000」に書き換える。 In step S73, the recording system CPU 124 rewrites the write completion flag 303b in the second management area 302 to the completion of program update (not activated). For example, as shown in FIG. 4, the recording system CPU 124 rewrites the value to “0x80000000”.
 ステップS74では、ステップS69と同様にして、記録系CPU124は、第1の管理領域301の管理領域バージョン番号304aを書き換える。 In step S74, the recording CPU 124 rewrites the management area version number 304a of the first management area 301 in the same manner as in step S69.
 ステップS75では、ステップS70と同様にして、記録系CPU124は、第1の管理領域301の起動面指定値305aを書き換える。 In step S75, similarly to step S70, the recording CPU 124 rewrites the activation surface designation value 305a of the first management area 301.
 ステップS76では、ステップS71と同様にして、記録系CPU124は、第1の管理領域301のOSバージョン番号306a及びAPバージョン番号307aを書き換える。 In step S76, the recording system CPU 124 rewrites the OS version number 306a and the AP version number 307a of the first management area 301 in the same manner as in step S71.
 ステップS77では、ステップS72と同様にして、記録系CPU124は、第1の管理領域301のCRC値308aを書き換える。 In step S77, the recording CPU 124 rewrites the CRC value 308a of the first management area 301 in the same manner as in step S72.
 ステップS78では、ステップS73と同様にして、記録系CPU124は、第1の管理領域301の書き込み完了フラグ303aをプログラム更新完了(未起動)に書き換える。 In step S78, in the same manner as in step S73, the recording CPU 124 rewrites the write completion flag 303a in the first management area 301 to complete program update (not activated).
 以上のような手順により、監視レコーダ110のプログラムを更新する。以上に示した手順により、記録系CPU124及び再生系CPU133の両方のプログラムを、バージョンが合った状態で、更新可能となる。 The program of the monitoring recorder 110 is updated by the procedure as described above. According to the procedure described above, both the recording system CPU 124 and the reproduction system CPU 133 can be updated with the versions matched.
 次に、図12は、監視レコーダ110のプログラム更新前から更新後までのタイミングを示す概略図である。
 図11のフローチャートに示したプログラム更新動作は、図12のタイミングTb~タイミングTcの期間で実施される。
Next, FIG. 12 is a schematic diagram showing the timing from before the update of the program of the monitoring recorder 110 to after the update.
The program update operation shown in the flowchart of FIG. 11 is performed in the period from timing Tb to timing Tc in FIG.
 まず、図12のタイミングTaにて、監視レコーダ110の電源が投入され、記録系CPU124及び再生系CPU133が起動する。このとき、記録系CPU124では、図6に示されているフローチャートに従って、処理が実行される。また、再生系CPU133では、図9に示されているフローチャートに従って、処理が実行される。なお、ここでは、第1の起動面を用いて起動する場合を示している。また、ここでは、プログラム起動制御部140から出力される起動面変更フラグが「0(起動面変更なし)」の場合を示している。このとき、図8に示されているフローチャートにより、起動面が第1の起動面に決定され、第1の起動面を示す起動面情報が出力される。これにより、記録系CPU124は、第1の起動面のプログラム、即ち、図2の第1の記録系プログラム領域121gに格納されたプログラムを実行する。また、再生系CPU133も、第1の起動面のプログラム、即ち、図5の第1の再生系プログラム領域131gに格納されたプログラムを実行する。 First, at the timing Ta in FIG. 12, the power of the monitoring recorder 110 is turned on, and the recording system CPU 124 and the reproduction system CPU 133 are activated. At this time, the recording CPU 124 executes processing according to the flowchart shown in FIG. Further, the reproduction system CPU 133 executes processing in accordance with the flowchart shown in FIG. Here, a case is shown in which the first activation surface is used for activation. Further, here, a case is shown in which the activation surface change flag output from the program activation control unit 140 is “0 (no activation surface change)”. At this time, the activation plane is determined as the first activation plane according to the flowchart shown in FIG. 8, and activation plane information indicating the first activation plane is output. Thereby, the recording system CPU 124 executes the first startup surface program, that is, the program stored in the first recording system program area 121g of FIG. Further, the reproduction system CPU 133 also executes the first startup surface program, that is, the program stored in the first reproduction system program area 131g of FIG.
 図12のタイミングTbにて、プログラムの更新が指示されると、記録系CPU124は、例えば、外部記憶装置170に格納されている更新用の新しいプログラム(記録系CPU124用と再生系CPU133用の両方のプログラム)を読み出す。
 記録系CPU124は、記録系CPU124用の新しいプログラムを、図11のフローチャートに示した手順により、記録系プログラム記憶部121内の第2の記録系プログラム領域121h(第2の起動面)に書き込む。即ち、第1の起動面により起動しているため、記録系CPU124は、現在使用していない第2の起動面にそれを書き込む。また、記録系CPU124は、再生系CPU133用の新しいプログラムを、信号線181を使用して高速に、再生系CPU133へ伝送する。
 再生系CPU133は、記録系CPU124から伝送された再生系CPU133用の新しいプログラムを、図11のフローチャートに示したように、再生系プログラム記憶部131内の第2の再生系プログラム領域131h(第2の起動面)に書き込む。即ち、第1の起動面により起動しているため、再生系CPU133は、現在使用していない第2の起動面にそれを書き込む。
When the program update is instructed at the timing Tb in FIG. 12, the recording system CPU 124, for example, updates new programs stored in the external storage device 170 (both for the recording system CPU 124 and the playback system CPU 133. Program).
The recording system CPU 124 writes a new program for the recording system CPU 124 in the second recording system program area 121h (second startup surface) in the recording system program storage unit 121 according to the procedure shown in the flowchart of FIG. That is, since it is activated by the first activation surface, the recording CPU 124 writes it on the second activation surface that is not currently used. Further, the recording system CPU 124 transmits a new program for the reproduction system CPU 133 to the reproduction system CPU 133 at high speed using the signal line 181.
As shown in the flowchart of FIG. 11, the reproduction system CPU 133 transmits a new program for the reproduction system CPU 133 transmitted from the recording system CPU 124 to the second reproduction system program area 131h (second program) in the reproduction system program storage unit 131. Write to the starting surface). That is, since it is activated by the first activation surface, the reproduction system CPU 133 writes it on the second activation surface that is not currently used.
 再生系CPU133は、新しいプログラムの書き込みを完了すると、信号線181経由で、記録系CPU124へ書き込み完了を通知する。記録系CPU124は、再生系CPU133の書き込み完了通知を受け取り、かつ、記録系CPU124自身の新しいプログラム書き込みを完了したときに、図11のフローチャートに示したように、プログラム管理領域121fの第1の管理領域301又は第2の管理領域302を書き換える。図12では、これを、タイミングTcで示している。図12では、プログラムの更新により、次回起動時に使用される起動面指定値が、第1の起動面から第2の起動面に変わったことを示している。 When the writing of the new program is completed, the reproducing system CPU 133 notifies the recording system CPU 124 of the completion of writing via the signal line 181. When the recording system CPU 124 receives the writing completion notification from the reproduction system CPU 133 and completes the new program writing of the recording system CPU 124 itself, as shown in the flowchart of FIG. 11, the first management of the program management area 121f is performed. The area 301 or the second management area 302 is rewritten. In FIG. 12, this is indicated by timing Tc. FIG. 12 shows that the activation surface designation value used at the next activation is changed from the first activation surface to the second activation surface by the program update.
 図12のタイミングTdでは、プログラムの更新が完了し、監視レコーダ110の電源がOFFにされる。プログラム更新完了後に、監視レコーダ110の電源をOFFにし、再度電源をONする処理は、監視レコーダ110が自動で実行しても良いし、監視レコーダのユーザが手作業で実施してもよい。 At timing Td in FIG. 12, the program update is completed and the power of the monitoring recorder 110 is turned off. After the program update is completed, the process of turning off the power of the monitoring recorder 110 and turning it on again may be automatically executed by the monitoring recorder 110 or manually by the user of the monitoring recorder.
 図12のタイミングTeにて、監視レコーダ110の電源が再度ONにされ、記録系CPU124及び再生系CPU133が起動する。このとき、記録系CPU124では、図6に示されているフローチャートに従って、処理が実行される。また、再生系CPU133では、図9に示されているフローチャートに従って、処理が実行される。
 記録系CPU124で読み出される起動面指定値は、プログラム更新により第2の起動面に切り替わっている。また、ここでは、プログラム起動制御部140から出力される起動面変更フラグは「0(起動面変更なし)」のままである。このため、図8に示されているフローチャートに従って、第2の起動面の使用が決定され、第2の起動面を示す起動面情報が出力される。これにより、記録系CPU124は、第2の起動面のプログラム、即ち、図2の第2の記録系プログラム領域121hに格納された更新後の新しいプログラムを実行する。また、再生系CPU133も、第2の起動面のプログラム、すなわち、図5の第2の再生系プログラム領域131hに格納された更新後の新しいプログラムを実行する。
At the timing Te in FIG. 12, the power of the monitoring recorder 110 is turned on again, and the recording system CPU 124 and the reproduction system CPU 133 are activated. At this time, the recording CPU 124 executes processing according to the flowchart shown in FIG. Further, the reproduction system CPU 133 executes processing in accordance with the flowchart shown in FIG.
The activation surface designation value read by the recording system CPU 124 is switched to the second activation surface by program update. Here, the activation surface change flag output from the program activation control unit 140 remains “0 (no activation surface change)”. For this reason, according to the flowchart shown in FIG. 8, the use of the second activation plane is determined, and activation plane information indicating the second activation plane is output. Thus, the recording system CPU 124 executes the second startup surface program, that is, the updated new program stored in the second recording system program area 121h of FIG. The reproduction system CPU 133 also executes the second startup surface program, that is, the updated new program stored in the second reproduction system program area 131h of FIG.
 図12のタイミングTfでは、記録系CPU124と再生系CPU133の何れか、または両方が正常に起動せず、そのことをプログラム起動制御部140が検出し、起動面変更フラグを「0」から「1」に変更した上で、記録系CPU124及び再生系CPU133を再起動している。プログラム起動制御部140は、例えば、記録系CPU124及び再生系CPU133と信号線182、183で接続されていて、これらの信号線182、183により各CPU124、133と通信して、各CPU124、133が正常に起動したかどうかを判定するものとする。 At timing Tf in FIG. 12, either or both of the recording system CPU 124 and the reproduction system CPU 133 do not start normally, and the program activation control unit 140 detects this, and changes the activation surface change flag from “0” to “1”. The recording system CPU 124 and the reproduction system CPU 133 are restarted. The program activation control unit 140 is connected to, for example, the recording system CPU 124 and the reproduction system CPU 133 through signal lines 182 and 183, and communicates with the CPUs 124 and 133 through these signal lines 182 and 183. It shall be determined whether or not it has started normally.
 図12のタイミングTfでは、記録系CPU124及び再生系CPU133が再起動する。このとき、記録系CPU124では、図6に示されているフローチャートに従って、処理が実行される。また再生系CPU133では、図9に示されているフローチャートに従って、処理が実行される。記録系CPU124によって読み出された起動面指定値は、プログラム更新により第2の起動面に切り替わっている。また、図12では、プログラム起動制御部140から出力される起動面変更フラグは「1」に変更されている。このため、使用される起動面は、第1の起動面に決定され、第1の起動面を示す起動面情報が出力される。これにより、記録系CPU124は、第1の起動面のプログラム、すなわち、図2の第1の記録系プログラム領域121gに格納されたプログラムを実行する。また、再生系CPU133も、第1の起動面のプログラム、すなわち、図5の第1の再生系プログラム領域131gに格納されたプログラムを実行する。
 再起動により、記録系CPU124がアプリケーションの起動(図6のステップS17)まで正常に動作し、かつ、再生系CPU133がアプリケーションの起動(図9のステップS55)まで正常に動作した時点で、それぞれのCPU124、133がそのことをプログラム起動制御部140へ通知する。それによりプログラム起動制御部140は、起動面変更フラグを「1」から「0」に戻す。
At timing Tf in FIG. 12, the recording system CPU 124 and the playback system CPU 133 are restarted. At this time, the recording CPU 124 executes processing according to the flowchart shown in FIG. In the reproduction system CPU 133, processing is executed according to the flowchart shown in FIG. The activation surface designation value read by the recording system CPU 124 is switched to the second activation surface by program update. In FIG. 12, the activation surface change flag output from the program activation control unit 140 is changed to “1”. For this reason, the activation surface to be used is determined as the first activation surface, and activation surface information indicating the first activation surface is output. Thereby, the recording system CPU 124 executes the first startup surface program, that is, the program stored in the first recording system program area 121g of FIG. Further, the reproduction system CPU 133 also executes the first startup surface program, that is, the program stored in the first reproduction system program area 131g of FIG.
When the recording system CPU 124 operates normally until the application is activated (step S17 in FIG. 6) and the reproduction system CPU 133 operates normally until the application is activated (step S55 in FIG. 9), The CPUs 124 and 133 notify the program activation control unit 140 of this fact. Thereby, the program activation control unit 140 returns the activation surface change flag from “1” to “0”.
 図12のタイミングTfでの動作により、更新後の新しいプログラム(第2の起動面に格納)で正常に監視レコーダ110が起動しなくなった場合でも、動作実績のある第1の起動面のプログラムにより正常起動することが可能である。そして、正常起動した後で、再度、第2の起動面に対してプログラムの更新が行われることで、プログラムの更新を完了することができる。 Even if the monitoring recorder 110 does not start normally with the updated new program (stored in the second startup surface) by the operation at the timing Tf in FIG. 12, the program on the first startup surface with a track record of operation is used. It is possible to start normally. Then, after the normal activation, the program update is performed again on the second activation surface, whereby the program update can be completed.
 以上に記載した実施の形態1によれば、記録系CPU124及び再生系CPU133のそれぞれが複数のプログラム領域を備えているため、プログラム更新の際にプログラムが正しく更新されず、新しいプログラムに破損があった場合でも、更新前のプログラムを格納したプログラム領域を選択して、システムを起動することができ、さらに、再度プログラムの更新処理を実施することができる。 According to the first embodiment described above, since each of the recording system CPU 124 and the playback system CPU 133 has a plurality of program areas, the program is not updated correctly when the program is updated, and the new program is damaged. Even in such a case, it is possible to select the program area in which the program before the update is stored, start the system, and further execute the program update process again.
 また、記録系CPU124及び再生系CPU133が共通の起動面情報を使用して、それぞれのCPUが起動するプログラムを格納したプログラム領域を選択するため、プログラムのバージョンを確認することなく複数CPUのプログラムのバージョンを正常動作可能な組み合せとすることができる。 Further, since the recording system CPU 124 and the playback system CPU 133 use the common startup surface information to select a program area in which the programs to be started by the respective CPUs are selected, the programs of the multiple CPUs can be checked without checking the program versions. The version can be a combination that can operate normally.
 100 監視システム、 110 監視レコーダ、 111 通信I/F部、 112 出力I/F部、 113 接続I/F部、 120 記録部、 121 記録系プログラム記憶部、 122 記録系ワークメモリ、 123 情報格納部、 124 記録系CPU、 130 再生部、 131 再生系プログラム記憶部、 132 再生系ワークメモリ、 133 再生系CPU、 140 プログラム起動制御部、 145 通知部、 150 カメラ、 160 表示装置、 170 外部記憶装置、 180,181,182,183 信号線。 100 monitoring system, 110 monitoring recorder, 111 communication I / F unit, 112 output I / F unit, 113 connection I / F unit, 120 recording unit, 121 recording system program storage unit, 122 recording system work memory, 123 information storage unit , 124 recording system CPU, 130 playback unit, 131 playback system program storage unit, 132 playback system work memory, 133 playback system CPU, 140 program start control unit, 145 notification unit, 150 camera, 160 display device, 170 external storage device, 180, 181, 182, 183 signal lines.

Claims (12)

  1.  第1のプロセッサと、
     前記第1のプロセッサを起動するために使用される第1のプログラムを記憶する第1の記憶領域、及び、当該第1のプログラムとバージョンが異なり、前記第1のプロセッサを起動するために使用される第2のプログラムを記憶する第2の記憶領域を有する第1の記憶部と、
     第2のプロセッサと、
     前記第2のプロセッサを起動するために使用され、前記第1のプログラムに対応する第3のプログラムを記憶する第3の記憶領域、及び、前記第2のプロセッサを起動するために使用され、前記第2のプログラムに対応する第4のプログラムを記憶する第4の記憶領域を有する第2の記憶部と、を備え、
     前記第1のプロセッサは、前記第1のプログラム又は前記第2のプログラムを使用して起動するとともに、前記第3の記憶領域及び第4の記憶領域の内、起動に必要なプログラムの記憶領域を示す記憶領域情報を前記第2のプロセッサに通知し、
     前記第2のプロセッサは、前記第1のプロセッサから通知された記憶領域情報に示されている記憶領域に記憶されているプログラムを使用して起動すること
     を特徴とする監視レコーダ。
    A first processor;
    A first storage area for storing a first program used to start the first processor, and a version different from that of the first program are used to start the first processor. A first storage unit having a second storage area for storing the second program,
    A second processor;
    A third storage area for storing a third program corresponding to the first program, used for starting the second processor, and used for starting the second processor; A second storage unit having a fourth storage area for storing a fourth program corresponding to the second program,
    The first processor is activated using the first program or the second program, and a storage area for a program required for activation is selected from the third storage area and the fourth storage area. Notifying the second processor of storage area information indicating;
    The monitoring recorder, wherein the second processor is activated by using a program stored in a storage area indicated in the storage area information notified from the first processor.
  2.  前記第1の記憶部は、起動に使用するプログラムを記憶している領域として、当該第1の記憶領域及び当該第2の記憶領域の何れか一方を示す記憶領域指定値を含むプログラム管理情報を記憶しており、
     前記第1のプロセッサは、前記記憶領域指定値で示される記憶領域に記憶されているプログラムを使用して起動すること
     を特徴とする請求項1に記載の監視レコーダ。
    The first storage unit stores program management information including a storage area designating value indicating either the first storage area or the second storage area as an area for storing a program used for activation. Remember,
    The monitoring recorder according to claim 1, wherein the first processor is activated using a program stored in a storage area indicated by the storage area specification value.
  3.  前記第1の記憶部及び前記第2の記憶部に記憶されているプログラムを更新する際に、
     前記第1のプロセッサは、前記第1のプログラム及び前記第2のプログラムの内、起動に使用されたプログラムを記憶している記憶領域とは別の記憶領域に記憶されているプログラムを更新し、
     前記第2のプロセッサは、前記第3のプログラム及び前記第4のプログラムの内、起動に使用されたプログラムを記憶している記憶領域とは別の記憶領域に記憶されているプログラムを更新し、
     前記第1のプロセッサは、前記第1の記憶部及び前記第2の記憶部に記憶されているプログラムの更新後に、前記記憶領域指定値を更新された側のプログラムを記憶している記憶領域を示すように更新すること
     を特徴とする請求項2に記載の監視レコーダ。
    When updating the program stored in the first storage unit and the second storage unit,
    The first processor updates a program stored in a storage area different from the storage area storing the program used for activation among the first program and the second program,
    The second processor updates a program stored in a storage area different from the storage area storing the program used for activation among the third program and the fourth program,
    The first processor has a storage area for storing a program on the side where the storage area designation value is updated after updating the program stored in the first storage section and the second storage section. The monitoring recorder according to claim 2, wherein the monitoring recorder is updated as shown.
  4.  前記第1のプロセッサ及び前記第2のプロセッサの起動を制御するプログラム起動制御部をさらに備え、
     前記プログラム起動制御部は、前記第1のプロセッサ及び前記第2のプロセッサの少なくとも何れか一方の起動にエラーが生じた場合には、前記第1のプロセッサ及び前記第2のプロセッサを再起動させるともに、前記第1のプロセッサに、前記記憶領域指定値で示される記憶領域とは別の記憶領域に記憶されているプログラムを使用して起動するように指示し、
     前記第1のプログラムは、前記記憶領域指定値で示される記憶領域とは別の記憶領域に記憶されているプログラムを使用して再起動を行うこと
     を特徴とする請求項2又は3に記載の監視レコーダ。
    A program activation control unit for controlling activation of the first processor and the second processor;
    The program activation control unit restarts the first processor and the second processor when an error occurs in activation of at least one of the first processor and the second processor. , Instructing the first processor to start using a program stored in a storage area different from the storage area indicated by the storage area specification value;
    The said 1st program is restarted using the program memorize | stored in the memory area different from the memory area shown by the said memory area designation | designated value. Surveillance recorder.
  5.  前記記憶領域指定値は、2以上のビット幅の2進数のデータで構成され、値が「1」であるビット数に応じて、前記第1の記憶領域及び前記第2の記憶領域の何れか一方を示すこと
     を特徴とする請求項2から4の何れか一項に記載の監視レコーダ。
    The storage area designation value is composed of binary data having a bit width of 2 or more, and according to the number of bits whose value is “1”, one of the first storage area and the second storage area One side is shown. The surveillance recorder according to any one of claims 2 to 4 characterized by things.
  6.  前記第1の記憶部に記憶されているプログラム管理情報は、第1のプログラム管理情報及び第2のプログラム管理情報を備え、
     前記第1のプログラム管理情報及び前記第2のプログラム管理情報は、それぞれ前記記憶領域指定値を含み、
     前記第1のプロセッサは、起動を行う際に、前記第1のプログラム管理情報及び前記第2のプログラム管理情報の何れかに含まれている前記記憶領域指定値に基づいて、前記第1の記憶領域及び前記第2の記憶領域の何れに記憶されているプログラムを使用して起動するかを決定すること
     を特徴とする請求項2から5の何れか一項に記載の監視レコーダ。
    The program management information stored in the first storage unit includes first program management information and second program management information,
    Each of the first program management information and the second program management information includes the storage area designation value,
    When the first processor starts up, the first processor stores the first storage based on the storage area designation value included in either the first program management information or the second program management information. The monitoring recorder according to any one of claims 2 to 5, wherein an activation is determined using a program stored in an area or the second storage area.
  7.  前記第1のプログラム管理情報及び前記第2のプログラム管理情報は、それぞれのプログラム管理情報のバージョンを示すバージョン番号をそれぞれ含んでおり、
     前記第1のプロセッサは、前記バージョン番号を参照して、より新しいバージョンのプログラム管理情報に含まれている前記記憶領域指定値に基づいて、前記第1の記憶領域及び前記第2の記憶領域の何れに記憶されているプログラムを使用して起動するかを決定すること
     を特徴とする請求項6に記載の監視レコーダ。
    The first program management information and the second program management information each include a version number indicating the version of each program management information,
    The first processor refers to the version number and determines the first storage area and the second storage area based on the storage area designation value included in the newer version of the program management information. The monitoring recorder according to claim 6, wherein it is determined which program is to be used to activate the program.
  8.  前記第1のプログラム管理情報及び前記第2のプログラム管理情報は、それぞれの誤りを検出するためのチェック値をそれぞれ含んでおり、
     前記第1のプロセッサは、前記チェック値を用いて、前記第1のプログラム管理情報及び前記第2のプログラム管理情報の誤りチェックを行い、前記第1のプログラム管理情報及び前記第2のプログラム管理情報の何れか一方に誤りが検出された場合には、他方に含まれている前記記憶領域指定値に基づいて、前記第1の記憶領域及び前記第2の記憶領域の何れに記憶されているプログラムを使用して起動するかを決定すること
     を特徴とする請求項6に記載の監視レコーダ。
    The first program management information and the second program management information each include a check value for detecting each error,
    The first processor performs an error check on the first program management information and the second program management information using the check value, and performs the first program management information and the second program management information. If an error is detected in any one of the programs, the program stored in either the first storage area or the second storage area based on the storage area designation value included in the other The monitoring recorder according to claim 6, wherein it is determined whether or not to start using the computer.
  9.  前記第1のプロセッサ及び前記第2のプロセッサは、1度に1ビットのデータのみを伝送することのできる第1の信号線で接続されており、
     前記第1のプロセッサは、前記第1の信号線を介して、前記記憶領域情報を前記第2のプロセッサに通知すること
     を特徴とする請求項1から8の何れか一項に記載の監視レコーダ。
    The first processor and the second processor are connected by a first signal line capable of transmitting only one bit of data at a time,
    The monitoring recorder according to any one of claims 1 to 8, wherein the first processor notifies the second processor of the storage area information via the first signal line. .
  10.  前記第1のプロセッサ及び前記第2のプロセッサは、前記第1の信号線よりも高速にデータを伝送することのできる第2の信号線でさらに接続されており、
     前記第1のプロセッサは、前記第2の信号線を介して、更新に用いるプログラムを前記第2のプロセッサに伝送すること
     を特徴とする請求項9に記載の監視レコーダ。
    The first processor and the second processor are further connected by a second signal line capable of transmitting data at a higher speed than the first signal line,
    The monitoring recorder according to claim 9, wherein the first processor transmits a program used for updating to the second processor via the second signal line.
  11.  前記第1のプロセッサが前記第1のプログラム又は前記第2のプログラムの起動を完了した後に、前記第2のプロセッサは、前記記憶領域情報を受け取ること
     を特徴とする請求項1から10の何れか一項に記載の監視レコーダ。
    The said 2nd processor receives the said storage area information after the said 1st processor completes starting of the said 1st program or the said 2nd program, The one of Claim 1 to 10 characterized by these. The surveillance recorder according to one item.
  12.  前記第1のプロセッサは、前記第2のプロセッサが前記記憶領域情報を受け取るまで、前記記憶領域情報を出力し続けること
     を特徴とする請求項11に記載の監視レコーダ。
    The monitoring recorder according to claim 11, wherein the first processor continues to output the storage area information until the second processor receives the storage area information.
PCT/JP2015/078440 2015-02-26 2015-10-07 Monitoring recorder WO2016136014A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016508503A JPWO2016136014A1 (en) 2015-02-26 2015-10-07 Surveillance recorder

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015036876 2015-02-26
JP2015-036876 2015-02-26

Publications (1)

Publication Number Publication Date
WO2016136014A1 true WO2016136014A1 (en) 2016-09-01

Family

ID=56788238

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2015/078440 WO2016136014A1 (en) 2015-02-26 2015-10-07 Monitoring recorder

Country Status (2)

Country Link
JP (1) JPWO2016136014A1 (en)
WO (1) WO2016136014A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018139296A1 (en) * 2017-01-25 2018-08-02 日立オートモティブシステムズ株式会社 Vehicle control device and program updating system
KR101920453B1 (en) * 2018-06-11 2018-11-20 주식회사 포딕스시스템 An nvr system that runs separately from one system to another

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002049509A (en) * 2000-08-01 2002-02-15 Hitachi Ltd Data processing system
JP2002312334A (en) * 2001-04-16 2002-10-25 Sharp Corp Multiprocessor system
JP2003122578A (en) * 2001-10-15 2003-04-25 Sony Corp Device and method for receiving broadcast
JP2003316592A (en) * 2002-04-25 2003-11-07 Mitsubishi Electric Corp Flash rom management method for program information
JP2004355310A (en) * 2003-05-29 2004-12-16 Konica Minolta Business Technologies Inc Image processing device
JP2005165557A (en) * 2003-12-01 2005-06-23 Canon Inc Information processor, control method and control program
JP2007213292A (en) * 2006-02-09 2007-08-23 Nec Electronics Corp Method for starting multiprocessor system and slave system
JP2011198315A (en) * 2010-03-24 2011-10-06 Mitsubishi Electric Corp Digital recorder

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004252704A (en) * 2003-02-20 2004-09-09 Mitsubishi Electric Corp Equipment managing device, network connecting equipment, network system, equipment managing method, program for executing the method and recording medium with the program recorded thereon
JP4373943B2 (en) * 2005-02-28 2009-11-25 Tdk株式会社 Memory controller, flash memory system, and flash memory control method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002049509A (en) * 2000-08-01 2002-02-15 Hitachi Ltd Data processing system
JP2002312334A (en) * 2001-04-16 2002-10-25 Sharp Corp Multiprocessor system
JP2003122578A (en) * 2001-10-15 2003-04-25 Sony Corp Device and method for receiving broadcast
JP2003316592A (en) * 2002-04-25 2003-11-07 Mitsubishi Electric Corp Flash rom management method for program information
JP2004355310A (en) * 2003-05-29 2004-12-16 Konica Minolta Business Technologies Inc Image processing device
JP2005165557A (en) * 2003-12-01 2005-06-23 Canon Inc Information processor, control method and control program
JP2007213292A (en) * 2006-02-09 2007-08-23 Nec Electronics Corp Method for starting multiprocessor system and slave system
JP2011198315A (en) * 2010-03-24 2011-10-06 Mitsubishi Electric Corp Digital recorder

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018139296A1 (en) * 2017-01-25 2018-08-02 日立オートモティブシステムズ株式会社 Vehicle control device and program updating system
JPWO2018139296A1 (en) * 2017-01-25 2019-06-27 日立オートモティブシステムズ株式会社 Vehicle control device and program update system
US10871959B2 (en) 2017-01-25 2020-12-22 Hitachi Automotive Systems, Ltd. Vehicle control device and program update system
KR101920453B1 (en) * 2018-06-11 2018-11-20 주식회사 포딕스시스템 An nvr system that runs separately from one system to another

Also Published As

Publication number Publication date
JPWO2016136014A1 (en) 2017-04-27

Similar Documents

Publication Publication Date Title
CN102023908B (en) Method and device for backing up boot program
US8341386B2 (en) Method for updating basic input/output system and method for repairing thereof
JP5575338B2 (en) Information processing apparatus, information processing method, and computer program
US20140123121A1 (en) Rack and method thereof for simultaneously updating basic input output systems
JP2790134B1 (en) Disk array system
KR20170040734A (en) Electronic system with update control mechanism and method of operation thereof
WO2023273085A1 (en) Server and control method therefor
US8583959B2 (en) System and method for recovering data of complementary metal-oxide semiconductor
WO2016136014A1 (en) Monitoring recorder
JP2007249469A (en) Nonvolatile semiconductor storage device and memory system
JP2005525668A (en) Hard disk drive system, method and apparatus using such a system
JP5880862B2 (en) Control system
KR20080066381A (en) Method for upgrading software
CN116450244A (en) Chip starting method, device, computer equipment and storage medium
JP5933875B1 (en) Information processing apparatus and activation method
CN101299200A (en) Processor system, equipment and fault handling method
JP2014006772A (en) Failure monitoring type communication apparatus, failure monitoring recording method for communication apparatus, and program therefor
WO2011158367A1 (en) Technology for updating active program
JP6021597B2 (en) Information processing apparatus, information processing method, and computer program
JP2014089497A (en) Information processing device
WO2016098408A1 (en) Information processing device and startup method
JP4483947B2 (en) I / O controller
WO2014109100A1 (en) Information processing device, information processing method, and program
US9928154B2 (en) Leveling stress factors among like components in a server
TWI448967B (en) Updating method of software and computer readable medium

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2016508503

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15883304

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15883304

Country of ref document: EP

Kind code of ref document: A1