Search

CN-122019005-A - Device starting method and device, storage medium and electronic device

CN122019005ACN 122019005 ACN122019005 ACN 122019005ACN-122019005-A

Abstract

The application discloses a device starting method and device, a storage medium and electronic equipment. The method comprises the steps of receiving a target acquisition request sent by target equipment, wherein the target acquisition request is used for requesting a target image file of the target equipment, the target image file is used for starting the target equipment, determining the target image file based on the target acquisition request, wherein the target image file is stored in network video recording equipment in advance, the network video recording equipment stores the target image file of the equipment in a grading mode according to equipment information and program information, the equipment comprises the target equipment, the equipment information at least comprises equipment types, the program information comprises at least one of the program types, the program names and the program versions, and the target image file is sent to the target equipment to start the target equipment. The application solves the technical problem of slow equipment starting caused by low efficiency of acquiring the image file for starting the equipment.

Inventors

  • YANG XIAOGANG
  • LIU SHANGNING
  • Lv Yaomei
  • ZHOU JIANHUA

Assignees

  • 浙江大华技术股份有限公司

Dates

Publication Date
20260512
Application Date
20260129

Claims (10)

  1. 1. A method of starting up a device, comprising: receiving a target acquisition request sent by target equipment, wherein the target acquisition request is used for requesting a target image file of the target equipment, and the target image file is used for starting the target equipment; Determining the target image file based on the target acquisition request, wherein the target image file is pre-stored in a network video recording device, the network video recording device stores the target image file of the device in a grading manner according to device information and program information, the device comprises the target device, the device information at least comprises a device category, and the program information comprises at least one of a program category, a program name and a program version; And sending the target image file to the target equipment so as to start the target equipment.
  2. 2. The method of claim 1, wherein the determining the target image file based on the target acquisition request comprises: Analyzing the target acquisition request, and determining target equipment parameters and target program parameters, wherein the target equipment parameters are used for indicating the target equipment category of the target equipment, and the target program parameters are used for indicating at least one of the target program category, the target program name and the target program version of the target equipment; and determining the target image file from the initial image file according to the target equipment parameters and the target program parameters.
  3. 3. The method of claim 2, wherein said determining said target image file from an initial image file in accordance with said target device parameters and said target program parameters comprises: determining a first image file from the initial image file according to the target equipment parameters, wherein the equipment category corresponding to the first image file is the target equipment category; determining a second image file from the first image file according to the target program parameters, wherein the program class corresponding to the second image file is the target program class; Determining a third image file from the second image file according to the target program parameters, wherein the program name corresponding to the third image file is the target program name; And determining the target image file from the third image file according to the target program parameters, wherein the program version corresponding to the target image file is the target program version.
  4. 4. The method according to claim 1, wherein the method further comprises: updating the target image file to obtain an updated image file; Determining an update storage path according to at least one of a program category, a program name and a program version corresponding to the update image file; Storing the updated image file to the updated storage path; and under the condition of receiving the equipment updating request sent by the target equipment, sending the updating mirror image file to the target equipment.
  5. 5. The method according to claim 1, wherein the method further comprises: Under the condition that the local storage space of the target network video recording equipment does not search the target image file, a target request message is sent to the first network video recording equipment, wherein the target network video recording equipment receives the target acquisition request, the target request message is used for acquiring the target image file, and a communication link exists between the first network video recording equipment and the target network video recording equipment; receiving the target image file sent by first network video recording equipment; Determining a target storage path according to at least one of a program category, a program name and a program version corresponding to the target image file; And storing the target image file to the target storage path, and sending the target image file to the target device.
  6. 6. A method of starting up a device, comprising: A target acquisition request is sent to network video recording equipment, wherein the target acquisition request is used for acquiring a target image file of target equipment; Receiving the target image file sent by the network video recording device, wherein the network video recording device is used for storing the target image file of the device in a grading manner according to device information and program information, the device comprises the target device, the device information at least comprises a device category, and the program information comprises at least one of a program category, a program name and a program version; and loading the target image file.
  7. 7. A device for starting up an apparatus, comprising: The first receiving module is used for receiving a target acquisition request sent by target equipment, wherein the target acquisition request is used for requesting a target image file of the target equipment; The determining module is used for determining the target image file based on the target acquisition request, wherein the target image file is stored in a network video recording device in advance, the network video recording device stores the target image file of the device in a grading manner according to device information and program information, the device comprises the target device, the device information at least comprises a device category, and the program information at least comprises at least one of a program category, a program name and a program version; and the first sending module is used for sending the target image file to the target equipment so as to start the target equipment.
  8. 8. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of any of claims 1 to 5 or 6.
  9. 9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, wherein the computer program, when executed by a processor, implements the steps of the method of any of claims 1 to 5 or 6.
  10. 10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 or 6 when the computer program is executed.

Description

Device starting method and device, storage medium and electronic device Technical Field The present application relates to the field of computers, and in particular, to a method and apparatus for starting a device, a storage medium, and an electronic device. Background In a local area network environment, devices such as webcams, servers, etc. typically solidify boot images in their local storage media (e.g., FLASH) to enable bootstrap booting of the devices. However, with the increasing number of functions and the continual iteration of program versions, the boot image file volume is gradually increasing, making the local storage resources of the device a serious challenge. On one hand, the FLASH memory space of the equipment is limited, and the memory space is insufficient due to frequent program updating, and on the other hand, the loading time of the large-scale starting mirror image is longer, so that the starting speed and the response efficiency of the equipment are seriously influenced. In a network environment with various device architectures and uneven hardware configuration, the existing low-efficiency image file acquisition mechanism causes the technical problem of slow device start. In view of the above problems, no effective solution has been proposed at present. Disclosure of Invention The embodiment of the application provides a device starting method and device, a storage medium and electronic equipment, which at least solve the technical problem of slow device starting caused by low efficiency of acquiring an image file for starting the device. According to one aspect of the embodiment of the application, a method for starting equipment is provided, which comprises the steps of receiving a target acquisition request sent by target equipment, wherein the target acquisition request is used for requesting a target image file of the target equipment, the target image file is used for starting the target equipment, determining the target image file based on the target acquisition request, wherein the target image file is stored in a network video recording equipment in advance, the network video recording equipment stores the target image file of the equipment in a grading mode according to equipment information and program information, the equipment comprises the target equipment, the equipment information at least comprises equipment category, the program information comprises at least one of program category, program name and program version, and the target image file is sent to the target equipment to start the target equipment. According to one aspect of the embodiment of the application, a method for starting equipment is further provided, and the method comprises the steps of sending a target acquisition request to network video recording equipment, wherein the target acquisition request is used for acquiring a target image file of the target equipment, receiving the target image file sent by the network video recording equipment, wherein the network video recording equipment is used for storing the target image file of the equipment in a grading mode according to equipment information and program information, the equipment comprises the target equipment, the equipment information at least comprises equipment category, the program information comprises at least one of program category, program name and program version, and loading the target image file. According to another aspect of the embodiment of the application, a device starting device is provided, which comprises a first receiving module, a determining module and a first sending module, wherein the first receiving module is used for receiving a target acquisition request sent by target equipment, the target acquisition request is used for requesting a target image file of the target equipment, the determining module is used for determining the target image file based on the target acquisition request, the target image file is stored in a network video recording device in advance, the network video recording device stores the target image file of the device in a grading mode according to equipment information and program information, the equipment comprises the target equipment, the equipment information at least comprises equipment types, the program information comprises at least one of program types, program names and program versions, and the first sending module is used for sending the target image file to the target equipment so as to start the target equipment. According to another aspect of the embodiment of the application, a device starting device is provided, which comprises a second sending module, a second receiving module and a loading module, wherein the second sending module is used for sending a target acquisition request to a network video recording device, the target acquisition request is used for acquiring a target image file of the target device, the second receiving module is used for receiving the target i