CN111209021A - Batch automatic burning method and system - Google Patents
Batch automatic burning method and system Download PDFInfo
- Publication number
- CN111209021A CN111209021A CN202010004053.6A CN202010004053A CN111209021A CN 111209021 A CN111209021 A CN 111209021A CN 202010004053 A CN202010004053 A CN 202010004053A CN 111209021 A CN111209021 A CN 111209021A
- Authority
- CN
- China
- Prior art keywords
- burning
- mode
- communication
- selecting
- tool
- 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; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0002—Serial port, e.g. RS232C
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a batch automatic burning method, which comprises the following steps: selecting a burning mode; selecting a burning interface according to a burning mode; and selecting a communication mode according to the burning interface. Compared with the prior art, the method has the following beneficial effects: for the production mode that the original factory burning tool is necessarily used, for example, the original factory provides a communication protocol, the method of calling the original factory command line burning tool is adopted, and the related functions of the original factory burning tool are integrated into the burning system provided by the application. The display layer is provided with a uniform operation interface and an information prompt mode, so that production burning tools of different manufacturers are integrated on the same software, and due to the integration of the software layer, the learning cost caused by different use methods among multiple platforms is reduced.
Description
Technical Field
The application relates to the field of burning upgrading, in particular to a batch automatic burning method.
Background
Currently, the firmware burning method is: the burning tool provided by the chip original factory is used for burning. Because the burning method provided by the chip original factory is highly bound with the factory, different types of chips need to be burned by using different burning tools. Meanwhile, due to different manufacturers, the using methods of the provided burning tools are different, and the software quality and the stability cannot be consistent. If the types of the produced products are single, the problems are not caused. Once the variety of chips used is large, the switching and adaptation of different burning tools provided by the original factory become a huge burden.
Disclosure of Invention
The main objective of the present application is to provide a batch automatic burning method, which includes:
selecting a burning mode;
selecting a burning interface according to a burning mode;
and selecting a communication mode according to the burning interface.
Optionally, the burning method includes: original factory burning, TCP communication burning and serial port communication burning.
Optionally, when the burning mode is original factory burning, the burning is performed through serial port communication burning or through external hardware connection with a burning tool; calling a mode of starting the burning tool through a command line for integration; the upgrading progress and the prompt information are consistent with the burning tool.
Optionally, when multiple types of burning tools exist, the same different types of burning tool operation methods are abstracted, integrated and operated according to different operation steps, and multiple threads are used for calling multiple processes to perform batch burning.
Optionally, when the burning mode is TCP communication burning, serial port packet burning is performed according to an upgrade protocol which is predetermined in advance with the firmware, and corresponding display is performed according to an upgrade result returned by the firmware, the upgrade is distinguished by the serial ports, and the number of burning upgrades is consistent with the number of access serial ports.
Optionally, when the burning mode is serial port communication burning, TCP communication is adopted to send data packets, and internet access communication or wireless communication is used.
According to an aspect of the present application, there is provided a batch automatic burning system, including:
the selection module is used for selecting a burning mode, selecting a burning interface according to the burning mode and selecting a communication mode according to the burning interface;
the display module is used for displaying the burning progress; and
and the communication module is used for communicating with the firmware.
The application also discloses a computer device, which comprises a memory, a processor and a computer program stored in the memory and capable of being executed by the processor, wherein the processor realizes the method of any one of the above items when executing the computer program.
The application also discloses a computer-readable storage medium, a non-volatile readable storage medium, having stored therein a computer program which, when executed by a processor, implements the method of any of the above.
The present application also discloses a computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method of any of the above.
Compared with the prior art, the method has the following beneficial effects:
for the production mode that the original factory burning tool is necessarily used, for example, the original factory provides a communication protocol, the method of calling the original factory command line burning tool is adopted, and the related functions of the original factory burning tool are integrated into the burning system provided by the application. The display layer is provided with a uniform operation interface and an information prompt mode, so that production burning tools of different manufacturers are integrated on the same software, and due to the integration of the software layer, the learning cost caused by different use methods among multiple platforms is reduced. For a serial port and TCP burning upgrading mode adopting a self-owned protocol, the same class structure is designed for design, so that the difficulty in writing final software is greatly reduced. Good compatibility can be achieved for individual special upgrading categories. And meanwhile, the burning link and the testing link are stripped, so that the production and testing time is not limited by the long-time occupation of burning upgrading.
Besides the improvement of the existing firmware burning upgrading mode, the method and the device solve the problem of slow upgrading speed in a batch multi-path mode. In essence, the speed caused by the size problem of the firmware file and the communication is slow and cannot be solved, but the average burning time is greatly improved due to the application of multi-path batch upgrading. Meanwhile, the burning process of automatic detection preparation and automatic upgrading is adopted, so that the operation time of an operator is further saved. In the existing production test, because the programming upgrading is slow, the single-station test can be split, one-station programming and one-station authorization can be realized on the premise of not changing the production result by using the method. The selection setting of the upgrading path number can be configured according to the actual situation of the testing speed, so that the matching is balanced, the existing production resources are fully utilized, and the waste of the wasted power consumption is reduced to the minimum. In addition, the software developed by the design application can also be used in the development process, so that multiple purposes can be achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
1-3 are schematic flow diagrams of a batch automatic burning method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a system according to one embodiment of the present application;
FIG. 5 is a schematic diagram of a computer device according to one embodiment of the present application; and
FIG. 6 is a schematic diagram of a computer-readable storage medium according to one embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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 only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1 to 3, an embodiment of the present application provides a batch automatic recording method, including:
s2: selecting a burning mode;
s4: selecting a burning interface according to a burning mode;
s6: and selecting a communication mode according to the burning interface.
In an embodiment of the present application, the burning method includes: original factory burning, TCP communication burning and serial port communication burning.
In one embodiment of the application, when the burning mode is original factory burning, the burning is performed through serial port communication or through external hardware connection with a burning tool; calling a mode of starting the burning tool through a command line for integration; the upgrading progress and the prompt information are consistent with the burning tool.
In an embodiment of the application, when a plurality of burning tools exist, the same different kinds of burning tool operation methods are extracted, integrated and operated according to different operation steps, and multithreading is used for calling a multi-path process to perform batch burning.
In an embodiment of the application, when the burning mode is TCP communication burning, serial port package burning is performed according to an upgrade protocol which is predetermined in advance with firmware, corresponding display is performed according to an upgrade result returned by the firmware, upgrading is distinguished by serial ports, and the number of burning upgrading is consistent with the number of access serial ports.
In an embodiment of the application, when the burning mode is serial port communication burning, TCP communication is adopted to send data packets, and internet access communication or wireless communication is used.
The application also provides a batch automatic burning system, which comprises:
the selection module is used for selecting a burning mode, selecting a burning interface according to the burning mode and selecting a communication mode according to the burning interface;
the display module is used for displaying the burning progress; and
and the communication module is used for communicating with the firmware.
Referring to fig. 4, the software design display using the method of the present application is divided into three parts, namely, software setting, batch burning progress display, and upgrading operation.
The software is set to select information such as the type of a burning product, the source of a platform firmware, a burning mode, burning parameters and the like. Belonging to the necessary preparation work before the start of burning. The system automatically selects the following contents such as a burning communication mode, a burning application, burning progress display information and the like according to the setting. In this arrangement, the firmware source may select local firmware or cloud-pulled firmware as desired. The burning mode can be selected according to different product types and has serial port burning, TCP burning and the burning mode provided by original factory tools. The parameters include baud rate and the like.
The upgrade operation section includes upgrade settings of specific devices. The content mainly comprises serial port number setting of serial port burning, IP address and port number setting of TCP communication, setting of the maximum number of channels for batch upgrading and the like. Meanwhile, the system also needs to include the settings of automatic upgrade and single upgrade to adapt to different upgrade requirements.
The batch burning progress display part has the functions of displaying the progress, the prompt information, the upgrading result and the like of the upgrading process. Besides, the recording of burning success, statistics of failure times and related logs are included.
Upgrade categories are used for distinguishing, and the upgrade categories are divided into three burning categories:
the existing burning method of the original factory. The specific communication mode is different according to different adopted modes of the original chip factories. The common modes include serial port communication burning and burning through external hardware unique to the original factory. For the situation, the method and the system integrate through calling the original factory tool by the command line. The upgrading progress and the prompt information are consistent with the original factory tool. But the tool operations of different manufacturers are abstracted and integrated according to different operation steps, so that the use method of the software is uniform. Meanwhile, multiple threads are used for calling multiple processes to perform batch burning, so that burning time is remarkably saved.
TCP communication burning mode. And carrying out serial port package burning according to an upgrade protocol which is predetermined in advance with the firmware, and simultaneously carrying out corresponding display according to an upgrade result returned by the firmware. The upgrade is distinguished by serial ports, and the number of the burning upgrade is consistent with the number of the access serial ports.
And (4) a serial port communication burning mode. The same data protocol can be adopted as the serial port upgrading, and TCP communication is adopted for data packet sending, but the upgrading speed and the upgrading stability are poorer than those of the serial port upgrading. The application is applicable to network port communication or wireless communication, makes up the limitation of a serial port communication mode under partial conditions, and is applicable to a link that the whole machine or the serial port cannot be accessed for upgrading.
In addition to the above mentioned serial port upgrading and TCP upgrading modes, the recording upgrading work can be carried out through UDP communication. Although the speed of UDP communication is faster than that of TCP communication, there is a certain probability of communication packet loss due to the characteristics of the communication protocol itself. Therefore, in this way, an effective packet loss retransmission mechanism needs to be added to prevent frequent communication failures.
In addition, under the TCP communication and the UDP communication, an encryption algorithm can be introduced for encryption burning in consideration of data security.
Referring to fig. 5, the present application further provides a computer device including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method of any one of the above methods when executing the computer program.
Referring to fig. 6, a computer-readable storage medium, a non-volatile readable storage medium, having stored therein a computer program which, when executed by a processor, implements any of the methods described above.
A computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method of any of the above.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A batch automatic burning method is characterized by comprising the following steps:
selecting a burning mode;
selecting a burning interface according to a burning mode;
and selecting a communication mode according to the burning interface.
2. The batch automatic burning method of claim 1, wherein the burning method comprises: original factory burning, TCP communication burning and serial port communication burning.
3. The batch automatic burning method of claim 2, wherein when the burning mode is original factory burning, the burning is performed by serial port communication burning or by connecting a burning tool through external hardware; calling a mode of starting the burning tool through a command line for integration; the upgrading progress and the prompt information are consistent with the burning tool.
4. The batch automatic burning method of claim 3, wherein when there are a plurality of burning tools, the same different kinds of burning tool operation methods are abstracted, integrated and operated according to different operation steps, and multithread calling is used to perform batch burning by multi-path processes.
5. The batch automatic burning method of claim 4, wherein when the burning mode is TCP communication burning, serial port package burning is performed according to an upgrade protocol prearranged with firmware, and corresponding display is performed according to an upgrade result returned by the firmware, upgrading is distinguished by serial ports, and the number of burning upgrades is consistent with the number of accessed serial ports.
6. The batch automatic burning method of claim 5, wherein when the burning mode is serial port communication burning, TCP communication is adopted for data packet transmission, and network port communication or wireless communication is used.
7. A batch automatic burning system is characterized by comprising:
the selection module is used for selecting a burning mode, selecting a burning interface according to the burning mode and selecting a communication mode according to the burning interface;
the display module is used for displaying the burning progress; and
and the communication module is used for communicating with the firmware.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the method of any one of claims 1-6 when executing the computer program.
9. A computer-readable storage medium, a non-transitory readable storage medium, having stored therein a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any one of claims 1-6.
10. A computer program product comprising computer readable code that, when executed by a computer device, causes the computer device to perform the method of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010004053.6A CN111209021A (en) | 2020-01-03 | 2020-01-03 | Batch automatic burning method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010004053.6A CN111209021A (en) | 2020-01-03 | 2020-01-03 | Batch automatic burning method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111209021A true CN111209021A (en) | 2020-05-29 |
Family
ID=70789552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010004053.6A Pending CN111209021A (en) | 2020-01-03 | 2020-01-03 | Batch automatic burning method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111209021A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346746A (en) * | 2020-10-30 | 2021-02-09 | 中国船舶重工集团公司第七0七研究所 | TMS32C6748 program burning method based on serial port high reliability |
CN116149688A (en) * | 2023-04-18 | 2023-05-23 | 深圳市启明智显科技有限公司 | Burning method and burning system applied to factory |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838612A (en) * | 2014-03-31 | 2014-06-04 | 广州视睿电子科技有限公司 | Device, method and system for burning firmware in factory |
CN103997683A (en) * | 2014-05-06 | 2014-08-20 | 四川长虹电器股份有限公司 | System for using set-top-box platform to realize customizable Flash CD-ROM recorder and method thereof |
CN105573743A (en) * | 2015-11-19 | 2016-05-11 | 深圳市芯海科技有限公司 | Chip burning system and method and electronic equipment |
CN107888978A (en) * | 2017-10-26 | 2018-04-06 | 深圳创维-Rgb电子有限公司 | KEY codes method for burn-recording, device and computer-readable recording medium |
CN107957873A (en) * | 2017-11-23 | 2018-04-24 | 郑州云海信息技术有限公司 | A kind of VR chips to multipath server carry out the method and system of Firmare burnings |
CN109086055A (en) * | 2018-07-13 | 2018-12-25 | 武汉精测电子集团股份有限公司 | A kind of multi-channel parallel industry cd-rom recorder |
CN109918331A (en) * | 2019-04-24 | 2019-06-21 | 中山雅特生科技有限公司 | A kind of burning IC chip control system and its multithreading asynchronous controlling method |
-
2020
- 2020-01-03 CN CN202010004053.6A patent/CN111209021A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838612A (en) * | 2014-03-31 | 2014-06-04 | 广州视睿电子科技有限公司 | Device, method and system for burning firmware in factory |
CN103997683A (en) * | 2014-05-06 | 2014-08-20 | 四川长虹电器股份有限公司 | System for using set-top-box platform to realize customizable Flash CD-ROM recorder and method thereof |
CN105573743A (en) * | 2015-11-19 | 2016-05-11 | 深圳市芯海科技有限公司 | Chip burning system and method and electronic equipment |
CN107888978A (en) * | 2017-10-26 | 2018-04-06 | 深圳创维-Rgb电子有限公司 | KEY codes method for burn-recording, device and computer-readable recording medium |
CN107957873A (en) * | 2017-11-23 | 2018-04-24 | 郑州云海信息技术有限公司 | A kind of VR chips to multipath server carry out the method and system of Firmare burnings |
CN109086055A (en) * | 2018-07-13 | 2018-12-25 | 武汉精测电子集团股份有限公司 | A kind of multi-channel parallel industry cd-rom recorder |
CN109918331A (en) * | 2019-04-24 | 2019-06-21 | 中山雅特生科技有限公司 | A kind of burning IC chip control system and its multithreading asynchronous controlling method |
Non-Patent Citations (2)
Title |
---|
企鹅号-ST MCU信息交流: "多合一编程烧录软件STM32CubeProgrammer", 《HTTPS://CLOUD.TENCENT.COM/DEVELOPER/NEWS/72236》 * |
马喜强等: "基于多通信方式实现DSP程序在线编程", 《电子器件》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346746A (en) * | 2020-10-30 | 2021-02-09 | 中国船舶重工集团公司第七0七研究所 | TMS32C6748 program burning method based on serial port high reliability |
CN116149688A (en) * | 2023-04-18 | 2023-05-23 | 深圳市启明智显科技有限公司 | Burning method and burning system applied to factory |
CN116149688B (en) * | 2023-04-18 | 2023-06-23 | 深圳市启明智显科技有限公司 | Burning method and burning system applied to factory |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103946800B (en) | Lossless uninterrupted message processing method during system software upgrading | |
US7440415B2 (en) | Virtual network addresses | |
CN104978261B (en) | The test method of application program, apparatus and system | |
CN109284140B (en) | Configuration method and related equipment | |
CN111209021A (en) | Batch automatic burning method and system | |
CN104993947A (en) | Method for upgrading firmware in batches | |
CN106603359A (en) | Communication control method of PLC system and apparatus thereof | |
CN109981360A (en) | Internet of things equipment website activating method, device, system and storage medium | |
CN113219940A (en) | FCT test system with one computer controlling multiple test stations and control method | |
CN113411232A (en) | Block chain simulation test system and application server | |
CN114285695B (en) | Communication method, device, apparatus, system and storage medium | |
CN112423322A (en) | Model information sending method, device, storage medium and electronic device | |
CN101764696B (en) | Distributed routing exchange equipment and implementation method thereof | |
CN112788576B (en) | Equipment offline processing method and system, storage medium and electronic device | |
CN103034545B (en) | Communication means between communications framework based on ACE and method and functional module | |
CN107733785A (en) | A kind of multiple terminals chat message synchronization removal method and device | |
CN110880990A (en) | Configuration checking method and device for big data cluster component and computing equipment | |
CN108121221A (en) | A kind of robotic command interface control system and method | |
CN114095303B (en) | Communication device, data transmission method and electronic device | |
CN110554668A (en) | real-time monitoring method and system for silk making production information | |
CN108776601A (en) | Loading method, device, equipment and the storage medium of the Android H5 pages | |
CN104468696A (en) | Method, server and device for performing point-to-point connection | |
CN103678054B (en) | Test method and device for BACnet equipment | |
CN105024899B (en) | A kind of real-time serial communication system for supporting Modbus and PPI protocol multiplexings | |
CN107171824B (en) | Wifi disconnection processing method of terminal, terminal and storage device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200529 |
|
RJ01 | Rejection of invention patent application after publication |