CN113094058A - Point-to-point wireless protocol control method applied to wireless burning - Google Patents

Point-to-point wireless protocol control method applied to wireless burning Download PDF

Info

Publication number
CN113094058A
CN113094058A CN202110388674.3A CN202110388674A CN113094058A CN 113094058 A CN113094058 A CN 113094058A CN 202110388674 A CN202110388674 A CN 202110388674A CN 113094058 A CN113094058 A CN 113094058A
Authority
CN
China
Prior art keywords
burning
burner
burned
wireless
peer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110388674.3A
Other languages
Chinese (zh)
Other versions
CN113094058B (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.)
Panchip Microelectronics Co ltd
Original Assignee
Panchip Microelectronics 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 Panchip Microelectronics Co ltd filed Critical Panchip Microelectronics Co ltd
Priority to CN202110388674.3A priority Critical patent/CN113094058B/en
Publication of CN113094058A publication Critical patent/CN113094058A/en
Application granted granted Critical
Publication of CN113094058B publication Critical patent/CN113094058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation

Abstract

The invention discloses a point-to-point wireless protocol control method applied to wireless burning, and relates to the technical field of burning. Before burning, a burner prepares a transmitting table, a system to be burned prepares a receiving table, the sizes of the two tables are consistent, the positions and the sizes of the table items are also consistent, and the size of the table does not exceed one Payload of Radio Frequency (RF); the burner sends a burning data packet according to the sending table and modifies the sending table; receiving the burning data packet by the system to be burned, and synchronously modifying the receiving table; in the burning process, the system to be burned can send the own receiving table to the burner to replace the sending table, so that the burner knows which data packets need to be retransmitted. The invention has strong portability, reliability and stability, can operate in a low-end MCU plus RF system, and realizes the wireless burning function.

Description

Point-to-point wireless protocol control method applied to wireless burning
Technical Field
The invention relates to the technical field of burning, in particular to a point-to-point wireless protocol control method applied to wireless burning.
Background
At present, the method for realizing wireless burning is mainly carried out based on the existing protocols such as Bluetooth, WiFi and the like, the requirements of the protocols on MCU and RF are high, and the resources in the MCU and RF at the low end are insufficient and difficult to realize; another approach is to use no protocol, which is not reliable for burning.
Therefore, those skilled in the art are dedicated to develop a point-to-point wireless protocol control method for wireless burning, which has strong portability, reliability and stability, and can be operated in low-end MCU and RF wireless burning.
Disclosure of Invention
In view of the above-mentioned defects in the prior art, the technical problem to be solved by the present invention is to provide a wireless protocol control method for wireless burning, which is highly portable, reliable and stable, and can operate in a low-end MCU and RF.
In order to achieve the above object, the present invention provides a point-to-point wireless protocol control method applied to wireless burning, comprising the following steps:
step one, a burner sends a request burning package to indicate that burning is required;
step two, when the system to be burned detects the burning request packet, entering a burning preparation state, and simultaneously replying a burning permission packet to the burner;
step three, the burner receives the burning permission package and enters a burning state;
step four, the burner sends an erasing information packet to the system to be burned;
fifthly, the system to be burned receives the erasing information packet to execute erasing operation, and simultaneously replies an erasing state packet;
step six, the burner is ready to burn when judging that the erasing is finished;
before burning, the burner and the system to be burned respectively prepare a recording table, the sizes of the two tables are consistent, the positions and the sizes of the table entries are also consistent, and the size of the table does not exceed one Payload of the RF; the table in the burner is a sending table, and the table of the system to be burned is a receiving table; the table entry comprises a BREC area represented by bit and a packet number PIDX of a data packet represented by the first bit of the BREC area;
step eight, the burner sends a burning data packet according to the sending table: searching the BREC area of the sending table from front to back, sequentially sending data packets with bit being 0 position and marking as 1;
step nine, the system to be burned receives the burning data packet of the burner, the state of the received packet is searched in a BREC area of the receiving table, if the state is 0, the data is written into a ROM, meanwhile, a 1 is marked, and if the state is verified, the verification information of the receiving table is updated; if 1 indicates a duplicate packet, ignore;
step ten, once the head of the BREC area of the record table has all 1 bytes, discarding the head bytes, moving the rest forward, supplementing 0 at the tail, and correspondingly changing PIDX;
step eleven, in the burning process, the burner can initiate a recording list synchronization request to the system to be burned, the system to be burned receives a data packet with the request and then sends the receiving list to the burner, the burner should immediately enter a receiving state after initiating the request to wait for the system to be burned to return to the receiving list and replace the sending list, and then the sending is carried out from the beginning of the sending list;
step twelve, the burner and the system to be burned can judge whether the burning is finished from the content of the receiving table; and the burner sends a completion data packet to the system to be burned when the burning is completed.
Further, the information sent by the burner to the system to be burned comprises the address and size of the burning program.
And further, the burner displays progress information according to the erasing state packet.
Further, the record table includes check information.
Further, 0 in the transmission table indicates non-transmission, and 1 indicates transmission.
Further, 0 in the receiving table indicates not received, and 1 indicates received.
0 means not transmitted/received, 1 means transmitted/received; in practice, the reverse can also be done: 1 means not transmitted/received, 0 means transmitted/received;
further, the burner reserves a bit in the transmitted data packet or uses different IDs to inform the system to be burned whether to synchronize the recording list.
Further, the burner initiates a recording list synchronization request to the system to be burned when sending the recording list BREC area tail.
Further, the burner sets a timeout decision after initiating a request for synchronizing the log table.
Further, the system to be burned carries error information when sending the receiving table to the burner, and the burner judges whether to continue burning and prompts a user.
Compared with the prior art, the invention has the following obvious substantive characteristics and obvious advantages:
1. the protocol control process has low requirement on the system and can be used for a low-cost system;
2. for some development which can be tested only by being installed, wireless burning is used, and repeated and troublesome operation of an assembling and disassembling machine is avoided;
3. for products which are already produced and installed, the upgrading program can be updated by avoiding disassembling the machine.
The conception, the specific structure and the technical effects of the present invention will be further described with reference to the accompanying drawings to fully understand the objects, the features and the effects of the present invention.
Drawings
FIG. 1 is a flowchart illustrating the control of the writer-side operation according to a preferred embodiment of the present invention;
FIG. 2 is a control flow of the system to be burned according to a preferred embodiment of the present invention.
Detailed Description
The technical contents of the preferred embodiments of the present invention will be more clearly and easily understood by referring to the drawings attached to the specification. The present invention may be embodied in many different forms of embodiments and the scope of the invention is not limited to the embodiments set forth herein.
In the drawings, structurally identical elements are represented by like reference numerals, and structurally or functionally similar elements are represented by like reference numerals throughout the several views. The size and thickness of each component shown in the drawings are arbitrarily illustrated, and the present invention is not limited to the size and thickness of each component. The thickness of the components may be exaggerated where appropriate in the figures to improve clarity.
The invention provides a wireless protocol control method for wireless burning, which has strong portability, reliability and stability and can operate in a low-end MCU and RF.
The control protocol is realized on an 8-bit 8051 singlechip (assuming that RF Payload is 31 bytes):
1. design data package and record table
A. Requesting a burning package: the signal sent by the burner first
SL Bytes (30-SL)Bytes 1Byte
Number of system to be burned Invalidation ID as a request burning packet
B. Allowing the burning package: the data packet which is fed back to the burner when the burning request packet is received and the serial number is correct by the burning system
SL Bytes (30-SL)Bytes 1Byte
Number of system to be burned Invalidation Allowed burning package
C. Erasing information packet
Figure BDA0003015618650000031
D. Erase status packet
2 Bytes 28Bytes 1Byte
Current erase address Invalidation ID-erased state packet
E. Burning data packet/burning data packet with synchronous request
Figure BDA0003015618650000032
F. Synchronous data packet
30 Bytes 1Byte
Receiving watch content (see H) Synchronous data packet
G. Complete the data packet
30 Bytes 1Byte
Invalidation Completion packet ID
H. Recording meter (transmitting meter/receiving meter)
Figure BDA0003015618650000041
2. Burning protocol control flow
The whole burning process needs two parts of a burner and a system to be burned to participate;
MCU (or CPU) and RF connected with the MCU and controllable RF are needed in a system to be burned; the MCU should support IAP (in Application program) function, the ROM is divided into boot loader and Application, when starting, the boot loader program is firstly operated, and then the boot loader jumps to the Application for operation; in the burning process, the BootLoader controls the RF to receive control commands and data, performs operations such as erasing and writing on an Application area, and feeds back the state to the burner through the RF;
the recorder also needs MCU and RF connected with the MCU and controllable; the MCU controls the RF to send a control command and data to the system to be burned and simultaneously receives state information fed back by the system to be burned;
the key point of the invention is the wireless communication protocol and the control method between the burner and the system to be burned, so that the burning process is stable and reliable; FIG. 1 is a flow of work control at the burner end; fig. 2 is a process flow of controlling the operation of the system to be burned. The burning process is as follows:
1. the burner sends a specific data signal (burning request packet) indicating that a certain system to be burned is to be burned;
2. entering a BootLoader program when a system to be burned is powered on/reset, detecting whether a specific burning signal (a specific data packet) exists or not, entering Application if the specific burning signal does not exist, entering a burning preparation state if the specific burning signal exists, and simultaneously carrying out corresponding data recovery (allowing the burning packet) on a burner;
3. the recorder receives the reply data of the system to be recorded and enters a recording state;
4. the burner sends an erasing command (erasing information packet) to a system to be burned, and simultaneously sends information such as address and size of a burning program;
5. when the burning system receives the erasing command, the erasing operation is executed, other useful information is stored, and meanwhile, the erasing state information (erasing state packet) of the burner is replied; the burner can display the progress information according to the progress information;
6. the recorder prompts an error when judging that the system to be recorded makes an error, and prepares for recording when judging that the erasing is finished;
7. before burning, a burner and a system to be burned respectively need to prepare a recording table, the sizes of the two tables should be consistent, the positions and the sizes of the table items should also be consistent, and the size of the table should not exceed one Payload of RF; the table in the burner is called as a sending table, and the table of the system to be burned is called as a receiving table; the table entry should at least include a packet recording area BREC (0 in the sending table indicates not sent, 1 indicates sent; 0 in the receiving table indicates not received, 1 indicates received) indicated by bit and a packet number PIDX (address also available) of the data packet represented by the first bit in the recording area, and check information can be optionally added;
8. the burner sends a burning data packet according to the sending table: searching a BREC area of a sending table from front to back, sequentially sending data packets with bit being 0, and marking the data packets as 1;
9. the system to be burned receives the burning data packet of the burner, searches the state of the received packet in a BREC area of a receiving table, writes data into a ROM if the state is 0, marks 1 at the same time, and updates a data check value BSUM of the receiving table; if 1 indicates a duplicate packet, ignore;
10. the BREC area of the recording list is limited, so in the burning process, once the head of the BREC area of the recording list has bytes (or words and the like) bit which are all 1, the head bytes can be discarded, the rest parts move forwards, the tail part is supplemented with 0, and the PIDX is changed;
11. in the burning process, packet loss is possible, so that the lost packet needs to be retransmitted; the system to be burned sends the own receiving table to the burner to replace the sending table, so that the burner can know which packets need to be retransmitted; in order to save bandwidth, the burner can reserve a bit in the transmitted data packet to inform the system to be burned whether to synchronize the recording list; for example, the burner can initiate a recording list synchronization request to the system to be burned when sending the recording list BREC area tail, the system to be burned receives a data packet with the request and then sends a receiving list (synchronization data packet) of the burner to the burner, the burner should immediately enter a receiving state after initiating the request to wait for the receiving list returned by the system to be burned and replace a sending list of the burner with the receiving list, and then sending is carried out from the beginning of the sending list;
12. the burner and the system to be burned can judge whether the burning is finished or not from the content of the receiving table; the burner should also send a complete data packet to the system to be burned when the burning is complete;
13. in the burning process, the burner sets timeout after initiating a request of a synchronous recording list, and the whole burning process is determined to be timeout after multiple times of timeout;
14. when the system to be burned sends the receiving list to the burner, the burner can carry error information through different IDs, and the burner judges whether burning needs to be continued and how to prompt the user according to the information.
The foregoing detailed description of the preferred embodiments of the invention has been presented. It should be understood that numerous modifications and variations could be devised by those skilled in the art in light of the present teachings without departing from the inventive concepts. Therefore, the technical solutions available to those skilled in the art through logic analysis, reasoning and limited experiments based on the prior art according to the concept of the present invention should be within the scope of protection defined by the claims.

Claims (10)

1. A point-to-point wireless protocol control method applied to wireless burning is characterized by comprising the following steps:
step one, a burner sends a request burning package to indicate that burning is required;
step two, when the system to be burned detects the burning request packet, entering a burning preparation state, and simultaneously replying a burning permission packet to the burner;
step three, the burner receives the burning permission package and enters a burning state;
step four, the burner sends an erasing information packet to the system to be burned;
fifthly, the system to be burned receives the erasing information packet to execute erasing operation, and simultaneously replies an erasing state packet;
step six, the burner is ready to burn when judging that the erasing is finished;
before burning, the burner and the system to be burned respectively prepare a recording table, the sizes of the two tables are consistent, the positions and the sizes of the table entries are also consistent, and the size of the table does not exceed one Payload of the RF; the table in the burner is a sending table, and the table of the system to be burned is a receiving table; the table entry comprises a BREC area represented by bit and a packet number PIDX of a data packet represented by the first bit of the BREC area;
step eight, the burner sends a burning data packet according to the sending table: using a bit to represent a data packet, searching the BREC area of the sending table from front to back, and sequentially sending the data packet with the bit being 0 position and marking as 1;
step nine, the system to be burned receives the burning data packet of the burner, searches the state of the received packet in a BREC area of the receiving table, and writes data into a ROM and marks 1 if the state is 0; if 1 indicates a duplicate packet, ignore;
step ten, once the head of the BREC area of the record table has all 1 bytes, discarding the head bytes, moving the rest forward, supplementing 0 at the tail, and correspondingly changing PIDX;
step eleven, in the burning process, the burner can initiate a recording list synchronization request to the system to be burned, the system to be burned receives a data packet with the request and then sends the receiving list to the burner, the burner should immediately enter a receiving state after initiating the request to wait for the system to be burned to return to the receiving list and replace the sending list, and then the sending is carried out from the beginning of the sending list;
and step twelve, the burner sends a completion data packet to the system to be burned when the burning is completed.
2. The peer-to-peer wireless protocol control method for wireless burning as claimed in claim 1, wherein the information sent by the burner to the system to be burned in the step four includes the address and size of the burning program.
3. The peer-to-peer wireless protocol control method for wireless burning as claimed in claim 1, wherein the burner displays progress information according to the erase status packet in step five.
4. The peer-to-peer wireless protocol control method for wireless burning as claimed in claim 1, wherein the record table includes verification information.
5. The peer-to-peer wireless protocol control method for wireless burning as claimed in claim 1, wherein 0 in the transmission table indicates not transmitted and 1 indicates transmitted.
6. The method as claimed in claim 1, wherein 0 in the receiving table indicates no reception and 1 in the receiving table indicates reception.
7. The peer-to-peer wireless protocol control method for wireless burning as claimed in claim 1, wherein the burner reserves a bit in the transmitted data packet to inform the system to be burned whether to synchronize the recording table.
8. The peer-to-peer wireless protocol control method for wireless burning as claimed in claim 1, wherein the burner initiates a recording list synchronization request to the system to be burned when sending to the tail of the BREC area of the sending list.
9. The peer-to-peer protocol control method for wireless burning as claimed in claim 1, wherein the burner sets a timeout decision after initiating the request for the synchronous log table.
10. The peer-to-peer wireless protocol control method for wireless burning as claimed in claim 1, wherein the system to be burned carries error information when sending the receiving table to the burner, and the burner determines whether to continue burning and prompts the user.
CN202110388674.3A 2021-04-12 2021-04-12 Point-to-point wireless protocol control method applied to wireless burning Active CN113094058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110388674.3A CN113094058B (en) 2021-04-12 2021-04-12 Point-to-point wireless protocol control method applied to wireless burning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110388674.3A CN113094058B (en) 2021-04-12 2021-04-12 Point-to-point wireless protocol control method applied to wireless burning

Publications (2)

Publication Number Publication Date
CN113094058A true CN113094058A (en) 2021-07-09
CN113094058B CN113094058B (en) 2023-10-31

Family

ID=76676423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110388674.3A Active CN113094058B (en) 2021-04-12 2021-04-12 Point-to-point wireless protocol control method applied to wireless burning

Country Status (1)

Country Link
CN (1) CN113094058B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572149A (en) * 2016-10-13 2017-04-19 芯海科技(深圳)股份有限公司 Writer remote control device and method based on P2P network technology
US20170290120A1 (en) * 2014-10-22 2017-10-05 Semisilicon Technology Corp. Light emitting diode lamp receiving contactless burning signal and system for the same and burning address method for the same
CN107608692A (en) * 2017-09-01 2018-01-19 江苏钜芯集成电路技术股份有限公司 Wireless burning device
CN110609690A (en) * 2019-08-30 2019-12-24 珠海泰芯半导体有限公司 Burning acceleration method of burner

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170290120A1 (en) * 2014-10-22 2017-10-05 Semisilicon Technology Corp. Light emitting diode lamp receiving contactless burning signal and system for the same and burning address method for the same
CN106572149A (en) * 2016-10-13 2017-04-19 芯海科技(深圳)股份有限公司 Writer remote control device and method based on P2P network technology
CN107608692A (en) * 2017-09-01 2018-01-19 江苏钜芯集成电路技术股份有限公司 Wireless burning device
CN110609690A (en) * 2019-08-30 2019-12-24 珠海泰芯半导体有限公司 Burning acceleration method of burner

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙璐;姜久春;尹航;: "基于MC9S12系列单片机的程序下载器设计", 微计算机信息, no. 11, pages 64 - 66 *

Also Published As

Publication number Publication date
CN113094058B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN108882214B (en) Bluetooth remote control rapid pairing method
EP2400714A1 (en) Method and system for multi-stage device filtering in a bluetooth low energy device
WO2002028022A2 (en) Method and system for name discovery in a wireless network
CN104954502A (en) MAC address updating method in production line and system thereof
US20020032748A1 (en) Communication apparatus detecting method
CN111324567B (en) Method for realizing serial port communication and single chip microcomputer system
CN104660639B (en) Cloud terminal upgrade processing method and device
US20040078449A1 (en) Master communication device, slave communication device, communication control apparatus, communication system, and communication control program
US8121488B2 (en) Infrared communication apparatus and infrared communication method
CN113094058A (en) Point-to-point wireless protocol control method applied to wireless burning
CN110519817B (en) Design method of wireless Mesh network protocol for underground coal mine communication
CN112217610B (en) Data processing method and device, consumer machine, terminal and readable storage medium
KR20180076277A (en) Communication device, communication method, and program stored in storage medium
CN103187991A (en) Data transmission system and data transmission method
CN110166922A (en) Testing communication system and method based on bluetooth headset
US10477370B2 (en) System and method for low latency wireless connection
CN111327393A (en) Image detector parameter transmission method based on serial communication interface
US11648808B2 (en) Tire pressure sensor and burning device and burning method thereof
CN110187891B (en) Program development method and system for multi-core programmable controller
CN114007266A (en) Link establishment method, device, base station and storage medium
JP2017130777A (en) Wireless communication device and wireless communication method
CN102378322A (en) Wireless access node and power consumption-saving method thereof
KR100325773B1 (en) Bluetooth device name confirming method in bluetooth system
CN114666014B (en) Self-adaptive frame structure data link transmission system and method
US11039389B2 (en) Information processing apparatus, control method, information processing system, and non-transitory computer-readable storage medium with executable control program stored thereon

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