CN113031990B - Broadcasting upgrading method, system, equipment and storage medium of street lamp terminal - Google Patents

Broadcasting upgrading method, system, equipment and storage medium of street lamp terminal Download PDF

Info

Publication number
CN113031990B
CN113031990B CN202110353071.XA CN202110353071A CN113031990B CN 113031990 B CN113031990 B CN 113031990B CN 202110353071 A CN202110353071 A CN 202110353071A CN 113031990 B CN113031990 B CN 113031990B
Authority
CN
China
Prior art keywords
upgrade
street lamp
lamp terminal
concentrator
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110353071.XA
Other languages
Chinese (zh)
Other versions
CN113031990A (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.)
He'an Technology Co ltd
Original Assignee
He'an 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 He'an Technology Co ltd filed Critical He'an Technology Co ltd
Priority to CN202110353071.XA priority Critical patent/CN113031990B/en
Publication of CN113031990A publication Critical patent/CN113031990A/en
Application granted granted Critical
Publication of CN113031990B publication Critical patent/CN113031990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/60Software deployment
    • G06F8/61Installation
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a broadcasting upgrading method of a street lamp terminal, which comprises the following steps: the concentrator and the street lamp terminal establish broadband power line carrier communication connection; the concentrator sends out an upgrade notification, and the street lamp terminal performs upgrade condition check; the concentrator divides the upgrade package into N upgrade fragments, and numbers and sends out each upgrade fragment; the concentrator sends out a query instruction, and the street lamp terminal compares the received upgrade sheet number with all the numbers of the upgrade fragments to obtain the number lacking the upgrade fragment and sends out the number lacking the upgrade fragment; the concentrator sends out the received upgrade fragments corresponding to the numbers of the missing upgrade fragments; the street lamp terminals sequentially merge, check and start up upgrading, and the regenerated upgrading report is sent to the concentrator. The invention also provides a broadcast upgrading system, a broadcast upgrading device and a computer readable storage medium. Compared with the related art, the technical scheme of the invention has high upgrading success rate and high reliability.

Description

Broadcasting upgrading method, system, equipment and storage medium of street lamp terminal
[ field of technology ]
The present invention relates to the technical field of lighting devices, and in particular, to a broadcasting upgrade method, a broadcasting upgrade system, a broadcasting upgrade device, and a computer readable storage medium for a street lamp terminal.
[ background Art ]
At present, street lamps are an indispensable lighting tool in daily life of people, and provide lighting for pedestrians and vehicles on roads so as to ensure travel safety of people. The street lamp terminal is an important part for controlling the street lamp to work, and the upgrade in the maintenance of the street lamp terminal is an important work.
The related art streetlamp terminals are generally upgraded one by one manually. In the street lamp control system, a concentrator and a street lamp terminal in communication connection with the concentrator are generally used. The concentrator and the street lamp terminal can be connected through wired communication, and the application of adopting broadband power line carrier communication connection is newer.
However, the communication signal of the broadband power line carrier communication is poor, the packet is often lost during the communication, and how to upgrade the street lamp terminal by the concentrator and adopting the broadband power line carrier communication is a technical problem to be solved.
Therefore, there is a need to provide a new method, system and apparatus to solve the above-mentioned technical problems.
[ invention ]
The invention aims to overcome the technical problems and provide a broadcasting upgrading method, a broadcasting upgrading system, broadcasting upgrading equipment and a computer readable storage medium of a street lamp terminal with high upgrading success rate and high reliability.
In order to achieve the above object, the present invention provides a broadcasting upgrading method of a street lamp terminal, which is applied to a concentrator having a broadcasting function, the method comprising the steps of:
s11, establishing broadband power line carrier communication connection with the street lamp terminal, and obtaining an upgrade package for upgrading the street lamp terminal in advance;
s12, respectively sending an upgrade notification to a plurality of street lamp terminals in a unicast mode, and receiving first feedback information fed back by each street lamp terminal, wherein the upgrade notification is used for triggering the street lamp terminals to carry out upgrade condition inspection, and the first feedback information comprises inspection results of the upgrade condition inspection;
s13, dividing the upgrade package into N upgrade fragments according to a preset splitting rule, and numbering each upgrade fragment according to a preset numbering rule to obtain a plurality of upgrade fragment numbers corresponding to the upgrade fragments one by one, wherein N is a positive integer greater than 1;
s14, respectively transmitting all the upgrade fragments to each street lamp terminal in a broadcasting mode;
s15, sending a query instruction to each street lamp terminal in a unicast mode, and receiving second feedback information fed back by each street lamp terminal according to the query instruction; the query instruction comprises all the upgrade fragment numbers, and the second feedback information is the lack of the upgrade fragment numbers obtained by comparing the received upgrade fragment numbers with the query instruction by each street lamp terminal;
s16, transmitting the received upgrade fragments corresponding to the upgrade fragment numbers lacking in each street lamp terminal to each street lamp terminal in a broadcasting mode; repeating the steps D of the steps S15-S16 for a plurality of times;
s17, receiving an upgrade report sent by the street lamp terminal, wherein the upgrade report is as follows: and each street lamp terminal compares all the received upgrade fragment numbers with the query instruction to obtain the upgrade fragment numbers without any missing, sequentially merging, checking and starting the upgrade of all the upgrade fragments, and then generating upgrade success information according to the upgrade completion.
Preferably, in S12, the checking result indicates whether the corresponding street lamp terminal is in a state that can be upgraded.
Preferably, in the step S13, the preset splitting rule is to split the upgrade package into one upgrade segment according to a fixed size of 256 bytes; the preset numbering rule is to sequentially and continuously number according to the splitting sequence; in S16, D is less than or equal to 10.
Preferably, the method comprises the steps of,
after S17, the broadcast upgrading method of the street lamp terminal further includes the following steps:
and S18, collecting the received upgrading reports and generating upgrading results, wherein the upgrading results are used for platform display.
The invention also provides a broadcasting upgrading method of the street lamp terminal, which is applied to the street lamp terminal, wherein the street lamp terminal comprises a plurality of street lamp terminals, and the method comprises the following steps:
s21, establishing broadband power line carrier communication connection with a concentrator;
s22, receiving an upgrade notification sent by the concentrator in a unicast mode, triggering upgrade condition inspection according to the upgrade notification, and sending an inspection structure to the concentrator in a first feedback information, wherein the first feedback information comprises an inspection result of the upgrade condition inspection;
s23, receiving upgrade fragments sent by the concentrator in a broadcast mode, wherein the upgrade fragments divide the upgrade package into N according to a preset splitting rule by the concentrator, each upgrade fragment is numbered according to a preset numbering rule, and a plurality of upgrade fragment numbers corresponding to the upgrade fragments one by one are obtained, wherein N is a positive integer greater than 1;
s24, receiving a query instruction sent by the concentrator in a unicast mode, wherein the query instruction comprises all the upgrade fragment numbers;
s25, comparing each received upgrade fragment number with the query instruction:
if the comparison result is consistent, the process proceeds to step S27,
if the comparison results are inconsistent, obtaining second feedback information through comparison, sending the second feedback information to the concentrator, and entering step S26, wherein the second feedback information comprises the absent upgrade fragment number;
s26, receiving the upgrade fragments corresponding to the missing upgrade fragment numbers sent by the concentrator in a broadcast mode for D times, and entering step S25;
s27, comparing all received upgrade fragment numbers with the query instruction to obtain any upgrade fragment number which is absent, sequentially merging, checking and starting upgrade all the upgrade fragments, and sending an upgrade report to the concentrator according to the upgrade report generated after the upgrade is completed, wherein the upgrade report is upgrade success information.
Preferably, in the step S23, the preset splitting rule is to split the upgrade package into one upgrade segment according to a fixed size of 256 bytes; the preset numbering rule is numbering according to the splitting sequence.
Preferably, in S26, D is 10.
The invention also provides a broadcast upgrading system, which comprises a concentrator and a street lamp terminal, wherein the street lamp terminal comprises a plurality of street lamp terminals,
the concentrator is used for establishing broadband power line carrier communication connection with each street lamp terminal; the method for upgrading the street lamp terminal by broadcasting according to any one of the above steps is realized;
the street lamp terminal is used for establishing broadband power line carrier communication connection with the concentrator and realizing the steps of the broadcast upgrading method of the street lamp terminal.
The invention also provides a broadcasting upgrading device, which comprises a processor and a memory, wherein the processor is used for reading the program in the memory and executing the steps in the broadcasting upgrading method of the street lamp terminal.
The present invention also provides a computer readable storage medium storing a computer program comprising program instructions which when executed by a processor implement the steps in the broadcast upgrade method of a street lamp terminal as described in any one of the above.
Compared with the prior art, the broadcasting upgrading method of the street lamp terminal comprises the following steps: the concentrator and the street lamp terminal establish broadband power line carrier communication connection; the concentrator sends out an upgrade notification, and the street lamp terminal performs upgrade condition check; the concentrator divides the upgrade package into N upgrade fragments, and numbers and sends out each upgrade fragment; the concentrator sends out a query instruction, and the street lamp terminal compares the received upgrade sheet number with all the numbers of the upgrade fragments to obtain the number lacking the upgrade fragment and sends out the number lacking the upgrade fragment; the concentrator sends out the received upgrade fragments corresponding to the numbers of the missing upgrade fragments; the street lamp terminals sequentially merge, check and start up upgrading, and the regenerated upgrading report is sent to the concentrator. According to the method, the upgrading package is segmented and numbered through the concentrator, and then the effect of upgrading all street lamp terminals simultaneously is achieved through the mode of inquiring the supplementary package for multiple times. In addition, the upgrade notification and the query instruction are sent in a unicast mode, the upgrade fragments are sent in a broadcast mode, and different contents are respectively sent in the unicast mode and the broadcast mode, so that the reliability of the street lamp terminal in the upgrade process is improved, the integral upgrade time is shortened, the use and occupation of the bandwidth of broadband power line carrier communication are reduced, and the upgrade success rate is improved. Therefore, the invention also provides a broadcasting upgrading system, broadcasting upgrading equipment and a computer readable storage medium for optimizing a unicast upgrading mode, and the situation that the communication quality of broadcasting upgrading is occasionally bad is improved, the reliability of the street lamp terminal in the upgrading process is improved, the integral upgrading time is shortened, and the use and occupation of the bandwidth of broadband power line carrier communication are reduced, so that the upgrading success rate is improved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art,
wherein, the liquid crystal display device comprises a liquid crystal display device,
fig. 1 is a flow chart of a broadcasting upgrading method of a street lamp terminal according to the present invention;
FIG. 2 is a flow chart of another method for upgrading a street lamp terminal according to the present invention;
FIG. 3 is a schematic diagram of a broadcast upgrade system according to the present invention;
fig. 4 is a schematic structural diagram of a broadcast upgrading apparatus according to the present invention.
[ detailed description ] of the invention
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. 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.
The terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the description of the drawings are intended to cover a non-exclusive inclusion. The terms first, second and the like in the description and in the claims or drawings are used for distinguishing between different objects and not for describing a particular sequential order. Reference herein to "an embodiment or this implementation" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention provides a broadcasting upgrading method of a street lamp terminal.
Referring to fig. 1, fig. 1 is a flow chart of a broadcasting upgrading method of a street lamp terminal according to the present invention.
The broadcasting upgrading method of the street lamp terminal is applied to the concentrator with the broadcasting function. Wherein, street lamp terminal includes a plurality of.
The broadcasting upgrading method of the street lamp terminal comprises the following steps:
s11, establishing broadband power line carrier communication connection with the street lamp terminal, and obtaining an upgrade package for upgrading the street lamp terminal in advance.
S12, respectively sending the upgrading notification to a plurality of street lamp terminals in a unicast mode, and receiving first feedback information fed back by each street lamp terminal.
The upgrade notification is used for triggering the street lamp terminal to check upgrade conditions. The first feedback information includes a check result of the upgrade condition check.
And the checking result is that the corresponding street lamp terminal is in a state of being capable of being upgraded or not.
The first feedback information fed back by each path of lamp terminal is provided with a unique identification code so as to distinguish the street lamp terminals.
S13, dividing the upgrade package into N upgrade fragments according to a preset splitting rule, and numbering each upgrade fragment according to a preset numbering rule to obtain a plurality of upgrade fragment numbers corresponding to the upgrade fragments one by one, wherein N is a positive integer greater than 1.
In this embodiment, the preset splitting rule is to split the upgrade package into one upgrade segment according to a fixed size of 256 bytes; the preset numbering rule is to sequentially and continuously number according to the splitting sequence. The number is used for subsequent comparison, and the upgrade fragments with the missing number can be found out.
S14, all the upgrade fragments are respectively sent to each street lamp terminal in a broadcasting mode.
Wherein, each upgrade fragment contains a number corresponding to the upgrade fragment. The number is used for subsequent comparison, and the upgrade fragments with the missing number can be found out.
S15, sending the query instruction to each street lamp terminal in a unicast mode, and then receiving second feedback information fed back by each street lamp terminal according to the query instruction.
Wherein the inquiry instruction comprises all the upgrade fragment numbers. And the second feedback information is the lack of the upgrade segment number obtained by comparing the received upgrade segment number with the query instruction by each street lamp terminal. According to the missing number packet supplementing operation, the bandwidth occupation of broadband power line carrier communication can be reduced, and the upgrading reliability is improved.
S16, the received upgrade fragments corresponding to the upgrade fragment numbers lacking in each street lamp terminal are sent to each street lamp terminal in a broadcasting mode. Repeating the steps D of the steps S15-S16 for a plurality of times.
In this embodiment, in S16, D is less than or equal to 10. And the adoption of 10 times of inquiry package complement can ensure that all the street lamp terminals can be upgraded simultaneously.
S17, receiving an upgrade report sent by the street lamp terminal, wherein the upgrade report is as follows: and each street lamp terminal compares all the received upgrade fragment numbers with the query instruction to obtain the upgrade fragment numbers without any missing, sequentially merging, checking and starting the upgrade of all the upgrade fragments, and then generating upgrade success information according to the upgrade completion.
In order to better realize efficient upgrading, in this embodiment, each street lamp terminal automatically starts the action of combining, checking and starting upgrading all the upgrading fragments in sequence after the number of the absent upgrading fragments appears, and then generating upgrading success information according to the completion of upgrading. And the other street lamp terminals do not need to be waited, and the street lamp terminals are independently and parallelly connected.
In order to realize the management and control of the remote platform, in this embodiment, the broadcast upgrading method of the street lamp terminal further includes the following steps:
and S18, collecting the received upgrading reports and generating upgrading results, wherein the upgrading results are used for platform display.
In summary, the broadcasting upgrading method of the street lamp terminal performs slicing and numbering on the upgrading package through the concentrator, and achieves the effect of upgrading all street lamp terminals at the same time through a multi-query package supplementing mode. Therefore, the broadcasting upgrading method of the street lamp terminal optimizes the unicast upgrading mode, improves the reliability of the street lamp terminal in the upgrading process under the condition that the communication quality of broadcasting upgrading is occasionally bad, shortens the integral upgrading time, reduces the use and occupation of the bandwidth of broadband power line carrier communication, and further improves the upgrading success rate.
The invention also provides a broadcasting upgrading method of the street lamp terminal. Referring to fig. 2, fig. 2 is a flow chart of another broadcasting upgrading method of a street lamp terminal according to the present invention.
The broadcasting upgrading method of the street lamp terminal is applied to the street lamp terminal. The street lamp terminal comprises a plurality of street lamp terminals.
The broadcasting upgrading method of the street lamp terminal comprises the following steps:
s21, establishing broadband power line carrier communication connection with the concentrator.
S22, receiving an upgrade notification sent by the concentrator in a unicast mode, triggering upgrade condition inspection according to the upgrade notification, and sending an inspection structure to the concentrator in a first feedback information mode. The first feedback information includes a check result of the upgrade condition check.
The first feedback information fed back by each path of lamp terminal is provided with a unique identification code so as to distinguish the street lamp terminals.
And the unicast is that the concentrator sends the street lamp terminals respectively. The communication between the network nodes is as if it were a conversation between people. If one speaks into another, the term network technology is used to describe "unicast", where the reception and transfer of information takes place only between two nodes. Unicast is widely used in networks, where most of the data is transmitted in unicast. For example, when e-mail is transmitted and received and Web pages are browsed, connection with a mail server and a Web server is necessary, and a unicast data transmission method is used at this time. The unicast mode has the advantage of high data transmission efficiency.
S23, receiving an upgrade fragment sent by the concentrator in a broadcast mode, wherein the upgrade fragment is obtained by dividing the upgrade packet into N pieces according to a preset splitting rule by the concentrator. Each upgrade segment is numbered according to a preset numbering rule, so that a plurality of upgrade segment numbers corresponding to the upgrade segments one by one are obtained, wherein N is a positive integer greater than 1. The upgrade package is used for upgrading the street lamp terminal and is obtained in advance for the concentrator.
In this embodiment, the preset splitting rule is to split the upgrade package into one upgrade segment according to a fixed size of 256 bytes; the preset numbering rule is numbering according to the splitting sequence. The number is used for subsequent comparison, and the upgrade fragments with the missing number can be found out.
S24, receiving a query instruction sent by the concentrator in a unicast mode, wherein the query instruction comprises all the upgrade fragment numbers.
S25, comparing each received upgrade fragment number with the query instruction:
if the comparison result is consistent, the process proceeds to step S27,
if the comparison result is inconsistent, obtaining second feedback information by comparing, sending the second feedback information to the concentrator, and entering step S26, wherein the second feedback information comprises the absent upgrade fragment number. According to the missing number packet supplementing operation, the bandwidth occupation of broadband power line carrier communication can be reduced, and the upgrading reliability is improved.
S26, receiving the upgrade fragments corresponding to the missing upgrade fragment numbers sent by the concentrator in a broadcast mode for D times, and entering step S25.
In this embodiment, in S16, D is less than or equal to 10. And the adoption of 10 times of inquiry package complement can ensure that all the street lamp terminals can be upgraded simultaneously.
S27, comparing all received upgrade fragment numbers with the query instruction to obtain any upgrade fragment number which is absent, sequentially merging, checking and starting upgrade all the upgrade fragments, and sending an upgrade report to the concentrator according to the upgrade report generated after the upgrade is completed, wherein the upgrade report is upgrade success information.
In order to better realize efficient upgrading, in this embodiment, each street lamp terminal automatically starts the action of combining, checking and starting upgrading all the upgrading fragments in sequence after the number of the absent upgrading fragments appears, and then generating upgrading success information according to the completion of upgrading. And the other street lamp terminals do not need to be waited, and the street lamp terminals are independently and parallelly connected.
In summary, the broadcasting upgrading method of the street lamp terminal performs slicing and numbering on the upgrading package through the concentrator, and achieves the effect of upgrading all street lamp terminals at the same time through a multi-query package supplementing mode. Therefore, the broadcasting upgrading method of the street lamp terminal optimizes the unicast upgrading mode, improves the reliability of the street lamp terminal in the upgrading process under the condition that the communication quality of broadcasting upgrading is occasionally bad, shortens the integral upgrading time, reduces the use and occupation of the bandwidth of broadband power line carrier communication, and further improves the upgrading success rate.
The invention also provides a broadcast upgrade system 100.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a broadcast upgrade system according to the present invention.
The broadcast upgrading system comprises a concentrator 1 and street lamp terminals 2. The concentrator 1 has a broadcasting function. The street lamp terminal 2 includes a plurality of.
The concentrator 1 establishes broadband power line carrier communication connection with the street lamp terminal 2. The concentrator 1 obtains an upgrade package for upgrading the street lamp terminal 2 in advance.
The concentrator 1 sends the upgrade notification to the plurality of street lamp terminals 2 respectively in a unicast mode, and the street lamp terminals 2 receive the upgrade notification sent by the concentrator 1 in the unicast mode. The streetlamp terminals 2 trigger the upgrade condition inspection according to the upgrade notification, and send the inspection structure to the concentrator 1 in the form of first feedback information, and the concentrator 1 receives the first feedback information fed back by each streetlamp terminal 2. The first feedback information includes a check result of the upgrade condition check.
The concentrator 1 divides the upgrade package into N upgrade fragments according to a preset splitting rule, and numbers each upgrade fragment according to a preset numbering rule to obtain a plurality of upgrade fragment numbers corresponding to a plurality of upgrade fragments one by one. Wherein N is a positive integer greater than 1.
The concentrator 1 sends all the upgrade fragments to each street lamp terminal 2 through broadcasting. The street lamp terminal 2 receives the upgrade fragments sent by the concentrator 1 in a broadcasting mode.
The concentrator 1 sends a query instruction to each street lamp terminal 2 in a unicast mode. The street lamp terminal 2 receives the query instruction sent by the concentrator 1 in a unicast mode. The inquiry instruction comprises all the upgrade fragment numbers.
And comparing each received upgrade fragment number with the query instruction by the street lamp terminal 2, if the comparison result is inconsistent, obtaining second feedback information by comparison, and sending the second feedback information to the concentrator 1. And the concentrator 1 receives second feedback information fed back by each street lamp terminal 2 according to the query instruction. Wherein the second feedback information includes the absent upgrade segment number. The concentrator 1 sends the received upgrade fragments corresponding to the upgrade fragment numbers missing from each street lamp terminal 2 to the corresponding street lamp terminals 2 in a broadcast mode. And the street lamp terminal 2 receives the upgrade fragments corresponding to the missing upgrade fragment numbers sent by the concentrator 1D in a broadcast mode. And repeated D more times.
And after comparing all the received upgrade fragment numbers with the query instruction by the street lamp terminal 2 to obtain that any upgrade fragment number is absent, the street lamp terminal 2 sequentially merges, verifies and starts upgrade all the upgrade fragments. And the street lamp terminal 2 generates an upgrade report according to the upgrade completion. The street lamp terminal 2 transmits the upgrade report to the concentrator 1. The concentrator 1 receives the upgrade report sent by the street lamp terminal 2. The upgrade report is upgrade success information.
The concentrator 1 gathers the received plurality of upgrade reports and generates an upgrade result. The upgrade result is used for platform display.
It should be noted that, the concentrator 1 and the street lamp terminal 2 are all devices or apparatuses commonly used in the art, and specific models thereof need to be selected according to actual design requirements of products, and detailed descriptions thereof are omitted herein.
The invention also provides a broadcast upgrading device 1000. Referring to fig. 4, fig. 4 is a schematic structural diagram of a broadcast upgrading apparatus 1000 according to the present invention.
The broadcast upgrade apparatus 1000 includes a processor 1001, a memory 1002, a network interface 1003, and a computer program stored in the memory 1002 and executable on the processor 1001, where the processor 1001 is configured to read the program in the memory 1002, and the steps in the broadcast upgrade method of the street lamp terminal provided in the embodiment are implemented when the processor 1001 executes the computer program. I.e. the processor 1001 performs steps in the broadcast upgrade method of the street lamp terminal.
Specifically, the processor 1001 is configured to perform the following steps:
s11, establishing broadband power line carrier communication connection with the street lamp terminal, and obtaining an upgrade package for upgrading the street lamp terminal in advance.
S12, respectively sending the upgrading notification to a plurality of street lamp terminals in a unicast mode, and receiving first feedback information fed back by each street lamp terminal. The upgrade notification is used for triggering the street lamp terminal to check upgrade conditions. The first feedback information includes a check result of the upgrade condition check.
S13, dividing the upgrade package into N upgrade fragments according to a preset splitting rule, and numbering each upgrade fragment according to a preset numbering rule to obtain a plurality of upgrade fragment numbers corresponding to a plurality of upgrade fragments one by one. Wherein N is a positive integer greater than 1.
S14, all the upgrade fragments are respectively sent to each street lamp terminal in a broadcasting mode.
S15, sending the query instruction to each street lamp terminal in a unicast mode, and then receiving second feedback information fed back by each street lamp terminal according to the query instruction. The inquiry instruction comprises all the upgrade fragment numbers. And the second feedback information is the lack of the upgrade segment number obtained by comparing the received upgrade segment number with the query instruction by each street lamp terminal.
S16, the received upgrade fragments corresponding to the upgrade fragment numbers lacking in each street lamp terminal are sent to each street lamp terminal in a broadcasting mode. Repeating the steps D of the steps S15-S16 for a plurality of times.
S17, receiving an upgrade report sent by the street lamp terminal, wherein the upgrade report is as follows: and each street lamp terminal compares all the received upgrade fragment numbers with the query instruction to obtain the upgrade fragment numbers without any missing, sequentially merging, checking and starting the upgrade of all the upgrade fragments, and then generating upgrade success information according to the upgrade completion.
And S18, collecting the received upgrading reports and generating upgrading results, wherein the upgrading results are used for platform display.
The processor 1001 may also be configured to perform the steps of:
s21, establishing broadband power line carrier communication connection with the concentrator.
S22, receiving an upgrade notification sent by the concentrator in a unicast mode, triggering upgrade condition inspection according to the upgrade notification, and sending an inspection structure to the concentrator in a first feedback information mode. The first feedback information includes a check result of the upgrade condition check.
S23, receiving an upgrade fragment sent by the concentrator in a broadcast mode, wherein the upgrade fragment is obtained by dividing the upgrade packet into N pieces according to a preset splitting rule by the concentrator. Each upgrade segment is numbered according to a preset numbering rule, and a plurality of upgrade segment numbers corresponding to the upgrade segments one by one are obtained. Wherein N is a positive integer greater than 1.
S24, receiving a query instruction sent by the concentrator in a unicast mode, wherein the query instruction comprises all the upgrade fragment numbers.
S25 comparing each of the upgrade fragment numbers received with the query instruction:
if the comparison result is consistent, the process proceeds to step S27,
if the comparison result is inconsistent, obtaining second feedback information by comparing, sending the second feedback information to the concentrator, and entering step S26, wherein the second feedback information comprises the absent upgrade fragment number.
S26, receiving the upgrade fragments corresponding to the missing upgrade fragment numbers sent by the concentrator in a broadcast mode for D times, and entering step S25.
S27, comparing all received upgrade fragment numbers with the query instruction to obtain any upgrade fragment number which is absent, sequentially merging, checking and starting upgrade all the upgrade fragments, and sending an upgrade report to the concentrator according to the upgrade report generated after the upgrade is completed, wherein the upgrade report is upgrade success information.
The broadcast upgrading device 1000 provided by the embodiment of the present invention can implement each implementation manner and corresponding beneficial effects in the broadcast upgrading method embodiment of the street lamp terminal, and in order to avoid repetition, the description is omitted here.
It should be noted that only 1001-1003 having components are shown in the figures, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead. It will be understood by those skilled in the art that the broadcast upgrading apparatus 1000 herein is an apparatus capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and its hardware is an embedded apparatus.
The memory 1002 may be an internal storage unit of the broadcast upgrade apparatus 1000, such as a hard disk or a memory of the broadcast upgrade apparatus. In other embodiments, the memory 1002 may also be an external storage device of the broadcast upgrade apparatus 1000. Of course, the memory 1002 may also include both an internal storage unit and an external storage device of the broadcast upgrade apparatus. In this embodiment, the memory 1002 is generally used to store an operating system and various application software installed in the broadcast upgrading device 1000, for example, program codes of a broadcast upgrading method of a street lamp terminal of the broadcast upgrading device 1000, and the like. In addition, the memory 1002 can be used for temporarily storing various types of data which have been output or are to be output.
The processor 1001 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 1001 is generally used to control the overall operation of the broadcast upgrade apparatus 1000. In this embodiment, the processor 1001 is configured to execute a program code stored in the memory 1002 or process data, for example, a program code for executing a broadcast upgrading method of a street lamp terminal of the broadcast upgrading apparatus 1000.
The network interface 1003 may include a wireless network interface or a wired network interface, and the network interface 1003 is generally used to establish a communication connection between the broadcast upgrade apparatus 1000 and other electronic devices.
The present invention also provides a computer readable storage medium storing a computer program, where the computer program includes program instructions, and when executed by the processor 1001, the program instructions implement steps in the broadcast upgrading method of a street lamp terminal as described in any one of the above, and the steps can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
One of ordinary skill in the art can understand that all or part of the flow in the broadcast upgrading method of the street lamp terminal of the broadcast upgrading device in the embodiment is implemented, and when the specific operation is performed, an operator operates through a remote cloud platform, and performs upgrading operation in an upgrading interface of the cloud platform. The program, when executed, may include a flow as an embodiment of the methods. .
The present embodiment mentioned in the examples of the present invention is for convenience of description. The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.
Compared with the prior art, the broadcasting upgrading method of the street lamp terminal comprises the following steps: the concentrator and the street lamp terminal establish broadband power line carrier communication connection; the concentrator sends out an upgrade notification, and the street lamp terminal performs upgrade condition check; the concentrator divides the upgrade package into N upgrade fragments, and numbers and sends out each upgrade fragment; the concentrator sends out a query instruction, and the street lamp terminal compares the received upgrade sheet number with all the numbers of the upgrade fragments to obtain the number lacking the upgrade fragment and sends out the number lacking the upgrade fragment; the concentrator sends out the received upgrade fragments corresponding to the numbers of the missing upgrade fragments; the street lamp terminals sequentially merge, check and start up upgrading, and the regenerated upgrading report is sent to the concentrator. According to the method, the upgrading package is segmented and numbered through the concentrator, and then the effect of upgrading all street lamp terminals simultaneously is achieved through the mode of inquiring the supplementary package for multiple times. In addition, the upgrade notification and the query instruction are sent in a unicast mode, the upgrade fragments are sent in a broadcast mode, and different contents are respectively sent in the unicast mode and the broadcast mode, so that the reliability of the street lamp terminal in the upgrade process is improved, the integral upgrade time is shortened, the use and occupation of the bandwidth of broadband power line carrier communication are reduced, and the upgrade success rate is improved. Therefore, the invention also provides a broadcasting upgrading system, broadcasting upgrading equipment and a computer readable storage medium for optimizing a unicast upgrading mode, and the situation that the communication quality of broadcasting upgrading is occasionally bad is improved, the reliability of the street lamp terminal in the upgrading process is improved, the integral upgrading time is shortened, and the use and occupation of the bandwidth of broadband power line carrier communication are reduced, so that the upgrading success rate is improved.
While the invention has been described with respect to the above embodiments, it should be noted that modifications can be made by those skilled in the art without departing from the inventive concept, and these are all within the scope of the invention.

Claims (10)

1. The broadcasting upgrading method of the street lamp terminal is applied to a concentrator with a broadcasting function, and is characterized by comprising the following steps of:
s11, establishing broadband power line carrier communication connection with the street lamp terminal, and obtaining an upgrade package for upgrading the street lamp terminal in advance;
s12, respectively sending an upgrade notification to a plurality of street lamp terminals in a unicast mode, and receiving first feedback information fed back by each street lamp terminal, wherein the upgrade notification is used for triggering the street lamp terminals to carry out upgrade condition inspection, and the first feedback information comprises inspection results of the upgrade condition inspection;
s13, dividing the upgrade package into N upgrade fragments according to a preset splitting rule, and numbering each upgrade fragment according to a preset numbering rule to obtain a plurality of upgrade fragment numbers corresponding to the upgrade fragments one by one, wherein N is a positive integer greater than 1;
s14, respectively transmitting all the upgrade fragments to each street lamp terminal in a broadcasting mode;
s15, sending a query instruction to each street lamp terminal in a unicast mode, and receiving second feedback information fed back by each street lamp terminal according to the query instruction; the query instruction comprises all the upgrade fragment numbers, and the second feedback information is the lack of the upgrade fragment numbers obtained by comparing the received upgrade fragment numbers with the query instruction by each street lamp terminal;
s16, transmitting the received upgrade fragments corresponding to the upgrade fragment numbers lacking in each street lamp terminal to each street lamp terminal in a broadcasting mode; repeating the steps D of the steps S15-S16 for a plurality of times;
s17, receiving an upgrade report sent by the street lamp terminal, wherein the upgrade report is as follows: and each street lamp terminal compares all the received upgrade fragment numbers with the query instruction to obtain the upgrade fragment numbers without any missing, sequentially merging, checking and starting the upgrade of all the upgrade fragments, and then generating upgrade success information according to the upgrade completion.
2. The broadcast upgrade method of a street lamp terminal according to claim 1, wherein in S12, the checking result is whether the corresponding street lamp terminal is in a state that can be upgraded.
3. The broadcast upgrade method of a street lamp terminal according to claim 1, wherein in the S13, the preset splitting rule is to split the upgrade package into one upgrade segment according to a fixed size of 256 bytes; the preset numbering rule is to sequentially and continuously number according to the splitting sequence; in S16, D is less than or equal to 10.
4. The method for upgrading a street lamp terminal according to claim 1, wherein,
after S17, the broadcast upgrading method of the street lamp terminal further includes the following steps:
and S18, collecting the received upgrading reports and generating upgrading results, wherein the upgrading results are used for platform display.
5. The broadcasting upgrading method of the street lamp terminal is applied to the street lamp terminal, and the street lamp terminal comprises a plurality of street lamp terminals, and is characterized by comprising the following steps:
s21, establishing broadband power line carrier communication connection with a concentrator;
s22, receiving an upgrade notification sent by the concentrator in a unicast mode, triggering upgrade condition inspection according to the upgrade notification, and sending an inspection structure to the concentrator in a first feedback information, wherein the first feedback information comprises an inspection result of the upgrade condition inspection;
s23, receiving upgrade fragments sent by the concentrator in a broadcast mode, wherein the upgrade fragments divide the upgrade package into N according to a preset splitting rule by the concentrator, each upgrade fragment is numbered according to a preset numbering rule, and a plurality of upgrade fragment numbers corresponding to the upgrade fragments one by one are obtained, wherein N is a positive integer greater than 1;
s24, receiving a query instruction sent by the concentrator in a unicast mode, wherein the query instruction comprises all the upgrade fragment numbers;
s25, comparing each received upgrade fragment number with the query instruction:
if the comparison result is consistent, the process proceeds to step S27,
if the comparison results are inconsistent, obtaining second feedback information through comparison, sending the second feedback information to the concentrator, and entering step S26, wherein the second feedback information comprises the absent upgrade fragment number;
s26, receiving the upgrade fragments corresponding to the missing upgrade fragment numbers sent by the concentrator in a broadcast mode for D times, and entering step S25;
s27, comparing all received upgrade fragment numbers with the query instruction to obtain any upgrade fragment number which is absent, sequentially merging, checking and starting upgrade all the upgrade fragments, and sending an upgrade report to the concentrator according to the upgrade report generated after the upgrade is completed, wherein the upgrade report is upgrade success information.
6. The broadcast upgrade method of the street lamp terminal according to claim 5, wherein in the S23, the preset splitting rule is to split the upgrade package into one upgrade segment according to a fixed size of 256 bytes; the preset numbering rule is numbering according to the splitting sequence.
7. The broadcasting upgrade method of street lamp terminals as claimed in claim 5, wherein in S26, D is 10.
8. A broadcast upgrade system, characterized in that the broadcast upgrade system comprises a concentrator and a street lamp terminal, the street lamp terminal comprises a plurality of,
the concentrator is used for establishing broadband power line carrier communication connection with each street lamp terminal; and a step of implementing a broadcasting upgrade method of the street lamp terminal according to any one of claims 1 to 4;
the street lamp terminal is used for establishing broadband power line carrier communication connection with the concentrator, and implementing the steps of the broadcast upgrading method of the street lamp terminal according to any one of claims 5 to 7.
9. A broadcast upgrade apparatus, characterized by comprising a processor and a memory, the processor being configured to read a program in the memory, perform steps in the broadcast upgrade method of the streetlight terminal according to any one of claims 1 to 4, or perform steps in the broadcast upgrade method of the streetlight terminal according to any one of claims 5 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which when executed by a processor implement steps in the broadcast upgrade method of a street lamp terminal as claimed in any one of claims 1 to 4 or which when executed by a processor implement steps in the broadcast upgrade method of a street lamp terminal as claimed in any one of claims 5 to 7.
CN202110353071.XA 2021-03-31 2021-03-31 Broadcasting upgrading method, system, equipment and storage medium of street lamp terminal Active CN113031990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110353071.XA CN113031990B (en) 2021-03-31 2021-03-31 Broadcasting upgrading method, system, equipment and storage medium of street lamp terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110353071.XA CN113031990B (en) 2021-03-31 2021-03-31 Broadcasting upgrading method, system, equipment and storage medium of street lamp terminal

Publications (2)

Publication Number Publication Date
CN113031990A CN113031990A (en) 2021-06-25
CN113031990B true CN113031990B (en) 2023-07-07

Family

ID=76453404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110353071.XA Active CN113031990B (en) 2021-03-31 2021-03-31 Broadcasting upgrading method, system, equipment and storage medium of street lamp terminal

Country Status (1)

Country Link
CN (1) CN113031990B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791804B (en) * 2021-09-14 2024-04-26 中元汇吉生物技术股份有限公司 Method, device, computer equipment and storage medium for parallel upgrading of multipath instruments
CN115296997A (en) * 2022-04-19 2022-11-04 浙江利尔达物联网技术有限公司 Efficient and rapid air upgrading method for wireless module firmware

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1740012A1 (en) * 2005-06-29 2007-01-03 France Telecom Method and system for transmitting information between two mobile terminals
CN102523660A (en) * 2011-12-30 2012-06-27 四川长虹电器股份有限公司 Streetlamp controller remote upgrading method
CN109992291A (en) * 2018-01-02 2019-07-09 中兴通讯股份有限公司 A kind of method for updating terminal software, device, system and storage medium
CN111142905A (en) * 2019-12-25 2020-05-12 深圳市亿道信息股份有限公司 OTA (over-the-air) upgrading method, OTA server and OTA upgrading system
WO2021008184A1 (en) * 2019-07-18 2021-01-21 南京依维柯汽车有限公司 Remote upgrading system and upgrading method for fota firmware on new energy automobile

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1740012A1 (en) * 2005-06-29 2007-01-03 France Telecom Method and system for transmitting information between two mobile terminals
CN102523660A (en) * 2011-12-30 2012-06-27 四川长虹电器股份有限公司 Streetlamp controller remote upgrading method
CN109992291A (en) * 2018-01-02 2019-07-09 中兴通讯股份有限公司 A kind of method for updating terminal software, device, system and storage medium
WO2021008184A1 (en) * 2019-07-18 2021-01-21 南京依维柯汽车有限公司 Remote upgrading system and upgrading method for fota firmware on new energy automobile
CN111142905A (en) * 2019-12-25 2020-05-12 深圳市亿道信息股份有限公司 OTA (over-the-air) upgrading method, OTA server and OTA upgrading system

Also Published As

Publication number Publication date
CN113031990A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN113031990B (en) Broadcasting upgrading method, system, equipment and storage medium of street lamp terminal
CN103200026B (en) The upgrade method and system of firmware
CN102098590B (en) Automatic upgrading method and system of firmware version of optical network unit
CN102510409A (en) Method and system for quickly and remotely updating program of mobile terminal by using wireless network
CN103973421A (en) File transmitting method and device
CN111142905B (en) OTA upgrading method, OTA server and OTA upgrading system
CN111240713A (en) Method for detecting remote breakpoint continuous transmission through power utilization
CN108334367A (en) A kind of firmware remote update system and method towards BMC chip
CN113746892B (en) Remote upgrading method and wireless terminal equipment
CN110471692A (en) Over-the-air upgrade method, device, equipment and the storage medium of terminal program
CN112910679B (en) Multi-level remote upgrading method for power Internet of things
CN112286565B (en) Embedded system differential upgrading method based on storage container
CN104683452A (en) Data downloading method, server and multi-system mobile terminal
CN111857790A (en) Firmware upgrading method and device and computer equipment
CN113596755A (en) Vehicle-mounted system upgrading method, vehicle and readable storage medium
CN112256297A (en) Bluetooth peripheral firmware upgrading method and system and mobile phone terminal
CN112152825B (en) Multi-stage module upgrading method and device for household appliance and electronic equipment
CN104079623A (en) Method and system for controlling multilevel cloud storage synchrony
CN104701982A (en) Method for automatically updating distribution line monitor terminal
CN104243483A (en) Message processing method and message processing equipment
CN202094943U (en) GPRS vehicle-mounted communication system having FTP remote wireless upgrade function
CN101345775B (en) Synchronization method and system for man-computer command script document between network manager and network element
CN116414411A (en) Program upgrading method, system, electronic equipment and storage medium
CN114500508A (en) Gas meter upgrading method and device and electronic equipment
CN103906007A (en) Multimedia-message forwarding method 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
GR01 Patent grant
GR01 Patent grant