CN114253560A - Wireless programming method, device, chip and computer-readable storage medium - Google Patents
Wireless programming method, device, chip and computer-readable storage medium Download PDFInfo
- Publication number
- CN114253560A CN114253560A CN202111428946.4A CN202111428946A CN114253560A CN 114253560 A CN114253560 A CN 114253560A CN 202111428946 A CN202111428946 A CN 202111428946A CN 114253560 A CN114253560 A CN 114253560A
- Authority
- CN
- China
- Prior art keywords
- burning
- wireless
- wireless communication
- attribute
- chip
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/30—Connection release
- H04W76/34—Selective release of ongoing connections
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application provides a wireless burning method, a wireless burning device, a chip and a computer readable storage medium, and relates to the field of chips. The wireless burning chip establishes wireless communication with burning equipment under the condition that the wireless communication mark is detected, receives an attribute modification instruction and verifies whether the wireless communication attribute is a preset attribute, stores wireless communication parameters when the wireless communication attribute is the preset attribute, disconnects the wireless communication with the burning equipment if a modification finishing instruction is received within a preset time threshold, reestablishes the wireless communication with the burning equipment after the wireless communication parameters are updated, and receives the burning instruction for burning. The wireless burning chip is subjected to wireless burning, so that the risk of acquiring chip data through the burning interface is reduced, and the unique wireless channel can be established between the burning equipment and the wireless burning chip by modifying the parameters of wireless communication, so that the safety of chip data burning is ensured.
Description
Technical Field
The application relates to the field of chips, in particular to a wireless burning method, a device, a chip and a computer readable storage medium.
Background
A Micro Control Unit (MCU) chip, also called a single-chip microcomputer, is a computer that appropriately reduces the frequency and specification of a central processing Unit and integrates peripheral interfaces such as a memory and a counter on a single chip to form a chip level.
At present, in the production stage, the writing operation of the firmware data of the MCU chip is completed through a burning interface integrated with the MCU chip, the MCU chip is in wired connection with a burner or an emulator through the burning interface, then the burner or the emulator is connected to computer equipment, and the firmware data is written into a firmware storage space in the MCU chip from the computer equipment for storage.
Due to the existence of the chip burning interface, if the chip is directly contacted by a user, the risk of cracking, illegally copying and stealing the chip through the burning interface is increased, and in some high-security industries, a firmware program often comprises important data, and once the data is illegally used, loss and bad influence are caused. Therefore, how to reduce the risk of reading data and improve the security of the firmware burning process becomes a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In order to overcome the above defects in the prior art, the present application provides a wireless burning method, device, chip and computer readable storage medium.
In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:
in a first aspect, an embodiment of the present application provides a wireless burning method, which is applied to a wireless burning chip, where the wireless burning chip is in communication connection with burning equipment, and the method includes:
receiving a wireless communication mark and establishing wireless communication with the burning equipment;
receiving an attribute modification instruction, and verifying whether the wireless communication attribute is a preset attribute, wherein the attribute modification instruction comprises a wireless communication parameter and a wireless communication attribute;
saving the wireless communication parameters under the condition that the wireless communication attribute is a preset attribute;
if the modification ending instruction is received within the preset time threshold, the wireless communication with the burning equipment is disconnected;
clearing all data in the user program storage space;
updating the wireless communication parameters and reestablishing wireless communication with the burning equipment;
and receiving a burning command and burning.
Further, the method further comprises:
and under the condition that the wireless communication parameters are not the preset attributes, discarding the wireless communication parameters and sending attribute error information to the burning equipment.
Further, the method further comprises:
and if the modification ending instruction is not received within the preset time threshold, disconnecting the recording equipment and sending prompt information to the wireless recording chip.
Further, the step of receiving the burning command and burning includes:
receiving a burning command and entering a burning state;
receiving file data and dividing the file data into one or more packet data;
checking the correctness of the data packet data;
sending success information to the burning equipment under the condition of successful verification;
if a burning end instruction is received, integrating the data packet data into file data and carrying out integrity check;
and if the verification is successful, burning the file data into the storage space of the user application program.
Further, the step of receiving the burning command and burning further includes:
recording the verification failure times under the condition of verification failure;
checking whether the checking failure times exceed a preset error threshold value;
and if the verification failure times do not exceed the preset error threshold, retransmitting the data packet data to the burning equipment.
Further, the step of receiving the burning command and burning further includes:
and if the verification failure times exceed the preset error threshold, sending burning failure information to the burning equipment.
In a second aspect, an embodiment of the present application further provides a wireless burning device, which is applied to a wireless burning chip, where the wireless burning chip includes a user program storage space, the wireless burning chip is in communication connection with a burning device, and the device includes:
the communication module is used for receiving a wireless communication mark and establishing wireless communication with the burning equipment;
the wireless communication system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving an attribute modification instruction and verifying whether a wireless communication attribute is a preset attribute, and the attribute modification instruction comprises a wireless communication parameter and a wireless communication attribute;
the storage module is used for storing the wireless communication parameters under the condition that the wireless communication attribute is a preset attribute;
the communication module is also used for disconnecting the wireless communication with the burning equipment if a modification ending instruction is received within a preset time threshold;
the clearing module is used for clearing all data in the user program storage space;
the communication module is also used for updating the wireless communication parameters and reestablishing the wireless communication with the burning equipment;
and the burning module is used for receiving the burning command and burning.
Further, the communication module is further configured to:
and under the condition that the wireless communication parameters are not the preset attributes, discarding the wireless communication parameters and sending attribute error information to the burning equipment.
In a third aspect, an embodiment of the present application further provides a wireless burning chip, including: the wireless burning method comprises a processor, a memory and a bus, wherein the memory stores program instructions executable by the processor, when the chip is burned wirelessly, the processor and the memory are communicated through the bus, and the processor executes the program instructions to execute the wireless burning method according to any one of the first aspect.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for wirelessly burning data according to any one of the first aspect is performed.
The embodiment of the application provides a wireless burning method, a device, a chip and a computer readable storage medium, in the process of wireless burning, wireless communication with burning equipment is established under the condition that a wireless communication mark is detected, an attribute modification instruction is received, whether the wireless communication attribute is a preset attribute is checked, wireless communication parameters are stored under the condition that the wireless communication attribute is the preset attribute, wireless communication with the burning equipment is disconnected under the condition that a modification finishing instruction is received within a preset time threshold, the wireless communication parameters are updated, wireless communication with the burning equipment is reestablished, and finally the burning instruction is received and burning is carried out. By wirelessly burning the wireless burning chip, the risk of acquiring chip data through the burning interface is reduced, and meanwhile, the only channel of wireless communication is established between the burning device and the wireless burning chip by modifying the parameters of the wireless communication, so that the safety of the burning process of the chip data is ensured, and the chip data is prevented from being illegally acquired.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a schematic structural diagram of a memory of a wireless burning chip according to an embodiment of the present application.
Fig. 2 shows an application scenario diagram of a wireless burning method provided by the embodiment of the present application.
Fig. 3 is a flowchart illustrating a wireless burning method according to an embodiment of the present application.
Fig. 4 shows another flowchart of the wireless burning method according to the embodiment of the present application.
Fig. 5 shows a schematic structural diagram of a wireless burning device according to an embodiment of the present application.
Fig. 6 shows a schematic structural diagram of a wireless burning chip provided in an embodiment of the present application.
Icon: 10-wireless burning chip; 20-burning equipment; 101-wireless burning chip storage space; 101A-system running program storage space; 101B-wireless transmission program storage space; 101C-user application storage space; 100-a wireless burning device; 110-a communication module; 120-a receiving module; 130-a storage module; 140-a purge module; 150-a burning module; 11-a processor; 12-a memory; 13-bus.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Other embodiments, which can be derived by one of ordinary skill in the art from the embodiments given herein without making any creative effort, are also within the scope of the present disclosure.
With the development of economy, electronic products are more and more abundant and diversified, and enter human lives more, so that various kinds of convenience are provided for human beings, and industrial production is driven.
However, during burning, important data are easily illegally obtained and utilized due to the existence of a burning interface, and once the important data are illegally obtained and utilized, great loss and bad influence are caused in some high-safety industries. Therefore, how to cancel the wired contact and protect the security of the data at the same time, so as to avoid the illegal acquisition of the important data, is a technical problem that needs to be solved by those skilled in the art at present.
In view of the foregoing technical problems, an embodiment of the present invention provides a wireless burning method, which achieves the purpose of protecting data security by establishing wireless communication between a wireless burning chip and burning equipment and emptying data in a user program storage space when modifying wireless parameters, and is described in detail below.
Referring to fig. 1, fig. 1 shows a schematic structural diagram of a wireless burning chip storage space 101 according to an embodiment of the present application. The memory of the wireless burning chip comprises a system operation program storage space 101A, a wireless transmission program storage space 101B and a user application program storage space 101C which are used for storing programs used by the chip during operation, and the power is not changed when the power is off.
Stored in the system operating program storage space 101A is a system operating program, which includes three aspects of programs: the starting and selecting operation program, the wireless parameter configuration program and the memory operation interface program are described in detail below.
Firstly, the starting and selective operation program is divided into a starting subprogram and a selective operation subprogram, wherein the starting subprogram is a loading program for configuring parameters when the chip is normally started and is also used for configuring the operation environment of the chip. The running selecting sub-program selects to execute the wireless transmission program in the wireless transmission program storage space 101B or the user application program in the user application program storage space 101C according to the flag information sent by the burning device.
Secondly, the radio parameter configuration procedure also includes three parts, which are respectively: attribute configuration subprogram, key modification and decryption subprogram and operation subprogram. The attribute configuration subroutine is used to modify the wireless communication attribute, and the wireless communication attribute is used to configure the attribute in the wireless communication process, and determine the wireless communication transmission channel, which can ensure that the user can communicate with the wireless burning chip 10 of the user without connecting to other chips. For example, the wireless communication attributes in bluetooth may be: connection interval, connection timeout duration, maximum transmission unit, connection duration, broadcast mode, etc.
And the key modification and decryption subprogram is used for modifying the key and decrypting the encrypted chip data in the transmission process of the chip data.
The operation subprogram comprises a key decryption algorithm function, an application program memory operation interface function and the like and is used for executing partial functions of the wireless parameter configuration program.
Finally, the memory operation interface program includes a read-protection mechanism interface function for performing read, erase, and data write operations on data in the user application storage space 101C.
In addition, the wireless transmission program storage space 101B stores a wireless transmission program for performing a designated operation, transmitting data, wirelessly communicating, configuring parameters of wireless transmission, and the like in the chip burning process, wherein the designated operation is performed according to an execution instruction, and the execution instruction includes: a wireless transmission parameter modification instruction, a transmission key reset or modification instruction, a firmware data attribute information instruction, a firmware data transmission start or end instruction, a firmware data packet instruction, a data write instruction of the user application program storage space 101C, and the like, which is not limited in this embodiment of the present application.
The user application storage space 101C stores the user application burned into the wireless burning chip 10 by the user, which is the program that needs to be protected most.
Referring to fig. 2, an application scenario diagram of the wireless burning method according to the embodiment of the present application is shown in fig. 2.
The burning device 20 is configured to burn the wireless burning chip 10, and is wirelessly connected to the wireless burning chip 10, and optionally, the wireless connection may be connected by Radio Frequency Identification (RFID), Bluetooth (Bluetooth), ZigBee (ZigBee), Wireless Local Area Network (WLAN), or other connection methods except the above methods, which is not limited in this embodiment of the present invention. In addition, the burning device 20 can be connected to a computer device through a data interface (e.g., a USB interface) for receiving a user application program transmitted from the computer device for burning onto the wireless burning chip 10.
The burning process of the wireless burning chip 10 by the burning device 20 is to encrypt the user application program by the preset key and send the encrypted user application program to the wireless burning chip 10 in a wireless manner. The preset key is set by the chip user according to different use conditions, and the preset key can be modified.
The wireless burning chip 10 is configured to receive the encrypted data sent by the wireless burning device 20, decrypt the encrypted data to obtain a user application program, and write the user application program into the user application program storage space 101C for storage.
Referring to fig. 3, fig. 3 is a schematic flow chart of a wireless burning method provided in an embodiment of the present application, where the wireless burning method applied to the wireless burning chip 10 in fig. 2 is further described below, and the flow chart of the wireless burning method includes the following steps:
and S110, receiving the wireless communication mark and establishing wireless communication with the burning equipment.
When the wireless burning chip 10 is powered on, a promoter program in the wireless burning chip 10 is activated firstly, the chip operating environment is configured, and whether a wireless communication mark exists or not is judged after the chip operating environment is configured, wherein the wireless communication mark represents that the wireless burning chip 10 enters a wireless transmission state and can be in wireless connection with the burning equipment 20, the wireless communication mark can be triggered by hardware, for example, a designated pin is set to be a high level or a low level, or can be triggered by software, for example, flag bit data is set by the software, and at this time, the promoter program reads the wireless communication mark stored in a designated position;
and under the condition that the wireless communication mark exists, starting the wireless transmission program in the wireless transmission program storage space 101B, and connecting the wireless transmission program with the burning device 20 to finish modifying wireless parameters or burning the user application program.
In the absence of the wireless communication flag, the user application in user application storage space 101C is executed.
And S120, receiving an attribute modification instruction, and checking whether the wireless communication attribute is a preset attribute.
And S130, saving the wireless communication parameters when the wireless communication attribute is a preset attribute.
The attribute modification instruction includes a wireless communication attribute and a wireless communication parameter, and the wireless communication attribute is described in detail in the above wireless parameter configuration procedure and is not described herein again. The wireless communication parameters are used for modifying the parameters of the wireless communication attributes, and the preset attributes are the wireless communication attributes of the wireless burning chip 10 itself.
After establishing wireless communication with the burning device 20, the wireless burning chip 10 receives the wireless communication attribute and the wireless communication parameter sent from the burning device 20, then checks whether the wireless communication parameter is a preset attribute to judge whether the wireless communication attribute received by itself exists, and when the wireless communication attribute received by itself exists in the preset attribute, stores the wireless communication parameter in a cache in a memory.
The wireless communication parameters are stored in a cache of a memory instead of being directly updated, which is determined by the wireless communication attributes themselves, because the wireless communication attributes are divided into a plurality of different attributes, such as connection interval, connection timeout duration, maximum transmission unit, and the like, if the wireless communication parameters are directly updated, the wireless communication connection needs to be reconnected because the wireless communication parameters are changed, and the user experience is affected by the reconnection when the wireless communication parameters are updated each time.
S150, if the modification ending instruction is received within the preset time threshold, the wireless communication with the burning equipment is disconnected.
The modification ending instruction represents that the wireless communication attributes needing to be modified are completely received, a time threshold is preset by a user before the wireless burning chip 10 receives the modification ending instruction, if the wireless burning chip 10 receives the modification ending instruction in the time threshold, the wireless connection with the burning equipment 20 is disconnected, and data in a user program storage space is completely removed, so that the purpose of protecting the user data is achieved.
And S170, emptying all data in the user program storage space.
When the wireless burning chip 10 receives the attribute modification instruction, the read-prevention mechanism inside the wireless burning chip 10 determines that the operation has a risk of data leakage, and the wireless burning chip 10 automatically executes the memory operation interface program in the system operation storage space to clear all the user application programs stored in the user application program storage space 101C. Even if the wireless communication parameters are modified, when the wireless connection between the wireless burning chip 10 and the burning device 20 or other devices is re-established, the user application program is deleted by the read-preventing mechanism, thereby ensuring the security of the chip data in the burning process.
In addition, when the key resetting or modifying operation is performed on the wireless burning chip 10, the read-prevention mechanism also recognizes that the operation risks data leakage, and at this time, all the user applications stored in the user application storage space 101C are also cleared.
And S180, updating the wireless communication parameters and reestablishing the wireless communication with the burning equipment.
And S190, receiving a burning command and burning.
After all the data in the storage space of the user program is emptied, the wireless burning chip 10 updates the wireless communication parameters stored in the cache to the wireless parameter configuration program, and reestablishes the wireless communication between the wireless burning chip 10 and the burning device 20 after the update is completed, so as to receive the burning command sent by the wireless burning device 20 and perform burning.
Further, in the embodiment of the present application, after step S130, the method further includes:
and S140, under the condition that the wireless communication parameters are not the preset attributes, abandoning the wireless communication parameters and sending attribute error information to the burning equipment.
When the wireless communication attribute received from the burning device 20 is not matched with the preset attribute, it is proved that the wireless burning chip 10 cannot process the received wireless communication attribute and wireless communication parameter, delete the received wireless communication parameter, and send attribute error information to the burning device to prompt that the wireless communication attribute sent by the burning device 20 is not possessed by the wireless burning chip 10.
Exemplarily, taking bluetooth transmission as an example, the burning device 20 and the wireless burning chip 10 are wirelessly connected through bluetooth, the burning device 20 sends an attribute modification instruction to the wireless burning chip 10, at this time, the wireless communication attribute in the attribute modification instruction is a connection interval, the wireless communication parameter is 10ms (millisecond), then the wireless burning chip 10 determines whether there is a connection interval in the preset attribute, if there is any in the preset attribute, the 10ms is stored in a cache in a memory, if there is no connection interval in the preset attribute, the wireless communication parameter of 10ms is deleted, an error message is sent to the burning device 20, and it is displayed that the wireless burning chip 10 cannot process the connection interval.
Further, in the embodiment of the present application, after step S150, the method further includes:
and S160, if the modification ending instruction is not received within the preset time threshold, disconnecting the wireless communication with the burning equipment and sending prompt information to the burning equipment.
And the prompt information is used for prompting that the burning equipment does not send a modification ending instruction within the preset time, if the wireless burning chip 10 does not receive the modification ending instruction within the time threshold, the connection with the burning equipment 20 is disconnected and the prompt information is sent to the burning equipment, at this moment, the wireless burning chip 10 is in a state of waiting for receiving the modification ending instruction, and only after the wireless burning chip 10 receives the modification ending instruction, the state is terminated and all data in the user program storage space is emptied.
Next, step S190 is described in detail, with reference to fig. 4 on the basis of fig. 3, as shown in fig. 4, fig. 4 shows another flow chart of the wireless burning method according to the embodiment of the present application, and step S190 includes:
s191, receiving the burning command and entering a burning state.
After receiving the burning command sent by the burning device 20, the wireless burning chip 10 enters the burning state and sends the burning state information to the burning device 20 at the same time, which indicates that the burning process has started.
S192, receiving the file data and dividing the file data into one or more data packet data;
the file data is data that the user needs to burn into the user application program storage space 101C, and includes a firmware file length, a file check code, the number of data packets, and the like. The data packet data is obtained by splitting file data and comprises firmware data, a data packet ID, a data packet length, a data packet check code and the like.
Since the amount of information contained in the file data is too large in the wireless communication process, in the process of transmitting the data frame in the wireless communication process, the whole file data cannot be transmitted to the wireless burning chip 10, so that the file data is split into one or more data packet data, and the data packet data is transmitted to the wireless burning chip 10 by the burning device 20.
And S193, checking the correctness of the data packet.
S194, sending success information to the burning equipment under the condition that the data packet data is correct;
the wireless burning chip 10 checks the data packet data sequentially sent from the burning device 20 to determine whether the data packet data is correctly received, and sends a success message to the burning device 20 if the check is successful.
And S195, integrating the data packet data into file data and carrying out integrity check if the burning ending instruction is received.
After receiving a burning end command sent by the burning device 20, the wireless burning chip 10 ends burning the chip, integrates the received data packet into file data, and then performs integrity check on the file data to determine whether a packet loss condition exists.
When the wireless burning chip 10 does not receive the burning ending instruction sent by the burning device 20, the data packet data continues to be received.
And S196, if the integrity check is successful, burning the file data into the storage space of the user application program.
After the file data is successfully verified, the file data is burned to the storage space of the user application program, so that the burning of the wireless burning chip 10 is completed.
Further, in the embodiment of the present application, after step S193, the method further includes:
recording the verification failure times under the condition of verification failure;
checking whether all the verification failure times exceed a preset error threshold value;
and if all the verification failure times do not exceed all the preset error thresholds, all the data packet data are retransmitted to all the burning equipment.
Recording the number of times of the verification failure under the condition of the verification failure, then judging the number of times of the verification failure and a preset error threshold value, if the number of times of the verification failure does not have the preset error threshold value, retransmitting the data packet data to the burning device 20,
optionally, if the verification failure times exceed the error preset threshold, the recording failure information is sent to the recording device.
When the number of verification failures exceeds the error preset threshold, the recording failure information is sent to the recording device 20 to ensure the correctness in the data transmission process.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
first, the embodiment of the application reduces the risk of acquiring chip data through a burning interface by wirelessly burning the wireless burning chip.
Secondly, the transmitted data is encrypted, so that the safety of the data in the transmission process is further ensured.
Thirdly, the embodiment of the application also enables the burning device and the wireless burning chip to establish a unique channel of wireless communication by modifying the parameters of wireless communication, thereby ensuring the safety of the chip data burning process.
Fourthly, the reading prevention mechanism for emptying the data of the user program storage space when the parameters of the wireless communication are modified avoids the risk that the chip data are illegally acquired.
The following provides a possible implementation manner of the wireless burning apparatus 100, which is used to execute each execution step and corresponding technical effect of the wireless burning method shown in the foregoing embodiments and possible implementation manners. Fig. 5 is a schematic structural diagram of a wireless burning device 100 according to an embodiment of the present application, and referring to fig. 5, the wireless burning device 100 includes: the recording apparatus includes a communication module 110, a receiving module 120, a storage module 130, a clearing module 140, and a burning module 150.
A communication module 110, configured to establish wireless communication with a burning device when the wireless communication flag is detected, so as to execute the function of step S110;
a receiving module 120, configured to receive an attribute modification instruction and check whether the wireless communication attribute is a preset attribute, where the attribute modification instruction includes a wireless communication parameter and a wireless communication attribute, so as to execute the function of step S120;
a storage module 130, configured to store the wireless communication parameters to execute the function of step S130 when the wireless communication attribute is a preset attribute;
the communication module 110 is configured to disconnect the wireless communication with the burning device to execute the function of step S140 when the modification end instruction is received within the preset time threshold;
the communication module 110 is further configured to update the wireless communication parameters and reestablish wireless communication with the burning device to execute the function of step S150;
a clearing module 140 for clearing all data in the user program storage space;
the burning module 150 is used for receiving the burning command and burning.
Optionally, the communication module 110 is further configured to, if the wireless communication parameter is not the preset attribute, discard the wireless communication parameter and send attribute error information to the burning device.
Optionally, the communication module 110 is further configured to disconnect the connection with the burning device when the modification ending instruction is not received within the preset time threshold.
Optionally, the burning module 150 is further configured to receive a burning command and enter a burning state;
receiving file data and dividing the file data into one or more packet data;
verifying the correctness of the data packet data;
sending success information to the burning equipment under the condition of successful verification;
if receiving a burning end instruction, integrating the data packet data into file data and carrying out integrity check;
and burning the file data into the storage space of the user application program under the condition of successful verification.
Optionally, the burning module 150 is further configured to record the number of times of packet verification failure in case of verification failure;
and if the verification failure times do not exceed the error preset threshold, retransmitting the data packet to the burning equipment.
Optionally, the burning module 150 is further configured to send burning failure information to the burning device if the verification failure frequency exceeds the error preset threshold.
Fig. 6 shows a schematic structural diagram of a wireless burning chip 10 provided in an embodiment of the present application, where the wireless burning chip 10 includes: a processor 11, a memory 12 and a bus 13.
The memory 12 is used for storing a program, and the processor 11 calls the program stored in the memory 12 to execute the embodiment of the wireless burning method, and the specific implementation manner and the technical effect are similar, and are not described herein again.
The processor 11 is connected to the memory 12 through the bus 13, and the memory 12 stores program codes, which, when executed by the processor 11, enable the processor 11 to perform various steps of the above-mentioned wireless burning method.
The Processor 11 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component, and may execute the wireless burning method, the steps, and the logic block diagram disclosed in the embodiment of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the wireless burning method disclosed by the embodiment of the application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
Optionally, the present application also provides a program product, such as a computer-readable storage medium, comprising a program, which when executed by the processor 11 is configured to perform the embodiments of the wireless burning method described above.
In summary, the embodiments of the present application provide a wireless burning method, a wireless burning device, a wireless burning chip, and a computer readable storage medium, in the wireless burning process, the wireless burning chip enters a wireless communication state when detecting a wireless communication flag, then establishes wireless communication with a burning device, receives an attribute modification command, the attribute modification command includes a wireless communication parameter, receives a modification completion command, disconnects wireless communication with the burning device, updates the wireless communication parameter and reestablishes wireless communication with the burning device, receives the burning command and performs burning, reduces the risk of acquiring chip data through a burning interface by performing wireless burning on the wireless burning chip, and simultaneously establishes a unique channel of wireless communication with the wireless burning chip by modifying the parameter of wireless communication, thereby ensuring the security of the burning process of the chip data, the risk that chip data is illegally acquired is avoided.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A wireless burning method is applied to a wireless burning chip which is in communication connection with burning equipment and comprises a user program storage space, and the method comprises the following steps:
receiving a wireless communication mark and establishing wireless communication with the burning equipment;
receiving an attribute modification instruction, and verifying whether the wireless communication attribute is a preset attribute, wherein the attribute modification instruction comprises a wireless communication parameter and a wireless communication attribute;
saving the wireless communication parameters under the condition that the wireless communication attribute is a preset attribute;
if the modification ending instruction is received within the preset time threshold, the wireless communication with the burning equipment is disconnected;
clearing all data in the user program storage space;
updating the wireless communication parameters and reestablishing wireless communication with the burning equipment;
and receiving a burning command and burning.
2. The wireless burning method of claim 1, further comprising:
and under the condition that the wireless communication parameters are not the preset attributes, discarding the wireless communication parameters and sending attribute error information to the burning equipment.
3. The wireless burning method of claim 1, further comprising:
and if the modification ending instruction is not received within the preset time threshold, disconnecting the wireless communication with the burning equipment and sending prompt information to the burning equipment.
4. The wireless burning method of claim 1, wherein the step of receiving the burning command and burning includes:
receiving a burning command and entering a burning state;
receiving file data and dividing the file data into one or more packet data;
checking the correctness of the data packet data;
sending success information to the burning equipment under the condition that the data packet data is correct;
if a burning end instruction is received, integrating the data packet data into file data and carrying out integrity check;
and if the integrity verification is successful, burning the file data into the storage space of the user application program.
5. The wireless burning method of claim 4, wherein the step of receiving the burning command and burning further comprises:
recording the verification failure times under the condition that the data packet data is wrong;
checking whether the checking failure times exceed a preset error threshold value;
and if the verification failure times do not exceed the preset error threshold, retransmitting the data packet data to the burning equipment.
6. The wireless burning method of claim 5, wherein the step of receiving the burning command and burning further comprises:
and if the verification failure times exceed the preset error threshold, sending burning failure information to the burning equipment.
7. A wireless burning device is applied to a wireless burning chip, the wireless burning chip comprises a user program storage space, the wireless burning chip is in communication connection with burning equipment, and the device comprises:
the communication module is used for receiving a wireless communication mark and establishing wireless communication with the burning equipment;
the wireless communication system comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving an attribute modification instruction and verifying whether a wireless communication attribute is a preset attribute, and the attribute modification instruction comprises a wireless communication parameter and a wireless communication attribute;
the storage module is used for storing the wireless communication parameters under the condition that the wireless communication attribute is a preset attribute;
the communication module is also used for disconnecting the wireless communication with the burning equipment if a modification ending instruction is received within a preset time threshold;
the clearing module is used for clearing all data in the user program storage space;
the communication module is also used for updating the wireless communication parameters and reestablishing the wireless communication with the burning equipment;
and the burning module is used for receiving the burning command and burning.
8. The wireless burning device of claim 7, wherein the communication module is further configured to:
and under the condition that the wireless communication parameters are not the preset attributes, discarding the wireless communication parameters and sending attribute error information to the burning equipment.
9. A wireless burning chip is characterized by comprising: the wireless burning method comprises a processor, a memory and a bus, wherein the memory stores program instructions executable by the processor, when the wireless burning chip is used, the processor and the memory are communicated through the bus, and the processor executes the program instructions to execute the wireless burning method according to any one of claims 1 to 6.
10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program performs the wireless burning method according to any one of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111428946.4A CN114253560A (en) | 2021-11-29 | 2021-11-29 | Wireless programming method, device, chip and computer-readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111428946.4A CN114253560A (en) | 2021-11-29 | 2021-11-29 | Wireless programming method, device, chip and computer-readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114253560A true CN114253560A (en) | 2022-03-29 |
Family
ID=80791331
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111428946.4A Pending CN114253560A (en) | 2021-11-29 | 2021-11-29 | Wireless programming method, device, chip and computer-readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114253560A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117762438A (en) * | 2024-01-12 | 2024-03-26 | 荣耀终端有限公司 | A system, method and related devices for wirelessly burning printed circuit boards |
Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1270725A (en) * | 1997-09-15 | 2000-10-18 | 诺基亚网络有限公司 | Security method for transmissios in telecommunication networks |
| CN101227209A (en) * | 2008-01-25 | 2008-07-23 | 宇龙计算机通信科技(深圳)有限公司 | Method and theftproof system of mobile terminal based on blue tooth submachine |
| CN101448265A (en) * | 2008-12-26 | 2009-06-03 | 赵黎 | Method for utilizing mobile devices to process information |
| US20120084766A1 (en) * | 2010-09-30 | 2012-04-05 | Cellco Partnership D/B/A Verizon Wireless | Method for updating an application programs on wireless terminals in a controlled manner |
| US20130166958A1 (en) * | 2011-12-21 | 2013-06-27 | Hon Hai Precision Industry Co., Ltd. | Software burning system and burning control method |
| CN105159735A (en) * | 2015-10-22 | 2015-12-16 | 宁波市江北九方和荣电气有限公司 | Control method for software burn in electronic product production |
| CN106233637A (en) * | 2014-04-21 | 2016-12-14 | Arm 有限公司 | System and method for short distance wireless data transmission |
| CN107450945A (en) * | 2017-07-13 | 2017-12-08 | 北京小鸟看看科技有限公司 | A kind of firmware update of virtual reality device |
| CN107871068A (en) * | 2017-10-27 | 2018-04-03 | 深圳怡化电脑股份有限公司 | Firmware burning method, cd-rom recorder and computer-readable recording medium |
| CN108647499A (en) * | 2018-05-16 | 2018-10-12 | 广州视源电子科技股份有限公司 | Method, device, equipment and storage medium for generating anti-copy check code |
| CN110868719A (en) * | 2018-08-27 | 2020-03-06 | 中国电信股份有限公司 | Access management system, device and method |
| CN110888653A (en) * | 2019-11-01 | 2020-03-17 | 桃芯科技(苏州)有限公司 | Control method and system for reading and writing firmware in memory, electronic equipment and chip |
| CN112114843A (en) * | 2020-07-31 | 2020-12-22 | 深圳市有方科技股份有限公司 | Program upgrading system and method |
| CN112905202A (en) * | 2021-02-07 | 2021-06-04 | 广州众诺电子技术有限公司 | Chip upgrading method, burning device and chip upgrading system |
-
2021
- 2021-11-29 CN CN202111428946.4A patent/CN114253560A/en active Pending
Patent Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1270725A (en) * | 1997-09-15 | 2000-10-18 | 诺基亚网络有限公司 | Security method for transmissios in telecommunication networks |
| CN101227209A (en) * | 2008-01-25 | 2008-07-23 | 宇龙计算机通信科技(深圳)有限公司 | Method and theftproof system of mobile terminal based on blue tooth submachine |
| CN101448265A (en) * | 2008-12-26 | 2009-06-03 | 赵黎 | Method for utilizing mobile devices to process information |
| US20120084766A1 (en) * | 2010-09-30 | 2012-04-05 | Cellco Partnership D/B/A Verizon Wireless | Method for updating an application programs on wireless terminals in a controlled manner |
| US20130166958A1 (en) * | 2011-12-21 | 2013-06-27 | Hon Hai Precision Industry Co., Ltd. | Software burning system and burning control method |
| CN106233637A (en) * | 2014-04-21 | 2016-12-14 | Arm 有限公司 | System and method for short distance wireless data transmission |
| CN105159735A (en) * | 2015-10-22 | 2015-12-16 | 宁波市江北九方和荣电气有限公司 | Control method for software burn in electronic product production |
| CN107450945A (en) * | 2017-07-13 | 2017-12-08 | 北京小鸟看看科技有限公司 | A kind of firmware update of virtual reality device |
| CN107871068A (en) * | 2017-10-27 | 2018-04-03 | 深圳怡化电脑股份有限公司 | Firmware burning method, cd-rom recorder and computer-readable recording medium |
| CN108647499A (en) * | 2018-05-16 | 2018-10-12 | 广州视源电子科技股份有限公司 | Method, device, equipment and storage medium for generating anti-copy check code |
| CN110868719A (en) * | 2018-08-27 | 2020-03-06 | 中国电信股份有限公司 | Access management system, device and method |
| CN110888653A (en) * | 2019-11-01 | 2020-03-17 | 桃芯科技(苏州)有限公司 | Control method and system for reading and writing firmware in memory, electronic equipment and chip |
| CN112114843A (en) * | 2020-07-31 | 2020-12-22 | 深圳市有方科技股份有限公司 | Program upgrading system and method |
| CN112905202A (en) * | 2021-02-07 | 2021-06-04 | 广州众诺电子技术有限公司 | Chip upgrading method, burning device and chip upgrading system |
Non-Patent Citations (1)
| Title |
|---|
| 陆俊伟;龚元明;周建鹏;李文静;: "基于Wi-Fi远程通信的无线烧录器的设计与实现", 计算机测量与控制, no. 11, 25 November 2016 (2016-11-25) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117762438A (en) * | 2024-01-12 | 2024-03-26 | 荣耀终端有限公司 | A system, method and related devices for wirelessly burning printed circuit boards |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110134418A (en) | Vehicle upgrade method and device, storage medium and terminal based on space download technology | |
| KR101600460B1 (en) | System for electric control unit upgrade with security functions and method thereof | |
| CN107179909A (en) | Method for upgrading software, device and computer-readable recording medium | |
| CN112698851B (en) | Program update system, program transfer device, and program transfer method | |
| US9323646B2 (en) | Hardware security module with means to selectively activate or inhibit debugging and corresponding debugging method | |
| CN109857437A (en) | A kind of upgrade method and system of bluetooth equipment | |
| CN107450945A (en) | A kind of firmware update of virtual reality device | |
| CN110086885A (en) | The upgrade package method for down loading and device of space download technology, storage medium and terminal | |
| KR102244465B1 (en) | Electronic assembly comprising a disabling module | |
| JP2006065857A (en) | Method and apparatus for forcibly downloading program of mobile communication terminal | |
| CN103559435A (en) | Method and device for controlling debugging ports of terminal equipment | |
| CN114443106A (en) | Firmware upgrade method of car key and car key | |
| CN110286932A (en) | Program downloading method and device | |
| CN111786820A (en) | Firmware updating method and device and network equipment | |
| CN114253560A (en) | Wireless programming method, device, chip and computer-readable storage medium | |
| JP3590338B2 (en) | Portable electronic devices | |
| US20090184799A1 (en) | Information storage medium and information storage medium processing apparatus | |
| CN111813597A (en) | Air conditioner | |
| CN107797810A (en) | Update the method and apparatus of the program in car key | |
| JP2002070636A (en) | On-vehicle electronic controller, data rewrite system, data rewrite method, and storage medium | |
| JP2007316800A (en) | In-vehicle program rewrite control device | |
| JP2012212415A (en) | Wireless base station device | |
| CN111984291B (en) | Data burning method, device, terminal and storage medium | |
| JP5286814B2 (en) | Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program | |
| CN108882217B (en) | Method for writing Bluetooth MAC addresses in batches and Bluetooth equipment thereof |
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 |