CN113064626A - Remote upgrade detection method for roadside parking equipment - Google Patents

Remote upgrade detection method for roadside parking equipment Download PDF

Info

Publication number
CN113064626A
CN113064626A CN202110303106.9A CN202110303106A CN113064626A CN 113064626 A CN113064626 A CN 113064626A CN 202110303106 A CN202110303106 A CN 202110303106A CN 113064626 A CN113064626 A CN 113064626A
Authority
CN
China
Prior art keywords
upgrade
file
differential
parking equipment
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110303106.9A
Other languages
Chinese (zh)
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.)
Xiamen Cheboyi Transportation Equipment Co ltd
Original Assignee
Xiamen Cheboyi Transportation Equipment 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 Xiamen Cheboyi Transportation Equipment Co ltd filed Critical Xiamen Cheboyi Transportation Equipment Co ltd
Priority to CN202110303106.9A priority Critical patent/CN113064626A/en
Publication of CN113064626A publication Critical patent/CN113064626A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The invention relates to the technical field of equipment upgrading and discloses a remote upgrading detection method for roadside parking equipment, wherein when the parking equipment detects that the version of a parking program is updated, the parking equipment remotely downloads an upgrading file; the upgrade file is composed of a plurality of encrypted differential files, and each encrypted differential file comprises an encrypted header and upgrade content; and according to the upgrading file, remotely upgrading the parking equipment. The invention is convenient for remote upgrading of the roadside parking equipment.

Description

Remote upgrade detection method for roadside parking equipment
Technical Field
The invention relates to the technical field of equipment upgrading, in particular to a remote upgrading detection method for roadside parking equipment.
Background
With the continuous update of science and technology, the parking equipment also needs to be upgraded. The parking equipment can be connected with a local PC or a remote server for upgrading in a wired mode such as a network port and a serial port. The parking equipment can also be connected with a local PC or a remote server in a normal power supply mode for upgrading through a wifi or 4G network. However, through the wired connection mode, a hardware interface needs to be reserved, and when problems occur in actual operation and upgrading is needed, disassembly is needed, which is troublesome and laborious. In addition, through a wireless long connection mode, system abnormity is caused when abnormal power failure occurs in the upgrading process; when the upgrade file is large, the network is poor, which easily results in upgrade failure, and all upgrade files need to be downloaded again, thus wasting flow.
Therefore, how to provide a remote upgrading detection method for roadside parking equipment to facilitate upgrading of the roadside parking equipment becomes an urgent technical problem to be solved.
Disclosure of Invention
The technical problem to be solved by the invention is how to provide a remote upgrade detection method for roadside parking equipment, so that the roadside parking equipment can be conveniently upgraded remotely.
Therefore, according to a first aspect, the embodiment of the invention discloses a roadside parking equipment remote upgrade detection method, which comprises the following steps: when the parking equipment detects that the parking program version is updated, the parking equipment remotely downloads the upgrade file; the upgrade file is composed of a plurality of encrypted differential files, and each encrypted differential file comprises an encrypted header and upgrade content; and according to the upgrading file, remotely upgrading the parking equipment.
The invention is further configured that, when the parking equipment detects that the parking program version is updated, before the parking equipment downloads the upgrade file remotely, the method further comprises the following steps: when the parking equipment senses that the vehicle leaves the field, the parking equipment is connected with the remote server to carry out network communication.
The invention is further set that the encryption head is 16 bytes data, and the data comprises a current version number, a last version number supporting upgrading, a corresponding equipment model, a file length, a current file CRC (cyclic redundancy check) checksum, a whole upgrading identification, a current differential packet number and a total file checksum.
The invention is further set that the upgrade content is a difference file formed by the difference between the current version binary upgrade file and the previous version binary upgrade file and recording the different positions and contents of the contents.
The present invention is further configured such that when the differential file size is less than the upgrade file size before differential encryption, the overall upgrade flag is not in effect.
The present invention is further configured such that when the differential file size exceeds the size of the upgrade file before differential encryption, the overall upgrade flag is in effect.
The invention is further set to progressively increase the number of each differential file according to the content sequence, and the file names are named by the time of the timestamp millisecond, so that all the differential packets are unique.
The invention is further set to complete a differential packet per liter, and the parking equipment automatically records the name, the number and the checksum of the differential packet to the flash storage.
The invention is further arranged such that when the number of the recorded upgraded differential packets is consistent with the total number, and the checksum sum of each differential packet is equal to the total checksum, the upgrade is completed.
The invention is further arranged that when the parking equipment is abnormally powered off, the parking equipment is restarted after the upgrading is failed, and the equipment detects the upgrading again, the equipment does not download the upgraded file.
The invention has the following beneficial effects: the embodiment of the invention discloses a remote upgrade detection method for roadside parking equipment, which comprises the following steps: when the parking equipment detects that the parking program version is updated, the parking equipment remotely downloads the upgrade file; the upgrade file is composed of a plurality of encrypted differential files, and each encrypted differential file comprises an encrypted header and upgrade content; and according to the upgrading file, remotely upgrading the parking equipment. Compared with the prior art, the invention is convenient for remote upgrading of the roadside parking equipment.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a remote upgrade detection method for a roadside parking equipment disclosed in this embodiment;
fig. 2 is a flowchart of another roadside parking equipment remote upgrade detection method disclosed in this embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The embodiment of the invention discloses a remote upgrade detection method for roadside parking equipment, which comprises the following steps of:
step S101, when the parking equipment detects that the version of the parking program is updated, the parking equipment remotely downloads an upgrade file; the upgrade file is composed of a plurality of encrypted differential files, and each encrypted differential file comprises an encrypted header and upgrade content;
and S102, remotely upgrading the parking equipment according to the upgrading file.
It should be noted that, the method for detecting remote upgrade of the roadside parking equipment disclosed by the embodiment of the invention includes: when the parking equipment detects that the parking program version is updated, the parking equipment remotely downloads the upgrade file; the upgrade file is composed of a plurality of encrypted differential files, and each encrypted differential file comprises an encrypted header and upgrade content; and according to the upgrading file, remotely upgrading the parking equipment. Compared with the prior art, the invention is convenient for remote upgrading of the roadside parking equipment.
It should also be noted that the parking facility is divided into two zones, a first zone and a second zone. The program is defaulted to run in one partition, and when the program enters the upgrading process, the upgrading file is programmed in the second partition. When the upgrade is complete, the program jumps to the two-partition execution. When the program operated by the two partitions detects the upgrade, the upgrade file is programmed in one partition, and when the upgrade is completed, the program jumps to the other partition for execution. If the upgrade fails, the program is not adjusted and still runs in the current partition. Therefore, upgrading failure caused by abnormal reasons during upgrading is guaranteed, and normal operation of equipment can be guaranteed.
In a specific implementation process, before step S101, as shown in fig. 2, the method further includes: and S100, when the parking equipment senses that the vehicle leaves the field, the parking equipment is connected with a remote server for network communication.
In a specific implementation process, the encryption header is 16 bytes of data, and the data includes a current version number, a last version number supporting upgrading, a corresponding device model, a file length, a current file CRC (cyclic redundancy check) checksum, a whole upgrading identifier, a current differential packet number and a total file checksum.
In a specific implementation process, the upgrade content is a difference file formed by recording different positions and contents of the current version binary upgrade file and the previous version binary upgrade file.
In a specific implementation process, when the size of the differential file is smaller than that of the upgrade file before the differential file is not encrypted, the whole upgrade identifier is not effective. And the device software analyzes the content of the second part of differential file, and writes the content of different positions into the flash address of the device, thereby completing upgrading.
In a specific implementation process, when the size of the differential file exceeds the size of the upgrade file before differential encryption, the whole upgrade identifier takes effect. And burning all contents except the encrypted header part into the flash address of the device according to the position corresponding to the differential packet number.
In the specific implementation process, each differential file is numbered in an increasing mode according to the content sequence, and the file names are named according to the time of the timestamp millisecond, so that all differential packets are unique.
In the specific implementation process, each liter of level completes one differential packet, and the parking equipment automatically records the name, the number and the checksum of the differential packet into flash storage.
In the specific implementation process, when the number of the recorded upgraded differential packets is consistent with the total number, and the checksum sum of all the differential packets is equal to the total checksum, the upgrade is completed.
In the specific implementation process, when the parking equipment is abnormally powered off, the parking equipment is restarted after the upgrading is failed, and the equipment detects the upgrading again, the upgraded file is not downloaded by the equipment.
It should be noted that, the upgrade file is an encrypted differential file, which can greatly reduce the size of the upgrade file. When the upgrade file is large, the device may perform a segmented download. If the downloading fails due to network reasons in the downloading process, the downloaded upgrade complete upgrade package can be kept and recorded, and all upgrade files do not need to be downloaded again when the upgrade is performed again. And after the downloading is successful, the software is automatically updated in the equipment. If the equipment is powered off due to external factors in the updating process, after the equipment is powered on and restarted, the software can automatically recover to be normal and enter upgrading again.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (10)

1. A roadside parking equipment remote upgrade detection method is characterized by comprising the following steps:
when the parking equipment detects that the parking program version is updated, the parking equipment remotely downloads the upgrade file; the upgrade file is composed of a plurality of encrypted differential files, and each encrypted differential file comprises an encrypted header and upgrade content;
and according to the upgrading file, remotely upgrading the parking equipment.
2. The method for detecting remote upgrade of a roadside parking facility as claimed in claim 1, wherein when the parking facility detects the update of the parking program version, before the parking facility remotely downloads the upgrade file, the method further comprises:
when the parking equipment senses that the vehicle leaves the field, the parking equipment is connected with the remote server to carry out network communication.
3. The method for detecting the remote upgrade of the roadside parking equipment according to claim 1, wherein the encryption header is 16 bytes of data, and the data comprises a current version number, a last version number supporting upgrade, a corresponding equipment model, a file length, a current file CRC checksum, an identifier of whether the upgrade is performed on the whole, a current differential packet number and a total file checksum.
4. The method for detecting the remote upgrade of the roadside parking equipment according to claim 1, wherein the upgrade content is a difference file formed by recording different positions and contents of the current version binary upgrade file and the previous version binary upgrade file.
5. The method according to claim 4, wherein when the size of the differential file is smaller than the size of the upgrade file before differential encryption, the entire upgrade flag is not valid.
6. The method according to claim 4, wherein the overall upgrade flag is valid when the size of the differential file exceeds the size of the upgrade file before differential encryption.
7. The method according to claim 4, characterized in that each differential file is numbered in an increasing order according to the content sequence, and the file names are named with the time of a timestamp millisecond, so that all differential packages are unique.
8. The method according to claim 7, wherein each liter of the system completes a differential package, and the parking equipment automatically records the name, number and checksum of the differential package in flash storage.
9. The method according to claim 8, wherein when the number of the recorded upgraded differential packages is consistent with the total number and the checksum of each differential package is added to be equal to the total checksum, the upgrade is completed.
10. The method for detecting the remote upgrade of the roadside parking equipment as claimed in claim 1, wherein when the parking equipment is abnormally powered off, restarted after the upgrade fails and the equipment detects the upgrade again, the equipment does not download the upgraded file any more.
CN202110303106.9A 2021-03-22 2021-03-22 Remote upgrade detection method for roadside parking equipment Pending CN113064626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110303106.9A CN113064626A (en) 2021-03-22 2021-03-22 Remote upgrade detection method for roadside parking equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110303106.9A CN113064626A (en) 2021-03-22 2021-03-22 Remote upgrade detection method for roadside parking equipment

Publications (1)

Publication Number Publication Date
CN113064626A true CN113064626A (en) 2021-07-02

Family

ID=76562959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110303106.9A Pending CN113064626A (en) 2021-03-22 2021-03-22 Remote upgrade detection method for roadside parking equipment

Country Status (1)

Country Link
CN (1) CN113064626A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170177325A1 (en) * 2015-12-22 2017-06-22 Intel Corporation Dynamic data difference generation and distribution
CN108121560A (en) * 2018-01-29 2018-06-05 宇龙计算机通信科技(深圳)有限公司 Difference bag upgrade method, device, terminal and computer readable storage medium
CN109857443A (en) * 2019-01-25 2019-06-07 深圳市泰比特科技有限公司 A kind of upgrade method and system of shared motor bicycle whole-control system
CN111385191A (en) * 2018-12-28 2020-07-07 联合汽车电子有限公司 Vehicle-mounted interconnected gateway, vehicle OTA upgrading system and method and computer storage medium
CN112486554A (en) * 2020-12-01 2021-03-12 中国科学院合肥物质科学研究院 Vehicle-mounted networking terminal software upgrading method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170177325A1 (en) * 2015-12-22 2017-06-22 Intel Corporation Dynamic data difference generation and distribution
CN108121560A (en) * 2018-01-29 2018-06-05 宇龙计算机通信科技(深圳)有限公司 Difference bag upgrade method, device, terminal and computer readable storage medium
CN111385191A (en) * 2018-12-28 2020-07-07 联合汽车电子有限公司 Vehicle-mounted interconnected gateway, vehicle OTA upgrading system and method and computer storage medium
CN109857443A (en) * 2019-01-25 2019-06-07 深圳市泰比特科技有限公司 A kind of upgrade method and system of shared motor bicycle whole-control system
CN112486554A (en) * 2020-12-01 2021-03-12 中国科学院合肥物质科学研究院 Vehicle-mounted networking terminal software upgrading method

Similar Documents

Publication Publication Date Title
CN112486554B (en) Vehicle-mounted networking terminal software upgrading method
WO2021083244A1 (en) Multi-device batch firmware upgrade method for mesh network device
CN109189445B (en) Method for upgrading program of equipment of Internet of things
CN110096294B (en) Method for wirelessly upgrading MCU application program at any breakpoint
EP2878140B1 (en) Wireless firmware upgrades to an alarm security panel
CN100545809C (en) A kind of method for upgrading software and system thereof
EP2456257B1 (en) Method and system for upgrading wireless data card
WO2019076037A1 (en) Firmware updating method and device
CN109951842B (en) Method for reserving BLE name and MAC address in Bluetooth firmware upgrade
WO2022241918A1 (en) Remote upgrading method and apparatus for internet of things device
CN111273924B (en) Software updating method and device
CN110007941B (en) MCU firmware and upgrading method of intelligent garbage classification recycling system
CN109002312A (en) Method for upgrading software, device and upgrade server and equipment
WO2018010597A1 (en) Wireless download and installation method and system for smart device
CN113905039A (en) System upgrade file transmission method, device and system
CN110647337A (en) Internet of things MCU (microprogrammed control Unit) air firmware upgrading method
CN112631628A (en) Singlechip upgrading method, singlechip and storage medium
CN113315797A (en) Method, system and node for remote upgrading of local area network in batches
CN113064626A (en) Remote upgrade detection method for roadside parking equipment
CN114440389A (en) Air conditioner, method of upgrading the same, computer device, and computer-readable storage medium
CN112181455B (en) Online upgrading method of microcontroller, microcontroller and storage medium
CN112286565B (en) Embedded system differential upgrading method based on storage container
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
CN113485734A (en) Automatic vehicle configuration flashing method
CN112925538A (en) Equipment updating method, system and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210702