CN112312374B - Device and method for upgrading firmware of single chip microcomputer based on NFC - Google Patents

Device and method for upgrading firmware of single chip microcomputer based on NFC Download PDF

Info

Publication number
CN112312374B
CN112312374B CN202011229410.5A CN202011229410A CN112312374B CN 112312374 B CN112312374 B CN 112312374B CN 202011229410 A CN202011229410 A CN 202011229410A CN 112312374 B CN112312374 B CN 112312374B
Authority
CN
China
Prior art keywords
nfc
data
chip microcomputer
single chip
firmware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011229410.5A
Other languages
Chinese (zh)
Other versions
CN112312374A (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.)
State Grid Jiangsu Electric Power Co ltd Marketing Service Center
State Grid Corp of China SGCC
Holley Technology Co Ltd
Electric Power Research Institute of State Grid Jiangsu Electric Power Co Ltd
Original Assignee
State Grid Jiangsu Electric Power Co ltd Marketing Service Center
State Grid Corp of China SGCC
Holley Technology Co Ltd
Electric Power Research Institute of State Grid Jiangsu Electric Power 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 State Grid Jiangsu Electric Power Co ltd Marketing Service Center, State Grid Corp of China SGCC, Holley Technology Co Ltd, Electric Power Research Institute of State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Jiangsu Electric Power Co ltd Marketing Service Center
Priority to CN202011229410.5A priority Critical patent/CN112312374B/en
Publication of CN112312374A publication Critical patent/CN112312374A/en
Application granted granted Critical
Publication of CN112312374B publication Critical patent/CN112312374B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a device and a method for upgrading singlechip firmware based on NFC, wherein the device comprises a singlechip, an NFC terminal and an NFC tag; the NFC tag receives data sent by an NFC terminal; the single chip microcomputer reads data in a cache region inside the NFC label according to a first-in first-out principle, converts the read data into single chip microcomputer target executable file data and sequentially stores the single chip microcomputer target executable file data in a single chip microcomputer data region; when the data capacity stored in the singlechip data area reaches the capacity of the current vacant storage block in the code area, copying the data in the singlechip data area into the storage block until the upgrading of the singlechip firmware is completed. The invention can realize the upgrading and updating of the firmware of the singlechip without disassembling the shell, has high data transmission rate, stability and reliability, is not interfered by the outside and has high upgrading success rate.

Description

Device and method for upgrading firmware of single chip microcomputer based on NFC
Technical Field
The invention particularly relates to a device and a method for upgrading singlechip firmware based on NFC.
Background
The upgrading scheme of the intelligent gas meter singlechip firmware in the prior art mainly comprises two modes. The first mode is as follows: the programming interface is connected with the programmer to program the firmware on the singlechip, and the protection seal is required to be detached by external force damage in such a way, so that the requirement of the protection seal cannot be met; when the shell is detached by external force, the structure can be damaged to lose the explosion-proof performance, and the explosion-proof type is damaged, so that the requirement on the explosion-proof performance cannot be met; after the firmware is upgraded, the shell is installed again, the sealing performance of the whole machine is reduced, and the requirement of the shell protection level cannot be met. The second way is: utilize infrared terminal connection infrared communication unit to singlechip upgrading firmware, or set up parameter and maintenance, need open infrared through the corresponding screen of button selection display, increase maintainer operating time, reduce efficiency, but operability experience simultaneously feels poor. The infrared is modulated by 38K carrier waves, the transmission rate is low, the interference of external light sources such as the sun and the like is easy to occur, the transmission data loss and error codes are generated, the success rate of data packet transmission is low, the firmware upgrading time is prolonged, and even the upgrading fails. And the infrared communication power consumption current mA level can not meet the requirement of low power consumption for requiring the service life of a lithium battery for 10 years. In addition, infrared communication adopts a serial port mode, the single chip microcomputer receives and transmits data packet bytes one by one, and the infrared terminal sends a next data packet only after the current data packet is processed by the single chip microcomputer, so that the efficiency is low.
Disclosure of Invention
Aiming at the problems, the invention provides a device and a method for upgrading a singlechip firmware based on NFC, which can realize firmware upgrading and updating without disassembling a shell, have high data transmission rate, are stable and reliable, are not interfered by the outside and have high upgrading success rate.
In order to achieve the technical purpose and achieve the technical effects, the invention is realized by the following technical scheme:
in a first aspect, the invention provides a device for upgrading firmware of a singlechip based on NFC, which comprises the singlechip, an NFC terminal and an NFC tag;
the NFC tag receives data sent by an NFC terminal;
the single chip microcomputer reads data in a cache region inside the NFC label according to a first-in first-out principle, converts the read data into single chip microcomputer target executable file data and sequentially stores the single chip microcomputer target executable file data in a single chip microcomputer data region;
when the data capacity stored in the data area of the single chip microcomputer reaches the capacity of the current vacant storage block in the code area, copying the data in the data area of the single chip microcomputer into the storage block until the firmware upgrade of the single chip microcomputer is completed.
Optionally, when the single chip microcomputer reads data in the buffer area inside the NFC tag, the feedback information is sent to the NFC tag, and the NFC tag sends the feedback information to the NFC terminal to notify the NFC terminal that the data reception is completed.
Optionally, when the NFC terminal does not send data to the NFC tag, the single chip microcomputer is in a sleep state; when the NFC terminal sends data to the NFC label, the single chip microcomputer is awakened by a rising edge trigger signal sent by the NFC label, and the received data are processed.
Optionally, an antenna is disposed in the NFC terminal, and the antenna generates an electromagnetic field to provide energy for the NFC tag.
Optionally, the NFC terminal and the NFC tag communicate with each other by using a wireless communication technology based on a 13.56MHz carrier.
In a second aspect, the present invention provides a method for upgrading a firmware of a single chip microcomputer based on NFC, including:
receiving data sent by an NFC terminal by utilizing an NFC label;
reading data in a cache region inside the NFC label by using the singlechip according to a first-in first-out principle, converting the read data into singlechip target executable file data and sequentially storing the data into a singlechip data region;
when the data capacity stored in the singlechip data area reaches the capacity of the current vacant storage block in the singlechip code area, copying the data in the singlechip data area into the storage block until the upgrading of the singlechip firmware is completed.
Optionally, the method further comprises: when the single chip microcomputer reads data in the internal cache region of the NFC label, feedback information is sent to the NFC label, the NFC label is sent to the NFC terminal, and the NFC terminal is informed that data receiving is finished.
Optionally, the method further comprises: when the NFC terminal does not send data to the NFC tag, the single chip microcomputer is in a dormant state; when the NFC terminal sends data to the NFC label, the single chip microcomputer is awakened by a rising edge trigger signal sent by the NFC label, and the received data are processed.
Optionally, the method further comprises: an antenna in the NFC terminal is used to generate an electromagnetic field to energize the NFC tag.
Optionally, the NFC terminal and the NFC tag communicate with each other by using a wireless communication technology based on a 13.56MHz carrier.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a device and a method for upgrading singlechip firmware based on NFC, wherein the upgrading singlechip firmware adopts a 3-level structure, the storage, the analysis and the programming are carried out simultaneously, data flow is in first-out, an NFC terminal only takes charge of continuously sending a plurality of data packets without waiting for the current data packet to be processed by a singlechip, the singlechip is waited for replying a plurality of data packet receiving completion marks, then a plurality of data packets are sent in next batch, a code region and a data region are independently separated, the firmware upgrading only updates the code region, metering, freezing data and the like are not deleted, the data packet receiving and sending efficiency is greatly improved, the high-speed, high-reliability and high-efficiency requirements of field maintenance are met, the firmware upgrading can be realized without disassembling a shell, and the requirements of protection seal, shell protection grade, explosion-proof performance and the like are met.
Furthermore, the NFC tag is in a passive tag mode, is low in power consumption, can receive and store energy sent by the NFC terminal, prolongs the service life of a battery, and has a good application prospect.
Drawings
In order that the present disclosure may be more readily and clearly understood, reference is now made to the following detailed description of the present disclosure taken in conjunction with the accompanying drawings, in which:
fig. 1 is a schematic block diagram of an apparatus for upgrading firmware of a single chip microcomputer based on NFC according to an embodiment of the present invention;
FIG. 2 is a diagram of a FIFO data stream according to an embodiment of the present invention;
fig. 3 is a flowchart of upgrading firmware of a single chip according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the scope of the invention.
The application of the principles of the present invention will now be described in detail with reference to the accompanying drawings.
Example 1
The embodiment of the invention provides a device for upgrading a single chip microcomputer firmware based on NFC, which can be applied to an NB-IOT gas meter, and specifically comprises a single chip microcomputer, an NFC terminal and an NFC tag;
the single chip microcomputer comprises a single chip microcomputer data area and a code area, and the code area comprises a plurality of storage blocks which are sequentially arranged;
the NFC tag receives data sent by the NFC terminal, stores the received data in an internal cache region of the NFC tag, and informs the single chip microcomputer of reading the data; meanwhile, the single chip microcomputer reads data in a cache region inside the NFC tag according to the first-in first-out principle, converts the read data into single chip microcomputer target executable file data and then sequentially stores the single chip microcomputer target executable file data in a single chip microcomputer data region; when the data capacity stored in the singlechip data area reaches the capacity of the current vacant storage block in the code area, copying the data in the singlechip data area into the storage block until the upgrading of the singlechip firmware is completed.
As shown in fig. 2, the data processing process of the apparatus in the embodiment of the present invention specifically includes:
the NFC terminal sends data to the NFC tag;
the data is stored in an internal buffer area of the NFC label in a first-in first-out mode, and a first byte position is stored at the beginning; the current storage byte number is a position pointer of data storage received by an internal buffer area of the current NFC label, when next data is received, the current storage byte number is added with 1 and moves downwards, the current storage byte number reaches the position of the last buffer area, and the current storage byte number is circulated back to the first byte position; the current zone fetch byte number is a position pointer of the current fetch data, when the next data is fetched, the current fetch byte number is added with 1, the next data is moved downwards, the current fetch byte number reaches the position of the last buffer zone, and the next data is circulated back to the first byte position; and the current storage byte number is equal to the current extraction byte number, and the data processing of the internal cache region of the NFC label is completed.
The singlechip converts the read data in the internal cache area of the NFC label into singlechip target executable file data, and sequentially stores the data in a singlechip data area; the current data byte number is a position pointer of the data stored in the data area of the current singlechip, and when the next data is received, the current data byte number is added with 1 and moves downwards;
the current block number is a position pointer of a current code area storage block, when the storage of the internal data area of the single chip microcomputer reaches the block capacity, the storage block 1 is programmed, the current block number is increased by 1, and the current block number moves downwards. When next data is received, the number of the current data byte is added with 1 and moves downwards, the data in the data area of the single chip microcomputer reaches the block capacity, and then the data in the data area of the single chip microcomputer is copied into the storage block (namely the current block number is programmed) until the firmware upgrade of the single chip microcomputer is completed.
In summary, in the embodiment of the present invention, the upgrade of the firmware of the single chip microcomputer adopts a 3-level structure, and the storage, the analysis and the programming are performed simultaneously, so that the data stream is first in and first out. The NFC terminal only takes charge of continuously sending a plurality of data packets without waiting for the single chip microcomputer to process the current data packet, and sends a plurality of data packets in batch after waiting for the single chip microcomputer to reply a plurality of data packet receiving completion marks. And the code area and the data area are independently separated, and the firmware upgrading only updates the code area without deleting metering, freezing data and the like.
In a specific implementation manner of the embodiment of the present invention, when the single chip microcomputer reads data in the internal buffer area of the NFC tag, feedback information of "data reception completion" is sent to the NFC tag, and the NFC tag sends the feedback information to the NFC terminal in a radio frequency manner.
In a specific implementation manner of the embodiment of the invention, when the NFC terminal does not send data to the NFC tag, the single chip microcomputer is in a sleep state; when the NFC terminal sends data to the NFC tag, the single chip microcomputer is awakened by a rising edge trigger signal sent by the NFC tag, and processes the received data.
In a specific implementation manner of the embodiment of the present invention, the antenna is disposed in the NFC terminal, and the antenna generates an electromagnetic field to provide energy for the NFC tag, so that the service life of the battery is prolonged, and the NFC terminal has a good application prospect.
In a specific implementation manner of the embodiment of the invention, the NFC terminal and the NFC tag communicate with each other by using a wireless communication technology based on 13.56MHz carrier waves, so that the NFC terminal and the single chip microcomputer communicate with each other in an NFC tag transparent transmission manner, and the requirement for high-speed communication is met.
As shown in fig. 3, a schematic diagram of a work flow of a device for upgrading a firmware of a single chip microcomputer based on NFC in specific implementation of the embodiment of the present invention is shown:
1. receiving a mode switching command (namely switching from an APP (application) layer to a BOOT), judging whether to enter a BOOT mode or not through a command identifier, wherein two branches exist;
2. branching one: if the data packet enters the BOOT mode, waiting for an NFC internal cache region to receive the data packet;
3. and a branch II: if not, discarding the command and ending the process;
4. reading a data packet in an NFC internal cache area, and analyzing a data format;
5. judging whether the data is upgrading data or not through the data packet identifier, wherein the data has two branches;
6. branching one: if the received data is an upgrading data packet, storing the upgrading data packet into a singlechip data area, and waiting for receiving the next data packet;
7. and branch two: if the received data is not the upgrading data packet, discarding the data packet and waiting for receiving the next data packet;
8. when the storage of the internal data area of the single chip microcomputer reaches the block capacity, the corresponding block is programmed, namely, the data in the internal data area of the single chip microcomputer is copied to the corresponding block;
9. judging whether programming is finished or not through a firmware upgrading finishing identifier, wherein the firmware upgrading finishing identifier comprises two branches;
10. branching one: if programming is finished, restarting to execute the new firmware;
12. and branch two: and if the programming is not finished, waiting for the NFC buffer area to receive the data packet.
In an actual application process, as shown in fig. 1, when the device in the embodiment of the present invention is applied to an NB-IOT gas meter, the NB-IOT gas meter includes a power management system, an energy recovery unit, an NFC tag, an NFC terminal, a single chip microcomputer, a memory, a display screen, a key unit, a buzzer, a metering unit, a hall sensor, a valve control unit, a valve motor, a wireless NB-IOT communication module, and a security encryption unit (security chip). The single chip microcomputer is respectively connected with the memory, the display screen, the key unit, the buzzer, the metering unit, the valve control unit, the wireless NB-IOT communication module and the security encryption unit; the energy recovery unit is connected with the NFC tag; the Hall sensor is connected with the metering unit, and the valve motor is connected with the valve control unit; the wireless NB-IOT communication module is connected with the master station system.
Example 2
The embodiment of the invention provides a method for upgrading singlechip firmware based on NFC, which comprises the following steps:
receiving data sent by an NFC terminal by using an NFC label, and storing the received data in an internal cache region; meanwhile, the single chip microcomputer is used for reading data in a cache region inside the NFC label according to the first-in first-out principle, converting the read data into single chip microcomputer target executable file data and then sequentially storing the single chip microcomputer target executable file data into a single chip microcomputer data region; when the data capacity stored in the data area of the single chip microcomputer reaches the capacity of the current vacant storage block in the code area of the single chip microcomputer, the data in the data area of the single chip microcomputer is copied into the storage block until the firmware upgrade of the single chip microcomputer is completed.
As shown in fig. 2, the specific implementation process of the method is as follows:
the NFC terminal sends data to the NFC tag;
the data is stored in an internal buffer area of the NFC label in a first-in first-out mode, and a first byte position exists at first; the current storage byte number is a position pointer of data storage received by an internal buffer area of the current NFC label, when next data is received, the current storage byte number is added with 1 and moves downwards, the current storage byte number reaches the position of the last buffer area, and the current storage byte number is circulated back to the position of the first byte; the current zone fetch byte number is a position pointer of the current fetch data, when the next data is fetched, the current fetch byte number is added with 1, the next data is moved downwards, the current fetch byte number reaches the position of the last buffer zone, and the next data is circulated back to the first byte position; and the current storage byte number is equal to the current extraction byte number, and the data processing of the internal cache region of the NFC label is completed.
The singlechip converts the read data of the internal cache area of the NFC label into singlechip target executable file data, and the singlechip target executable file data are sequentially stored in a singlechip data area; the current data byte number is a position pointer of the data stored in the data area of the current singlechip, and when the next data is received, the current data byte number is added with 1 and moves downwards; the current block number is a position pointer of a current code area storage block, when the storage of the internal data area of the single chip microcomputer reaches the block capacity, the storage block 1 is programmed, the current block number is increased by 1, and the current block number moves downwards. When next data is received, the number of the current data byte is added with 1 and moves downwards, the data in the data area of the single chip microcomputer reaches the block capacity, and then the data in the data area of the single chip microcomputer is copied into the storage block (namely the current block number is programmed) until the firmware upgrade of the single chip microcomputer is completed.
In a specific implementation manner of the embodiment of the present invention, the method further includes: when the single chip microcomputer reads data in the internal buffer area of the NFC label, feedback information of 'data receiving completion' is sent to the NFC label, and the feedback information is sent to the NFC terminal by the NFC label.
In a specific implementation manner of the embodiment of the present invention, when the NFC terminal does not send data to the NFC tag, the single chip microcomputer is in a sleep state; when the NFC terminal sends data to the NFC label, the single chip microcomputer is awakened by a rising edge trigger signal sent by the NFC label, and the received data are processed.
In a specific implementation manner of the embodiment of the present invention, the antenna is disposed in the NFC terminal, and the antenna generates an electromagnetic field to provide energy for the NFC tag, so that the service life of the battery is prolonged, and the NFC terminal has a good application prospect.
In a specific implementation manner of the embodiment of the invention, the NFC terminal and the NFC tag communicate with each other by using a wireless communication technology based on 13.56MHz carrier waves, so that the NFC terminal and the single chip microcomputer communicate with each other in an NFC tag transparent transmission manner, and the requirement of high-speed communication is met.
The rest of the process was the same as in example 1.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (10)

1. The utility model provides a device based on NFC upgrading singlechip firmware which characterized in that includes: the NFC terminal comprises a singlechip, an NFC terminal and an NFC tag;
the NFC tag receives data sent by an NFC terminal;
the single chip microcomputer reads data in a buffer area inside the NFC label according to a first-in first-out principle and converts the read data into single chip microcomputer target executable file data;
when the data capacity stored in the data area of the single chip microcomputer reaches the capacity of the current vacant storage block in the code area, copying the data in the data area of the single chip microcomputer into the storage block until the firmware upgrade of the single chip microcomputer is completed.
2. The device for upgrading the firmware of the single chip microcomputer based on the NFC according to claim 1, wherein: when the single chip microcomputer reads data in the internal cache region of the NFC label, feedback information is sent to the NFC label, the NFC label is sent to the NFC terminal, and the NFC terminal is informed that data receiving is finished.
3. The device for upgrading the firmware of the single chip microcomputer based on the NFC according to claim 1, wherein: when the NFC terminal does not send data to the NFC tag, the single chip microcomputer is in a dormant state; when the NFC terminal sends data to the NFC label, the single chip microcomputer is awakened by a rising edge trigger signal sent by the NFC label, and the received data are processed.
4. The device for upgrading the firmware of the single chip microcomputer based on the NFC according to claim 1, wherein: and an antenna is arranged in the NFC terminal, and generates an electromagnetic field to provide energy for the NFC tag.
5. The device for upgrading the firmware of the single chip microcomputer based on the NFC according to claim 1, wherein: and the NFC terminal and the NFC tag are communicated by adopting a wireless communication technology based on 13.56MHz carrier waves.
6. A method for upgrading a singlechip firmware based on NFC is characterized by comprising the following steps:
receiving data sent by an NFC terminal by utilizing an NFC label;
reading data in a cache region inside the NFC label by using the single chip microcomputer according to a first-in first-out principle, converting the read data into single chip microcomputer target executable file data, and sequentially storing the single chip microcomputer target executable file data in a single chip microcomputer data region;
when the data capacity stored in the data area of the single chip microcomputer reaches the capacity of the current vacant storage block in the code area of the single chip microcomputer, the data in the data area of the single chip microcomputer is copied into the storage block until the firmware upgrade of the single chip microcomputer is completed.
7. The method for upgrading the firmware of the single chip microcomputer based on the NFC according to claim 6, wherein the method further comprises: when the single chip microcomputer reads data in the internal cache region of the NFC label, feedback information is sent to the NFC label, the NFC label is sent to the NFC terminal, and the NFC terminal is informed that data receiving is finished.
8. The method for upgrading the firmware of the single chip microcomputer based on the NFC according to claim 6, wherein the method further comprises: when the NFC terminal does not send data to the NFC tag, the single chip microcomputer is in a dormant state; when the NFC terminal sends data to the NFC label, the single chip microcomputer is awakened by a rising edge trigger signal sent by the NFC label, and the received data are processed.
9. The method for upgrading the firmware of the single chip microcomputer based on the NFC according to claim 6, wherein the method further comprises: an antenna in the NFC terminal is used to generate an electromagnetic field to energize the NFC tag.
10. The method for upgrading the firmware of the single chip microcomputer based on the NFC according to claim 6, wherein the NFC terminal and the NFC tag are communicated with each other by adopting a wireless communication technology based on 13.56MHz carrier waves.
CN202011229410.5A 2020-11-06 2020-11-06 Device and method for upgrading firmware of single chip microcomputer based on NFC Active CN112312374B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011229410.5A CN112312374B (en) 2020-11-06 2020-11-06 Device and method for upgrading firmware of single chip microcomputer based on NFC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011229410.5A CN112312374B (en) 2020-11-06 2020-11-06 Device and method for upgrading firmware of single chip microcomputer based on NFC

Publications (2)

Publication Number Publication Date
CN112312374A CN112312374A (en) 2021-02-02
CN112312374B true CN112312374B (en) 2022-09-06

Family

ID=74325141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011229410.5A Active CN112312374B (en) 2020-11-06 2020-11-06 Device and method for upgrading firmware of single chip microcomputer based on NFC

Country Status (1)

Country Link
CN (1) CN112312374B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775588A (en) * 2016-11-30 2017-05-31 合肥科迈捷智能传感技术有限公司 A kind of firmware upgrade method based on principal and subordinate processor framework
CN108958752A (en) * 2018-07-09 2018-12-07 迈普通信技术股份有限公司 Single-chip microcontroller online upgrade system and method
CN109240721A (en) * 2018-08-24 2019-01-18 江苏恒宝智能系统技术有限公司 A kind of method of MCU online upgrading
WO2019052057A1 (en) * 2017-09-18 2019-03-21 上海斐讯数据通信技术有限公司 Method and system for upgrading firmware of router
CN111258600A (en) * 2019-11-21 2020-06-09 华立科技股份有限公司 Mirror image type embedded program firmware upgrading method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10069962B1 (en) * 2017-03-17 2018-09-04 American Megatrends, Inc. Near field communication (NFC) enhanced computing systems
CN108804118B (en) * 2018-04-25 2023-06-09 顺丰科技有限公司 Firmware upgrading method, device and storage medium
CN110704077A (en) * 2018-07-10 2020-01-17 中兴通讯股份有限公司 Firmware remote upgrading method and device, terminal, mobile device and storage medium
CN109982308A (en) * 2019-03-07 2019-07-05 广东汇泰龙科技有限公司 It is a kind of to communicate the method and its system for carrying out door lock firmware upgrade by NFC
CN109979205A (en) * 2019-04-22 2019-07-05 西安中星测控有限公司 A kind of intelligent wireless parking stall terminal and its application method based on NFC communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775588A (en) * 2016-11-30 2017-05-31 合肥科迈捷智能传感技术有限公司 A kind of firmware upgrade method based on principal and subordinate processor framework
WO2019052057A1 (en) * 2017-09-18 2019-03-21 上海斐讯数据通信技术有限公司 Method and system for upgrading firmware of router
CN108958752A (en) * 2018-07-09 2018-12-07 迈普通信技术股份有限公司 Single-chip microcontroller online upgrade system and method
CN109240721A (en) * 2018-08-24 2019-01-18 江苏恒宝智能系统技术有限公司 A kind of method of MCU online upgrading
CN111258600A (en) * 2019-11-21 2020-06-09 华立科技股份有限公司 Mirror image type embedded program firmware upgrading method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于LoRa技术的网络终端无线程序升级系统研究;高祥凯等;《单片机与嵌入式系统应用》;20171001(第10期);全文 *

Also Published As

Publication number Publication date
CN112312374A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN103530146B (en) Low-power-consumption embedded equipment remote radio upgrade method
CN101557583B (en) Remote-updating and version-switching method of repeater equipment embedded software
CN105718287B (en) A kind of program streaming execution method of intelligent terminal
CN106610840A (en) FOTA (Firmware Over-The-Air) upgrade method and system
CA2571330A1 (en) A meter device
CN104331312A (en) Firmware updating method and embedded device
CN103677869A (en) Wireless sensor network node remote code updating system and method
CN109189434A (en) A kind of online upgrading method of electric energy meter
CN102404366A (en) Method for achieving long-distance wireless file-upgrading system
CN110018901A (en) Method for recovering internal storage, device, computer equipment and computer readable storage medium
CN106713384A (en) Vehicle-mounted terminal peripheral program remote updating method and system
US20130225074A1 (en) Non-volatile memory for nfc router
CN101673220B (en) Method for improving work parallelism of dual-interface SIM card
CN106445578A (en) Remote hardware upgrading method and apparatus, and wireless temperature and humidity monitor
CN112312374B (en) Device and method for upgrading firmware of single chip microcomputer based on NFC
CN103619091A (en) Emergency lighting centralized control system based on LINUX
CN204595832U (en) A kind of SCM Based wireless programming equipment
CN109992375A (en) Information processing method, device, computer equipment and computer readable storage medium
CN103533534B (en) Firmware wireless upgrading method for DECT (Digital Enhanced Cordless Telecommunications) mobile phone
CN111045703B (en) Battery management unit software upgrading method and system
CN101276403B (en) ID identification apparatus and identification method as well as using method
CN108271116B (en) Real-time communication system and method for intelligent wearable device
CN104376488A (en) Low-power-consumption electronic commodity price label and control method thereof
CN102035607B (en) Method and device for sending calibration data
CN103425510B (en) A kind of method and device of interactive upgrading

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