CN109189424A - Firmware upgrading method and device - Google Patents
Firmware upgrading method and device Download PDFInfo
- Publication number
- CN109189424A CN109189424A CN201810956830.XA CN201810956830A CN109189424A CN 109189424 A CN109189424 A CN 109189424A CN 201810956830 A CN201810956830 A CN 201810956830A CN 109189424 A CN109189424 A CN 109189424A
- Authority
- CN
- China
- Prior art keywords
- firmware
- upgrading
- upgrade
- mark
- failure
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 235000011034 Rubus glaucus Nutrition 0.000 claims abstract description 90
- 235000009122 Rubus idaeus Nutrition 0.000 claims abstract description 90
- 240000007651 Rubus glaucus Species 0.000 claims abstract description 89
- 235000015108 pies Nutrition 0.000 claims description 81
- 241001137251 Corvidae Species 0.000 claims description 25
- 230000008569 process Effects 0.000 claims description 22
- 238000013468 resource allocation Methods 0.000 claims description 8
- 238000012544 monitoring process Methods 0.000 claims description 5
- 235000021028 berry Nutrition 0.000 claims description 3
- 238000009826 distribution Methods 0.000 claims description 3
- 238000005065 mining Methods 0.000 description 13
- 230000009286 beneficial effect Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 5
- 238000003860 storage Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012356 Product development Methods 0.000 description 1
- 244000235659 Rubus idaeus Species 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
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)
Abstract
The invention discloses a firmware upgrading method and device, which are used for improving firmware upgrading efficiency and saving time and labor cost. The method comprises the following steps: reading a plurality of raspberry pi identifiers in a configuration file; sending the read raspberry group identifications to a preset terminal; receiving a selected operation of a preset number of raspberry pi identifications in the plurality of raspberry pi identifications fed back by the preset terminal; and upgrading the firmware corresponding to the raspberry pi of the preset number according to the selected operation. By adopting the scheme provided by the invention, the user can locally upgrade the raspberry group identification selected by the user in batches only by selecting the raspberry group identification, and the user does not need to manually download the firmware to be upgraded to the local one by one, log in each raspberry group to upload the firmware and perform upgrading operation, so that the firmware upgrading efficiency is improved, the user operation is simplified, and the labor cost and the time cost are saved.
Description
Technical field
The present invention relates to Internet technical field, in particular to a kind of firmware upgrade method and device.
Background technique
Ore machine apparatus is deployed in mining site intensive and extensively, as product development is debugged, needs periodically to mining site chats machine
The firmware of equipment carries out upgrading update.
Existing upgrading scheme is that user is first locally downloading manually by the firmware of desired upgrading, then logs on to each tree
Firmware is uploaded in certain kind of berries group and carries out updating operation.That is, needing to be risen manually one by one for the firmware in raspberry pie
Grade, also, since the difference of mining site may need to upgrade the firmware of different editions, need manual specify to update for certain equipment
Some version firmware.It is largely manually operated therefore, it is necessary to user and a large amount of maintenance time, not only influences mining site
Income also will cause the waste of time cost and human cost.
Therefore, how a kind of new firmware upgrade scheme is provided, firmware upgrade efficiency is improved, save time and manpower at
This, is a technical problem urgently to be resolved.
Summary of the invention
The present invention provides a kind of firmware upgrade method and device and saves time and manpower to improve firmware upgrade efficiency
Cost.
The present invention provides a kind of firmware upgrade method, comprising:
Read multiple raspberry pies mark in configuration file;
The multiple raspberry pies read mark is sent to default terminal;
Receive the choosing to preset number raspberry pie mark in the multiple raspberry pie mark of the default terminal feedback
Fixed operation;
According to the selected operation, the firmware corresponding to preset number raspberry pie mark upgrades.
The beneficial effects of the present invention are: when receive default terminal feedback to the present count in multiple raspberry pies mark
The selected operation of mesh raspberry pie mark, can be according to the selected operation to firmware corresponding to preset number raspberry pie mark
Batch upgrade is carried out, therefore, user only needs selected raspberry pie mark, and local can identify to the raspberry pie that user selectes carries out
Batch upgrade, the firmware that will upgrade without user is locally downloading manually one by one, then logs on to and upload in each raspberry pie
Firmware simultaneously carries out updating operation, improves the efficiency of firmware upgrade, simplifies user's operation, save human cost and time at
This.
In one embodiment, described to limit operation to corresponding to preset number raspberry pie mark according to described
Firmware is upgraded, comprising:
It generates preset number and upgrades thread;
Upgrade thread respectively to firmware corresponding to preset number raspberry pie mark according to the preset number
Upgraded.
The beneficial effect of the present embodiment is: it is more can to generate multiple thread difference team identical with raspberry pie identified number
The corresponding firmware of a raspberry pie mark is upgraded, so that each thread is responsible for upgrading a firmware, ensure that each
It will not be interfered with each other in a firmware upgrade process, meanwhile, system and bandwidth resources can be balanced points in each firmware upgrade process
Match, further improves upgrading efficiency.
In one embodiment, the method also includes:
When there is firmware upgrade completion, the corresponding upgrading thread of firmware of release upgrading completion;
The corresponding occupied bandwidth resource allocation of upgrading thread of firmware that the upgrading is completed is to current upgrading progress
Upgrading thread corresponding to most slow firmware.
The beneficial effect of the present embodiment is: when there is firmware upgrade completion, the corresponding liter of firmware of release upgrading completion
Grade thread, thus by the corresponding occupied bandwidth resources of upgrading thread of firmware that upgrading is completed can distribute to it is current upgrade into
Upgrading thread corresponding to most slow firmware is spent, the updating speed for upgrading most slow firmware is improved, it is most slow to reduce upgrading
Influence of the firmware for whole upgrading progress, also, improve the utilization rate of bandwidth resources.
In one embodiment, the method also includes:
In the firmware upgrade process, the upgrading situation of the firmware is monitored;
The upgrading log of the firmware is generated according to the upgrading situation of the firmware.
The beneficial effect of the present embodiment is: the upgrading log of firmware can be generated according to the upgrade case of firmware, thus
The reason of convenient for analysis firmware failure.
In one embodiment, the method also includes:
When there is firmware upgrade failure, the upgrading log of the firmware of upgrading failure is obtained;
The reason of determining firmware upgrade failure according to the upgrading log;
Classify to the reason of firmware upgrade failure;
When the reason of firmware upgrade failure is the first preset kind, the firmware is upgraded again.
The beneficial effect of the present embodiment is: when the reason of firmware upgrade failure is the first preset kind, if again
Trial upgrades the firmware again, then has greater probability to upgrade successfully, therefore, upgrade again to the firmware, reduce use
The manual operation at family.
In one embodiment, the method also includes:
When the reason of firmware upgrade failure is the second preset kind, by the upgrading day of the firmware of the upgrading failure
The reason of will and the firmware upgrade fail is sent to the default terminal.
The beneficial effect of the present embodiment is: if the reason of firmware upgrade fails is the second preset kind, even if again
Secondary trial upgrades the firmware again, will not upgrade successfully, and therefore, the upgrading log of the firmware of upgrading failure and upgrading are lost
The reason of losing is sent to default terminal, allows users to the reason of knowing firmware upgrade failure, finds out liter manually without user
The reason of grade failure, the user experience is improved, simplifies the process that user solves upgrading failure problem.
The present invention also provides a kind of device for upgrading firmware, comprising:
Read module, for reading the mark of multiple raspberry pies in configuration file;
First sending module, for the multiple raspberry pies read mark to be sent to default terminal;
Receiving module, for receiving setting preset number in the multiple raspberry pie mark for the default terminal feedback
The selected operation of certain kind of berries group mark;
First upgraded module, for consolidating according to the selected operation is corresponding to preset number raspberry pie mark
Part is upgraded.
In one embodiment, first upgraded module, comprising:
Submodule is generated, for generating preset number upgrading thread;
Upgrade submodule, for upgrading thread respectively to the preset number raspberry pie mark according to the preset number
Know corresponding firmware to be upgraded.
In one embodiment, described device further include:
Release module, for the corresponding upgrading thread of firmware that when there is firmware upgrade completion, release upgrading is completed;
Distribution module, the corresponding occupied bandwidth resource allocation of upgrading thread of firmware for completing the upgrading are given
Upgrading thread corresponding to the most slow firmware of current upgrading progress.
In one embodiment, described device further include:
Monitoring module, for monitoring the upgrading situation of the firmware in the firmware upgrade process;
Generation module generates the upgrading log of the firmware for the upgrading situation according to the firmware.
In one embodiment, described device further include:
Module is obtained, the upgrading log of the firmware for when there is firmware upgrade failure, obtaining upgrading failure;
Determining module, for determining the reason of firmware upgrade fails according to the upgrading log;
Categorization module, for classifying to the reason of firmware upgrade failure;
Second upgraded module is used for when the reason of firmware upgrade failure is the first preset kind, again to described
Firmware is upgraded.
In one embodiment, described device further include:
Second sending module is used for when the reason of firmware upgrade failure is the second preset kind, by the upgrading
The reason of upgrading log and the firmware upgrade of the firmware of failure fail is sent to the default terminal.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation
Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention
It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Figure 1A is a kind of flow chart of firmware upgrade method in one embodiment of the invention;
Figure 1B is the display interface schematic diagram that raspberry pie firmware list is shown in one embodiment of the invention;
Fig. 2 is a kind of flow chart of firmware upgrade method in one embodiment of the invention;
Fig. 3 is a kind of flow chart of firmware upgrade method in the embodiment of the present invention one;
Fig. 4 is a kind of flow chart of firmware upgrade method in the embodiment of the present invention two;
Fig. 5 is a kind of block diagram of device for upgrading firmware in one embodiment of the invention;
Fig. 6 is a kind of block diagram of device for upgrading firmware in one embodiment of the invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Figure 1A is a kind of flow chart of firmware upgrade method in one embodiment of the invention, and this method can be used for upgrading in mining site
The server of firmware, as shown in Figure 1A, this method can be implemented as following steps S101-S104:
In step s101, multiple raspberry pies mark in configuration file is read;
In step s 102, the multiple raspberry pies read mark is sent to default terminal;
In step s 103, identifying to preset number raspberry pie in multiple raspberry pies mark for default terminal feedback is received
Selected operation;
In step S104, according to selected operation, the firmware corresponding to preset number raspberry pie mark upgrades.
In the present invention, the server of firmware updating reads multiple raspberry pies mark in configuration file, for example, the mark can
To be the IP (Internet Protocol, Internet protocol) of raspberry pie, it is also possible to other for unique identification server
Data field.Then, the multiple raspberry pies read mark is sent to default terminal, which is for managing mine
The mobile terminal or computer of the personnel of firmware update upgrading, raspberry pie are identified by taking the IP of raspberry pie as an example in, when default
When terminal receives multiple raspberry pie mark, shows the multiple raspberry pies mark received, be particularly shown interface such as Figure 1B institute
Show.The corresponding raspberry pie IP of firmware that user can upgrade the needs in the display interface carries out selected operation, and will select
Raspberry pie IP be sent to the server of firmware updating.The server of firmware updating receives the raspberry pie IP of default terminal selection
Afterwards, the corresponding firmware of raspberry pie IP received is upgraded.
It can select needing the raspberry pie of firmware updating to identify, the beneficial effects of the present invention are: when receiving
The selected operation to the preset number raspberry pie mark in multiple raspberry pies mark of default terminal feedback, can be according to the choosing
The fixed operation firmware corresponding to preset number raspberry pie mark carries out batch upgrade, and therefore, user only needs selected raspberry
Group's mark, local to carry out batch upgrade to the raspberry pie mark that user selectes, the firmware that will upgrade without user is one by one
It is locally downloading manually, then log on to and upload firmware in each raspberry pie and carry out updating operation, improve firmware upgrade
Efficiency simplifies user's operation, saves human cost and time cost.
In one embodiment, above-mentioned steps S104 can be implemented as following steps A1-A2:
In step A1, generates preset number and upgrade thread;
In step A2, thread is upgraded according to preset number and is consolidated respectively to corresponding to preset number raspberry pie mark
Part is upgraded.
In the present embodiment, according to selected operation, the firmware corresponding to preset number raspberry pie mark upgrades and can lead to
Under type such as is crossed to execute:
It generates preset number and upgrades thread, thread is upgraded respectively to preset number raspberry pie mark according to preset number
Know corresponding firmware to be upgraded.
Specifically, can count the number of raspberry pie IP when receiving the raspberry pie IP that default terminal is sent, then give birth to
At equal number of upgrading thread, then upgrading thread is mapped one by one with raspberry pie IP, then each thread is to tool
There is firmware corresponding to the raspberry pie IP of mapping relations to be upgraded.In escalation process, the server of firmware updating need from
The firmware that wanted upgraded version is read in the server of firmware is stored, to complete to upgrade.
In existing firmware upgrade scheme, since some resource files before update can be deleted in escalation process,
Need first to stop the work of firmware, that is to say, that in escalation process, need to close the operation of mining site, so that the firmware in mining site
Upgrading is completed, such mode can influence mining site income because mining site upgrades.Therefore, in the present invention, a kind of scheme is provided,
The corresponding file of current version firmware before can not influencing to update is completed to update, be had so as to not interrupt the operation of firmware
Body is as follows:
The server of firmware updating is first consolidated what is downloaded from the server of storage firmware when upgrading the firmware in mining site
Part is stored in mining site in an independent file path, after all firmware storages, then is traversed original in entire mining site
Then the firmware of downloading is merged into each firmware and needs to complete in the corresponding file packet of firmware replaced by the store path of firmware
It updates, in this way, new firmware file will not cover the file in original firmware respective file packet, that is to say, that updated sending
During packet, when firmware of current version operation the resource file of required reading will not be deleted.Therefore, firmware can not
Intermittent work can complete the update of firmware without closing mining site.
The beneficial effect of the present embodiment is: it is more can to generate multiple thread difference team identical with raspberry pie identified number
The corresponding firmware of a raspberry pie mark is upgraded, so that each thread is responsible for upgrading a firmware, ensure that each
It will not be interfered with each other in a firmware upgrade process, meanwhile, system and bandwidth resources can be balanced points in each firmware upgrade process
Match, further improves upgrading efficiency.
In one embodiment, this method can be implemented as following steps B1-B2:
In step bl is determined, when there is firmware upgrade completion, the corresponding upgrading thread of firmware of release upgrading completion;
In step B2, the corresponding occupied bandwidth resource allocation of upgrading thread of firmware upgrading completed rises to current
Upgrading thread corresponding to the most slow firmware of grade progress.
Since each thread will occupy certain system resource and bandwidth resources, it is solid when having in the present embodiment
When part upgrading is completed, the corresponding upgrading thread of firmware that release upgrading is completed, the corresponding upgrading of firmware for then completing upgrading
The occupied bandwidth resource allocation of thread is to upgrading thread corresponding to the most slow firmware of current upgrading progress.Of course, it is possible to manage
Solution, the occupied system resource of thread also distribute to upgrading line corresponding to the most slow firmware of current upgrading progress together
Journey, to further increase upgrading thread corresponding to the most slow firmware of upgrading progress to the updating speed of firmware.
The beneficial effect of the present embodiment is: when there is firmware upgrade completion, the corresponding liter of firmware of release upgrading completion
Grade thread, thus by the corresponding occupied bandwidth resources of upgrading thread of firmware that upgrading is completed can distribute to it is current upgrade into
Upgrading thread corresponding to most slow firmware is spent, the updating speed for upgrading most slow firmware is improved, it is most slow to reduce upgrading
Influence of the firmware for whole upgrading progress, also, improve the utilization rate of bandwidth resources.
In one embodiment, this method can also be implemented as following steps C1-C2:
In step C1, in firmware upgrade process, the upgrading situation of monitor firmware;
In step C2, the upgrading log of firmware is generated according to the upgrading situation of firmware.
The beneficial effect of the present embodiment is: the upgrading log of firmware can be generated according to the upgrade case of firmware, thus
The reason of convenient for analysis firmware failure.
In the present embodiment, in firmware upgrade process, the upgrading situation of monitor firmware is generated according to the upgrading situation of firmware
The upgrading log of firmware.At this point it is possible to the upgrading log synchronous driving of firmware be given to default terminal, so that default terminal pair
The user answered can understand firmware upgrade situation in real time.
Default terminal can be attached with the server of firmware updating using socket mode, then preset terminal by with
Socket port is bound, to monitor in real time port during the server updating firmware of firmware updating, from
And the information that socket connection is rejected or the information that firmware upgrade fails in escalation process are monitored in real time.Default terminal with
During the server connection of firmware updating, accpet obstruction is called, is attached, preset terminal and be not necessarily to send each tree plum
Password authentification is carried out, required parameter need to be only sent, the server of firmware updating can return to response data, then presets terminal and reads
After taking data, connection is closed, entire request and the process time-consuming returned the result are very short.
In one embodiment, as shown in Fig. 2, after step C2, method can also be implemented as following steps S201-
S203:
In step s 201, when there is firmware upgrade failure, the upgrading log of the firmware of upgrading failure is obtained;
In step S202, the reason of firmware upgrade fails is determined according to upgrading log;
In step S203, classify to the reason of firmware upgrade failure;
In step S204, when the reason of firmware upgrade failure is the first preset kind, firmware is upgraded again.
In the present embodiment, when there is firmware upgrade failure, the server of firmware updating obtains the liter of the firmware of upgrading failure
Level logs determine the reason of firmware upgrade fails according to upgrading log, are the first preset kind when the reason of firmware upgrade failure
When, firmware is upgraded again.
For example, when there is firmware upgrade failure, the server of firmware updating determines firmware upgrade according to upgrading log
The reason of failure are as follows: upgrading failure caused by accidental interruption reconnection in the network short time in escalation process.That is, causing to rise
The factor of grade failure is network interruption, still, due to network reconnection, if upgrading the firmware again, have larger
A kind of the reason of probability upgrades successfully, this upgrading failure only small probability event, and be also not and always exist, therefore,
The reason of this upgrading failure, is divided into the first preset kind, when the reason of firmware upgrade failure is the first preset kind, is risen
Grade server only needs to carry out the firmware to upgrade again, upgrades manually without user, further simplifies
User's operation.And reduce the received garbage of default terminal.
The beneficial effect of the present embodiment is: when the reason of firmware upgrade failure is the first preset kind, if again
Trial upgrades the firmware again, then has greater probability to upgrade successfully, therefore, upgrade again to firmware, reduce user's
Manual operation.
In one embodiment, method can also be implemented as following steps:
When the reason of firmware upgrade failure is the second preset kind, by the upgrading log of the firmware of upgrading failure and admittedly
The reason of part upgrading failure, is sent to default terminal.
In the present embodiment, when the reason of firmware upgrade failure is the second preset kind, by the liter of the firmware of upgrading failure
The reason of level logs and firmware upgrade fail is sent to default terminal.
For example, the server of firmware updating determines that firmware upgrade fails according to upgrading log when there is firmware upgrade failure
The reason of are as follows: upgrade server does not find the production of suitable firmware version, multithreading deadlock from the server of storage firmware
Raw, thread concurrently access the reasons such as the server crash for storing firmware occurred, these reasons can't as the network terminal,
It can reconnect, but require what user solved manually, it therefore, will not be at even if local attempt firmware updating again
Function, therefore, by it is above-mentioned these cause firmware upgrade to fail the reason of type be set as the second preset kind.Therefore when due to these originals
Because the reason of upgrading log of the firmware of upgrading failure and firmware upgrade failure, being sent to pre- when firmware upgrade being caused to fail
If terminal, so that user solves above-mentioned reason manually.
The beneficial effect of the present embodiment is: if the reason of firmware upgrade fails is the second preset kind, even if again
Secondary trial upgrades the firmware again, will not upgrade successfully, and therefore, the upgrading log of the firmware of upgrading failure and upgrading are lost
The reason of losing is sent to default terminal, allows users to the reason of knowing firmware upgrade failure, finds out liter manually without user
The reason of grade failure, the user experience is improved, simplifies the process that user solves upgrading failure problem.
Embodiment one
Fig. 3 is a kind of flow chart of firmware upgrade method in the embodiment of the present invention one.As shown in figure 3, including the following steps
S301-S307:
In step S301, multiple raspberry pies mark in configuration file is read;
In step s 302, the multiple raspberry pies read mark is sent to default terminal;
In step S303, identifying to preset number raspberry pie in multiple raspberry pies mark for default terminal feedback is received
Selected operation;
In step s 304, it generates preset number and upgrades thread;
In step S305, thread is upgraded respectively to corresponding to preset number raspberry pie mark according to preset number
Firmware is upgraded;
In step S306, when there is firmware upgrade completion, the corresponding upgrading thread of firmware of release upgrading completion;
In step S307, the corresponding occupied bandwidth resource allocation of upgrading thread of firmware that upgrading is completed is to current
Upgrading thread corresponding to the most slow firmware of upgrading progress.
Embodiment two
Fig. 4 is a kind of flow chart of firmware upgrade method in the embodiment of the present invention two.As shown in figure 4, including the following steps
S401-S410:
In step S401, multiple raspberry pies mark in configuration file is read;
In step S402, the multiple raspberry pies read mark is sent to default terminal;
In step S403, identifying to preset number raspberry pie in multiple raspberry pies mark for default terminal feedback is received
Selected operation;
In step s 404, upgraded according to the selected operation firmware corresponding to preset number raspberry pie mark;
In step S405, in firmware upgrade process, the upgrading situation of monitor firmware;
In step S406, the upgrading log of firmware is generated according to the upgrading situation of firmware;
In step S 407, when there is firmware upgrade failure, the upgrading log of the firmware of upgrading failure is obtained;
In step S408, the reason of firmware upgrade fails is determined according to upgrading log;
In step S409, classify to the reason of firmware upgrade failure;
In step S410, when the reason of firmware upgrade failure is the first preset kind, firmware is upgraded again;
In step S411, when the reason of firmware upgrade failure is the second preset kind, by the firmware of upgrading failure
The reason of upgrading log and firmware upgrade fail is sent to default terminal.
Fig. 5 is a kind of block diagram of device for upgrading firmware in one embodiment of the invention, as shown in figure 5, the device includes following
Module:
Read module 51, for reading the mark of multiple raspberry pies in configuration file;
First sending module 52, for the multiple raspberry pies read mark to be sent to default terminal;
Receiving module 53, for receive default terminal feedback to preset number raspberry pie mark in multiple raspberry pies mark
The selected operation known;
First upgraded module 54, for being carried out according to the selected operation firmware corresponding to preset number raspberry pie mark
Upgrading.
In one embodiment, as shown in fig. 6, the first upgraded module 54, comprising:
Submodule 61 is generated, for generating preset number upgrading thread;
Upgrade submodule 62, it is right to preset number raspberry pie mark institute respectively for upgrading thread according to preset number
The firmware answered is upgraded.
In one embodiment, device further include:
Release module, for the corresponding upgrading thread of firmware that when there is firmware upgrade completion, release upgrading is completed;
Distribution module, for the corresponding occupied bandwidth resource allocation of upgrading thread of firmware completed will to be upgraded to current
Upgrading thread corresponding to the most slow firmware of upgrading progress.
In one embodiment, device further include:
Monitoring module is used for the upgrading situation of monitor firmware in firmware upgrade process;
Generation module, for generating the upgrading log of firmware according to the upgrading situation of firmware.
In one embodiment, device further include:
Module is obtained, the upgrading log of the firmware for when there is firmware upgrade failure, obtaining upgrading failure;
Determining module, for determining the reason of firmware upgrade fails according to upgrading log;
Categorization module, for failing to firmware upgrade the reason of, classify;
Second upgraded module, for being carried out to firmware again when the reason of firmware upgrade failure is the first preset kind
Upgrading.
In one embodiment, device further include:
Second sending module, for consolidating what upgrading failed when the reason of firmware upgrade failure is the second preset kind
The reason of upgrading log and firmware upgrade failure of part, is sent to default terminal.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (12)
1. a kind of firmware upgrade method characterized by comprising
Read multiple raspberry pies mark in configuration file;
The multiple raspberry pies read mark is sent to default terminal;
Receive the selected behaviour to preset number raspberry pie mark in the multiple raspberry pie mark of the default terminal feedback
Make;
According to the selected operation, the firmware corresponding to preset number raspberry pie mark upgrades.
2. the method as described in claim 1, which is characterized in that described to be set according to restriction operation the preset number
The corresponding firmware of certain kind of berries group mark is upgraded, comprising:
It generates preset number and upgrades thread;
Upgrade thread according to the preset number respectively to carry out firmware corresponding to preset number raspberry pie mark
Upgrading.
3. method according to claim 2, which is characterized in that the method also includes:
When there is firmware upgrade completion, the corresponding upgrading thread of firmware of release upgrading completion;
The corresponding occupied bandwidth resource allocation of upgrading thread of firmware that the upgrading is completed is most slow to current upgrading progress
Firmware corresponding to upgrading thread.
4. the method as described in claim 1, which is characterized in that the method also includes:
In the firmware upgrade process, the upgrading situation of the firmware is monitored;
The upgrading log of the firmware is generated according to the upgrading situation of the firmware.
5. method as claimed in claim 4, which is characterized in that the method also includes:
When there is firmware upgrade failure, the upgrading log of the firmware of upgrading failure is obtained;
The reason of determining firmware upgrade failure according to the upgrading log;
Classify to the reason of firmware upgrade failure;
When the reason of firmware upgrade failure is the first preset kind, the firmware is upgraded again.
6. method as claimed in claim 5, which is characterized in that the method also includes:
When the firmware upgrade failure the reason of be the second preset kind when, by it is described upgrading failure firmware upgrading log with
And the reason of firmware upgrade failure, is sent to the default terminal.
7. a kind of device for upgrading firmware characterized by comprising
Read module, for reading the mark of multiple raspberry pies in configuration file;
First sending module, for the multiple raspberry pies read mark to be sent to default terminal;
Receiving module, for receive the default terminal feedback to preset number raspberry pie in the multiple raspberry pie mark
The selected operation of mark;
First upgraded module, for according to it is described it is selected operation to the preset number raspberry pie mark corresponding to firmware into
Row upgrading.
8. device as claimed in claim 7, which is characterized in that first upgraded module, comprising:
Submodule is generated, for generating preset number upgrading thread;
Upgrade submodule, institute is identified to the preset number raspberry pie respectively for upgrading thread according to the preset number
Corresponding firmware is upgraded.
9. device as claimed in claim 8, which is characterized in that described device further include:
Release module, for the corresponding upgrading thread of firmware that when there is firmware upgrade completion, release upgrading is completed;
Distribution module, the corresponding occupied bandwidth resource allocation of upgrading thread of firmware for completing the upgrading is to current
Upgrading thread corresponding to the most slow firmware of upgrading progress.
10. device as claimed in claim 7, which is characterized in that described device further include:
Monitoring module, for monitoring the upgrading situation of the firmware in the firmware upgrade process;
Generation module generates the upgrading log of the firmware for the upgrading situation according to the firmware.
11. device as claimed in claim 10, which is characterized in that described device further include:
Module is obtained, the upgrading log of the firmware for when there is firmware upgrade failure, obtaining upgrading failure;
Determining module, for determining the reason of firmware upgrade fails according to the upgrading log;
Categorization module, for classifying to the reason of firmware upgrade failure;
Second upgraded module is used for when the reason of firmware upgrade failure is the first preset kind, again to the firmware
Upgraded.
12. device as claimed in claim 11, which is characterized in that described device further include:
Second sending module, for when the reason of firmware upgrade failure is the second preset kind, the upgrading to be failed
Firmware upgrading log and the firmware upgrade fail the reason of be sent to the default terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810956830.XA CN109189424A (en) | 2018-08-21 | 2018-08-21 | Firmware upgrading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810956830.XA CN109189424A (en) | 2018-08-21 | 2018-08-21 | Firmware upgrading method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189424A true CN109189424A (en) | 2019-01-11 |
Family
ID=64919450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810956830.XA Pending CN109189424A (en) | 2018-08-21 | 2018-08-21 | Firmware upgrading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189424A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111176163A (en) * | 2019-12-30 | 2020-05-19 | 苏州百傲信息技术有限公司 | Billboard terminal control system based on raspberry group |
CN114327547A (en) * | 2021-12-24 | 2022-04-12 | 中国联合网络通信集团有限公司 | Firmware upgrading method, device and system for animal collar and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104993947A (en) * | 2015-06-09 | 2015-10-21 | 深圳市共进电子股份有限公司 | Method for upgrading firmware in batches |
CN105204877A (en) * | 2014-06-18 | 2015-12-30 | 中兴通讯股份有限公司 | Terminal firmware upgrading method and device |
CN105242940A (en) * | 2015-09-14 | 2016-01-13 | 浪潮集团有限公司 | Centralized firmware updating method |
JP2017142684A (en) * | 2016-02-10 | 2017-08-17 | 株式会社リコー | Equipment management system, equipment management apparatus, and program |
CN107861734A (en) * | 2017-10-18 | 2018-03-30 | 许继电气股份有限公司 | A kind of control system for board firmware version management |
-
2018
- 2018-08-21 CN CN201810956830.XA patent/CN109189424A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204877A (en) * | 2014-06-18 | 2015-12-30 | 中兴通讯股份有限公司 | Terminal firmware upgrading method and device |
CN104993947A (en) * | 2015-06-09 | 2015-10-21 | 深圳市共进电子股份有限公司 | Method for upgrading firmware in batches |
CN105242940A (en) * | 2015-09-14 | 2016-01-13 | 浪潮集团有限公司 | Centralized firmware updating method |
JP2017142684A (en) * | 2016-02-10 | 2017-08-17 | 株式会社リコー | Equipment management system, equipment management apparatus, and program |
CN107861734A (en) * | 2017-10-18 | 2018-03-30 | 许继电气股份有限公司 | A kind of control system for board firmware version management |
Non-Patent Citations (1)
Title |
---|
老徐拉灯: "树莓派开发系列教程1——树莓派介绍", 《HTTPS://BLOG.CSDN.NET/XDW1985829/ARTICLE/DETAILS/38779437》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111176163A (en) * | 2019-12-30 | 2020-05-19 | 苏州百傲信息技术有限公司 | Billboard terminal control system based on raspberry group |
CN114327547A (en) * | 2021-12-24 | 2022-04-12 | 中国联合网络通信集团有限公司 | Firmware upgrading method, device and system for animal collar and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101268620B (en) | Device management system and method for managing device management object | |
KR20190057109A (en) | Method and management unit for managing network slices | |
CN105204927A (en) | Application arrangement device and method for terminal equipment | |
CN105389191A (en) | Software upgrading method, apparatus and system based on local area network | |
EP3694167B1 (en) | Method and device for managing services in network function virtualization architecture | |
JP2004005693A (en) | Method and apparatus for correcting device remotely monitored by monitoring system | |
KR20170118165A (en) | Method and apparatus for updating a network service technician | |
US20170111207A1 (en) | Nfv system and method for linking vnfm | |
CN113778623A (en) | Resource processing method and device, electronic equipment and storage medium | |
CN110275725A (en) | Satellite Software management method and device | |
CN109189424A (en) | Firmware upgrading method and device | |
CN109885612A (en) | The synchronization take-effective method and device of block chain intelligence contract | |
CN111859139A (en) | Application program recommendation method and device, computing equipment and medium | |
CN110971439A (en) | Policy decision method and device, system, storage medium, policy decision unit and cluster | |
CN105530323B (en) | File upgrading method, related equipment and system | |
CN110557281A (en) | Intelligent operation and maintenance method and device based on CMDB and alarm map | |
CN113452556A (en) | Product skill configuration method and device, storage medium and electronic device | |
CN112905306A (en) | Multi-cluster container management method and device, electronic equipment and storage medium | |
CN106254440B (en) | AP upgrading method and device | |
US20230384750A1 (en) | Efficient controller data generation and extraction | |
CN115129574A (en) | Code testing method and device | |
CN110007946B (en) | Method, device, equipment and medium for updating algorithm model | |
CN109859038B (en) | Method and device for taking block chain intelligent contract into effect | |
CN112202909A (en) | Online upgrading method and system for computer storage system | |
CN108920936B (en) | Method and device for achieving vmware authentication based on Purley platform |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20211217 Address after: Room 101, block C, building 27, phase I, Zhongguancun Software Park, No. 8, Dongbei Wangxi Road, Haidian District, Beijing 100094 Applicant after: Canaan Creative Co.,Ltd. Address before: Room 1203, 12 / F, building 4, No. 9, Jiuhuan Road, Jianggan District, Hangzhou City, Zhejiang Province, 310019 Applicant before: Hangzhou Canaan Creative Information Technology Ltd. |