CN113055653A - Automatic updating method and device of image acquisition equipment and related equipment - Google Patents

Automatic updating method and device of image acquisition equipment and related equipment Download PDF

Info

Publication number
CN113055653A
CN113055653A CN202110301581.2A CN202110301581A CN113055653A CN 113055653 A CN113055653 A CN 113055653A CN 202110301581 A CN202110301581 A CN 202110301581A CN 113055653 A CN113055653 A CN 113055653A
Authority
CN
China
Prior art keywords
image acquisition
updated
acquisition equipment
equipment
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.)
Granted
Application number
CN202110301581.2A
Other languages
Chinese (zh)
Other versions
CN113055653B (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 Anruan Huishi Technology Co ltd
Shenzhen Anruan Technology Co Ltd
Original Assignee
Shenzhen Anruan Huishi Technology Co ltd
Shenzhen Anruan Technology 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 Anruan Huishi Technology Co ltd, Shenzhen Anruan Technology Co Ltd filed Critical Shenzhen Anruan Huishi Technology Co ltd
Priority to CN202110301581.2A priority Critical patent/CN113055653B/en
Publication of CN113055653A publication Critical patent/CN113055653A/en
Application granted granted Critical
Publication of CN113055653B publication Critical patent/CN113055653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/617Upgrading or updating of programs or applications for camera control
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to the technical field of software updating, and provides an automatic updating method and device of image acquisition equipment and related equipment, wherein the method comprises the following steps: issuing firmware of a plurality of the image acquisition devices to the management platform; based on a preset heartbeat protocol, sending a heartbeat signal to the background server through the image acquisition equipment to be updated; verifying the equipment parameters of the image acquisition equipment to be updated according to the received heartbeat signal, and judging whether the new firmware exists in the image acquisition equipment to be updated; and if the new firmware exists in the image acquisition equipment to be updated, acquiring the new firmware of the image acquisition equipment to be updated from the management platform, and sending the new firmware to the image acquisition equipment to be updated for automatic updating according to the equipment parameters of the image acquisition equipment to be updated. The remote upgrading and operation of the image acquisition equipment can be realized, time and labor are saved, and the management efficiency of the image acquisition equipment is improved.

Description

Automatic updating method and device of image acquisition equipment and related equipment
Technical Field
The invention relates to the technical field of software updating, in particular to an automatic updating method and device of image acquisition equipment and related equipment.
Background
In the prior art, along with the increasing construction scale of video monitoring, a large amount of camera management and maintenance work becomes a difficult problem. When a camera with a fault needs to be restarted or when software in the camera releases a new version and needs to be upgraded, the camera can be operated and the software can be upgraded only by directly connecting the camera with a computer through a network cable in a traditional mode. If carry out large tracts of land upgrading to the camera, just can have the problem that wastes time and energy, inefficiency.
Disclosure of Invention
The embodiment of the invention provides an automatic updating method of image acquisition equipment, which can realize remote upgrade and operation of the image acquisition equipment, is time-saving and labor-saving and improves the management efficiency of the image acquisition equipment.
In a first aspect, an embodiment of the present invention provides an automatic update method for an image capture device, which is applied to an automatic update system for an image capture device, where the system includes an image capture device, a management platform, and a background server, and the method includes the following steps:
issuing firmware of a plurality of image acquisition devices to the management platform, wherein the plurality of image acquisition devices comprise image acquisition devices to be updated, and the image acquisition devices comprise device parameters;
based on a preset heartbeat protocol, sending a heartbeat signal to the background server through the image acquisition equipment to be updated, wherein the heartbeat signal comprises equipment parameters of the image acquisition equipment;
verifying the equipment parameters of the image acquisition equipment to be updated according to the received heartbeat signal, and judging whether the new firmware exists in the image acquisition equipment to be updated;
and if the new firmware exists in the image acquisition equipment to be updated, acquiring the new firmware of the image acquisition equipment to be updated from the management platform, and sending the new firmware to the image acquisition equipment to be updated for automatic updating according to the equipment parameters of the image acquisition equipment to be updated.
In a second aspect, an embodiment of the present invention further provides an automatic updating apparatus for an image capturing device, which is applied to an automatic updating system for an image capturing device, where the system includes an image capturing device, a management platform, and a background server, and includes:
the release module is used for releasing the firmware of the image acquisition equipment to the management platform, the image acquisition equipment comprises image acquisition equipment to be updated, and the image acquisition equipment comprises equipment parameters;
the sending module is used for sending a heartbeat signal to the background server through the image acquisition equipment to be updated based on a preset heartbeat protocol, wherein the heartbeat signal comprises equipment parameters of the image acquisition equipment;
the verification module is used for verifying the equipment parameters of the image acquisition equipment to be updated according to the received heartbeat signal and judging whether the new firmware exists in the image acquisition equipment to be updated;
and the updating module is used for acquiring the new firmware of the image acquisition equipment to be updated from the management platform if the new firmware exists in the image acquisition equipment to be updated, and sending the new firmware to the image acquisition equipment to be updated for automatic updating according to the equipment parameters of the image acquisition equipment to be updated.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: the image acquisition device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the automatic updating method of the image acquisition device provided by the embodiment.
In a fourth aspect, a computer-readable storage medium has a computer program stored thereon, and the computer program, when executed by a processor, implements the steps in the automatic updating method of an image capturing apparatus provided in the above embodiments.
In the embodiment of the invention, the firmware of a plurality of image acquisition devices is issued to the management platform, the image acquisition devices comprise image acquisition devices to be updated, and the image acquisition devices comprise device parameters; based on a preset heartbeat protocol, sending a heartbeat signal to the background server through the image acquisition equipment to be updated, wherein the heartbeat signal comprises equipment parameters of the image acquisition equipment; verifying the equipment parameters of the image acquisition equipment to be updated according to the received heartbeat signal, and judging whether the new firmware exists in the image acquisition equipment to be updated; and if the new firmware exists in the image acquisition equipment to be updated, acquiring the new firmware of the image acquisition equipment to be updated from the management platform, and sending the new firmware to the image acquisition equipment to be updated for automatic updating according to the equipment parameters of the image acquisition equipment to be updated. According to the invention, after the new firmware of the image acquisition equipment is released to the management platform, based on a preset heartbeat protocol, the heartbeat signal is sent to the background server through the image acquisition equipment to be updated, so that heartbeat keep-alive can be completed; and the heartbeat protocol comprises equipment parameters, the background server can acquire new firmware of the image acquisition equipment to be updated based on the equipment parameters to return to the image acquisition equipment to be updated for equipment updating, automatic check updating is realized, firmware updating time can be customized, and selecting which cameras can be updated and can also be customized, and the flexibility is high.
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.
Fig. 1 is a flowchart of an automatic updating method of an image capturing device according to an embodiment of the present invention;
FIG. 2 is a flow chart of another automatic updating method for an image capturing device according to an embodiment of the present invention;
FIG. 2a is a flow chart of another automatic updating method for an image capturing device according to an embodiment of the present invention;
FIG. 3 is a flow chart of another automatic updating method for an image capturing device according to an embodiment of the present invention;
FIG. 3a is a flow chart of another automatic updating method for an image capturing device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an automatic updating apparatus of an image capturing device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an automatic updating apparatus of another image capturing device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an automatic updating apparatus of another image capturing device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an automatic updating apparatus of another image capturing device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an automatic updating apparatus of another image capturing device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an automatic updating apparatus of another image capturing device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
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.
The terms "comprising" and "having," and any variations thereof, in the description and claims of this application and the description of the figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As shown in fig. 1, fig. 1 is a flowchart of an automatic updating method of an image capturing device according to an embodiment of the present invention, where the automatic updating method of the image capturing device includes the following steps:
101. and issuing the firmware of the plurality of image acquisition devices to a management platform, wherein the plurality of image acquisition devices comprise image acquisition devices to be updated, and the image acquisition devices comprise device parameters.
In this embodiment, the automatic updating method of the image capturing device may be applied to an automatic updating system of the image capturing device, where the automatic updating system of the image capturing device includes the image capturing device, a management platform, and a background server. The image acquisition equipment, the management platform and the background server can be communicated and transmitted through network links. The image acquisition equipment can be a camera or other electronic equipment with the function of the camera. In this embodiment, the image capturing apparatus is described by taking a camera as an example. The management platform may store and manage device parameters corresponding to the camera and corresponding firmware, respectively. The background server can be used for responding to information such as signals/instructions sent by the camera, acquiring data related to the signals/instructions and returning the data to the camera to execute corresponding actions.
It should be noted that the electronic device on which the automatic updating method of the image capturing device is operated may perform data transmission in a wired connection manner or a wireless connection manner. The Wireless connection may include, but is not limited to, a 3G/4G connection, a WiFi (Wireless-Fidelity) connection, a bluetooth connection, a wimax (worldwide Interoperability for Microwave access) connection, a Zigbee (low power local area network protocol), a uwb (ultra wideband) connection, and other Wireless connection methods now known or developed in the future.
The above-mentioned cameras may be a plurality of cameras arranged in different regions and different positions, and the cameras in different regions and different positions may be different. For example: the cameras A-F are arranged in the cell a, the cameras H-M are arranged on the road b of the traffic jam, the cameras A-F are fixed cameras, updating is not needed, and the cameras H-M can be automatically updated. The firmware may be a program of a camera. The acquired firmware of all the cameras can be issued to a management platform for unified management. The management platform can store the firmware of all the cameras in different storage areas, so that the firmware can be distinguished and searched conveniently.
The stored firmware of the cameras includes a new firmware that can update the updated cameras, that is, a firmware that needs to update the old firmware, and each camera includes its own device parameters. And the image acquisition equipment to be updated belongs to all the image acquisition equipment, namely the cameras to be updated belong to all the cameras.
102. Based on a preset heartbeat protocol, a heartbeat signal is sent to a background server through the image acquisition equipment to be updated, wherein the heartbeat signal comprises equipment parameters of the image acquisition equipment.
The preset heartbeat protocol may be a protocol determined for sending a heartbeat signal. The heartbeat signal is a method for sending a small data packet to the other interconnected party at intervals and judging whether a communication link between the two interconnected parties is disconnected or not according to the reply condition of the other party. Each camera may transmit a heartbeat signal to the background server, but a time for each camera to transmit the heartbeat signal to the background server may be set in advance. Therefore, the situation that the background server has overlarge access and serious time delay in data processing can be avoided. According to the time reported by the heartbeat, the background server can judge whether the camera is on line. The heartbeat signal can be sent once every 30 seconds, if the heartbeat signal is not reported after the preset interval time threshold value is exceeded, the background server considers the camera to be offline, and the preset interval time threshold value can be half an hour/an hour and the like.
The heartbeat signal actively sent to the background server by the camera comprises the equipment parameters of the camera, so that the background server can detect whether a communication link between the camera and the background server is disconnected or not and can receive the equipment parameters sent by the camera. The image device to be updated is also a camera to be updated, and the camera to be updated belongs to one of all cameras which issue the firmware to the management platform.
103. And verifying the equipment parameters of the image acquisition equipment to be updated according to the received heartbeat signal, and judging whether the image acquisition equipment to be updated has new firmware.
The verifying may be to judge whether a new firmware exists in the camera to be updated according to the device parameter of the camera to be updated.
104. And if the image acquisition equipment to be updated has the new firmware, acquiring the new firmware of the image acquisition equipment to be updated from the management platform, and sending the new firmware to the image acquisition equipment to be updated for automatic updating according to the equipment parameters of the image acquisition equipment to be updated.
If the new firmware exists in the camera to be updated, the background server can extract the new firmware of the camera to be updated from the management platform, judge whether the new firmware meets the equipment parameters of the camera to be updated, send the new firmware of the camera to be updated to one end of the camera to be updated from the background server under the condition that the new firmware meets the equipment parameters of the camera to be updated, and automatically upgrade and update the camera to be updated according to the received new firmware.
In the embodiment of the invention, the firmware of a plurality of image acquisition devices is released to a management platform, the plurality of image acquisition devices comprise image acquisition devices to be updated, and the image acquisition devices comprise device parameters; based on a preset heartbeat protocol, sending a heartbeat signal to a background server through image acquisition equipment to be updated, wherein the heartbeat signal comprises equipment parameters of the image acquisition equipment; verifying the equipment parameters of the image acquisition equipment to be updated according to the received heartbeat signal, and judging whether new firmware exists in the image acquisition equipment to be updated; and if the image acquisition equipment to be updated has the new firmware, acquiring the new firmware of the image acquisition equipment to be updated from the management platform, and sending the new firmware to the image acquisition equipment to be updated for automatic updating according to the equipment parameters of the image acquisition equipment to be updated. According to the invention, after the new firmware of the image acquisition equipment is released to the management platform, based on a preset heartbeat protocol, the heartbeat signal is sent to the background server through the image acquisition equipment to be updated, so that heartbeat keep-alive can be completed; and the heartbeat protocol comprises equipment parameters, the background server can acquire new firmware of the image acquisition equipment to be updated based on the equipment parameters to return to the image acquisition equipment to be updated for equipment updating, automatic check updating is realized, firmware updating time can be customized, and selecting which cameras can be updated and can also be customized, and the flexibility is high.
As shown in fig. 2, fig. 2 is a flowchart of another automatic updating method for an image capturing device according to an embodiment of the present invention, where the automatic updating method for an image capturing device specifically includes the following steps:
201. and issuing the firmware of the plurality of image acquisition devices to a management platform, wherein the plurality of image acquisition devices comprise image acquisition devices to be updated, and the image acquisition devices comprise device parameters.
202. Based on a preset heartbeat protocol, a heartbeat signal is sent to a background server through the image acquisition equipment to be updated, wherein the heartbeat signal comprises equipment parameters of the image acquisition equipment.
203. And verifying the equipment parameters of the image acquisition equipment to be updated according to the received heartbeat signal, and judging whether the image acquisition equipment to be updated has new firmware.
204. And if the image acquisition equipment to be updated has the new firmware, acquiring the new firmware of the image acquisition equipment to be updated from the management platform, and sending the new firmware to the image acquisition equipment to be updated for automatic updating according to the equipment parameters of the image acquisition equipment to be updated.
205. And if the image acquisition equipment to be updated does not have the new firmware, judging whether the image acquisition equipment to be updated has a new instruction.
When it is not detected that the camera has the new firmware, the background server may continue to determine whether it receives a new instruction based on the device parameters of the camera. The new instructions may include adjustments to the camera itself, etc.
206. And if the image acquisition equipment to be updated has the new instruction, acquiring instruction content included by the new instruction, and returning the instruction content to the image acquisition equipment to be updated so that the image acquisition equipment to be updated executes corresponding action according to the instruction content.
Wherein, in the background server, a new instruction can be manually/automatically sent out. The background server automatically monitors all the cameras, and when detecting that one or more cameras need to be operated, the background server can generate a new instruction, analyze the new instruction to extract instruction content contained in the new instruction, and then send the instruction content to the cameras to execute corresponding operation. And detecting that one or more cameras need to comprise a camera to be updated, wherein the instruction content comprises camera restart, camera parameter modification, internal log acquisition and the like.
Optionally, referring to fig. 2a, the step 101 includes:
the device parameters comprise device models, and the firmware of the image acquisition devices is uploaded to the management platform.
Each camera comprises equipment parameters, and each equipment parameter can comprise an equipment model. The firmware of a plurality of cameras can be uploaded to the management platform. The firmware of the plurality of image capturing devices includes an image capturing device having new firmware.
The management platform acquires a firmware version number of the new firmware, selects an upgrading time period of the new firmware based on the firmware version number, and selects image acquisition equipment for upgrading according to the new firmware.
Wherein each firmware has a corresponding firmware version number. After the firmware of the camera is uploaded to the management platform, the management platform can acquire the firmware version number of the new firmware in all the firmware, and then selects the upgrading time period of the selected new firmware, wherein the upgrading time period refers to the time for upgrading the new firmware. In addition, cameras which can be upgraded according to the new firmware can be selected, namely, which cameras can be updated according to the selected new firmware.
And selecting the equipment model of the image acquisition equipment to which the new firmware belongs, and judging whether the equipment model of the image acquisition equipment has the firmware version.
After a camera which can be updated according to new firmware is selected, the equipment model of the camera can be obtained, and whether the firmware version of the selected camera exists in the management platform or not is searched according to the equipment model.
And if the equipment model of the image acquisition equipment has the firmware version, modifying other firmware of the equipment model into a forbidden state to finish releasing.
If the selected camera is found to have the firmware version in the management platform, the state of other firmware of the selected equipment model can be modified into a forbidden state, the camera is released in the management platform, and the condition that multiple versions exist is avoided.
In the embodiment of the invention, on the premise of not needing firmware upgrading, whether a new instruction is received can be continuously judged. Therefore, a new command can be remotely sent to the camera, and remote control over the camera is achieved. And based on a preset heartbeat protocol, a heartbeat signal is sent to the background server through the image acquisition equipment to be updated, so that heartbeat keep-alive can be completed. The heartbeat protocol comprises device parameters, and the background server can acquire new firmware of the image acquisition device to be updated based on the device parameters to return to the image acquisition device to be updated for device updating, so that automatic checking and updating are realized. In addition, can self-define firmware upgrade time and select which cameras can carry out firmware upgrade, the flexibility ratio is high, has not only improved operating efficiency, and degree of automation is high, has still reduced the human cost.
As shown in fig. 3, fig. 3 is a flowchart of another automatic updating method for an image capturing device according to an embodiment of the present invention. The automatic updating method of the image acquisition equipment specifically comprises the following steps:
301. and issuing the firmware of the plurality of image acquisition devices to a management platform, wherein the plurality of image acquisition devices comprise image acquisition devices to be updated, and the image acquisition devices comprise device parameters.
302. Based on a preset heartbeat protocol, a heartbeat signal is sent to a background server through the image acquisition equipment to be updated, wherein the heartbeat signal comprises equipment parameters of the image acquisition equipment.
303. The device parameters further comprise a device version number of the image acquisition device, and the device version number and the device model of the image acquisition device to be updated are obtained through the background server.
Wherein the device version number of each camera follows a unique principle. After the camera to be updated sends the heartbeat signal to the background server, the background server can obtain the device version number and the device model included in the device parameter from the heartbeat signal.
304. And judging whether the image acquisition equipment to be updated has new firmware according to the equipment version number and the equipment model of the image acquisition equipment to be updated.
And the management platform is used for updating the new firmware according to the equipment version number and the equipment model of the camera to be updated.
305. And if the image acquisition equipment to be updated has new firmware, acquiring the firmware version number of the new firmware.
If the camera to be updated has new firmware, the firmware version number of the new firmware can be obtained, and of course, other firmware information of the new firmware can also be obtained, as long as the new firmware can be found according to the obtained firmware information.
306. And judging whether the current time meets the upgrading time period of the new firmware or not based on the firmware version number.
Referring to fig. 3a, after finding out the corresponding new firmware according to the firmware version number, the upgrade time period and the current time of the new firmware may be obtained, and whether the current time belongs to the upgrade time period of the new firmware is determined, for example: if the upgrading time period of the new firmware c is 5 to 6 pm every day, and the current time is 3 pm, the upgrading time period of the new firmware c is not satisfied by the current time; if the current time is 5: 30, the current time satisfies the upgrade period of the new firmware c.
307. And if the current time meets the upgrading time period of the new firmware, judging whether the image acquisition equipment to be updated is the upgradable image acquisition equipment selected by the new firmware.
If the current time meets the upgrading time period of the new firmware, whether the camera to be updated belongs to the range of the upgradable camera selected by the new firmware can be continuously judged. Namely, whether the new firmware of the camera to be updated can be updated is judged. In addition, as shown in fig. 3a, if the current time does not satisfy the upgrade time period of the new firmware, it may be determined whether the camera to be updated receives a new instruction.
308. And if the image acquisition equipment to be updated is the upgradable image acquisition equipment selected by the new firmware, acquiring the new firmware of the image acquisition equipment to be updated from the management platform through the background server and sending the new firmware to the image acquisition equipment to be updated.
And when the camera to be updated is judged to be the camera with the upgradable firmware, acquiring the new firmware of the camera to be updated from the management platform through the background server, and sending the new firmware to the camera to be updated. Continuing with fig. 3a, if the camera to be updated does not belong to the upgradable camera selected by the new firmware, it can be continuously determined whether the camera to be updated receives a new command.
309. And the image acquisition equipment to be updated decompresses and upgrades the new firmware.
The camera to be updated can decompress the new firmware sent by the background server, and automatically upgrade according to the decompressed data.
Optionally, after step 309, the method further includes:
and judging whether the image acquisition equipment to be updated is successfully upgraded, if the image acquisition equipment to be updated is unsuccessfully upgraded, returning to the old firmware, and uploading the update failure record to the background server.
If the upgrading is not successful in the upgrading process, the camera to be updated can send a failure record to the background server, and meanwhile, the old firmware is continuously started to work. And the background server stores the update failure record after receiving the update failure record, and can prompt the background server to inform background personnel of specific conditions. The reason for the update failure may be included in the update failure record.
And if the image acquisition equipment to be updated is successfully upgraded, uploading the successful update record to the background server.
In the embodiment of the invention, whether new firmware exists in the management platform is judged by acquiring a plurality of equipment parameters of the camera to be updated, the current time is compared with the upgrading time period of the new firmware under the condition that the new firmware exists, whether the camera to be updated belongs to the camera with the upgraded new firmware is judged, and the background server sends the new firmware to one end of the camera to be updated for decompressing and automatically updating after double judgment. And the old firmware can be called to continue working after the updating fails, so that the working stop state can not be caused.
As shown in fig. 4, fig. 4 is a schematic structural diagram of an automatic updating apparatus of an image capturing device according to an embodiment of the present invention, where the automatic updating apparatus of the image capturing device is applied to an automatic updating system of the image capturing device, the system includes the image capturing device, a management platform, and a background server, and the automatic updating apparatus 400 of the image capturing device includes:
the release module 401 is configured to release the firmware of the plurality of image capturing devices to the management platform, where the plurality of image capturing devices include image capturing devices to be updated, and the image capturing devices include device parameters;
a sending module 402, configured to send a heartbeat signal to a background server through an image acquisition device to be updated based on a preset heartbeat protocol, where the heartbeat signal includes device parameters of the image acquisition device;
the validation module 403 is configured to validate the device parameter of the image acquisition device to be updated according to the received heartbeat signal, and determine whether a new firmware exists in the image acquisition device to be updated;
and an updating module 404, configured to, if the image capturing device to be updated has a new firmware, obtain the new firmware of the image capturing device to be updated from the management platform, and capture an image according to the image to be updated.
Optionally, as shown in fig. 5, fig. 5 is a schematic structural diagram of an automatic updating apparatus of another image capturing device according to an embodiment of the present invention, where the apparatus 400 further includes:
a judging module 405, configured to judge whether the image capturing device to be updated has a new instruction if the image capturing device to be updated does not have a new firmware;
and a returning module 406, configured to, if a new instruction exists in the image capturing device to be updated, obtain instruction content included in the new instruction, and return the instruction content to the image capturing device to be updated, so that the image capturing device to be updated executes a corresponding action according to the instruction content.
Optionally, the device parameters include a device model, as shown in fig. 6, fig. 6 is a schematic structural diagram of another automatic updating apparatus of an image capturing device according to an embodiment of the present invention, and the publishing module 401 includes:
the first uploading unit 4011 is configured to upload firmware of the plurality of image capturing devices to the management platform, where the firmware of the plurality of image capturing devices includes an image capturing device with new firmware;
the first selecting unit 4012 is configured to obtain a firmware version number of the new firmware, select an upgrade time period of the new firmware based on the firmware version number, and select an image capture device that is upgraded according to the new firmware;
the second selection unit 4013 is configured to select an equipment model of the image capturing equipment to which the new firmware belongs, and determine whether the equipment model of the image capturing equipment already has a firmware version;
and the modifying unit 4014 is configured to modify, if the device model of the image capturing device already has the firmware version, other firmware of the device model into a disabled state, so as to complete releasing.
Optionally, the sending module 403 is further configured to send a heartbeat signal to the background server at a preset time interval by the image capturing device based on a preset heartbeat protocol.
Optionally, the device parameters further include a device version number of the image capturing device, as shown in fig. 7, fig. 7 is a schematic structural diagram of another automatic updating apparatus of the image capturing device according to an embodiment of the present invention, and the validation module 403 includes:
a first obtaining unit 4031, configured to obtain, through a background server, an equipment version number and an equipment model of an image acquisition device to be updated;
a first determining unit 4032, configured to determine whether the image capturing device to be updated has a new firmware according to the device version number and the device model of the image capturing device to be updated.
Optionally, as shown in fig. 8, fig. 8 is a schematic structural diagram of an automatic updating apparatus of another image capturing device according to an embodiment of the present invention, where the updating module 404 includes:
a second obtaining unit 4041, configured to obtain a firmware version number of the new firmware if the image capture device to be updated has the new firmware;
a second determination unit 4042, configured to determine whether the current time meets an upgrade time period of the new firmware based on the firmware version number;
a third determining unit 4043, configured to determine whether the image capture device to be updated is an upgradable image capture device selected by the new firmware if the current time meets the upgrade time period of the new firmware;
a sending unit 4044, configured to, if the image acquisition device to be updated is an upgradable image acquisition device selected by the new firmware, obtain, by the backend server, the new firmware of the image acquisition device to be updated from the management platform, and send the new firmware to the image acquisition device to be updated;
and the upgrading unit 4045 is used for decompressing and upgrading the new firmware by the image acquisition device to be updated.
Optionally, as shown in fig. 9, fig. 9 is a schematic structural diagram of an automatic updating apparatus of another image capturing device according to an embodiment of the present invention, where the updating module 404 further includes:
a fourth judging unit 4046, configured to judge whether the image capturing device to be updated is successfully upgraded;
a second uploading unit 4047, configured to quit to an old firmware if the image capture device to be updated fails to be updated, and upload an update failure record to the background server;
the second uploading unit 4047 is further configured to upload the update success record to the background server if the update of the image capture device to be updated is successful.
As shown in fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device 1000 includes: the image acquisition device comprises a processor 1001, a memory 1002, a network interface 1003 and a computer program which is stored on the memory 1002 and can run on the processor 1001, wherein the steps in the automatic updating method of the image acquisition device provided by the embodiment are realized when the processor 1001 executes the computer program.
Specifically, the processor 1001 is configured to perform the following steps:
the method comprises the steps of issuing firmware of a plurality of image acquisition devices to a management platform, wherein the plurality of image acquisition devices comprise image acquisition devices to be updated, and the image acquisition devices comprise device parameters;
based on a preset heartbeat protocol, sending a heartbeat signal to a background server through image acquisition equipment to be updated, wherein the heartbeat signal comprises equipment parameters of the image acquisition equipment;
verifying the equipment parameters of the image acquisition equipment to be updated according to the received heartbeat signal, and judging whether new firmware exists in the image acquisition equipment to be updated;
and if the image acquisition equipment to be updated has the new firmware, acquiring the new firmware of the image acquisition equipment to be updated from the management platform, and sending the new firmware to the image acquisition equipment to be updated for automatic updating according to the equipment parameters of the image acquisition equipment to be updated.
Optionally, the processor 1001 is further configured to determine whether the image capturing device to be updated has a new instruction if the image capturing device to be updated does not have a new firmware;
and if the image acquisition equipment to be updated has the new instruction, acquiring instruction content included by the new instruction, and returning the instruction content to the image acquisition equipment to be updated so that the image acquisition equipment to be updated executes corresponding action according to the instruction content.
Optionally, the device parameters include a device model, and the step executed by the processor 1001 of distributing the firmware of the plurality of image capturing devices to the management platform includes:
uploading firmware of the plurality of image acquisition devices to a management platform, wherein the firmware of the plurality of image acquisition devices comprises the image acquisition devices with new firmware;
the management platform acquires a firmware version number of the new firmware, selects an upgrading time period of the new firmware based on the firmware version number, and selects image acquisition equipment for upgrading according to the new firmware;
selecting the equipment model of the image acquisition equipment to which the new firmware belongs, and judging whether the equipment model of the image acquisition equipment has a firmware version;
and if the equipment model of the image acquisition equipment has the firmware version, modifying other firmware of the equipment model into a forbidden state to finish releasing.
Optionally, the step of sending the heartbeat signal to the background server through the image capturing device to be updated based on the preset heartbeat protocol executed by the processor 1001 includes:
based on a preset heartbeat protocol, a heartbeat signal is sent to a background server at a preset time interval by the image acquisition equipment.
Optionally, the device parameters further include a device version number of the image capturing device, and the step of verifying the device parameters of the image capturing device to be updated according to the received heartbeat signal and determining whether the image capturing device to be updated has a new firmware by the processor 1001 includes:
acquiring the equipment version number and the equipment model of the image acquisition equipment to be updated through a background server;
and judging whether the image acquisition equipment to be updated has new firmware according to the equipment version number and the equipment model of the image acquisition equipment to be updated.
Optionally, if the image capturing device to be updated has a new firmware, the step executed by the processor 1001 of obtaining the new firmware of the image capturing device to be updated from the management platform, and sending the new firmware to the image capturing device to be updated for automatic updating according to the device parameter of the image capturing device to be updated includes:
if the image acquisition equipment to be updated has new firmware, acquiring a firmware version number of the new firmware;
judging whether the current time meets the upgrading time period of the new firmware or not based on the firmware version number;
if the current time meets the upgrading time period of the new firmware, judging whether the image acquisition equipment to be updated is the upgradable image acquisition equipment selected by the new firmware;
if the image acquisition equipment to be updated is the upgradable image acquisition equipment selected by the new firmware, acquiring the new firmware of the image acquisition equipment to be updated from the management platform through the background server and sending the new firmware to the image acquisition equipment to be updated;
and the image acquisition equipment to be updated decompresses and upgrades the new firmware.
Optionally, after the step of decompressing and upgrading the new firmware by the image capture device to be updated, the processor 1001 is further configured to execute the step of determining whether the image capture device to be updated is successfully upgraded;
if the image acquisition equipment to be updated fails to be upgraded, returning to the old firmware, and uploading the update failure record to a background server;
and if the image acquisition equipment to be updated is successfully upgraded, uploading the successful update record to the background server.
The electronic device 1000 according to the embodiment of the present invention can implement each implementation manner in the automatic update method embodiment of the image capturing device, and has corresponding beneficial effects, and for avoiding repetition, details are not described here.
It is noted that only 1001-1003 with components are shown, but it is understood that not all of the illustrated components are required and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the electronic device 1000 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable gate array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The memory 1002 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 1002 may be an internal storage unit of the electronic device 1000, such as a hard disk or a memory of the electronic device 1000. In other embodiments, the memory 1002 may also be an external storage device of the electronic device 1000, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the electronic device 1000. Of course, the memory 1002 may also include both internal and external memory units of the electronic device 1000. In this embodiment, the memory 1002 is generally used for storing an operating system installed in the electronic device 1000 and various application software, such as program codes of an automatic updating method of the image capturing device. In addition, the memory 1002 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 1001 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 1001 generally serves to control the overall operation of the electronic device 1000. In this embodiment, the processor 1001 is configured to run a program code stored in the memory 1002 or process data, for example, a program code of an automatic update method of the image capturing apparatus.
The network interface 1003 may include a wireless network interface or a wired network interface, and the network interface 1003 is generally used for establishing a communication connection between the electronic device 1000 and other electronic devices.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor 1001, the computer program implements each process in the automatic updating method for image capturing devices provided in the embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It will be understood by those skilled in the art that all or part of the processes in the automatic updating method for implementing the image capturing device of the embodiments may be implemented by instructing the relevant hardware through a computer program, and the program may be stored in a computer-readable storage medium, and when executed, may include processes such as the embodiments of the methods. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The first, second, etc. mentioned in the embodiments of the present invention do not indicate the size, but are merely for convenience of description. The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (9)

1. An automatic updating method of an image acquisition device is applied to an automatic updating system of the image acquisition device, the system comprises the image acquisition device, a management platform and a background server, and is characterized by comprising the following steps:
issuing firmware of a plurality of image acquisition devices to the management platform, wherein the plurality of image acquisition devices comprise image acquisition devices to be updated, and the image acquisition devices comprise device parameters;
based on a preset heartbeat protocol, sending a heartbeat signal to the background server through the image acquisition equipment to be updated, wherein the heartbeat signal comprises equipment parameters of the image acquisition equipment;
verifying the equipment parameters of the image acquisition equipment to be updated according to the received heartbeat signal, and judging whether the new firmware exists in the image acquisition equipment to be updated;
if the new firmware exists in the image acquisition equipment to be updated, acquiring the new firmware of the image acquisition equipment to be updated from the management platform, and sending the new firmware to the image acquisition equipment to be updated for automatic updating according to the equipment parameters of the image acquisition equipment to be updated;
the method further comprises the steps of:
if the new firmware does not exist in the image acquisition equipment to be updated, judging whether a new instruction exists in the image acquisition equipment to be updated;
if the new instruction exists in the image acquisition equipment to be updated, acquiring instruction content included by the new instruction, and returning the instruction content to the image acquisition equipment to be updated so that the image acquisition equipment to be updated executes corresponding action according to the instruction content.
2. The method for automatically updating an image capturing device as set forth in claim 1, wherein the device parameter includes a device model number, and the step of issuing the firmware of the plurality of image capturing devices to the management platform includes:
uploading firmware of a plurality of image acquisition devices to the management platform;
the management platform acquires a firmware version number of the new firmware, selects an upgrading time period of the new firmware based on the firmware version number, and selects the image acquisition equipment upgraded according to the new firmware;
selecting the equipment model of the image acquisition equipment to which the new firmware belongs, and judging whether the equipment model of the image acquisition equipment has a firmware version;
and if the equipment model of the image acquisition equipment has the firmware version, modifying other firmware of the equipment model into a forbidden state to finish releasing.
3. The method for automatically updating an image capturing device as claimed in claim 1, wherein the step of sending a heartbeat signal to the background server through the image capturing device to be updated based on a preset heartbeat protocol includes:
and based on the preset heartbeat protocol, the heartbeat signal is sent to the background server at regular time by the image acquisition equipment at preset time intervals.
4. The method for automatically updating an image capturing device as claimed in claim 2, wherein the device parameter further includes a device version number of the image capturing device, and the step of verifying the device parameter of the image capturing device to be updated according to the received heartbeat signal and determining whether the new firmware exists in the image capturing device to be updated includes:
acquiring the equipment version number and the equipment model of the image acquisition equipment to be updated through the background server;
and judging whether the image acquisition equipment to be updated has the new firmware according to the equipment version number and the equipment model of the image acquisition equipment to be updated.
5. The method according to claim 4, wherein if the new firmware exists in the image capturing device to be updated, the step of obtaining the new firmware of the image capturing device to be updated from the management platform, and sending the new firmware to the image capturing device to be updated according to the device parameters of the image capturing device to be updated for automatic updating comprises:
if the new firmware exists in the image acquisition equipment to be updated, acquiring the firmware version number of the new firmware;
determining whether a current time satisfies the upgrade time period of the new firmware based on the firmware version number;
if the current time meets the upgrading time period of the new firmware, judging whether the image acquisition equipment to be upgraded is the upgradable image acquisition equipment selected by the new firmware;
if the image acquisition equipment to be updated is the upgradable image acquisition equipment selected by the new firmware, acquiring the new firmware of the image acquisition equipment to be updated from the management platform through the background server and sending the new firmware to the image acquisition equipment to be updated;
and the image acquisition equipment to be updated decompresses and upgrades the new firmware.
6. The automatic updating method of an image capturing device according to claim 5, characterized in that after the step of decompressing and upgrading the new firmware by the image capturing device to be updated, the method further comprises the steps of:
judging whether the image acquisition equipment to be updated is upgraded successfully;
if the image acquisition equipment to be updated fails to be upgraded, returning to the old firmware, and uploading an update failure record to the background server;
and if the image acquisition equipment to be updated is successfully upgraded, uploading the successful update record to the background server.
7. The utility model provides an automatic update device of image acquisition equipment, applies to image acquisition equipment's automatic update system, the system includes image acquisition equipment, management platform and backend server, its characterized in that includes:
the release module is used for releasing the firmware of the image acquisition equipment to the management platform, the image acquisition equipment comprises image acquisition equipment to be updated, and the image acquisition equipment comprises equipment parameters;
the sending module is used for sending a heartbeat signal to the background server through the image acquisition equipment to be updated based on a preset heartbeat protocol, wherein the heartbeat signal comprises equipment parameters of the image acquisition equipment;
the verification module is used for verifying the equipment parameters of the image acquisition equipment to be updated according to the received heartbeat signal and judging whether the new firmware exists in the image acquisition equipment to be updated;
the updating module is used for acquiring the new firmware of the image acquisition equipment to be updated from the management platform if the new firmware exists in the image acquisition equipment to be updated, and sending the new firmware to the image acquisition equipment to be updated for automatic updating according to the equipment parameters of the image acquisition equipment to be updated;
the device further comprises:
the judging module is used for judging whether the image acquisition equipment to be updated has a new instruction or not if the image acquisition equipment to be updated does not have the new firmware;
and the return module is used for acquiring the instruction content included by the new instruction and returning the instruction content to the image acquisition equipment to be updated if the new instruction exists in the image acquisition equipment to be updated so as to enable the image acquisition equipment to be updated to execute corresponding actions according to the instruction content.
8. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the method for automatic updating of an image acquisition device according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps in the method for automatic updating of an image acquisition device according to any one of claims 1 to 6.
CN202110301581.2A 2021-03-22 2021-03-22 Automatic updating method and device of image acquisition equipment and related equipment Active CN113055653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110301581.2A CN113055653B (en) 2021-03-22 2021-03-22 Automatic updating method and device of image acquisition equipment and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110301581.2A CN113055653B (en) 2021-03-22 2021-03-22 Automatic updating method and device of image acquisition equipment and related equipment

Publications (2)

Publication Number Publication Date
CN113055653A true CN113055653A (en) 2021-06-29
CN113055653B CN113055653B (en) 2023-05-30

Family

ID=76514121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110301581.2A Active CN113055653B (en) 2021-03-22 2021-03-22 Automatic updating method and device of image acquisition equipment and related equipment

Country Status (1)

Country Link
CN (1) CN113055653B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610501A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 Device firmware upgrade system and method, device management server and portable terminal
CN101841536A (en) * 2010-04-01 2010-09-22 深圳英飞拓科技股份有限公司 Remote automatic upgrading method for digital monitoring equipment
CN105187262A (en) * 2015-10-27 2015-12-23 上海斐讯数据通信技术有限公司 Router upgrading method and system
CN105591824A (en) * 2016-01-14 2016-05-18 杭州赫智电子科技有限公司 Method and system for firmware upgrade
CN108446128A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 A kind of method for upgrading software and device
CN111367545A (en) * 2020-02-13 2020-07-03 北京三快在线科技有限公司 Terminal upgrading method and device, server, terminal equipment and readable storage medium
CN112527343A (en) * 2020-11-09 2021-03-19 西安广和通无线软件有限公司 Firmware updating method and device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610501A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 Device firmware upgrade system and method, device management server and portable terminal
CN101841536A (en) * 2010-04-01 2010-09-22 深圳英飞拓科技股份有限公司 Remote automatic upgrading method for digital monitoring equipment
CN105187262A (en) * 2015-10-27 2015-12-23 上海斐讯数据通信技术有限公司 Router upgrading method and system
CN105591824A (en) * 2016-01-14 2016-05-18 杭州赫智电子科技有限公司 Method and system for firmware upgrade
CN108446128A (en) * 2017-02-16 2018-08-24 杭州海康威视数字技术股份有限公司 A kind of method for upgrading software and device
CN111367545A (en) * 2020-02-13 2020-07-03 北京三快在线科技有限公司 Terminal upgrading method and device, server, terminal equipment and readable storage medium
CN112527343A (en) * 2020-11-09 2021-03-19 西安广和通无线软件有限公司 Firmware updating method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113055653B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN110888662A (en) Vehicle remote silent upgrading method and device, vehicle and storage medium
CN110083374B (en) Upgrade rollback method, system and terminal equipment
CN1953376A (en) A system and method for updating remote software of wireless terminal equipment
KR101327680B1 (en) Apparatus, system and method for upgrading firmware of energy device
CN111341090B (en) Bluetooth remote controller pressure measurement method, control device and computer readable storage medium
CN109981360B (en) Internet of things equipment site opening method, device and system and storage medium
CN101185070B (en) Device management system and method for setting configuration-value therein
CN110824982A (en) ECU remote debugging method, server and storage medium
US20170171355A1 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN113038084B (en) State identification method, device and system
CN112492052A (en) Remote debugging method and device for intelligent networked vehicle data
CN112256294A (en) Deployment method, cloud platform, system and storage medium of terminal application
CN113329070A (en) Method, device and equipment for acquiring vehicle operation data and storage medium
CN113985852B (en) Log processing method, device and system for vehicle-mounted terminal
CN115134684A (en) Remote upgrading method, system and device for water meter centralized reading equipment
CN112445507A (en) Equipment upgrading method and device
CN112512017B (en) Information processing method and device for remotely monitoring state of intelligent vehicle-mounted networking terminal
WO2016086635A1 (en) Network element upgrade management method and apparatus
CN102158462B (en) A kind of method that 2G or 3G module remote diagnosis is repaired
CN113055653B (en) Automatic updating method and device of image acquisition equipment and related equipment
CN110598797B (en) Fault detection method and device, storage medium and electronic device
CN104469278A (en) Method and device for upgrading monitoring system
CN113676496B (en) Data transmission method, system, readable storage medium and computer equipment
CN113535202B (en) Charging pile upgrading method, upgrading device and charging pile system
CN112511657A (en) Information processing method and device for intelligent networked vehicle data remote management

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
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20240109

Granted publication date: 20230530