CN116414416A - Method and device for remotely upgrading street lamp controller - Google Patents

Method and device for remotely upgrading street lamp controller Download PDF

Info

Publication number
CN116414416A
CN116414416A CN202310133828.3A CN202310133828A CN116414416A CN 116414416 A CN116414416 A CN 116414416A CN 202310133828 A CN202310133828 A CN 202310133828A CN 116414416 A CN116414416 A CN 116414416A
Authority
CN
China
Prior art keywords
upgrade
program
upgrading
street lamp
controller
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
CN202310133828.3A
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.)
Beijing Fortune Lighting System Engineering Co ltd
Original Assignee
Beijing Fortune Lighting System Engineering 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 Beijing Fortune Lighting System Engineering Co ltd filed Critical Beijing Fortune Lighting System Engineering Co ltd
Priority to CN202310133828.3A priority Critical patent/CN116414416A/en
Publication of CN116414416A publication Critical patent/CN116414416A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention discloses a method and a device for remotely upgrading a street lamp controller, comprising the following steps of S1, acquiring an upgrading signal sent by a server; s2, checking whether the current version number is the same as the version number to be upgraded, and refusing to upgrade if the checking result is the same; s3, if the version numbers are different, checking whether the storage space is enough, if not, replying that the space of the server is insufficient and refusing to upgrade; s4, if the space is sufficient, entering an upgrading mode; s5, randomly selecting a controller to request a server for allowing upgrading; s6, acquiring an upgrade program, testing the upgrade program, and upgrading other controllers in batches after the upgrade program is tested successfully. The invention can realize remote upgrade of the street lamp controller.

Description

Method and device for remotely upgrading street lamp controller
Technical Field
The invention relates to the field of updating street lamp controllers, in particular to a method and a device for updating a street lamp controller.
Background
The existing method for upgrading the street lamp controller is generally to upgrade the street lamp controller by using a File Transfer Protocol (FTP) or a simple file transfer protocol (TFTP). FTP and TFTP protocols occur earlier. FTP is based on TCP and a series of processes consumes a lot of time when data needs to be transferred over a lot of time so that connection time-out causes failure of upgrades. TFTP runs on the udp protocol, but the length is fixed to 512B, and the message is too large, which occupies the broadband resource for too long, and is easy to cause transmission failure.
Disclosure of Invention
The invention aims to provide a method and a device for upgrading a street lamp controller, and aims to solve the problem of upgrading the street lamp controller.
The invention provides a method for upgrading a street lamp controller, which comprises the following steps:
s1, acquiring an upgrade signal sent by a server;
s2, checking whether the current version number is the same as the version number to be upgraded, and refusing to upgrade if the checking result is the same;
s3, if the version numbers are different, checking whether the storage space is enough, if not, replying that the space of the server is insufficient and refusing to upgrade;
s4, if the space is sufficient, entering an upgrading mode;
s5, randomly selecting a controller to request a server for allowing upgrading;
s6, acquiring an upgrade program, testing the upgrade program, and upgrading other controllers in batches after the upgrade program is tested successfully.
The embodiment of the invention also provides a device for upgrading the street lamp controller, which comprises: a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the method described above.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores an information transmission implementation program, and the program realizes the steps of the method when being executed by a processor.
By adopting the embodiment of the invention, the updating of the street lamp controller can be realized.
The foregoing description is only an overview of the present invention, and is intended to provide a more clear understanding of the technical means of the present invention, as it is embodied in accordance with the present invention, and to make the above and other objects, features and advantages of the present invention more apparent, as it is embodied in the following detailed description of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of remotely upgrading a street lamp controller according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus for remotely upgrading a street lamp controller according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Method embodiment
According to an embodiment of the present invention, there is provided a method for remotely upgrading a street lamp controller, and fig. 1 is a flowchart of a method for remotely upgrading a street lamp controller according to an embodiment of the present invention, as shown in fig. 1, specifically including:
s1, acquiring an upgrade signal sent by a server;
s2, checking whether the current version number is the same as the version number to be upgraded, and refusing to upgrade if the checking result is the same;
s3, if the version numbers are different, checking whether the storage space is enough, if not, replying that the space of the server is insufficient and refusing to upgrade;
s4, if the space is sufficient, entering an upgrading mode;
s5, randomly selecting a controller to request a server for allowing upgrading;
s6, acquiring an upgrade program, testing the upgrade program, and upgrading other controllers in batches after the upgrade program is tested successfully.
S4 specifically comprises the following steps: if the space is sufficient, the controller enters an upgrade mode, and no control command outside the upgrade program is received any more by the controller, so that the upgrade is ensured to be successful.
S6 specifically comprises the following steps: receiving an upgrade program, self-checking whether the upgrade program has errors, and re-applying for upgrade by the controller if the upgrade program has errors; the program has no error, the original program is stored, and a new program is installed;
all functions of the test program, including switching, dimming and data uploading; if the test has a problem, the system re-uploads the upgrade program and re-upgrades the upgrade; and after the test is successful, upgrading the other controllers in batches.
S6 further comprises: after the batch upgrading is finished, running within a certain period of time without any problem, and deleting the stored original program; and finishing upgrading.
Device embodiment 1
An embodiment of the present invention provides a device for remotely upgrading a street lamp controller, as shown in fig. 2, including: the memory 20, the processor 22 and a computer program stored on the memory 20 and executable on the processor 22, which when executed by the processor, implements the steps of the method embodiments described above.
Device example two
The embodiment of the present invention provides a computer readable storage medium, on which a program for implementing information transmission is stored, which when executed by the processor 22 implements the steps of the method embodiment described above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; and these modifications or substitutions may be made to the technical solutions of the embodiments of the present invention without departing from the spirit of the corresponding technical solutions.

Claims (6)

1. A method for remotely upgrading a street lamp controller, comprising,
s1, acquiring an upgrade signal sent by a server;
s2, checking whether the current version number is the same as the version number to be upgraded, and refusing to upgrade if the checking result is the same;
s3, if the version numbers are different, checking whether the storage space is enough, if not, replying that the space of the server is insufficient and refusing to upgrade;
s4, if the space is sufficient, entering an upgrading mode;
s5, randomly selecting a controller to request a server for allowing upgrading;
s6, acquiring an upgrade program, testing the upgrade program, and upgrading other controllers in batches after the upgrade program is tested successfully.
2. The method according to claim 1, wherein S4 specifically comprises: if the space is sufficient, the controller enters an upgrade mode, and no control command outside the upgrade program is received any more by the controller, so that the upgrade is ensured to be successful.
3. The method according to claim 2, wherein S6 specifically comprises: receiving an upgrade program, self-checking whether the upgrade program has errors, and re-applying for upgrade by the controller if the upgrade program has errors; the program has no error, the original program is stored, and a new program is installed;
all functions of the test program, including switching, dimming and data uploading; if the test has a problem, the system re-uploads the upgrade program and re-upgrades the upgrade; and after the test is successful, upgrading the other controllers in batches.
4. A method according to claim 3, wherein S6 further comprises: after the batch upgrading is finished, running within a certain period of time without any problem, and deleting the stored original program; and finishing upgrading.
5. An apparatus for remotely upgrading a street lamp controller, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the method of remotely upgrading a street lamp controller as claimed in any one of claims 1 to 4.
6. A computer readable storage medium, characterized in that it has stored thereon a program for realizing information transfer, which when executed by a processor, realizes the steps of the method for remotely upgrading a street lamp controller according to any of claims 1-4.
CN202310133828.3A 2023-02-08 2023-02-08 Method and device for remotely upgrading street lamp controller Pending CN116414416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310133828.3A CN116414416A (en) 2023-02-08 2023-02-08 Method and device for remotely upgrading street lamp controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310133828.3A CN116414416A (en) 2023-02-08 2023-02-08 Method and device for remotely upgrading street lamp controller

Publications (1)

Publication Number Publication Date
CN116414416A true CN116414416A (en) 2023-07-11

Family

ID=87055564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310133828.3A Pending CN116414416A (en) 2023-02-08 2023-02-08 Method and device for remotely upgrading street lamp controller

Country Status (1)

Country Link
CN (1) CN116414416A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112398673A (en) * 2019-08-16 2021-02-23 中兴通讯股份有限公司 Upgrading method, communication equipment and computer readable storage medium
CN114398055A (en) * 2021-12-31 2022-04-26 南京理控物联技术有限公司 Single-lamp controller firmware remote batch upgrading device and upgrading method
CN114915671A (en) * 2022-05-06 2022-08-16 炬彦物联科技(江苏)有限公司 NB-IoT-based remote upgrading method for street lamp controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112398673A (en) * 2019-08-16 2021-02-23 中兴通讯股份有限公司 Upgrading method, communication equipment and computer readable storage medium
WO2021031889A1 (en) * 2019-08-16 2021-02-25 中兴通讯股份有限公司 Upgrade method, communication device and computer-readable storage medium
CN114398055A (en) * 2021-12-31 2022-04-26 南京理控物联技术有限公司 Single-lamp controller firmware remote batch upgrading device and upgrading method
CN114915671A (en) * 2022-05-06 2022-08-16 炬彦物联科技(江苏)有限公司 NB-IoT-based remote upgrading method for street lamp controller

Similar Documents

Publication Publication Date Title
US10762033B2 (en) Method and apparatus for updating server firmware in server, and server
US20090094450A1 (en) Firmware image update and management
CN110928561B (en) Vehicle controller software version management method and device, vehicle and storage medium
US10274919B2 (en) Method, device and computer program product for programming a plurality of control units
CN112835616A (en) Version upgrading method and device, electronic equipment and storage medium
CN111290351A (en) Driver management method, system, computer equipment and storage medium
US11016750B2 (en) Firmware update system
CN107463393B (en) Peripheral device and driver installation method and system thereof
CN116414416A (en) Method and device for remotely upgrading street lamp controller
CN113939802A (en) Vehicle control device, update program, program update system, and write device
CN109697077B (en) Method, device and equipment for starting hard disk firmware
CN106951276B (en) Multi-controller software upgrading and address conflict detection method and device
CN106484442A (en) Server system and the method for updating start image shelves
KR20150110860A (en) Apparatus and method for firmware updating of vehicle
CN112328288A (en) Method, system, equipment and storage medium for updating server component
CN112559349A (en) Program running method and device
CN112363744A (en) Method and system for upgrading automobile data recorder firmware and storage medium
JP2022538080A (en) A method of interacting with a computer on a vehicle's on-board bus
CN110618826A (en) Method and device for updating application program and terminal equipment
CN114064086B (en) Multi-stage processor system and upgrading method thereof
CN113157294A (en) Application program upgrading method of frequency converter, server and frequency converter
US11171857B2 (en) Identifying an electronic device connected to a communication network that has XCP enabled
CN114461248A (en) Function updating method, device and storage medium for automatic driving system
CN116048572A (en) Firmware upgrading method and device of terminal equipment, terminal equipment and storage medium
CN116483409A (en) Remote firmware updating method, system, electronic equipment and storage medium

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