CN110389779A - The upgrade method and upgrade-system of communication module - Google Patents
The upgrade method and upgrade-system of communication module Download PDFInfo
- Publication number
- CN110389779A CN110389779A CN201910635049.7A CN201910635049A CN110389779A CN 110389779 A CN110389779 A CN 110389779A CN 201910635049 A CN201910635049 A CN 201910635049A CN 110389779 A CN110389779 A CN 110389779A
- Authority
- CN
- China
- Prior art keywords
- communication module
- upgrading
- communication
- tool
- controller
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 225
- 238000000034 method Methods 0.000 title claims abstract description 67
- 230000008569 process Effects 0.000 claims abstract description 25
- 238000012545 processing Methods 0.000 claims abstract description 10
- 238000012360 testing method Methods 0.000 claims description 11
- 238000009434 installation Methods 0.000 claims description 9
- 238000011056 performance test Methods 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 25
- 238000005516 engineering process Methods 0.000 description 4
- 230000001174 ascending effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008439 repair process 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/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- 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
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The invention discloses a kind of upgrade method of communication module and upgrade-systems, it the described method comprises the following steps: S1, after controller enters upgrading process, by communication serial port establish with the communication connection of communication module, and obtain the identity information of software version to be upgraded in communication module;S2, controller establishes the communication connection with upgrading tool, and calls upgrading to execute file by the system function in perl script, to open upgrading tool;S3, controller sends the erasing parameter of software version to be upgraded to upgrading tool, so that software version to be upgraded is carried out erasing processing by upgrading tool;S4, target software release parameter is sent to upgrading tool by controller, so that upgrading data packet corresponding with target software release is burned onto communication module by upgrading tool, communication module is upgraded under no network condition so as to realize, and can be realized local upgrade performance test for a long time, under unattended scene.
Description
Technical field
The present invention relates to the upgrade methods and a kind of communication module of field of communication technology more particularly to a kind of communication module
Upgrade-system.
Background technique
With the continuous development of technology, the especially quickening of Internet of Things communication module technology innovation iteration, for communicating mould
The upgrading stability of block requires higher and higher.In actual test communication module, it is found that communication module there are various bug, because
This needs to upgrade software and carries out version iteration, to repair bug.And upgrade software and generally use two ways, first is that by upgrading
Tool is burnt in communication module, second is that communication module networking passes through FOTA (Firmware Over-The-Air, mobile terminal
Aerial downloading software upgrading) upgrading be burnt to communication module, communication module could operate normally.General upgrading needs to use core
The upgrading tool that piece manufacturer provides, however manual hand manipulation is required using upgrading tool upgrading at present, waste a large amount of people
Power resource;FOTA upgrading needs communication module to network, and has corresponding upgrade server, and single update time is long and unstable
It is fixed.Industry and client are higher for the performance requirement of communication module simultaneously, and frequently upgrading can be to the inside of communication module
Flash constantly carries out erasable, for the stability of authentication module and flash, needs the pressure test of long term repeatability.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of upgrade method of communication module, can be realized in no net
Communication module is upgraded in the case of network, and can be realized the local upgrade performance for a long time, under unattended scene and survey
Examination.
Second object of the present invention is to propose a kind of upgrade-system of communication module.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of upgrade method of communication module, including with
Lower step: S1 after controller enters upgrading process, establishes the communication connection with communication module by communication serial port, and obtain institute
State the identity information of software version to be upgraded in communication module;S2, the controller establish the communication connection with upgrading tool, and
Upgrading is called to execute file by the system function in perl script, to open the upgrading tool;S3, the controller is to institute
The erasing parameter that upgrading tool sends the software version to be upgraded is stated, so that the upgrading tool is by the software version to be upgraded
This carries out erasing processing;Target software release parameter is sent to the upgrading tool by S4, the controller, so that the upgrading
Upgrading data packet corresponding with the target software release is burned onto the communication module by tool.
The upgrade method of communication module according to an embodiment of the present invention is gone here and there after controller enters upgrading process by communication
Mouthful establish with the communication connection of communication module, and obtain the identity information of software version to be upgraded in communication module, then control
Device establishes the communication connection with upgrading tool, and calls upgrading to execute file by the system function in perl script, to open
Upgrading tool, controller send the erasing parameter of software version to be upgraded to upgrading tool, so that upgrading tool will be to be upgraded soft
Part version carries out erasing processing, and target software release parameter is sent to upgrading tool, so that upgrading tool will be soft with target
The corresponding upgrading data packet of part version is burned onto communication module.This method can be realized under no network condition to logical as a result,
Letter module is upgraded, and can be realized local upgrade performance test for a long time, under unattended scene.
In addition, the upgrade method of the communication module proposed according to that above embodiment of the present invention can also have it is following additional
Technical characteristic:
According to one embodiment of present invention, the upgrade method of above-mentioned communication module, further includes: S5, after the completion of burning,
The controller obtains the identity information of current software version in the communication module, and according to the software version to be upgraded
The identity information of identity information and the current software version judges whether the communication module upgrades successfully, wherein the liter
Grade tool is automatically closed after the completion of burning.
According to one embodiment of present invention, the upgrade method of above-mentioned communication module, further includes: the controller is being sentenced
After the communication module of breaking upgrades successfully, step S2~step S5 is repeated, until time that the communication module upgrades successfully
Number reaches default testing time.
According to one embodiment of present invention, the controller establishes the communication link with communication module by communication serial port
It connects, comprising: the controller opens order by the serial ports function call serial ports in perl script, to open the communication string
Mouthful, and after the communication serial port is opened successfully foundation and the communication module communication connection.
According to one embodiment of present invention, the upgrade method of above-mentioned communication module, further includes: the controller is being sentenced
When the communication serial port that breaks opens failure, generates communication serial port and open failure prompt information, and exit the upgrading process.
According to one embodiment of present invention, the upgrade method of above-mentioned communication module, further includes: the upgrading tool will
When being burned onto the communication module with the upgrading data packet, burning process prompt information is generated in real time.
According to one embodiment of present invention, the controller calls upgrading to execute by the system function in perl script
File, to open the upgrading tool, comprising: the installation mesh of the upgrading tool is determined by the system function in perl script
Record, and the upgrading in the installation directory is called to execute upgrading tool described in File Open.
According to one embodiment of present invention, the erasing parameter includes depositing for erasing order, port numbers and prompt information
Path is stored up, the target software release parameter includes the communication port numbers, described of all information upgrade command, the communication module
The place path of the corresponding upgrading data packet of target software release and the store path of title and prompt information.
In order to achieve the above objectives, second aspect of the present invention embodiment proposes a kind of upgrade-system of communication module, including
Controller, communication module and upgrading tool, wherein the controller is used for: being built by communication serial port after entering upgrading process
The vertical communication connection with the communication module, and obtain the identity information of software version to be upgraded in the communication module;It establishes
With the communication connection of upgrading tool, and upgrading is called to execute file by the system function in perl script, to open the liter
Grade tool;The erasing parameter of the software version to be upgraded is sent to the upgrading tool, so that the upgrading tool will be described
Software version to be upgraded carries out erasing processing;Target software release parameter is sent to the upgrading tool, so that the upgrading
Upgrading data packet corresponding with the target software release is burned onto the communication module by tool.
The upgrade-system of communication module according to an embodiment of the present invention, controller pass through communication after entering upgrading process
Serial ports establish with the communication connection of communication module, and obtain the identity information of software version to be upgraded in communication module;Establish with
The communication connection of upgrading tool, and call upgrading to execute file by the system function in perl script, to open upgrading tool;
The erasing parameter of software version to be upgraded is sent to upgrading tool, so that upgrading tool carries out software version to be upgraded at erasing
Reason;Target software release parameter is sent to upgrading tool, so that upgrading tool will ascending series corresponding with target software release
It is burned onto communication module according to packet.The system, which can be realized, as a result, upgrades communication module under no network condition, and
It can be realized local upgrade performance test for a long time, under unattended scene.
In addition, the upgrade-system of the communication module proposed according to that above embodiment of the present invention can also have it is following additional
Technical characteristic:
According to one embodiment of present invention, the controller is also used to: after the completion of burning, obtaining the communication module
The identity information of middle current software version, and according to the identity information and the current software version of the software version to be upgraded
Identity information judge whether the communication module upgrades successfully, wherein the upgrading tool is automatically closed after the completion of burning;
And after judging that the communication module upgrades successfully, the communication connection with the upgrading tool is re-established, so that the liter
The upgrading data packet is burned onto the communication module by grade tool again, and judges whether the communication module upgrades again
Success, until the number that the communication module upgrades successfully reaches default testing time.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart of the upgrade method of communication module according to an embodiment of the present invention;
Fig. 2 is the flow chart of the upgrade method of the communication module of a specific example according to the present invention;And
Fig. 3 is the block diagram of the upgrade-system of communication module according to an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the upgrade method of the communication module of the embodiment of the present invention and the upgrade-system of communication module are described.
Fig. 1 is the flow chart of the upgrade method of communication module according to an embodiment of the present invention.
As shown in Figure 1, the upgrade method of the communication module of the embodiment of the present invention can comprise the following steps that
S1 after controller enters upgrading process, establishes the communication connection with communication module by communication serial port, and obtain logical
Believe the identity information of software version to be upgraded in module.Wherein, with the identity information of updating software release can include: communication module
Model, version information etc..
According to one embodiment of present invention, controller establishes the communication connection with communication module, packet by communication serial port
Include: controller opens order by the serial ports function call serial ports in perl script, to open communication serial port, and in communication serial port
The communication connection with communication module is established after opening successfully.
Specifically, controller and communication module are established when communicating to connect, controller can use library by perl script
Function SerialPort calls OpenPort function to be attached to open communication serial port with communication module, when controller is successfully beaten
When opening communication serial port, controller and communication module are successfully established communication connection, execute corresponding AT order (such as ATI/AT+CGMR)
Query communication module model, the information such as version, and Initialize installation is carried out to communication module.
According to one embodiment of present invention, the upgrade method of above-mentioned communication module may also include that controller is judging
When communication serial port opens failure, generates communication serial port and open failure prompt information, and exit upgrading process.
That is, can not achieve between controller and communication module when controller opens communication serial port not successfully
Communication connection, at this time produce communication serial port open failure prompting message, and exit this upgrading process, wait next time again into
Enter to upgrade process.
S2, controller establishes the communication connection with upgrading tool, and calls upgrading by the system function in perl script
File is executed, to open upgrading tool.
S3, controller sends the erasing parameter of software version to be upgraded to upgrading tool, so that upgrading tool will be to be upgraded
Software version carries out erasing processing.Wherein, erasing parameter may include the store path of erasing order, port numbers and prompt information.
According to one embodiment of present invention, controller calls upgrading to execute text by the system function in perl script
Part, to open upgrading tool, comprising: determine the installation directory of upgrading tool by the system function in perl script, and call
Upgrading in installation directory executes File Open upgrading tool.
Specifically, when controller establishes the communication connection with communication module, the communication connection with upgrading tool, example are also set up
Such as, the installation directory of upgrading tool is found by the system function in perl script, and the upgrading in installation directory is called to execute
File (e.g., UEUpdater.exe file) opens upgrading tool.Controller is when judgement normally can open upgrading tool, control
The parameter software version of upgrading (band) that device processed also transmits erasing software version is ordered, e.g., erasing order erase, port numbers with
And for saving the store path of prompt information (txt document wherein, can be used and carry out storage prompt information);Controller judges not
When can normally open upgrading tool, this upgrading process is exited.Upgrading tool is called by using perl script as a result, is overcome
Communication module upgrading test needs manual operation in the prior art, and execution efficiency is low, cannot achieve and carries out upgrading test for a long time
Defect.
Target software release parameter is sent to upgrading tool by S4, controller, so that upgrading tool will be with target software version
This corresponding upgrading data packet is burned onto communication module.Wherein, target software release parameter include all information upgrade command,
The place path of the corresponding upgrading data packet of communication port numbers, target software release of communication module and title, and prompt letter
The store path of breath.
According to one embodiment of present invention, the upgrade method of above-mentioned communication module, further includes: upgrading tool will be with liter
When grade data packet is burned onto communication module, burning process prompt information is generated in real time.
Specifically, it establishes and communicates to connect with upgrading tool and communication module respectively in controller, and will be in communication module
When the identity information erasing of former software version, required command parameter is transmitted to upgrading tool, for example, upgrade command
(target software release, that is, wanted burning are soft in communication module for updateall, the communication port numbers of communication module, version packet
Part version) where path, version packet title and for saving the store path of prompt information (such as txt document).Upgrading tool
Version packet is burnt in communication module, and generates burning process prompt information (including: burning success or failure).
According to one embodiment of present invention, the upgrade method of above-mentioned communication module, further includes: S5, after the completion of burning,
Controller obtains the identity information of current software version in communication module, and according to the identity information of software version to be upgraded and works as
The identity information of preceding software version judges whether communication module upgrades successfully, wherein upgrading tool closes automatically after the completion of burning
It closes.
That is, upgrading tool is automatically closed after the completion of target software release burning, while controller is to communication mould
Block sends AT order inquiry instruction, with the identity information of the current version in query communication module and target software release whether one
It causes, if unanimously, judgement upgrades successfully, so as to judge automatically the version number of communication module and whether consistent be expected, keeps away
Manpower-free goes to judge, realizes automation, improve efficiency.
According to one embodiment of present invention, the upgrade method of above-mentioned communication module, further includes: controller is logical in judgement
After believing module upgrade success, step S2~step S5 is repeated, until the number that communication module upgrades successfully reaches default survey
Try number.Wherein, default testing time can be demarcated according to the actual situation.
As a specific example, as shown in Fig. 2, the upgrade method of the communication module can comprise the following steps that
S101, controller enter upgrading process.
S102, controller and communication module, which are established, to be communicated to connect.
Whether S103 judges that controller is connect with communication module and succeeds.If so, executing step S104;If not, executing
Step S113.
S104 obtains model, the version information of communication module.
Whether S105 judges that controller is connect with upgrading tool and succeeds.If so, executing step S106;If not, executing
Step S113.
S106, controller send the parameter command of transmitting erasing software version to upgrading tool.
S107, judges whether the parameter of software version wipes success.If so, executing step S108;If not, returning to step
Rapid S106.
S108, after wiping successfully, controller transmits upgraded version parameter to upgrading tool.
Upgraded version parameter is burned onto communication module by S109, upgrading tool.
S110 judges whether to upgrade successfully.If so, executing step S111;If not, return step S109.
S111, upgrading tool are automatically closed.
S112 upgrades successfully number and adds 1 automatically.
S113, judges whether the number upgraded successfully reaches default testing time.If so, executing step S114;If
It is no, return step S105.
S114 exits upgrading process.
It should be noted that the upgrade method of above-mentioned communication module can be applied to NBIoT (Narrow Band
Internet of Things, narrowband Internet of Things) communication module is (for example, the NBIoT of Hi2110/Hi2115 chip platform is communicated
Module).
In conclusion the upgrade method of communication module according to an embodiment of the present invention is led to after controller enters upgrading process
Cross communication serial port establish with the communication connection of communication module, and obtain the identity information of software version to be upgraded in communication module,
Then controller establishes the communication connection with upgrading tool, and calls upgrading to execute text by the system function in perl script
Part, to open upgrading tool, controller sends the erasing parameter of software version to be upgraded to upgrading tool, so that upgrading tool will
Software version to be upgraded carries out erasing processing, and target software release parameter is sent to upgrading tool, so that upgrading tool will
Upgrading data packet corresponding with target software release is burned onto communication module.This method can be realized in no network feelings as a result,
Communication module is upgraded under condition, and can be realized local upgrade performance test for a long time, under unattended scene.
Fig. 3 is the block diagram of the upgrade-system of communication module according to an embodiment of the present invention.
As shown in figure 3, the upgrade-system of the communication module of the embodiment of the present invention can include: controller 10, communication module 20
With upgrading tool 30.
Wherein, controller 10 is used for after entering upgrading process: establishing the communication with communication module 20 by communication serial port
Connection, and obtain the identity information of software version to be upgraded in communication module 20;The communication connection with upgrading tool 30 is established, and
Upgrading is called to execute file by the system function in perl script, to open upgrading tool;It sends to upgrading tool 30 wait rise
The erasing parameter of grade software version, so that software version to be upgraded is carried out erasing processing by upgrading tool;By target software release
Parameter is sent to upgrading tool 30, so that upgrading data packet corresponding with target software release is burned onto communication by upgrading tool 30
In module 20.
According to one embodiment of present invention, controller 10 is also used to: after the completion of burning, obtain communication module 20 in when
The identity information of preceding software version, and sentenced according to the identity information of software version to be upgraded and the identity information of current software version
Whether disconnected communication module 20 upgrades successfully, wherein upgrading tool 30 is automatically closed after the completion of burning;And mould is communicated in judgement
After block 20 upgrades successfully, the communication connection with upgrading tool 30 is re-established, so that upgrading tool 30 is again by upgrading data packet
It is burned onto communication module 20, and judges whether communication module 20 upgrades successfully again, until what communication module 20 upgraded successfully
Number reaches default testing time.
It should be noted that undisclosed details in the upgrade-system of the communication module of the embodiment of the present invention, please refers to this
Details disclosed in the upgrade method of the communication module of inventive embodiments, specific which is not described herein again.
The upgrade-system of communication module according to an embodiment of the present invention, controller pass through communication after entering upgrading process
Serial ports establish with the communication connection of communication module, and obtain the identity information of software version to be upgraded in communication module;Establish with
The communication connection of upgrading tool, and call upgrading to execute file by the system function in perl script, to open upgrading tool;
The erasing parameter of software version to be upgraded is sent to upgrading tool, so that upgrading tool carries out software version to be upgraded at erasing
Reason;Target software release parameter is sent to upgrading tool, so that upgrading tool will ascending series corresponding with target software release
It is burned onto communication module according to packet.The system, which can be realized, as a result, upgrades communication module under no network condition, and
It can be realized local upgrade performance test for a long time, under unattended scene.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from
Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.
Claims (10)
1. a kind of upgrade method of communication module, which comprises the following steps:
S1 after controller enters upgrading process, establishes the communication connection with communication module by communication serial port, and obtains described logical
Believe the identity information of software version to be upgraded in module;
S2, the controller establishes the communication connection with upgrading tool, and calls upgrading by the system function in perl script
File is executed, to open the upgrading tool;
S3, the controller sends the erasing parameter of the software version to be upgraded to the upgrading tool, so that the upgrading
The software version to be upgraded is carried out erasing processing by tool;
Target software release parameter is sent to the upgrading tool by S4, the controller, so that the upgrading tool will be with institute
The corresponding upgrading data packet of target software release is stated to be burned onto the communication module.
2. the upgrade method of communication module as described in claim 1, which is characterized in that further include:
S5, after the completion of burning, the controller obtains the identity information of current software version in the communication module, and according to institute
The identity information of the identity information and the current software version of stating software version to be upgraded judges whether the communication module rises
Grade success, wherein the upgrading tool is automatically closed after the completion of burning.
3. the upgrade method of communication module as claimed in claim 2, which is characterized in that further include:
The controller repeats step S2~step S5 after judging that the communication module upgrades successfully, until described logical
The letter successful number of module upgrade reaches default testing time.
4. the upgrade method of communication module as described in claim 1, which is characterized in that the controller is built by communication serial port
The vertical communication connection with communication module, comprising:
The controller opens order by the serial ports function call serial ports in perl script, to open the communication serial port, and
The communication connection with the communication module is established after the communication serial port is opened successfully.
5. the upgrade method of communication module as claimed in claim 4, which is characterized in that further include:
The controller generates communication serial port and opens failure prompt information when judging that the communication serial port opens failure, and moves back
The upgrading process out.
6. the upgrade method of communication module as described in claim 1, which is characterized in that further include:
When the upgrading tool will be burned onto the communication module with the upgrading data packet, burning process prompt letter is generated in real time
Breath.
7. the upgrade method of communication module as described in claim 1, which is characterized in that the controller passes through in perl script
System function call upgrading execute file, to open the upgrading tool, comprising:
The installation directory of the upgrading tool is determined by the system function in perl script, and is called in the installation directory
The upgrading executes upgrading tool described in File Open.
8. the upgrade method of communication module as described in claim 1, which is characterized in that the erasing parameter includes erasing life
It enables, the store path of port numbers and prompt information, the target software release parameter includes all information upgrade command, described logical
Believe the communication port numbers of module, the place path of the corresponding upgrading data packet of the target software release and title, and prompt
The store path of information.
9. a kind of upgrade-system of communication module, which is characterized in that including controller, communication module and upgrading tool, wherein institute
Controller is stated after entering upgrading process, is used for:
The communication connection with the communication module is established by communication serial port, and obtains software version to be upgraded in the communication module
This identity information;
The communication connection with upgrading tool is established, and calls upgrading to execute file by the system function in perl script, to beat
Open the upgrading tool;
The erasing parameter of the software version to be upgraded is sent to the upgrading tool, so that the upgrading tool is by described wait rise
Grade software version carries out erasing processing;
Target software release parameter is sent to the upgrading tool, so that the upgrading tool will be with the target software release
Corresponding upgrading data packet is burned onto the communication module.
10. the upgrade-system of communication module as claimed in claim 9, which is characterized in that the controller is also used to:
After the completion of burning, the identity information of current software version in the communication module is obtained, and according to described to be upgraded soft
The identity information of the identity information of part version and the current software version judges whether the communication module upgrades successfully,
In, the upgrading tool is automatically closed after the completion of burning;And
After judging that the communication module upgrades successfully, the communication connection with the upgrading tool is re-established, so that the liter
The upgrading data packet is burned onto the communication module by grade tool again, and judges whether the communication module upgrades again
Success, until the number that the communication module upgrades successfully reaches default testing time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910635049.7A CN110389779A (en) | 2019-07-15 | 2019-07-15 | The upgrade method and upgrade-system of communication module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910635049.7A CN110389779A (en) | 2019-07-15 | 2019-07-15 | The upgrade method and upgrade-system of communication module |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110389779A true CN110389779A (en) | 2019-10-29 |
Family
ID=68286551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910635049.7A Pending CN110389779A (en) | 2019-07-15 | 2019-07-15 | The upgrade method and upgrade-system of communication module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110389779A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111651176A (en) * | 2020-05-21 | 2020-09-11 | 深圳市同泰怡信息技术有限公司 | Method and device for on-line upgrading of server LCD module |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103501243A (en) * | 2013-09-23 | 2014-01-08 | 北京创艺和弦科贸有限公司 | Device and method for page-type management of communication |
CN104881300A (en) * | 2014-02-28 | 2015-09-02 | 北京谊安医疗系统股份有限公司 | Upgrading method of control module of respirator |
CN106227663A (en) * | 2016-07-22 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of automated testing method refreshing IO firmware |
CN108958774A (en) * | 2018-07-13 | 2018-12-07 | 深圳市道通智能航空技术有限公司 | Module updating method and module to be upgraded in UAV system |
CN109857433A (en) * | 2019-01-15 | 2019-06-07 | 四川虹美智能科技有限公司 | A kind of scm software upgrading tool and method |
-
2019
- 2019-07-15 CN CN201910635049.7A patent/CN110389779A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103501243A (en) * | 2013-09-23 | 2014-01-08 | 北京创艺和弦科贸有限公司 | Device and method for page-type management of communication |
CN104881300A (en) * | 2014-02-28 | 2015-09-02 | 北京谊安医疗系统股份有限公司 | Upgrading method of control module of respirator |
CN106227663A (en) * | 2016-07-22 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of automated testing method refreshing IO firmware |
CN108958774A (en) * | 2018-07-13 | 2018-12-07 | 深圳市道通智能航空技术有限公司 | Module updating method and module to be upgraded in UAV system |
CN109857433A (en) * | 2019-01-15 | 2019-06-07 | 四川虹美智能科技有限公司 | A kind of scm software upgrading tool and method |
Non-Patent Citations (1)
Title |
---|
刘欢 等 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111651176A (en) * | 2020-05-21 | 2020-09-11 | 深圳市同泰怡信息技术有限公司 | Method and device for on-line upgrading of server LCD module |
CN111651176B (en) * | 2020-05-21 | 2023-11-07 | 深圳市同泰怡信息技术有限公司 | Method and device for online upgrading of server LCD module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1530847B1 (en) | Method and system for configuration control in telecommunications networks | |
CN102164045B (en) | Parameterized computer monitor system and method | |
CN104156414B (en) | A kind of method for cleaning of garbage files, device and terminal | |
CN107464148A (en) | A kind of intelligent contract upgrade method and system based on alliance's chain | |
CN107436787B (en) | Method for processing resource, device, storage medium and electronic device | |
CN106612192A (en) | An equipment upgrading method, apparatus and system | |
CN103164238A (en) | Method for automatically and continuously installing operating system | |
CN109542767A (en) | Automated testing method, device, computer equipment and storage medium based on block chain | |
CN110276074A (en) | Distributed training method, device, equipment and the storage medium of natural language processing | |
CN105468384A (en) | Vehicle-mounted controller programming system and method, server and programming terminal | |
CN112835604A (en) | System gray scale version release management method, system, device and medium | |
CN106101984A (en) | The security module management method of a kind of NFC Mobile payment terminal and terminal | |
CN110389779A (en) | The upgrade method and upgrade-system of communication module | |
JP2003058389A (en) | Method for just-in-time updating of programming parts | |
CN107621963A (en) | A kind of software deployment method, software deployment system and electronic equipment | |
CN101142559B (en) | Monitoring computer-controlled processes and systems | |
CN106921688A (en) | The service providing method and distributed system of distributed system | |
CN109376072A (en) | Application development method and apparatus based on third party's Component Gallery | |
US8539017B2 (en) | Systems and methods for creating network architecture planning tools | |
CN109240916A (en) | Information output controlling method, device and computer readable storage medium | |
CN108170456A (en) | The firmware upgrade method and device of electronic equipment | |
CN108197166A (en) | A kind of browser-cross office examination & approval trace method and system | |
CN105095072B (en) | Application testing method and device and terminal | |
CN106445753A (en) | Terminal sound repairing method and device and electronic equipment | |
CN115113890A (en) | Automatic deployment method, system, equipment and medium of terminal software |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191029 |