CN108270596B - Method for upgrading embedded wireless communication module - Google Patents
Method for upgrading embedded wireless communication module Download PDFInfo
- Publication number
- CN108270596B CN108270596B CN201611258502.XA CN201611258502A CN108270596B CN 108270596 B CN108270596 B CN 108270596B CN 201611258502 A CN201611258502 A CN 201611258502A CN 108270596 B CN108270596 B CN 108270596B
- Authority
- CN
- China
- Prior art keywords
- wireless communication
- communication module
- upgrading
- data packet
- micro
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
Abstract
The invention discloses an upgrading method of an embedded wireless communication module, which specifically comprises the following steps: firstly, the wireless communication module receives an upgrading command and confirms to enter an upgrading mode; secondly, the wireless communication module receives the first upgrading data packet and automatically erases a corresponding storage area in the wireless communication module according to the requirement of the first upgrading data packet; and finally, the wireless communication module receives the second upgrading data packet and upgrades the second upgrading data packet in the corresponding storage area. Compared with the prior art, the embedded wireless communication module can be upgraded without disassembling the embedded system; the micro-control processor of the embedded system actively upgrades the wireless communication module; the operation of the user is convenient.
Description
Technical Field
The invention relates to a module upgrading technology in the communication field, in particular to an upgrading method of an embedded wireless communication module.
Background
With the development of science and technology, wireless communication technology is becoming more popular, and various wireless communication devices are widely used in personal life and industrial production. A wireless communication module is required to provide a wireless communication service in each wireless communication device. However, in the prior art, when the wireless communication module in the embedded system is upgraded, the following problems often occur: a developer designs and encapsulates the wireless communication equipment, namely encapsulates the wireless communication module in the wireless communication equipment; input and output interfaces of a wireless communication module, such as a UART (Universal Asynchronous Receiver/Transmitter), a USB (Universal Serial Bus) and the like, are connected with a processor of the wireless communication equipment and occupied by other modules in the wireless communication equipment; while most wireless communication devices do not support Fota upgrades. In view of these problems, in the prior art, when upgrading the wireless communication module, the wireless communication device is usually disassembled, the processor and other modules are disconnected from controlling the input/output interfaces of the wireless communication module, such as UART and USB, and the input/output interfaces of the wireless communication module, such as UART and USB, are connected to the wireless communication module upgrading tool for upgrading.
Disclosure of Invention
The invention aims to solve the problems that in the prior art, because the embedded wireless communication module is encapsulated into an embedded system in actual use, the embedded wireless communication module needs to be dismounted to realize upgrading and the like; an upgrade method of an embedded wireless communication module is provided.
In order to achieve the purpose, the invention is realized by the following technical scheme:
an upgrade method for an embedded wireless communication module, the wireless communication module being used in an embedded system, the embedded system further comprising a micro-controller processor, the upgrade method comprising:
the wireless communication module receives an upgrading command and confirms to enter an upgrading mode;
the wireless communication module receives a first upgrading data packet and automatically erases a corresponding storage area in the wireless communication module according to the requirement of the first upgrading data packet; the first upgrade data packet includes: the address and the capacity information of a storage area corresponding to a code to be upgraded in the wireless communication module, the address and the capacity information of a file system of the wireless communication module, and an instruction whether to erase the file system;
and the wireless communication module receives a second upgrading data packet and upgrades the corresponding storage area.
Preferably, the step of receiving the upgrade command and confirming entry into the upgrade mode by the wireless communication module specifically includes:
the micro-control processor sends the upgrading command to the wireless communication module;
when the wireless communication module sends confirmation information to the micro-control processor within set time, confirming that the wireless communication module enters an upgrading mode;
and when the micro control processor does not receive the confirmation information within the set time, the wireless communication module automatically enters a starting mode and ends.
Preferably, the step of receiving a first upgrade data packet by the wireless communication module and self-erasing a corresponding storage area in the wireless communication module according to a request of the first upgrade data packet specifically includes:
the micro-control processor sends the first upgrading data packet to the wireless communication module;
according to the address and the capacity information of a storage area corresponding to a code to be upgraded in the wireless communication module, which are contained in the first upgrading data packet, the wireless communication module performs self-erasing on the storage area corresponding to the address of the storage area;
when the first upgrade data packet contains: when the file system instruction, the file system address of the wireless communication module and the capacity information are erased, the wireless communication module performs self-erasing on the area corresponding to the file system address;
and after the wireless communication module finishes erasing, sending erasing completion information to the micro-control processor.
Preferably, the first and second liquid crystal films are made of a polymer,
the second upgrade data packet comprises a plurality of sub-packets, and each sub-packet comprises different upgrade data.
Preferably, the step of receiving a second upgrade data packet at the wireless communication module and upgrading the corresponding storage area specifically includes:
the micro-control processor sequentially sends a plurality of sub-data packets to the wireless communication module;
after the wireless communication module receives each sub data packet, sending confirmation information to the micro control processor;
after the micro-control processor sends all the sub data packets, the micro-control processor sends a second upgrading data packet sending finishing instruction to the wireless communication module;
and after the wireless communication module acquires all the sub data packets, upgrading the sub data packets in the corresponding storage area.
Preferably, it further comprises:
after the wireless communication module is upgraded, sending an upgrade completion instruction to the micro-control processor;
the micro-control processor sends a starting-up instruction to the wireless communication module;
and after the wireless communication module is started, sending a starting response instruction to the micro-control processor.
On the basis of the common knowledge in the field, the above preferred conditions can be combined randomly to obtain the preferred embodiments of the invention.
The positive progress effects of the invention are as follows:
the invention discloses an upgrading method of an embedded wireless communication module, which specifically comprises the following steps: firstly, the wireless communication module receives an upgrading command and confirms to enter an upgrading mode; secondly, the wireless communication module receives the first upgrading data packet and automatically erases a corresponding storage area in the wireless communication module according to the requirement of the first upgrading data packet; and finally, the wireless communication module receives the second upgrading data packet and upgrades the second upgrading data packet in the corresponding storage area. Compared with the prior art, the embedded wireless communication module can be upgraded without disassembling the embedded system; the micro-control processor of the embedded system actively upgrades the wireless communication module; the operation of the user is convenient.
Drawings
Fig. 1 is a schematic overall flow chart of an upgrading method of an embedded wireless communication module according to the present invention.
Fig. 2 is a schematic diagram of an embodiment of an upgrading method of an embedded wireless communication module according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention discloses an upgrading method of an embedded wireless communication module, which is used for an embedded system, wherein the embedded system comprises the wireless communication module and a micro-control processor which are arranged in an embedded mode.
As shown in fig. 1, an upgrading method for an embedded wireless communication module includes:
and S1, the wireless communication module receives the upgrade order and confirms to enter the upgrade mode. Step S1 specifically includes the following steps:
and the micro-control processor sends an upgrading command to the wireless communication module.
When the wireless communication module sends the confirmation information to the micro-control processor within the set time, the wireless communication module is confirmed to enter the upgrading mode.
And when the micro-control processor does not receive the confirmation information within the set time, the wireless communication module automatically enters the starting-up mode and the operation is finished.
And S2, the wireless communication module receives the first upgrading data packet and automatically erases the corresponding storage area in the wireless communication module according to the requirement of the first upgrading data packet.
The first upgrade data package includes: the address and the capacity information of a storage area corresponding to a code to be upgraded in the wireless communication module, the address and the capacity information of a file system of the wireless communication module, and whether a file system command is erased or not.
Step S2 specifically includes:
the micro-control processor sends the first upgrading data packet to the wireless communication module.
And according to the address and the capacity information of the storage area corresponding to the code to be upgraded in the wireless communication module contained in the first upgrading data packet, the wireless communication module performs self-erasing on the storage area corresponding to the address of the storage area.
When the first upgrade data packet contains: and when the file system command, the file system address of the wireless communication module and the capacity information are erased, the wireless communication module performs self-erasing on the area corresponding to the file system address.
And after the wireless communication module finishes erasing, sending erasing completion information to the micro-control processor.
And S3, the wireless communication module receives the second upgrading data packet and upgrades the second upgrading data packet in the corresponding storage area.
In the invention, the second upgrading data packet comprises a plurality of sub-data packets, and each sub-data packet comprises different upgrading data.
Step S3 specifically includes the following steps:
the micro-control processor sequentially sends a plurality of sub-data packets to the wireless communication module.
And after receiving each sub data packet, the wireless communication module sends confirmation information to the micro control processor.
And after the micro-control processor sends all the sub-data packets, the micro-control processor sends a second upgrading data packet sending finishing instruction to the wireless communication module.
And after the wireless communication module acquires all the sub data packets, upgrading the sub data packets in the corresponding storage area.
An upgrade method for an embedded wireless communication module, further comprising:
and after the wireless communication module is upgraded, sending an upgrade completion instruction to the micro-control processor.
The micro-control processor sends a starting-up instruction to the wireless communication module.
And after the wireless communication module is started, sending a starting response instruction to the micro-control processor.
FIG. 2 is a diagram of an embodiment of the present invention. The working principle of the embodiment is as follows:
after the wireless communication module is powered on, the micro controller processor sends a command word 0xB5 to the wireless communication module, wherein the command word 0xB5 is an upgrade command.
When the wireless communication module sends the command word 0x5B (i.e., the confirmation message) to the microprocessor within the set time, it is confirmed that the wireless communication module enters the upgrade mode.
The micro controller processor sends a command word 0x01 or 0x81 (i.e., a first upgrade data packet) to the wireless communication module.
And according to the address and the capacity information of the storage area corresponding to the code to be upgraded in the wireless communication module contained in the first upgrading data packet, the wireless communication module performs self-erasing on the storage area corresponding to the address of the storage area.
In this embodiment, the wireless communication module returns the command word "R" to the micro controller periodically during the self-erasing process, which indicates that the erasing is in progress.
After the wireless communication module is erased, the wireless communication module sends a command word 0x02 (i.e. the erasure completion information and the maximum data length N that the wireless communication module can receive) to the microprocessor.
The micro-controller processor sends several command words 0x03 (one command word 0x03, i.e. one sub-packet at a time) to the wireless communication module in turn. The length m of each sub-data packet is less than or equal to N.
After each sub-packet is received, the wireless communication module sends command word 0x04 (i.e., acknowledgement) to the microprocessor.
After the micro-controller processor sends all the sub-data packets, the micro-controller processor sends a command word 0x05 (i.e. a second upgrade data packet sending completion instruction) to the wireless communication module.
And after the wireless communication module acquires all the sub data packets, upgrading the sub data packets in the corresponding storage area.
After the wireless communication module is upgraded, the command word 0x06 (i.e. upgrade complete command) is sent to the microprocessor.
The microprocessor sends a command word 0x07 (i.e., a power-on command) to the wireless communication module.
After the wireless communication module is powered on, the wireless communication module sends a command word 0x08 (i.e., a power-on response command) to the microprocessor.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that these are by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.
Claims (5)
1. An upgrade method for an embedded wireless communication module, the wireless communication module being used in an embedded system, the embedded system further comprising a micro-controller processor, the upgrade method comprising:
the wireless communication module receives an upgrading command and confirms to enter an upgrading mode;
the wireless communication module receives a first upgrading data packet and automatically erases a corresponding storage area in the wireless communication module according to the requirement of the first upgrading data packet; the first upgrade data packet includes: the address and the capacity information of a storage area corresponding to a code to be upgraded in the wireless communication module, the address and the capacity information of a file system of the wireless communication module, and an instruction whether to erase the file system;
the wireless communication module receives a second upgrading data packet and upgrades the corresponding storage area;
in the step of receiving, by the wireless communication module, a first upgrade data packet and self-erasing a corresponding storage area in the wireless communication module according to a requirement of the first upgrade data packet, the method specifically includes:
the micro-control processor sends the first upgrading data packet to the wireless communication module;
according to the address and the capacity information of a storage area corresponding to a code to be upgraded in the wireless communication module, which are contained in the first upgrading data packet, the wireless communication module performs self-erasing on the storage area corresponding to the address of the storage area;
when the first upgrade data packet contains: when the command of the file system, the file system address and the capacity information of the wireless communication module are erased, the wireless communication module performs self-erasing on the area corresponding to the file system address;
and after the wireless communication module finishes erasing, sending erasing completion information to the micro-control processor.
2. The method for upgrading an embedded wireless communication module according to claim 1, wherein the step of receiving an upgrade command and confirming entry into an upgrade mode by the wireless communication module specifically comprises:
the micro-control processor sends the upgrading command to the wireless communication module;
when the wireless communication module sends confirmation information to the micro-control processor within set time, confirming that the wireless communication module enters an upgrading mode;
and when the micro control processor does not receive the confirmation information within the set time, the wireless communication module automatically enters a starting mode and ends.
3. The method for upgrading an embedded wireless communication module according to claim 1,
the second upgrade data packet comprises a plurality of sub-packets, and each sub-packet comprises different upgrade data.
4. The method for upgrading an embedded wireless communication module according to claim 3, wherein the step of receiving a second upgrade data packet at the wireless communication module and upgrading the corresponding storage area specifically comprises:
the micro-control processor sequentially sends a plurality of sub-data packets to the wireless communication module;
after the wireless communication module receives each sub data packet, sending confirmation information to the micro control processor;
after the micro-control processor sends all the sub data packets, the micro-control processor sends a second upgrading data packet sending finishing instruction to the wireless communication module;
and after the wireless communication module acquires all the sub data packets, upgrading the sub data packets in the corresponding storage area.
5. The method for upgrading an embedded wireless communication module according to claim 1, further comprising:
after the wireless communication module is upgraded, sending an upgrade completion instruction to the micro-control processor;
the micro-control processor sends a starting-up instruction to the wireless communication module;
and after the wireless communication module is started, sending a starting response instruction to the micro-control processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611258502.XA CN108270596B (en) | 2016-12-30 | 2016-12-30 | Method for upgrading embedded wireless communication module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611258502.XA CN108270596B (en) | 2016-12-30 | 2016-12-30 | Method for upgrading embedded wireless communication module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108270596A CN108270596A (en) | 2018-07-10 |
CN108270596B true CN108270596B (en) | 2021-03-19 |
Family
ID=62754620
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611258502.XA Active CN108270596B (en) | 2016-12-30 | 2016-12-30 | Method for upgrading embedded wireless communication module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108270596B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114095954B (en) * | 2021-10-09 | 2024-02-06 | 福建新大陆通信科技股份有限公司 | UART-based wireless communication module upgrading method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101425018B (en) * | 2008-12-05 | 2011-11-23 | 深圳创维数字技术股份有限公司 | Embedded firmware upgrading method and device based on sectional form |
CN101814034A (en) * | 2009-02-19 | 2010-08-25 | 雷凌科技股份有限公司 | Wireless access device with firmware updating function and method thereof |
CN102196411A (en) * | 2010-03-01 | 2011-09-21 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication terminal and communication software upgrading method |
CN102722408B (en) * | 2011-03-29 | 2015-06-03 | 摩比天线技术(深圳)有限公司 | Method and apparatus for communication equipment software update |
CN103512149B (en) * | 2012-06-27 | 2016-04-06 | 珠海格力电器股份有限公司 | A kind of control device, method for updating program and air-conditioning |
CN103942080B (en) * | 2014-05-16 | 2016-08-24 | 国网山东省电力公司青岛供电公司 | Electronic device information transmission method |
CN106095480B (en) * | 2016-05-31 | 2019-09-17 | 青岛海信宽带多媒体技术有限公司 | A kind of method and device of optical module firmware upgrading |
-
2016
- 2016-12-30 CN CN201611258502.XA patent/CN108270596B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108270596A (en) | 2018-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101420431B (en) | FOTA server, terminal and software version processing method and system therefor | |
KR101729106B1 (en) | Mobile device | |
US7562360B2 (en) | Method and system for firmware downloads | |
US7007116B2 (en) | Electronic apparatus and startup control method of storage device | |
CN104199706A (en) | Firmware upgrade method and device for eMMC | |
CN106210102A (en) | The method and device of radio upgrade handle firmware based on bluetooth BLE | |
CN103970553A (en) | Control method for function upgrading of household appliance product | |
CN107454129A (en) | Firmware upgrade method, device and system | |
CN106850241A (en) | A kind of vehicle-mounted OBD terminals and its remote upgrade method | |
CN101662838B (en) | Device, method and USB data card for realizing internet surfing without drive | |
CN105135599A (en) | Air conditioner firmware upgrading device and method | |
KR20110094047A (en) | Electronic device and electronic device system | |
CN102222010A (en) | Edition upgrading method of mobile terminal and implement system thereof | |
CN104407881A (en) | Active RFID (radio frequency identification) firmware remote upgrading method | |
CN104704479A (en) | Methods and apparatus for reducing power consumption within embedded systems | |
CN102711095B (en) | A kind of method of the node in wireless sensor network being carried out to radio upgrade | |
CN103761129A (en) | Method of implementing SDIO (secure digital input/output) interface drive in Boot loader layer | |
CN102004657A (en) | Electronic equipment and updating method thereof | |
CN108270596B (en) | Method for upgrading embedded wireless communication module | |
CN201204030Y (en) | Apparatus for updating LCD EDID | |
CN101882110A (en) | Method for downloading data and terminal equipment | |
CN104639317A (en) | System and method for key update of smart card based on app (Application) module | |
CN101917395A (en) | General upgrading method, device and system | |
JP2004070910A (en) | Mobile terminal device using cellular phone as peripheral device | |
CN104823174B (en) | The method and system of USB3.0 compatible equipment enumerated again |
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 |