CN109901117A - A kind of radar method for restarting and device - Google Patents

A kind of radar method for restarting and device Download PDF

Info

Publication number
CN109901117A
CN109901117A CN201910196681.6A CN201910196681A CN109901117A CN 109901117 A CN109901117 A CN 109901117A CN 201910196681 A CN201910196681 A CN 201910196681A CN 109901117 A CN109901117 A CN 109901117A
Authority
CN
China
Prior art keywords
program file
radar
new procedures
server
master program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910196681.6A
Other languages
Chinese (zh)
Other versions
CN109901117B (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.)
Suzhou Technological Leike Sensing Technology Co Ltd
Original Assignee
Suzhou Technological Leike Sensing 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 Suzhou Technological Leike Sensing Technology Co Ltd filed Critical Suzhou Technological Leike Sensing Technology Co Ltd
Priority to CN201910196681.6A priority Critical patent/CN109901117B/en
Publication of CN109901117A publication Critical patent/CN109901117A/en
Application granted granted Critical
Publication of CN109901117B publication Critical patent/CN109901117B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the present application discloses a kind of radar method for restarting and device, in the embodiment of the present application when processor detects master program file damage, reseting register can be triggered and generate reset instruction, and each configuration unit in processor is resetted using reset instruction.After the completion of the reset of each configuration unit, according to the initial address of the stand-by program file stored in address register, stand-by program file is read, radar is restarted using stand-by program file, so that radar restores basic function.It is, can use stand-by program file when master program file damage causes radar normally not start or upgrade and resetted and restarted, guarantee that radar enters normal mode of operation, restart without using downloader to scene, it is easy to operate, improve the efficiency for restarting radar.

Description

A kind of radar method for restarting and device
Technical field
This application involves automatic control technology fields, and in particular to a kind of radar method for restarting and device.
Background technique
With the continuous development of Radar Technology, it is widely used in socio-economic development and scientific research.Due to part Radar itself area is larger, usually inconvenient mobile after being installed to use site.When needing the application program to radar to rise When grade, two methods can be used under normal circumstances and upgraded, one is staff to complete journey by using downloader scene Sequence upgrading, another kind is by Ethernet remote upgrade.However, when carrying out remote upgrade by Ethernet, when generation network When interrupting or powering off, it will lead to upgrading and interrupt, this upgrading failure.At this point, if restarting radar, due to starting Program has been damaged, then radar can not start, and can only carry out scene starting using downloader to realize upgrading.Therefore, when need into When the radar quantity that row is restarted is more or radar decorating position is inconvenient to reach, existing method for restarting will cause radar and restart effect Rate is low, influences the normal work of radar.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of radar method for restarting and device, thunder is more efficiently restarted to realize It reaches.
To solve the above problems, technical solution provided by the embodiments of the present application is as follows:
In the embodiment of the present application in a first aspect, providing a kind of radar method for restarting, the method is applied to the place of radar Reason machine preserves master program file and stand-by program file in the processor, and the master program file includes reseting register And address register;The initial address of the address register storage backup master program file, which comprises
When detecting master program file damage, triggers the reseting register and generate reset instruction, and according to institute Reset instruction is stated to reset the configuration unit of the processor;
After the completion of the configuration unit of the processor resets, according to the initial address, the stand-by program text is read Part;
The radar is restarted using the stand-by program file.
In one possible implementation, the method also includes:
After the radar is restarted, more new procedures are obtained from server, by the more new procedures as the main program text The corresponding storage location of the master program file is written in part.
It is in one possible implementation, described to obtain more new procedures from server, comprising:
Connection is established with the server;
The programming instruction that the server is sent is received, the programming instruction includes more new procedures.
It in one possible implementation, will the more new procedures conduct after obtaining more new procedures from server The master program file is written before the corresponding storage location of the master program file, the method also includes:
The read-back order that the server is sent is received, the read-back order is for more new procedures described in readback;
According to the read-back order, Xiang Suoshu server sends the more new procedures, so that the server receives institute After stating more new procedures, whether the received more new procedures of verification are consistent with local more new procedures, when check results are consistent, send The attribute information of the more new procedures;The attribute information includes programming time, version number and the occupancy of the more new procedures Space;
Receive the attribute information that the server is sent.
In one possible implementation, described that the master is written into as the master program file in the more new procedures The corresponding position of the initial address of program file, comprising:
It is corresponding that the master program file is written using the attribute information and the more new procedures as the master program file Storage location.
In one possible implementation, described to be carried out according to configuration unit of the reset instruction to the processor It resets, comprising:
According to the reset instruction, triggers reset circuit and generate reset pulse;
It is resetted using configuration unit of the reset pulse to the processor.
In the embodiment of the present application second aspect, a kind of radar rebooting device is provided, described device is located at the processing of radar Machine, preserves master program file and stand-by program file in the processor, the master program file include reseting register and Address register;The initial address of the address register storage backup master program file, described device include:
Reset unit, for triggering the reseting register and generating reset when detecting master program file damage Instruction, and resetted according to configuration unit of the reset instruction to the processor;
Reading unit, for after the reset unit is completed to reset, according to the initial address, read the backup Program file;
Unit is restarted, for restarting using the stand-by program file to the radar.
In one possible implementation, described device further include:
Acquiring unit obtains more new procedures from server for restarting when the radar;
Writing unit, it is corresponding for the master program file to be written as the master program file in the more new procedures Storage location.
In one possible implementation, the acquiring unit, comprising:
Subelement is established, for establishing connection with the server;
Receiving subelement, the programming instruction sent for receiving the server, the programming instruction includes more new procedures.
In one possible implementation, described device further include:
First receiving unit is used for after executing the acquiring unit, before executing said write unit, described in reception The read-back order that server is sent, the read-back order is for more new procedures described in readback;
Generating unit, for according to the read-back order, Xiang Suoshu server to send the more new procedures, so that described After server receives the more new procedures, whether the received more new procedures of verification are consistent with local more new procedures, when verification is tied When fruit is consistent, the attribute information of the more new procedures is sent;The attribute information includes the programming time of the more new procedures, version This number and occupied space;
Second receiving unit, the attribute information sent for receiving the server.
In one possible implementation, said write unit is specifically used for the attribute information and the update Program is as the corresponding position of initial address that the master program file is written in the master program file.
In one possible implementation, the reset unit, comprising:
Subelement is triggered, for reset circuit being triggered and generating reset pulse according to the reset instruction;
Subelement is resetted, for resetting using configuration unit of the reset pulse to the processor.
It can be seen that the embodiment of the present application has the following beneficial effects:
In the embodiment of the present application when processor detects master program file damage, reseting register can be triggered and generated again Bit instruction, and each configuration unit in processor is resetted using reset instruction.It is completed when each configuration unit resets Afterwards, according to the initial address of the stand-by program file stored in address register, stand-by program file is read, and utilizes backup Program file restarts radar, so that radar restores basic function.It is, when master program file damage cause radar without When method normally starts or upgrades, it can use stand-by program file and resetted and restarted, guarantee that radar enters normal work mould Formula is restarted without using downloader to scene, easy to operate, improves the efficiency for restarting radar.
Detailed description of the invention
Fig. 1 is a kind of flow chart of radar method for restarting provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart for establishing connection method provided by the embodiments of the present application;
Fig. 3 is a kind of flow chart of program method for deleting provided by the embodiments of the present application;
Fig. 4 is a kind of flow chart of program burn writing method provided by the embodiments of the present application;
Fig. 5 is a kind of flow chart for obtaining master program file method provided by the embodiments of the present application;
Fig. 6 is a kind of radar rebooting device structure chart provided by the embodiments of the present application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Mode is applied to be described in further detail the embodiment of the present application.
Scheme provided by the present application for ease of understanding will first be illustrated the background technique of the application below.Inventor It finds after study, remote upgrade is being carried out to radar by Ethernet, when network interruption or power blackout situation occurs, will lead to liter Grade failure.Upgrade to make radar can continue to completion, need to restart radar, and is used to drive the program file of radar start to exist Upgrading is damaged when interrupting, and causes radar that can not restart.The method that tradition restarts radar is to carry out thunder to scene using downloader Up to restarting.However, traditional radar is restarted when the more radar of appearance need to be restarted or radar installation site inconvenience reaches Method causes radar to restart inefficiency, influences the normal work of radar.
Based on this, the embodiment of the present application provides a kind of thunder method method for restarting, preserves in the processor of radar first Master program file and stand-by program file, the master program file and stand-by program file may be incorporated for restarting radar.Defaulting In the case of, restart or upgrade using master program file driving radar.When detecting master program file damage, triggering resets deposit Device generates reset instruction, to be resetted using each configuration unit of the reset instruction to processor.When each configuration unit After the completion of reset, according to the initial address of the backup master program file of address register storage, backup file is read, backup is utilized Program file driving thunder method is restarted, so that radar restores basic function, so that radar, which can network, continues to complete upgrading.? It is exactly radar method for restarting provided by the embodiments of the present application, without restarting or upgrading by downloader progress scene, operation letter It is single, improve operating efficiency.
Radar method for restarting provided by the present application for ease of understanding carries out the radar method for restarting below in conjunction with attached drawing Explanation.
Referring to Fig. 1, which is a kind of flow chart of radar method for restarting provided by the embodiments of the present application, as shown in Figure 1, should Method may include:
S101: when detecting master program file damage, triggering reseting register generates reset instruction, and is referred to according to reset Order resets the configuration unit of processor.
In the present embodiment, master program file and the backup for driving radar to restart are saved first in the processor of radar Program file.By default, processor starts radar using master program file, when needing to upgrade radar, more New master program file.Wherein, stand-by program file can be in the preceding programming of radar factory, for driving radar to restore basic function.
When processor detects master program file damage, expression can not utilize master program file driving radar start or liter Grade can then trigger reseting register and generate reset instruction, to carry out reset operation to processor.Wherein, master program file damages Bad can be file corruption caused by network interruption in radar escalation process or power-off, or the school occurred when radar start Test code mistake, house dog time-out etc..It may include reseting register in master program file, when master program file damage, triggering Reseting register generates reset instruction.In specific implementation, master program file can save the storage address of reseting register, when When master program file damages, reseting register can be found, and then trigger according to the storage address of the reseting register of preservation Reseting register generates reset instruction.
In practical applications, two different storage address can be distributed, in the memory of processor in advance with respectively For saving master program file and stand-by program file.Simultaneously set the initial address for storing master program file to acquiescently Location, after powering on every time, processor can read master program file from the corresponding position of default address automatically, to utilize main program text Part drives radar start.Under normal conditions, using the first address of memory as the initial address of master program file, by memory Initial address of a certain offset address as backup.
In addition, in practical application, processor can be on-site programmable gate array FPGA (Field- Programmable Gate Array) chip, reseting register can be initial program (Internal Program, IPROG) Register.When master program file loss, IPROG register generates IPROG instruction, to be instructed using IPROG to fpga chip Configuration unit carry out reset operation.
In specific implementation, the operation that processor resets each configuration unit according to reset instruction specifically can be with To trigger reset circuit and generating reset pulse, recycle reset pulse to each configuration unit of processor according to reset instruction It is resetted, to complete to reset operation.
S102: after the completion of the configuration unit of processor resets, according to the initial address of stand-by program file, backup is read Program file.
S103: radar is restarted using stand-by program file.
In the present embodiment, after the completion of each configuration unit of processor resets, it can be stored according to address register The initial address of stand-by program file reads stand-by program file, to restart using backup file to radar, so that thunder Up to recovery basic function, and then updating operation can be continued to complete.
In specific implementation, master program file may include address register, to be posted after the completion of resetting according to address The initial address that storage is stored reads backup file.In practical application, can may include address in master program file The corresponding storage address of register, after the completion of reset, processor can find address register according to the storage address, into And according to the initial address stored in address register, stand-by program file is read, utilizes stand-by program file to realize Restarted.
In practical application, address register can be with thermal starting address WBSTAR (Warm Boot Starting Address) register stores the initial address of stand-by program file in the WBSTAR register.After the completion of reset, processing Machine can obtain the initial address of stand-by program file from WBSTAR register, to read backup journey according to the initial address Preface part, to be restarted.
As can be seen from the above description, when processor detects master program file damage, reseting register production can be triggered Raw reset instruction, and each configuration unit in processor is resetted using reset instruction.When each configuration unit resets After the completion, according to the initial address of the stand-by program file stored in address register, stand-by program file is read, and is utilized Stand-by program file restarts radar, so that radar replys basic function.It is, when master program file damage leads to thunder Up to when normally can not start or upgrade, it can use stand-by program file and resetted and restarted, guarantee that radar enters normal work Operation mode, it is easy to operate without being restarted to scene using downloader, improve the efficiency for restarting radar.
It is understood that radar can restore basic function, with service after restarting radar using stand-by program file Device establishes communication connection, at this point it is possible to be repaired or upgraded to master program file.After radar is restarted, obtained from server More new procedures, and using the more new procedures as the corresponding storage location of master program file write-in master program file, so that main Program file restores normal.It should be noted that due to the corresponding storage address of master program file be default address, when radar from It, can more new procedures automatically write default address by this after server obtains more new procedures.When powering on again, master can use Program file drives radar start.
In practical applications, when the program file version that server side saves is higher than the master program file version that radar saves After server acquisition more new procedures, starting point is written using the more new procedures as master program file after radar is restarted in this when The corresponding position in location, to realize upgrading.When the program file version that server saves is not higher than the main program text that radar saves When part version, after radar is restarted, more new procedures are obtained from server, have been written pair using the more new procedures as master program file The storage location answered, to realize the reparation of master program file.
In a kind of possible implementation of the embodiment of the present application, a kind of side that more new procedures are obtained from server is provided Case can specifically include: establish connection with server;The programming instruction that server is sent is received, programming instruction includes updating Program.
In the present embodiment, basic function is recovered after radar is restarted, and can network and establish connection with server, and connect Receive server send programming instruction, with using the programming instruction in more new procedures to the master program file of radar carry out repair or Upgrading.In specific implementation, after radar restarts networking, connection request actively can be sent to server, server is receiving Connection response is replied to radar after to connection request, to establish communication connection.It can also be networked by server timing detection Radar sends connection request to the radar, to clothes after radar receives connection request when detecting that new radar networks Business device replys connection response, to establish communication connection.Wherein, communication connection is established about radar and server and obtain more The specific implementation of new procedures will be illustrated in subsequent embodiment.
In a kind of possible implementation of the embodiment of the present application, server is the update journey for guaranteeing itself to send to radar Sequence accuracy can also judge the more new procedures sent.Meanwhile to avoid radar from writing the more new procedures of mistake The corresponding position of initial address for entering master program file, after obtaining more new procedures from server, and in more new procedures conduct Master program file is written before the corresponding position of initial address of master program file, and to this, more new procedures judge, specifically may be used With the following steps are included:
1) read-back order that server is sent is received, the read-back order is for more new procedures described in readback.
2) according to read-back order, more new procedures are sent to server, so that verification connects after server receives more new procedures Whether the more new procedures received are consistent with local more new procedures, when check results are consistent, send the attribute information of more new procedures, The attribute information includes programming time, version number and the occupied space of more new procedures.
In the present embodiment, when processor from server obtain more new procedures after, and will more new procedures as main program File is written before corresponding position, the read-back order that server is sent is received, and according to read-back order, by received more new procedures It is sent to server, so that the more new procedures that server can send processing result verify, and is one in check results When cause, the attribute information of more new procedures is sent to processor.Wherein, the programming time of the more new procedures in attribute information is service Device sends the time of more new procedures to processor.
In specific implementation, after processor obtains more new procedures from server, feedback information is sent to server, so that Obtaining server can know that processor successfully obtains more new procedures.Then, server sends read-back order, processing to processor For machine after receiving read-back order, the more new procedures that will acquire are then forwarded to server.Server receives processor return After more new procedures, with itself storage more new procedures be compared, if comparison result be it is consistent, to processor transmission update journey The attribute information of sequence.
3) attribute information that server is sent is received.
In the present embodiment, after receiving the attribute information that server is sent, shows that the received more new procedures of institute are errorless, then may be used The corresponding position of initial address more new procedures to be written to master program file as master program file.In specific implementation, may be used The corresponding storage location of master program file is written as master program file in attribute information and more new procedures.It is specifically as follows, Using attribute information as master program file name, which is stored in corresponding position.
In addition, in practical applications, radar is also needed to carry out program erasing operation, wiped before updating master program file After success, more new procedures, and rising using more new procedures as master program file write-in master program file are being obtained from server The corresponding position in beginning address.Wherein, the specific implementation about erasing master program file will be illustrated in subsequent embodiment.
In addition, under application scenes, it is possible that the master program file version that radar saves is deposited higher than server The program file version of storage, to make other radars can use the program file upgrading of highest version, when server and radar are built After vertical communication connection, server can obtain the version number of the currently stored master program file of the radar from radar, and with from The program file version number that body is stored is compared, when the version number that comparison result is master program file is higher than itself program text When part version number, acquisition request is sent to radar.In response to the acquisition request that server is sent, master program file is sent to clothes Business device, so that server stores the master program file.Wherein, the specific implementation for obtaining master program file about server will be Subsequent embodiment is illustrated.
In specific implementation, after server receives master program file, new files, and the main program received is literary Part is stored in the new files;It can also determine that the version number for the master program file that radar stores is higher than itself in server When program file version number, which is stored in new files after receiving master program file by new files In.
In the above-described embodiments it is found that when radar and server establish connection, it both can actively be initiated the connection and be asked by radar It asks, request can also actively be initiated the connection by server.Wherein, radar actively initiates the connection request and is after radar networks successfully, Connection request is sent to server.Server actively initiates the connection request, and whether server can have new radar with real-time detection It networks, when detecting that new radar networks, sends connection request to the radar.It can also be configured in the server by user new The address of the radar of networking sends connection request to corresponding radar according to address from server.Below in conjunction with Detailed description of the invention The realization of server active transmission connection request.
Referring to fig. 2, which is connection method flow chart provided by the embodiments of the present application, as shown in Fig. 2, this method can wrap It includes:
S201: configuration and trigger action in response to user, server generate connection request.
In the present embodiment, user can configure the address for needing to establish the radar of connection in the server, after the completion of configuration, User can trigger connection control, and server generates connection request in response to the trigger action of user.It can be in the connection request Address and communication port numbers including radar.
S202: connection request is sent to radar.
In the present embodiment, after server generates connection request, radar is corresponded to the address of user configuration and sends connection request, After receiving connection request so as to the radar, connection response is replied to server.Wherein, may include in connection response
S203: receiving the connection response that radar is sent, judge whether successful connection according to the connection response, if it is, Execute S204;Otherwise, S202 is executed.
In the present embodiment, when server receive radar transmission connection response, can be judged whether according to connection response Successful connection establishes communication thread if it is, executing S204;Otherwise, connection request is sent to radar again.
S204: creation communication thread, to be carried out data transmission using the communication thread with radar.
In practical applications, server can be established with more radars and be communicated to connect, specifically, when user matches in server When setting the address of more radars, server can according to each address generate connection request, and by the connection request be sent to The corresponding radar in the address is communicated to connect with realizing to establish with the radar.Meanwhile for each communication connection, establishes one and lead to Believe thread, is carried out data transmission to realize using multi-threading and more radars.
It, can be to the main program of radar based on above method embodiment it is found that server and radar are established after communicating to connect File is updated, to realize that radar upgrades.In specific implementation, server is updated it in the master program file to radar Before, advanced line program erasing operation is needed, after erasure completion, then the master program file of radar is updated, below in conjunction with The method of Detailed description of the invention erasing radar master program file.
Referring to Fig. 3, which is a kind of program method for deleting flow chart provided by the embodiments of the present application, as shown in figure 3, the party Method may include:
S301: erasing control operation is triggered in response to user, sends erasing instruction to radar, counter adds 1.
S302: judging whether erasing instruction sends success, if it is, executing S303;Otherwise, S304 is executed.
In the present embodiment, server can judge whether erasing instruction sends success by the method that time-out is retransmitted.Specifically After server sends erasing instruction to radar, to start timing, if not receiving the anti-of radar transmission within a preset time Feedforward information, it is determined that send failure, then can send erasing instruction to radar again;If receiving radar within a preset time The feedback information of transmission then executes S303, receives the erasing response that radar is sent.
S303: receiving the erasing response that radar is sent, and judge whether to wipe successfully according to erasing response, if so, User is then waited to carry out other trigger actions;Otherwise, S304 is executed.
S304: whether the value for judging counter is more than first threshold, if it is, user is waited to carry out other triggering behaviour Make;Otherwise, S301 is executed, sends erasing instruction to radar.
In the present embodiment, the maximum times that server sends erasing instruction to radar, i.e. first threshold can be preset. If the value of counter is less than first threshold, in the case where sending failure, erasing instruction can be sent to radar again, it is no Then, erasing instruction no longer is sent to radar.
In the present embodiment, after the master program file of radar is wiped successfully, it is other that server can wait user to carry out Trigger action.When other trigger actions are that user triggers the operation of programming control, server can send more new procedures to radar. Programming radar program process is illustrated below in conjunction with attached drawing.
Referring to fig. 4, which is programming radar program technic flow chart provided by the embodiments of the present application, as shown in figure 4, the party Method may include:
S401: triggering the operation of programming control in response to user, sends programming instruction to radar, calculator adds 1.
In the present embodiment, server is operated in response to the programming control that user triggers, and sending to radar includes more new procedures Programming instruction, so as to the available more new procedures of radar.
S402: judging whether programming instruction sends success, if it is, executing S403, otherwise, executes S404:
In the present embodiment, server can judge whether programming instruction sends success by the method that time-out is retransmitted.Specifically After server, which sends programming to radar, to be instructed, to start timing, if not receiving the anti-of radar transmission within a preset time Feedforward information, it is determined that send failure, then can send programming instruction to radar again;If receiving radar within a preset time The feedback information of transmission then executes S403, receives the programming response that radar is sent.
S403: receiving the programming response that radar is sent, and judge whether programming success according to programming response, if so, S405 is executed, otherwise, executes S404.
S404: whether the value for judging counter is more than second threshold, if it is, user is waited to carry out other triggerings behaviour Make;Otherwise, S401 is executed, sends programming instruction to radar.
S405: read-back order is sent to radar.
S406: receive radar send more new procedures, and according to the more new procedures and itself save more new procedures into Row compares.
S407: when comparison result is consistent, attribute information is sent to radar, which includes the burning of more new procedures Write time, version number and occupied space.
The method provided through this embodiment, server will be able to include more new procedures according to the trigger action of user Programming instruction is sent to radar, so that radar is updated local master program file using the more new procedures, so that Radar realizes upgrading.
As can be seen from the above description, server can be asked when the master program file version for judging that radar saves is higher The master program file for obtaining more highest version is sought, to utilize other radars of the master program file update of more highest version.It below will knot It closes attached drawing and server is illustrated from the process that radar obtains master program file.
Referring to Fig. 5, which is the method flow diagram of readback master program file provided by the embodiments of the present application, as shown in figure 5, This method may include:
S501: triggering in response to user and obtain control, creates file, and send acquisition request, counter adds 1.
S502: judging whether acquisition request sends success, if it is, executing S503;Otherwise, S504 is executed.
In the present embodiment, server can judge whether acquisition request sends success by the method that time-out is retransmitted.Specifically After server sends acquisition request to radar, to start timing, if not receiving the anti-of radar transmission within a preset time Feedforward information, it is determined that send failure, then can send acquisition request to radar again;If receiving radar within a preset time The feedback information of transmission then executes S503, receives the erasing response that radar is sent.
S503: the master program file that radar is sent is received, and will be in the file of master program file write-in creation.
S504: whether the value for judging counter is more than third threshold value, if it is, user is waited to carry out other triggering behaviour Make, otherwise, execute S501, sends acquisition request to radar.
The method provided through this embodiment, server can obtain the master program file of highest version from radar, with convenience With the master program file of the other radars of the master program file update of highest version, radar upgrading is realized.
It is understood that, to avoid server load heavier, can break after server and radar complete data transmission Open communication connection.The specific communication connection mode that disconnects, which can be that server is triggered in response to user, disconnects control operation, Xiang Leida Transmission disconnects message, simultaneously closes off communication thread.
Based on above method embodiment, present invention also provides a kind of radar rebooting devices, below in conjunction with attached drawing to this Device is illustrated.
Referring to Fig. 6, which is a kind of radar rebooting device structure chart provided by the embodiments of the present application, which is located at radar Processor, which preserves master program file and stand-by program file, as shown in fig. 6, the apparatus may include:
Reset unit S601, for triggering the reseting register and generating when detecting master program file damage Reset instruction, and resetted according to configuration unit of the reset instruction to the processor;
Reading unit S602 is used for after the reset unit is completed to reset, according to the initial address, when detecting When stating master program file damage, the stand-by program file is read;
Cell S 603 is restarted, for restarting using the stand-by program file to the radar.
In one possible implementation, described device further include:
Acquiring unit, for obtaining more new procedures from server;
Writing unit, it is corresponding for the master program file to be written as the master program file in the more new procedures Storage location.
In one possible implementation, the acquiring unit, comprising:
Subelement is established, for establishing connection with the server;
Receiving subelement, the programming instruction sent for receiving the server, the programming instruction includes more new procedures.
In one possible implementation, which is characterized in that described device further include:
First receiving unit is used for after executing the acquiring unit, before executing said write unit, described in reception The read-back order that server is sent, the read-back order is for more new procedures described in readback;
Generating unit, for according to the read-back order, Xiang Suoshu server to send the more new procedures, so that described After server receives the more new procedures, whether the received more new procedures of verification are consistent with local more new procedures, when verification is tied When fruit is consistent, the attribute information of the more new procedures is sent;The attribute information includes the programming time of the more new procedures, version This number and occupied space;
Second receiving unit, the attribute information sent for receiving the server.
In one possible implementation, said write unit is specifically used for the attribute information and the update Program is as the corresponding position of initial address that the master program file is written in the master program file.
In one possible implementation, the reset unit, comprising:
Subelement is triggered, for reset circuit being triggered and generating reset pulse according to the reset instruction;
Subelement is resetted, for resetting using configuration unit of the reset pulse to the processor.
It should be noted that the realization of each unit may refer to above method embodiment, the present embodiment in the present embodiment Details are not described herein.
By above method embodiment it is found that can trigger reset when processor detects master program file damage and post Storage generates reset instruction, and is resetted using reset instruction to each configuration unit in processor.When each configuration is single After the completion of member resets, according to the initial address of the stand-by program file stored in address register, stand-by program file is read, And radar is restarted using stand-by program file, so that radar restores basic function.It is, when master program file damages When radar being caused normally not start or upgrade, it can use stand-by program file and resetted and restarted, guarantee that radar enters Normal mode of operation is restarted without using downloader to scene, easy to operate, improves the efficiency for restarting radar.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment emphasis is said Bright is the difference from other embodiments, and the same or similar parts in each embodiment may refer to each other.For reality For applying system or device disclosed in example, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, phase Place is closed referring to method part illustration.
It should be appreciated that in this application, " at least one (item) " refers to one or more, and " multiple " refer to two or two More than a."and/or" indicates may exist three kinds of relationships, for example, " A and/or B " for describing the incidence relation of affiliated partner It can indicate: only exist A, only exist B and exist simultaneously tri- kinds of situations of A and B, wherein A, B can be odd number or plural number.Word Symbol "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or"." at least one of following (a) " or its similar expression, refers to Any combination in these, any combination including individual event (a) or complex item (a).At least one of for example, in a, b or c (a) can indicate: a, b, c, " a and b ", " a and c ", " b and c ", or " a and b and c ", and wherein a, b, c can be individually, can also To be multiple.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (12)

1. a kind of radar method for restarting, which is characterized in that the method is applied to the processor of radar, saves in the processor There are master program file and stand-by program file, the master program file includes reseting register and address register;The address The initial address of register storage backup master program file, which comprises
When detecting master program file damage, triggers the reseting register and generate reset instruction, and according to described multiple Bit instruction resets the configuration unit of the processor;
After the completion of the configuration unit of the processor resets, according to the initial address, the stand-by program file is read;
The radar is restarted using the stand-by program file.
2. the method according to claim 1, wherein the method also includes:
After the radar is restarted, more new procedures are obtained from server, are write using the more new procedures as the master program file Enter the corresponding storage location of the master program file.
3. according to the method described in claim 2, it is characterized in that, described obtain more new procedures from server, comprising:
Connection is established with the server;
The programming instruction that the server is sent is received, the programming instruction includes more new procedures.
4. according to the method in claim 2 or 3, which is characterized in that, will be described after obtaining more new procedures from server Before the corresponding storage location of the master program file is written as the master program file in more new procedures, the method is also wrapped It includes:
The read-back order that the server is sent is received, the read-back order is for more new procedures described in readback;
According to the read-back order, Xiang Suoshu server sends the more new procedures, so that server reception is described more After new procedures, whether the received more new procedures of verification are consistent with local more new procedures, when check results are consistent, described in transmission The attribute information of more new procedures;The attribute information includes programming time, version number and the occupied space of the more new procedures;
Receive the attribute information that the server is sent.
5. according to the method described in claim 4, it is characterized in that, the more new procedures by described in are as the master program file The corresponding position of initial address of the master program file is written, comprising:
Be written that the master program file is corresponding to be deposited using the attribute information and the more new procedures as the master program file Storage space is set.
6. the method according to claim 1, wherein described match the processor according to the reset instruction Unit is set to be resetted, comprising:
According to the reset instruction, triggers reset circuit and generate reset pulse;
It is resetted using configuration unit of the reset pulse to the processor.
7. a kind of radar rebooting device, which is characterized in that described device is located at the processor of radar, preserves in the processor Master program file and stand-by program file, the master program file include reseting register and address register;It posts the address Storage stores the initial address of backup master program file, and described device includes:
Reset unit, for triggering the reseting register and generating reset instruction when detecting master program file damage, And it is resetted according to configuration unit of the reset instruction to the processor;
Reading unit, for after the reset unit is completed to reset, according to the initial address, read the stand-by program File;
Unit is restarted, for restarting using the stand-by program file to the radar.
8. device according to claim 7, which is characterized in that described device further include:
Acquiring unit obtains more new procedures from server for restarting when the radar;
Writing unit, for the corresponding storage of the master program file to be written as the master program file in the more new procedures Position.
9. device according to claim 8, which is characterized in that the acquiring unit, comprising:
Subelement is established, for establishing connection with the server;
Receiving subelement, the programming instruction sent for receiving the server, the programming instruction includes more new procedures.
10. device according to claim 8 or claim 9, which is characterized in that described device further include:
First receiving unit, for before executing said write unit, receiving the service after executing the acquiring unit The read-back order that device is sent, the read-back order is for more new procedures described in readback;
Generating unit, for according to the read-back order, Xiang Suoshu server to send the more new procedures, so that the service After device receives the more new procedures, whether the received more new procedures of verification are consistent with local more new procedures, when check results one When cause, the attribute information of the more new procedures is sent;The attribute information includes the programming time of the more new procedures, version number And occupied space;
Second receiving unit, the attribute information sent for receiving the server.
11. device according to claim 10, which is characterized in that said write unit, specifically for the attribute is believed Cease the corresponding position of the initial address that the master program file is written as the master program file with the more new procedures.
12. device according to claim 7, which is characterized in that the reset unit, comprising:
Subelement is triggered, for reset circuit being triggered and generating reset pulse according to the reset instruction;
Subelement is resetted, for resetting using configuration unit of the reset pulse to the processor.
CN201910196681.6A 2019-03-13 2019-03-13 Radar restarting method and device Active CN109901117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910196681.6A CN109901117B (en) 2019-03-13 2019-03-13 Radar restarting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910196681.6A CN109901117B (en) 2019-03-13 2019-03-13 Radar restarting method and device

Publications (2)

Publication Number Publication Date
CN109901117A true CN109901117A (en) 2019-06-18
CN109901117B CN109901117B (en) 2022-05-27

Family

ID=66952627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910196681.6A Active CN109901117B (en) 2019-03-13 2019-03-13 Radar restarting method and device

Country Status (1)

Country Link
CN (1) CN109901117B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115081035A (en) * 2022-08-22 2022-09-20 成都远望科技有限责任公司 Program encryption upgrading circuit and method based on processor and FPGA chip

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009123082A (en) * 2007-11-16 2009-06-04 Oki Electric Ind Co Ltd Information processor and method and program for restarting system
CN102841793A (en) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Software upgrading method and terminal
CN104090796A (en) * 2014-07-08 2014-10-08 成都万维图新信息技术有限公司 Embedded device program updating method and system
CN104461657A (en) * 2014-12-29 2015-03-25 迈普通信技术股份有限公司 Main/back-up embedded type bootstrap start-up method and device
CN105511976A (en) * 2015-12-01 2016-04-20 长城信息产业股份有限公司 Embedded system application program self-recovery operation method and device
CN105573794A (en) * 2015-12-18 2016-05-11 中国电子科技集团公司第三研究所 Long-distance updating method and system for embedded system software
CN106547596A (en) * 2016-11-07 2017-03-29 天津津航计算技术研究所 A kind of high reliability FPGA remote upgrade method
CN106598650A (en) * 2016-11-25 2017-04-26 积成电子股份有限公司 Device and method for online upgrade of FPGA program based on fiber communication
CN106873990A (en) * 2017-01-23 2017-06-20 北京空间飞行器总体设计部 Multi partition bootstrap technique under embedded system RAM defective patterns
CN107450948A (en) * 2017-07-28 2017-12-08 西安电子科技大学 A kind of FPGA adaptive allocation method and system of low-power consumption
CN107479913A (en) * 2017-07-27 2017-12-15 中国船舶重工集团公司第七二四研究所 A kind of FPGA configurations low-resources that start take update method and implement system more
CN107729085A (en) * 2017-10-19 2018-02-23 北京空间飞行器总体设计部 A kind of On-board software dynamic loading method for supporting address to redirect
CN108089876A (en) * 2017-12-29 2018-05-29 中国科学院国家空间科学中心 A kind of in-orbit update method of spaceborne dsp software
CN108427569A (en) * 2018-06-07 2018-08-21 合肥美菱股份有限公司 A kind of method of household electric refrigerator online upgrading control program
CN110244971A (en) * 2019-05-28 2019-09-17 湖北三江航天险峰电子信息有限公司 A kind of On-line Product upgrade-system and method based on multiple load

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009123082A (en) * 2007-11-16 2009-06-04 Oki Electric Ind Co Ltd Information processor and method and program for restarting system
CN102841793A (en) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Software upgrading method and terminal
CN104090796A (en) * 2014-07-08 2014-10-08 成都万维图新信息技术有限公司 Embedded device program updating method and system
CN104461657A (en) * 2014-12-29 2015-03-25 迈普通信技术股份有限公司 Main/back-up embedded type bootstrap start-up method and device
CN105511976A (en) * 2015-12-01 2016-04-20 长城信息产业股份有限公司 Embedded system application program self-recovery operation method and device
CN105573794A (en) * 2015-12-18 2016-05-11 中国电子科技集团公司第三研究所 Long-distance updating method and system for embedded system software
CN106547596A (en) * 2016-11-07 2017-03-29 天津津航计算技术研究所 A kind of high reliability FPGA remote upgrade method
CN106598650A (en) * 2016-11-25 2017-04-26 积成电子股份有限公司 Device and method for online upgrade of FPGA program based on fiber communication
CN106873990A (en) * 2017-01-23 2017-06-20 北京空间飞行器总体设计部 Multi partition bootstrap technique under embedded system RAM defective patterns
CN107479913A (en) * 2017-07-27 2017-12-15 中国船舶重工集团公司第七二四研究所 A kind of FPGA configurations low-resources that start take update method and implement system more
CN107450948A (en) * 2017-07-28 2017-12-08 西安电子科技大学 A kind of FPGA adaptive allocation method and system of low-power consumption
CN107729085A (en) * 2017-10-19 2018-02-23 北京空间飞行器总体设计部 A kind of On-board software dynamic loading method for supporting address to redirect
CN108089876A (en) * 2017-12-29 2018-05-29 中国科学院国家空间科学中心 A kind of in-orbit update method of spaceborne dsp software
CN108427569A (en) * 2018-06-07 2018-08-21 合肥美菱股份有限公司 A kind of method of household electric refrigerator online upgrading control program
CN110244971A (en) * 2019-05-28 2019-09-17 湖北三江航天险峰电子信息有限公司 A kind of On-line Product upgrade-system and method based on multiple load

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
丁宁等: "基于串行总线和FPGA的FLASH烧写方法研究与实现", 《电子世界》 *
周琼等: "单核FPGA系统的可靠性远程升级设计", 《中国新通信》 *
李平等: "基于SPI FLASH的FPGA多重配置", 《现代电子技术》 *
辛宁等: "一种星载计算机操作系统容错引导算法研究", 《宇航学报》 *
陈烨翀: "星载SAR实时成像平台研究", 《中国优秀博硕士学位论文全文数据库(硕士)工程科技II辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115081035A (en) * 2022-08-22 2022-09-20 成都远望科技有限责任公司 Program encryption upgrading circuit and method based on processor and FPGA chip

Also Published As

Publication number Publication date
CN109901117B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
US9110843B2 (en) Rack and method thereof for simultaneously updating basic input output systems
US20170206079A1 (en) Method and Device for Upgrading Software
CN110347414A (en) Firmware update, device, equipment and computer readable storage medium
US20200133654A1 (en) Method for remotely updating firmware of field programmable gate array
CN109587331B (en) Method and system for automatically repairing cloud mobile phone fault
CN102567135B (en) Refreshing/recovering method and electronic equipment
CN102023908A (en) Method and device for backing up boot program
CN105718281B (en) A kind of touch screen firmware upgrade method and device
CN109002310A (en) firmware upgrade method
CN109413164B (en) Access service recovery method, device, equipment and readable storage medium
CN106020875A (en) Firmware updating management method and device of embedded terminal
CN103713925A (en) Method and device for avoiding service interruption of storage array in upgrading process
CN112433739B (en) Firmware upgrading method
CN105072608B (en) A kind of method and device of administrative authentication token
CN111104147A (en) BMC upgrading method, device, terminal and storage medium
CN109634631A (en) Firmware restoration method, apparatus, electronic equipment and firmware restoration system
CN105573872B (en) The HD management method and apparatus of data-storage system
CN109901117A (en) A kind of radar method for restarting and device
CN107402843A (en) Restoration methods, device and the equipment of database corruption
US20150269237A1 (en) Disaster Recovery of Converged Infrastructure Platforms
CN101971562B (en) Method, device and system for controlling automatic running process performance
CN106204031A (en) card application processing method and device
CN109684134B (en) Method and server for rapidly deploying firmware settings among multiple devices
CN112650099B (en) Control method and control system of battery monitoring platform
CN102752365B (en) The method and apparatus of information processing

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