CN112040162B - Control method and control device for storing camera shooting video data and video acquisition equipment - Google Patents

Control method and control device for storing camera shooting video data and video acquisition equipment Download PDF

Info

Publication number
CN112040162B
CN112040162B CN202011219654.5A CN202011219654A CN112040162B CN 112040162 B CN112040162 B CN 112040162B CN 202011219654 A CN202011219654 A CN 202011219654A CN 112040162 B CN112040162 B CN 112040162B
Authority
CN
China
Prior art keywords
main control
control chip
memory
chip module
firmware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011219654.5A
Other languages
Chinese (zh)
Other versions
CN112040162A (en
Inventor
袁丹锋
赖照群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Adas High Tech Co ltd
Original Assignee
Shenzhen Adas High Tech Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Adas High Tech Co ltd filed Critical Shenzhen Adas High Tech Co ltd
Priority to CN202011219654.5A priority Critical patent/CN112040162B/en
Publication of CN112040162A publication Critical patent/CN112040162A/en
Application granted granted Critical
Publication of CN112040162B publication Critical patent/CN112040162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/78Television signal recording using magnetic recording
    • H04N5/781Television signal recording using magnetic recording on disks or drums

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a control method and a control device for storing camera shooting video data and video acquisition equipment, wherein the control method is applied to a camera shooting system, and the system comprises the following steps: the system comprises a main control chip module, an embedded memory, a temporary memory, a switch module, a firmware memory and an external memory, wherein the external memory, the temporary memory and the switch module are respectively and electrically connected with the main control chip module; the firmware memory and the embedded memory are respectively electrically connected with the switch module. The problem of storing the video data of the camera under the condition of insufficient interface of the main control chip module is solved by adding the switch module in the camera system and executing the control method for storing the video data of the camera matched with the camera system.

Description

Control method and control device for storing camera shooting video data and video acquisition equipment
Technical Field
The invention relates to the technical field of video data storage, in particular to a control method and a control device for storing camera shooting video data and video acquisition equipment.
Background
At present, the types of video recording devices on the market are increasing, for example, cameras, security control equipment, automobile recorders and the like, one of the chips used in the video recording devices is a digital video processing chip, and at the beginning of the design of the video recording devices, the production cost of a wafer, the packaging cost of the chip, the size of the chip, the energy consumption of the chip and other factors are considered at the same time, so that the interfaces of the digital video processing chips on the market are not set much. In the case that the interface of the digital video processing chip connected to the memory is insufficient, how to solve the problem of video data storage is worth paying attention.
Disclosure of Invention
In view of the above, it is necessary to provide a control method and a control device for storing video data, and a video capture device, and an object of the present invention is to solve the problem of storing video data when an interface of a main control chip module is insufficient by adding a switch module in a video capture system and executing a control method for storing video data in accordance with the video capture system.
In a first aspect, the present application provides a control method for storing captured video data, the control method being applied to a camera system, the system comprising: the system comprises a main control chip module, an embedded memory, a temporary memory, a switch module, a firmware memory and an external memory, wherein the external memory, the temporary memory and the switch module are respectively and electrically connected with the main control chip module; the firmware memory and the embedded memory are respectively electrically connected with the switch module; the method comprises the following steps:
after the camera system is started, the main control chip module controls the switch module to enable a circuit where the firmware memory is located to be conducted;
the main control chip module reads a first firmware file stored in the firmware memory and writes the first firmware file into the temporary storage memory for temporary storage, wherein the first firmware file is a system file for controlling the hardware of the camera system;
the main control chip module controls the switch module to enable the circuit where the embedded memory is located to be conducted;
when the main control chip module receives a storage instruction of video data, the main control chip module writes the video data acquired from the outside into the embedded memory or into the external memory for storage, and the storage instruction comprises a storage path identifier written into the embedded memory or a storage path identifier written into the external memory;
when the main control chip module receives a closing instruction of the camera system, the main control chip module stops obtaining the camera video data from the outside and controls the switch module to enable the circuit where the firmware memory is located to be switched on, and controls the camera system to be closed.
Optionally, before the main control chip module controls the switch module to turn on the circuit where the embedded memory is located, the method includes:
the main control chip module reads a second firmware file in the external memory, wherein the version of the second firmware file is different from that of the first firmware file;
and if the main control chip module reads a second firmware file in the external memory, the main control chip module carries out version upgrading on the first firmware file temporarily stored in the temporary storage according to the second firmware file.
Optionally, after the main control chip module performs version upgrade on the first firmware file temporarily stored in the temporary storage according to the second firmware file, the method includes:
the main control chip module writes the first firmware file with the updated version into the firmware memory;
and the main control chip module controls the camera system to restart.
Optionally, before the main control chip module receives a closing instruction of the camera system, the main control chip module stops obtaining the camera video data from the outside and controls the switch module to turn on a circuit where the firmware memory is located, the method includes:
when the main control chip module obtains a target firmware parameter of the camera system, the main control chip module updates the firmware parameter in the first firmware file temporarily stored in the temporary storage according to the target firmware parameter, wherein the target firmware parameter is firmware data read by the main control chip module when a user adjusts the firmware parameter of the camera system.
Optionally, when the main control chip module receives a closing instruction of the camera system, after the main control chip module stops obtaining the camera video data from the outside and controls the switch module to turn on a circuit where the firmware memory is located, the method includes:
and the main control chip module writes the first firmware file which is temporarily stored in the temporary storage memory and is updated according to the target firmware parameters into the firmware memory for storage.
Optionally, the external memory has a hot plug function.
Optionally, the camera system further includes a wireless communication module, and the wireless communication module is electrically connected to the main control chip module;
the wireless communication module is used for realizing communication connection between the main control chip module and external equipment or a cloud platform.
Optionally, the main control chip module further includes: a general input/output interface;
the switch module is also electrically connected with the main control chip module through the universal input/output interface, and the main control chip module controls the switch module through the universal input/output interface to enable the circuit where the firmware memory is located to be conducted or enable the circuit where the embedded memory is located to be conducted.
In a second aspect, the present application provides a control apparatus for storing captured video data, the control apparatus being applied to a camera system, the system comprising: the system comprises a main control chip module, an embedded memory, a temporary memory, a switch module, a firmware memory and an external memory, wherein the external memory, the temporary memory and the switch module are respectively and electrically connected with the main control chip module; the firmware memory and the embedded memory are respectively electrically connected with the switch module; the main control chip module calls the control device to realize the following steps:
after the camera system is started, controlling the switch module to conduct a circuit where the firmware memory is located;
reading a first firmware file stored in the firmware memory, and writing the first firmware file into the temporary storage memory for temporary storage, wherein the first firmware file is a system file for controlling the hardware of the camera system;
controlling the switch module to conduct a circuit where the embedded memory is located;
when the main control chip module receives a storage instruction of video data, the video data obtained from the outside is written into the embedded memory or the external memory for storage, and the storage instruction comprises a storage path identifier written into the embedded memory or a storage path identifier written into the external memory;
and when the main control chip module receives a closing instruction of the camera system, stopping acquiring the camera video data from the outside, controlling the switch module to enable the circuit where the firmware memory is located to be switched on, and controlling the camera system to be closed.
In a third aspect, the present application provides a video capture device comprising a camera system;
the video acquisition equipment executes the following control method for storing the camera shooting video data through the camera shooting system:
after the camera system is started, the main control chip module controls the switch module to enable a circuit where the firmware memory is located to be conducted;
the main control chip module reads a first firmware file stored in the firmware memory and writes the first firmware file into the temporary storage memory for temporary storage, wherein the first firmware file is a system file for controlling the hardware of the camera system;
the main control chip module controls the switch module to enable the circuit where the embedded memory is located to be conducted;
when the main control chip module receives a storage instruction of video data, the main control chip module writes the video data acquired from the outside into the embedded memory or into the external memory for storage, and the storage instruction comprises a storage path identifier written into the embedded memory or a storage path identifier written into the external memory;
when the main control chip module receives a closing instruction of the camera system, the main control chip module stops obtaining the camera video data from the outside and controls the switch module to enable the circuit where the firmware memory is located to be switched on, and controls the camera system to be closed.
The embodiment of the invention has the following beneficial effects:
the invention discloses a control method and a control device for storing camera shooting video data and video acquisition equipment, wherein the method comprises the following steps: when the camera system is started, the main control chip module controls the switch module to enable a circuit where the firmware memory is located to be conducted, reads a first firmware file stored in the firmware memory and writes the first firmware file into the temporary storage memory for temporary storage, the first firmware file is a system file for controlling hardware of the camera system, the main control chip module controls the switch module to enable the circuit where the embedded memory is located to be conducted, when the main control chip module receives a storage instruction of camera video data, the main control chip module writes the camera video data acquired from the outside into the embedded memory or into the external memory for storage, the storage instruction comprises a storage path identifier written into the embedded memory or a storage path identifier written into the external memory, and when the main control chip module receives a closing instruction of the camera system, the main control chip module stops acquiring the camera video data from the outside and controls the switch module to enable the firmware to be stored into the external memory The circuit where the device is located is conducted, and the camera system is controlled to be closed. The problem of storing the video data of the camera under the condition of insufficient interface of the main control chip module is solved by adding the switch module in the camera system and executing the control method for storing the video data of the camera matched with the camera system.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic flowchart of a control method for storing captured video data according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a camera system in an embodiment of the present application;
FIG. 3 is a flow chart illustrating additional steps of the control method for storing captured video data according to the embodiment of FIG. 1;
FIG. 4 is another schematic structural diagram of the camera system in the embodiment of FIG. 2 of the present application;
fig. 5 is a schematic structural diagram of an image capturing system according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1 and fig. 2, fig. 1 is a schematic flowchart of a control method for storing captured video data in an embodiment of the present application, and fig. 2 is a schematic structural diagram of an image capturing system in the embodiment of the present application, where the image capturing system 201 includes: the main control chip module 203, the embedded memory 207, the temporary memory 204, the switch module 205, the firmware memory 206 and the external memory 202, wherein the external memory 202, the temporary memory 204 and the switch module 205 are respectively electrically connected with the main control chip module 203; the firmware memory 206 and the embedded memory 207 are electrically connected to the switch module 205 respectively; the control method of storing the camera video data is applied to the camera system 201.
In the embodiment of the present application, the main control chip module 203 includes a System On Chip (SOC), a camera, a display screen, a speaker, a key and other components, where the SOC is a system on chip, also called a system on chip, and is an integrated circuit with a dedicated target, which includes a complete system and has all contents of embedded software. From a narrow sense, the method is the chip integration of the core of an information system, and integrates key components of the system on one chip; in a broad sense, an SOC is a micro-miniature system, and if a Central Processing Unit (CPU) is the brain, the SOC is a system including the brain, heart, eyes, and hands. The academia at home and abroad generally tends to define the SOC as integrating a microprocessor, an analog IP core, a digital IP core and a memory (or off-chip memory control interface) on a single chip, which is usually custom-made or standard product oriented to a specific application.
In the embodiment of the present application, the Embedded memory 207 may be an Embedded Multi Media Card (eMMC), which is an Embedded memory standard specification established by the MMC association and mainly used for products such as mobile phones and tablet computers. The eMMC integrates a controller in a package, provides a standard interface, and manages flash memory, so that a handset manufacturer can concentrate on other parts of product development and shorten the time to market products.
In the embodiment of the present application, the temporary storage 204 may be a double data rate Random Access Memory (DDR RAM) providing twice the data transmission amount, and the DDR RAM is an internal Memory, also called a main Memory, for directly exchanging data with the SOC. It can be read and written at any time, and is fast, usually used as temporary data storage medium of operating system or other running program. The content of the memory cell of the DDR RAM can be taken out or stored as desired, and the DDR RAM is a memory whose access speed is independent of the location of the memory cell, and which loses its stored content when power is off, and is therefore mainly used for storing programs for short-term use.
In the embodiment of the present application, the firmware memory 206 is a NOR Flash (Serial Peripheral Interface NOR Flash) with a Serial Peripheral Interface, and the SPI is a high-speed, full-duplex, and synchronous communication bus, and only four lines are occupied on pins of the chip, so that the pins of the chip are saved, and meanwhile, space is saved for the layout of the PCB, which provides convenience. NOR Flash is characterized by on-chip execution (XIP), so that applications can run directly In Flash memory without having to read the code into system RAM. NOR Flash has high transmission efficiency and has high cost benefit when the capacity is small, namely 1-4 MB.
In the embodiment of the present application, the firmware storage 206 is used to store a firmware file for driving the entire image capturing system 201 to run, where the firmware file refers to a device "driver" stored inside the device, and only through the firmware file, the operating system can implement the running action of a specific machine according to a standard device driver, for example, an optical disc drive, a recorder, and the like have internal firmware files. Firmware files are software that acts as the most basic and bottom layer of a system. In a hardware device, a firmware file is the soul of the hardware device, and since some hardware devices have no other software components except for firmware, the firmware determines the functions and performance of the hardware device. Typically, the firmware files stored in the firmware memory 206 are not directly readable or modifiable by the user. In the past, it was not generally necessary to upgrade the firmware file, and even if a serious Bug was found in the firmware file, the professional had to replace the chip on the original machine with the programmed chip. Early firmware chips typically employed a ROM design whose firmware file code was cured during the manufacturing process and could not be modified by any means. With the continuous development of the technology, it is an urgent requirement of users to modify the firmware files to adapt to the continuously updated hardware environment, so that rewritable Programmable read only memories eprom (erasable Programmable rom), EEPROM and flash are available, and these chips can be repeatedly written and erased, so that the firmware files can be modified and upgraded. Therefore, the firmware memory 206 in the embodiment of the present application adopts the SPI NOR Flash, so that the firmware file stored in the SPI NOR Flash can be upgraded as required.
In the embodiment of the present application, the external memory 202 may be a TF storage CARD (TF-CARD) or an SD CARD (SD-CARD). The TF storage card is a storage card which is frequently used in the current mobile device, and is called a Micro SD card, and a TF type storage card can be inserted into a device such as a mobile phone or MP5 with the identifier. The technology of SD CARDs (Secure Digital Memory Card, SD-Card) is developed based on the Multimedia Card (MMC) format, also called SD Card. The SD card and the MMC card keep upward compatibility, namely, the MMC card can be accessed by new SD equipment, the compatibility depends on application software, but the SD card can not be accessed by the MMC equipment, the SD card adopts a guide rail type design with the same thickness as the MMC card in appearance, and the SD card is structured to enable the SD equipment to be suitable for the MMC card. The SD card interface reserves 7 pins of the MMC card, and also adds 2 pins on two sides to be used as data lines, so that the average data transmission rate of the SD card can reach 2 MB/s. A device provided with an SD card slot can use an MMC card having a thinner body, but a standard SD card cannot be inserted into the MMC card slot. The SD card can be used by plugging an adapter on the CF card and the PCMCIA card; the minisD card and the microSD card can be used by plugging an adapter into the SD card slot. Some USB connectors can be plugged with SD cards, and some card readers can also be plugged with SD cards and accessed by a plurality of connection ports, such as USB, firmware and the like. The structure of the SD card can ensure the security of digital file transmission and is also easily reformatted, so that there are wide application fields, multimedia files such as music, movies, news, etc. can be conveniently stored in the SD card, and many digital cameras also start to support the SD card. Therefore, in the embodiment of the present application, the firmware files stored in the firmware memory 206 may be version-up updated by firmware files stored in the external memory 202 of a higher version than the firmware files stored in the firmware memory 206.
In this embodiment of the present application, the external memory 202 has a Hot plug function, i.e., Hot-plugging (Hot-plugging or Hot Swap), which is to allow a user to take out and replace a damaged hard disk, a power supply, or a board card without shutting down the system or cutting off the power supply, so as to improve the timely recovery capability, extensibility, and flexibility of the system against a disaster, for example, some disk mirroring systems facing high-end applications may provide a Hot plug function of a disk. Hot plugging was first introduced in the server area and was proposed to improve server ease of use. The computer used by people at ordinary times generally has a USB interface, and the USB interface can realize hot plug. If the hot plug function is not available, even if the damage of the disk does not cause the loss of data, the user still needs to temporarily shut down the system so as to replace the hard disk. The hard disk can be directly taken out by simply turning on a connecting switch or turning a handle by using a hot plug technology, and the system can still normally run uninterruptedly.
The method comprises the following steps:
step 101, after the camera system is started, the main control chip module controls the switch module to enable a circuit where the firmware memory is located to be conducted;
102, reading a first firmware file stored in the firmware memory by the main control chip module, and writing the first firmware file into the temporary storage memory for temporary storage, wherein the first firmware file is a system file for controlling the hardware of the camera system;
103, the main control chip module controls the switch module to enable a circuit where the embedded memory is located to be conducted;
104, when the main control chip module receives a storage instruction of the video data, the main control chip module writes the video data acquired from the outside into the embedded memory or into the external memory for storage, wherein the storage instruction comprises a storage path identifier written into the embedded memory or a storage path identifier written into the external memory;
and 105, when the main control chip module receives a closing instruction of the camera system, stopping acquiring the camera video data from the outside and controlling the switch module to enable a circuit where the firmware memory is located to be switched on, and controlling the camera system to be closed.
In this embodiment of the application, the main control chip module 203 further includes: a general input/output interface; the switch module 205 is further electrically connected to the main control chip module 203 through the general purpose input/output interface, and the main control chip module 203 controls the switch module 205 through the general purpose input/output interface to enable the circuit of the firmware memory 206 to be conducted or to enable the circuit of the embedded memory 207 to be conducted. GPIO (General Purpose I/O Ports) means a General Purpose input/output interface, in General, pins through which high and low levels can be output.
In this embodiment, the main control chip module 203 is electrically connected to the switch module 205 through the universal input/output interface, and the main control chip module 203 outputs high and low levels through the universal input/output interface to control the switch module 205 so as to enable the circuit of the firmware memory 206 to be conducted or the circuit of the embedded memory 207 to be conducted.
Further, the main control chip module 203 includes a first secure digital input/output interface and a universal input/output interface, the switch module 205 is electrically connected to the main control chip module 203 through the universal input/output interface, and the main control chip module 203 controls the switch module 205 through the universal input/output interface to switch a circuit connected behind the switch module 205. Two circuits are connected behind the switch module 205 in the image capturing system 201, one of the circuits is electrically connected to the firmware memory 206, the other circuit is electrically connected to the embedded memory 207, the switch module 205 is also electrically connected to the main control chip module 203 through the first secure digital input/output interface, and the main control chip module 203, the firmware memory 206 and the embedded memory 207 realize the transmission of data files through the first secure digital input/output interface. When the camera system 201 is powered on and started up, the main control chip module 203 reads the first firmware file from the firmware memory 206 through the first secure digital input/output interface, temporarily stores the first firmware file in the memory of the camera system 201, that is, temporarily stores the first firmware file in the temporary memory 204, and allows the first firmware file to run in the temporary memory 204.
Further, the main control chip module 203 controls the switch module 205 through the general purpose input/output interface to switch the switch module 205, and at this time, the switch module 205 turns on the circuit where the embedded memory 207 is located. The main control chip module 203 further comprises a second secure digital input/output interface, the external memory 202 is electrically connected with the main control chip module 203 through the second secure digital input/output interface, when the camera system 201 works normally, the recording of the video is executed, and the recorded camera video data is stored in the external memory 202 or the embedded memory 207 according to the needs and selections of the user, the user sends the storage instruction of the camera video data to the main control chip module 203, the storage instruction includes a storage path identifier for storing the camera video data in the embedded memory 207 or a storage path identifier for storing the camera video data in the external memory 202, and after the main control chip module 203 receives the storage instruction, the camera video data is stored in the external memory 202 or the in-line memory 207 according to the storage path identification included in the storage instruction.
When the main control chip module 203 receives a shutdown instruction of the camera system 201, the main control chip module 203 stops recording of the camera video data, after the main control chip module 203 stores the recorded camera video data in the external memory 202 or the embedded memory 207, the main control chip module 203 controls the switch module 205 through the universal input/output interface to enable a circuit where the firmware memory 206 is located to be turned on, and the main control chip module 203 writes the first firmware file temporarily stored in the temporary storage 204 in the camera system 201 into the firmware memory 206 and controls the camera system 201 to be shut down.
In the embodiment of the present application, by adding the switch module 205 to the image capturing system 201 and executing the control method for storing the captured video data matched with the image capturing system 201, the requirement that two secure digital input/output interfaces of the main control chip module 203 are simultaneously connected to the external memory 202, the embedded memory 207, and the firmware memory 206 is satisfied, so that the main control chip module 203 can read and write the firmware file from the firmware memory 206 by switching the circuit through the switch module 205, and can also store the recorded video data file into the external memory 202 or the embedded memory 207 as required by switching the circuit through the switch module 205, thereby solving the problem of storing the captured video data when the interface of the main control chip module 203 is insufficient.
As shown in fig. 3, a flow chart illustrating additional steps of the control method for storing captured video data according to the embodiment of fig. 1 of the present application includes:
step 301, the main control chip module reads a second firmware file in the external memory, where the second firmware file has a different version from the first firmware file;
step 302, if the main control chip module reads a second firmware file in the external memory, the main control chip module performs version upgrade on the first firmware file temporarily stored in the temporary storage according to the second firmware file;
step 303, the main control chip module writes the first firmware file with the updated version into the firmware memory;
and step 304, the main control chip module controls the camera system to restart.
Following step 102 in the embodiment shown in FIG. 2, additional steps described in FIG. 3 may be performed.
In the embodiment of the present application, when the image capturing system 201 is turned on, and the main control chip module 203 reads the first firmware file stored in the firmware memory 206, and writes the first firmware file into the temporary storage 204 for temporary storage.
Further, the image capturing system 201 includes an external memory 202, and the main control chip module 203 may determine whether the first firmware file controlling the image capturing system 201 needs to be version-upgraded according to whether a second firmware file with a higher version than the first firmware file exists in the external memory 202, where if the second firmware file exists, the version-upgrading is required, and if the second firmware file does not exist, the version-upgrading is not required. If the second firmware file exists, the main control chip module 203 writes the second firmware file into the temporary storage 204 and deletes the existing first firmware file in the temporary storage 204, and replaces the existing first firmware file in the original temporary storage 204 with the second firmware file as the first firmware file after the version upgrade.
After the version upgrade is completed, the main control chip module 203 writes the first firmware file after the version upgrade is completed into the firmware memory 206, and the main control chip module 203 controls the camera system 201 to restart.
It can be understood that, after the main control chip module 203 controls the camera system 201 to restart, the main control chip module 203 will return to execute step 101, and the main control chip module 203 still determines whether the firmware of the system needs to be upgraded, and if the main control chip module 203 does not read the second firmware file with the version higher than the first firmware file from the external memory 202, the main control chip module 203 continues to execute step 103.
Further, in the embodiment of the present application, before step 105 in the embodiment shown in fig. 2, the method may further include: when the main control chip module 203 acquires the target firmware parameters of the camera system 201, the main control chip module 203 updates the firmware parameters in the first firmware file temporarily stored in the temporary storage 204 according to the target firmware parameters, where the target firmware parameters are firmware data read by the main control chip module 203 when the user adjusts the firmware parameters of the camera system 201. After the above steps are executed, the main control chip module 203 will continue to execute step 105, and before the step 105 is executed to control the image capturing system 201 to be turned off, the method further includes: the main control chip module 203 writes the first firmware file which is temporarily stored in the temporary storage 204 and is updated according to the target firmware parameters into the firmware storage 206 for storage.
Specifically, when the main control chip module 203 acquires the target firmware parameters of the camera system 201, the main control chip module 203 updates the firmware parameters in the first firmware file temporarily stored in the temporary storage 204 according to the target firmware parameters, and the target firmware parameters are the firmware data read by the main control chip module 203 after the user adjusts the firmware parameters of the camera system 201. Specifically, the hardware of the imaging system 201 includes: therefore, when the user adjusts the hardware of the camera system 201, the target firmware parameters acquired by the main control chip module 203 include: brightness, display mode, display style, font, etc. of the screen; the volume of the system; the focal length and direction of the camera, etc. After the main control chip module 203 updates the firmware parameters in the first firmware file temporarily stored in the temporary storage 204 according to the target firmware parameters, when the camera system 201 is normally closed and the first firmware file with the updated target parameters is written into the firmware memory 206 and then is started again, the main control chip module 203 will utilize the first firmware file with the target firmware parameters to control the parameters of the hardware of the camera system 201, that is, the brightness, the display mode, the display style and font of the screen, the volume of the system, the focus and the direction of the camera, and the like, all execute operations according to the target parameters adjusted last time. When the camera system 201 is abnormally shut down, the main control chip module 203 does not update the firmware parameters in the first firmware file temporarily stored in the temporary storage 204 according to the target firmware parameters and writes the first firmware file without updating the firmware parameters into the firmware memory 206, and after the camera system 201 is turned on again, the main control chip module 203 does not update the target parameters before the last abnormal shut down into the first firmware file.
In the embodiment of the present application, by setting the step of updating the version of the firmware file in the camera system 201, the purpose of updating the version of the firmware file in the camera system 201 as required is achieved; by acquiring the target parameters and updating the parameters in the firmware file in the camera system 201 according to the target parameters, the hardware parameters of the camera system 201 can be updated and customized according to the requirements of users; by setting the first firmware file with the latest version and firmware parameters under the condition that the camera system 201 is normally closed to be written into the firmware memory 206, the user can use the camera system 201 for the latest version and firmware parameters next time, and the use experience of the user is improved; the firmware parameters of the first firmware file cannot be updated according to the target firmware parameters under the condition that the camera system 201 is abnormally closed, so that the first firmware file is protected.
As shown in fig. 4, which is another schematic structural diagram of the image capturing system in the embodiment shown in fig. 2 of the present application, the image capturing system 201 further includes: the wireless communication module 401, the wireless communication module 401 is electrically connected with the main control chip module 203; the wireless communication module 401 is used for the main control chip module 203 to realize communication connection with an external device or a cloud platform.
In this embodiment, the main control chip module 203 further includes a third secure digital input/output interface, and the wireless communication module 401 is electrically connected to the main control chip module 203 through the third secure digital input/output interface. Specifically, the wireless communication module 401 is a WiFi module, which is also called a serial port WiFi module, belongs to an internet of things transmission layer, and has a function of converting a serial port or TTL level into an embedded module meeting WiFi wireless network communication standards, and a built-in wireless network protocol ieee802.11b.g.n protocol stack and a TCP/IP protocol stack are provided.
Furthermore, the SDIO-WiFi module is an embedded module which is based on the SDIO interface and accords with WiFi wireless network standard, a wireless network protocol IEEE802.11 protocol stack and a TCP/IP protocol stack are built in the embedded module, and conversion from the user host platform data to a wireless network through the SDIO interface can be achieved. The SDIO has the characteristics of fast data transmission, compatibility with SD and MMC interfaces and the like.
In an embodiment of the present application, an image capturing system 201, the image capturing system 201 further includes: the wireless communication module 401, the wireless communication module 401 is electrically connected with the main control chip module 203; the wireless communication module 401 is used for the main control chip module 203 to realize communication connection with an external device or a cloud platform. The video recorded by the camera system 201 needs to be uploaded for some reasons, so the external memory 202 or the embedded memory 207 must be taken out, and the video can be uploaded only after being processed on a computer, and after the WiFi function is added, the video can be acquired by connecting the camera system 201 through WiFi, and the video clip which needs to be uploaded can be directly uploaded on the APP. The video recorded in emergency is stored in the external memory 202 or the embedded memory 207, and it is likely that the data in the external memory 202 or the embedded memory 207 is lost due to damage of the camera system 201 or human factors, and the newly added WiFi function can set automatic SYNC through APP, if there is a video segment recorded in emergency, it is automatically backed up to a specified mobile phone or other connection device, and even if there is the above problem, at least one important segment is stored in the mobile phone.
In one embodiment, a control device for storing camera video data is provided, the control device being applied to a camera system 201, the system comprising: the main control chip module 203, the embedded memory 207, the temporary memory 204, the switch module 205, the firmware memory 206 and the external memory 202, wherein the external memory 202, the temporary memory 204 and the switch module 205 are respectively electrically connected with the main control chip module 203; the firmware memory 206 and the embedded memory 207 are electrically connected to the switch module 205 respectively; the main control chip module 203 calls a control device for storing the camera shooting video data to realize the following steps:
after the camera system is started, controlling the switch module to conduct a circuit where the firmware memory is located;
reading a first firmware file stored in the firmware memory, and writing the first firmware file into the temporary storage memory for temporary storage, wherein the first firmware file is a system file for controlling the hardware of the camera system;
controlling the switch module to conduct a circuit where the embedded memory is located;
when the main control chip module receives a storage instruction of video data, the video data obtained from the outside is written into the embedded memory or the external memory for storage, and the storage instruction comprises a storage path identifier written into the embedded memory or a storage path identifier written into the external memory;
and when the main control chip module receives a closing instruction of the camera system, stopping acquiring the camera video data from the outside, controlling the switch module to enable the circuit where the firmware memory is located to be switched on, and controlling the camera system to be closed.
In the embodiment of the present application, the switch module 205 is added to the camera system 201, and the control device for storing the camera video data matched with the camera system 201 executes the control method for storing the camera video data, so that the requirement that two secure digital input/output interfaces of the main control chip module 203 are simultaneously connected to the external memory 202, the embedded memory 207, and the firmware memory 206 is met, and the main control chip module 203 can read and write the firmware file from the firmware memory 206 by switching the circuit through the switch module 205, and can also store the recorded video data file into the external memory 202 or the embedded memory 207 as required by switching the circuit through the switch module 205, thereby solving the problem of storing the camera video data when the interface of the main control chip module 203 is insufficient.
In an embodiment of the present application, a video capture device includes a camera system 201;
the video capture apparatus executes the following steps of the control method for storing captured video data by the camera system 201:
after the camera system is started, the main control chip module controls the switch module to enable a circuit where the firmware memory is located to be conducted;
the main control chip module reads a first firmware file stored in the firmware memory and writes the first firmware file into the temporary storage memory for temporary storage, wherein the first firmware file is a system file for controlling the hardware of the camera system;
the main control chip module controls the switch module to enable the circuit where the embedded memory is located to be conducted;
when the main control chip module receives a storage instruction of video data, the main control chip module writes the video data acquired from the outside into the embedded memory or into the external memory for storage, and the storage instruction comprises a storage path identifier written into the embedded memory or a storage path identifier written into the external memory;
when the main control chip module receives a closing instruction of the camera system, the main control chip module stops obtaining the camera video data from the outside and controls the switch module to enable the circuit where the firmware memory is located to be switched on, and controls the camera system to be closed.
In the embodiment of the application, the camera system 201 is installed in the video capture device, and the switch module 205 is added in the camera system 201, and the control method for storing the camera video data matched with the camera system 201 is executed, so that the requirement that two secure digital input/output interfaces of the main control chip module 203 are simultaneously connected with the external memory 202, the embedded memory 207 and the firmware memory 206 is met, the main control chip module 203 can read and write the firmware file from the firmware memory 206 through the switching of the circuit by the switch module 205, and can store the recorded video data file into the external memory 202 or the embedded memory 207 as required through the switching of the circuit by the switch module 205, and the problem of storing the camera video data under the condition that the interface of the main control chip module 203 is insufficient is solved.
As shown in fig. 5, which is a schematic structural diagram of a camera system in another embodiment of the present application, in the embodiment of the present application, compared to the above embodiments, the embedded memory 207 and the external memory 202 in the camera system 201 are interchanged in position, and the embedded memory 207 in the camera system 201 in the embodiment of the present application is electrically connected to the main control chip module 203; the external memory 202 is electrically connected to the switch module 205.
In the embodiment of the present application, an additional step of the control method of storing captured video data as shown in fig. 3 is performed after step 103 in the embodiment shown in fig. 2.
In this embodiment, after the version upgrade is completed, the main control chip module 203 controls the switch module 205 to turn on the circuit where the firmware memory 206 is located, the main control chip module 203 writes the first firmware file after the version upgrade is completed into the firmware memory 206, and the main control chip module 203 controls the camera system 201 to restart.
It can be understood that, after the main control chip module 203 controls the camera system 201 to restart, the main control chip module 203 will return to execute step 101, and the main control chip module 203 still determines whether the firmware of the system needs to be upgraded, and if the main control chip module 203 does not read the second firmware file with the version higher than the first firmware file from the external memory 202, the main control chip module 203 continues to execute step 104.
In the embodiment of the present application, the external memory 202 does not have a hot plug function to avoid the derived flow logic disorder problem.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A control method for storing captured video data, the control method being applied to a camera system, the system comprising: the system comprises a main control chip module, an embedded memory, a temporary memory, a switch module, a firmware memory and an external memory, wherein the external memory, the temporary memory and the switch module are respectively and electrically connected with the main control chip module; the firmware memory and the embedded memory are respectively electrically connected with the switch module; the method comprises the following steps:
after the camera system is started, the main control chip module controls the switch module to enable a circuit where the firmware memory is located to be conducted;
the main control chip module reads a first firmware file stored in the firmware memory and writes the first firmware file into the temporary storage memory for temporary storage, wherein the first firmware file is a system file for controlling the hardware of the camera system;
the main control chip module controls the switch module to enable the circuit where the embedded memory is located to be conducted;
when the main control chip module receives a storage instruction of video data, the main control chip module writes the video data acquired from the outside into the embedded memory or into the external memory for storage, and the storage instruction comprises a storage path identifier written into the embedded memory or a storage path identifier written into the external memory;
when the main control chip module receives a closing instruction of the camera system, the main control chip module stops acquiring the camera video data from the outside and controls the switch module to enable a circuit where the firmware memory is located to be conducted and control the camera system to be closed;
the main control chip module comprises a System On Chip (SOC);
the main control chip module comprises a first safe digital input and output interface and a universal input and output interface, the switch module is electrically connected with the main control chip module through the universal input and output interface, and the main control chip module controls the switch module through the universal input and output interface so as to realize switching of circuits connected behind the switch module; two circuits are connected behind a switch module in the camera system, wherein one circuit is electrically connected with the firmware memory, the other circuit is electrically connected with the embedded memory, the switch module is also electrically connected with a main control chip module through a first safe digital input/output interface, and the main control chip module, the firmware memory and the embedded memory realize the transmission of data files through the first safe digital input/output interface;
the main control chip module also comprises a second safe digital input/output interface, and the external memory is electrically connected with the main control chip module through the second safe digital input/output interface;
the wireless communication module is electrically connected with the main control chip module through the third safe digital input/output interface.
2. The method for controlling the storage of the video camera data according to claim 1, wherein before the main control chip module controls the switch module to conduct the circuit in which the embedded memory is located, the method comprises:
the main control chip module reads a second firmware file in the external memory, wherein the version of the second firmware file is different from that of the first firmware file;
and if the main control chip module reads a second firmware file in the external memory, the main control chip module carries out version upgrading on the first firmware file temporarily stored in the temporary storage according to the second firmware file.
3. The method as claimed in claim 2, wherein the step of the main control chip module upgrading the version of the first firmware file temporarily stored in the temporary storage according to the second firmware file comprises:
the main control chip module writes the first firmware file with the updated version into the firmware memory;
and the main control chip module controls the camera system to restart.
4. The method according to claim 1, wherein before the main control chip module receives a shutdown command of the camera system, the method stops obtaining the camera video data from the outside and controls the switch module to turn on a circuit where the firmware memory is located, comprising:
when the main control chip module obtains a target firmware parameter of the camera system, the main control chip module updates the firmware parameter in the first firmware file temporarily stored in the temporary storage according to the target firmware parameter, wherein the target firmware parameter is firmware data read by the main control chip module when a user adjusts the firmware parameter of the camera system.
5. The method according to claim 4, wherein after the main control chip module receives a shutdown command of the camera system, the main control chip module stops obtaining the camera video data from the outside and controls the switch module to turn on a circuit where the firmware memory is located, the method comprises:
and the main control chip module writes the first firmware file which is temporarily stored in the temporary storage memory and is updated according to the target firmware parameters into the firmware memory for storage.
6. The control method for storing captured video data according to claim 1, wherein the external memory has a hot plug function.
7. The control method for storing the video camera data according to claim 1, wherein the camera system further comprises a wireless communication module, and the wireless communication module is electrically connected with the main control chip module;
the wireless communication module is used for realizing communication connection between the main control chip module and external equipment or a cloud platform.
8. A control device for storing captured video data, the control device being applied to a camera system, the system comprising: the system comprises a main control chip module, an embedded memory, a temporary memory, a switch module, a firmware memory and an external memory, wherein the external memory, the temporary memory and the switch module are respectively and electrically connected with the main control chip module; the firmware memory and the embedded memory are respectively electrically connected with the switch module; the main control chip module calls the control device, and the control device comprises:
the first control conduction module is used for controlling the switch module to conduct a circuit where the firmware memory is located after the camera system is started;
the reading and writing module is used for reading a first firmware file stored in the firmware memory and writing the first firmware file into the temporary storage memory for temporary storage, wherein the first firmware file is a system file for controlling the hardware of the camera system;
the second control conduction module is used for controlling the switch module to conduct the circuit where the embedded memory is located;
the writing module is used for writing the camera video data acquired from the outside into the embedded memory or into the external memory for storage when the main control chip module receives a storage instruction of the camera video data, and the storage instruction comprises a storage path identifier written into the embedded memory or a storage path identifier written into the external memory;
the third control switching-on module is used for stopping acquiring the camera video data from the outside and controlling the switch module to switch on a circuit where the firmware memory is located and controlling the camera system to be switched off when the main control chip module receives a switching-off instruction of the camera system;
the main control chip module comprises a System On Chip (SOC);
the main control chip module comprises a first safe digital input and output interface and a universal input and output interface, the switch module is electrically connected with the main control chip module through the universal input and output interface, and the main control chip module controls the switch module through the universal input and output interface so as to realize switching of circuits connected behind the switch module; two circuits are connected behind a switch module in the camera system, wherein one circuit is electrically connected with the firmware memory, the other circuit is electrically connected with the embedded memory, the switch module is also electrically connected with a main control chip module through a first safe digital input/output interface, and the main control chip module, the firmware memory and the embedded memory realize the transmission of data files through the first safe digital input/output interface;
the main control chip module also comprises a second safe digital input/output interface, and the external memory is electrically connected with the main control chip module through the second safe digital input/output interface;
the wireless communication module is electrically connected with the main control chip module through the third safe digital input/output interface.
9. A video capture device, comprising a camera system;
the video capture apparatus executes the control method of storing captured video data according to any one of claims 1 to 7 by the camera system.
CN202011219654.5A 2020-11-05 2020-11-05 Control method and control device for storing camera shooting video data and video acquisition equipment Active CN112040162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011219654.5A CN112040162B (en) 2020-11-05 2020-11-05 Control method and control device for storing camera shooting video data and video acquisition equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011219654.5A CN112040162B (en) 2020-11-05 2020-11-05 Control method and control device for storing camera shooting video data and video acquisition equipment

Publications (2)

Publication Number Publication Date
CN112040162A CN112040162A (en) 2020-12-04
CN112040162B true CN112040162B (en) 2021-02-26

Family

ID=73573689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011219654.5A Active CN112040162B (en) 2020-11-05 2020-11-05 Control method and control device for storing camera shooting video data and video acquisition equipment

Country Status (1)

Country Link
CN (1) CN112040162B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201663631U (en) * 2010-03-31 2010-12-01 刘庆光 Advertising multimedia telephone of network television
CN208188696U (en) * 2018-05-16 2018-12-04 杭州海康威视数字技术股份有限公司 A kind of video camera
CN208922358U (en) * 2018-09-13 2019-05-31 深圳市阿达视高新技术有限公司 Intelligent travelling crane recorder based on automobile CAN-bus control

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007082137A (en) * 2005-09-16 2007-03-29 Toshiba Corp Digital camera
CN101404763B (en) * 2007-12-17 2010-10-06 纪全胜 Multifunctional network digital display equipment and its operation method
CN101807156A (en) * 2010-03-04 2010-08-18 广东宝莱特医用科技股份有限公司 Equipment and method for maintaining and updating system through interface medium
CN102567049B (en) * 2011-12-09 2016-06-22 惠州市德赛西威汽车电子股份有限公司 The upgrade method of embedded OS
US9201791B2 (en) * 2013-01-08 2015-12-01 Apple Inc. Flow-ID dependency checking logic
JP6071610B2 (en) * 2013-02-12 2017-02-01 キヤノン株式会社 Recording device
CN104166565B (en) * 2014-08-11 2017-10-17 成都瑞博慧窗信息技术有限公司 A kind of intelligent display terminal firmware upgrade method
US10121080B2 (en) * 2015-01-15 2018-11-06 vClick3d, Inc. Systems and methods for controlling the recording, storing and transmitting of video surveillance content
CN105893051B (en) * 2016-04-12 2019-04-30 福州瑞芯微电子股份有限公司 A kind of the system firmware storage method and device of automobile data recorder
CN106168906A (en) * 2016-06-23 2016-11-30 广州信位通讯科技有限公司 A kind of firmware upgrade method of web camera
CN210377573U (en) * 2019-06-24 2020-04-21 深圳市森国科科技股份有限公司 Vehicle event data recorder with two storages
CN209859126U (en) * 2019-06-25 2019-12-27 深圳市邻友通科技发展有限公司 Mobile reader and data sharing system
CN110442482A (en) * 2019-07-31 2019-11-12 苏州中科全象智能科技有限公司 A kind of the mistake proofing framework and its control method of high-speed industrial camera firmware

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201663631U (en) * 2010-03-31 2010-12-01 刘庆光 Advertising multimedia telephone of network television
CN208188696U (en) * 2018-05-16 2018-12-04 杭州海康威视数字技术股份有限公司 A kind of video camera
CN208922358U (en) * 2018-09-13 2019-05-31 深圳市阿达视高新技术有限公司 Intelligent travelling crane recorder based on automobile CAN-bus control

Also Published As

Publication number Publication date
CN112040162A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
RU2445676C2 (en) Method of communication with multifunctional memory card
US20080040599A1 (en) Electronic appliance and startup method
TW200935418A (en) Semiconductor memory device
US9448808B2 (en) BIOS update with service processor without serial peripheral interface (SPI) access
US9680972B2 (en) SD switch box in a cellular handset
US10334145B2 (en) Camera supporting removable storage divided into a journaled partition and a non-journaled partition
GB2463809A (en) Peripheral device operation method, peripheral device and host
US20120242167A1 (en) Method for Logically Disconnecting a USB Device from a Host without Mechanical Disconnection
US9454495B2 (en) Memory system capable of prohibiting access to application software and system software
CN102043638A (en) Computer system and computer startup setting method
CN102075710A (en) Starting operation method for television and television
CN101118494A (en) System and method for starting up and operating system from external connected electronic card with built-in equipment
CN112040162B (en) Control method and control device for storing camera shooting video data and video acquisition equipment
CA2929999C (en) Camera supporting removable storage divided into multiple partitions
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
CN201869296U (en) Television
CN114995886B (en) Memory card identification method and electronic equipment
CN116150064A (en) Hot plug method of NVME storage device, backboard and computing device
CN210776642U (en) Automatic disk splicing device for multiple TF cards
CN102023906B (en) Microprocessor of portable terminal as well as portable terminal and repair method thereof
WO2019196315A1 (en) Sd card having boot function and manufacturing method therefor
CN102831924B (en) Sd card control method and control circuit
CN117389592A (en) Method for realizing automatic upgrade of electronic equipment and upgrade device
CN209928423U (en) Boot authentication device and system
US20240231656A9 (en) Host independent formatting of storage devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant