CN111984291B - Data burning method, device, terminal and storage medium - Google Patents

Data burning method, device, terminal and storage medium Download PDF

Info

Publication number
CN111984291B
CN111984291B CN202010808486.7A CN202010808486A CN111984291B CN 111984291 B CN111984291 B CN 111984291B CN 202010808486 A CN202010808486 A CN 202010808486A CN 111984291 B CN111984291 B CN 111984291B
Authority
CN
China
Prior art keywords
data
burning
writing
data packet
recording
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010808486.7A
Other languages
Chinese (zh)
Other versions
CN111984291A (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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202010808486.7A priority Critical patent/CN111984291B/en
Publication of CN111984291A publication Critical patent/CN111984291A/en
Application granted granted Critical
Publication of CN111984291B publication Critical patent/CN111984291B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The embodiment of the invention discloses a data burning method, a device, a terminal and a storage medium. The method comprises the following steps: acquiring a burning data packet, wherein the burning data packet is generated by a transmitting end according to the burning data code; decoding the recorded data packet to obtain the recorded data, and writing the recorded data into a preset array; and reading the burning data from the preset array according to the received burning instruction, and writing the burning data into a storage device. The embodiment of the invention can receive the recorded data packet in the standby state of the terminal, reduces the time consumption for waiting for the terminal to start and then receive the recorded data packet, greatly improves the recording efficiency, and is convenient and quick.

Description

Data burning method, device, terminal and storage medium
Technical Field
The present invention relates to the field of embedded technologies, and in particular, to a data burning method, a device, a terminal, and a storage medium.
Background
In the prior art, when the upper computer sends data to the terminal for burning to upgrade, the KEY file and the main code are put together and sent to the terminal for upgrading, and a series of operations such as data receiving and data burning can be completed only after the terminal is started, so that a great deal of time is consumed for waiting for the terminal to start.
Disclosure of Invention
In view of the above, the present invention provides a data recording method, apparatus, terminal and storage medium, so as to obtain recording data before the terminal performs data recording, reduce waiting time, and improve production efficiency.
In a first aspect, the present invention provides a data burning method, including:
Acquiring a burning data packet, wherein the burning data packet is generated by a transmitting end according to the burning data code;
Decoding the recorded data packet to obtain the recorded data, and writing the recorded data into a preset array;
and reading the burning data from the preset array according to the received burning instruction, and writing the burning data into a storage device.
In a second aspect, the present invention provides a data burning apparatus, including:
the data packet acquisition module is used for acquiring a burning data packet, wherein the burning data packet is generated by a transmitting end according to the burning data code;
The data decoding module is used for decoding the recorded data packet to obtain the recorded data and writing the recorded data into a preset array;
And the burning module is used for reading the burning data from the preset array according to the received burning instruction and writing the burning data into the storage device.
In a third aspect, the present invention provides a terminal, comprising:
One or more processors;
A storage means for storing one or more programs;
The one or more programs, when executed by the one or more processors, enable the one or more processors to implement a data burning method according to any one of the embodiments of the present invention.
In a third aspect, the present invention provides a computer readable storage medium storing a computer program comprising program instructions which when executed implement the aforementioned data burning method.
According to the data burning method provided by the invention, the burning data packet is acquired before the burning instruction is received, the burning data packet is decoded to obtain the burning data, the burning data is written into the preset array, the burning data can be quickly read from the preset array after the burning instruction is received, the burning data is written into the storage device, the burning data packet can be received in the standby state of the terminal, the time consumption for waiting for the terminal to start and then receiving the burning data packet is reduced, the burning efficiency is greatly improved, and the method is convenient and quick.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will briefly explain the drawings required to be used in the embodiments or the prior art, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a data burning method according to a first embodiment of the present invention;
FIG. 2 is a sub-flowchart of a data burning method according to an embodiment of the present invention;
fig. 3 is a sub-flowchart of a data burning method according to a second embodiment of the present invention;
fig. 4 is a sub-flowchart of a data burning method according to a second embodiment of the present invention;
Fig. 5 is a sub-flowchart of a data burning method according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data recording device according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention.
Detailed Description
The technical scheme in the implementation of the present application is clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of, and not restrictive on, some, but not all embodiments of the application. It should be further noted that, based on the embodiments of the present application, all other embodiments obtained by a person having ordinary skill in the art without making any inventive effort are within the scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Furthermore, the terms "first," "second," and the like, may be used herein to describe various directions, acts, steps, or elements, etc., but these directions, acts, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first region may be referred to as a second region, and similarly, a second region may be referred to as a first region, without departing from the scope of the invention. Both the first region and the second region are regions, but they are not the same region. The terms "first," "second," and the like, are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise. It should be noted that when one portion is referred to as being "fixed to" another portion, it may be directly on the other portion or there may be a portion in the middle. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for illustrative purposes only and do not represent the only embodiment.
Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts steps as a sequential process, many of the steps may be implemented in parallel, concurrently, or with other steps. Furthermore, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example 1
The embodiment provides a data burning method, which can be suitable for the upgrading process of various terminal devices such as a television, and is implemented by software and/or hardware, referring to fig. 1, and the method comprises the following steps:
S110, acquiring a burning data packet, wherein the burning data packet is generated by a transmitting end according to the burning data code.
The recording data packet represents a file with a preset format containing recording data, is generated by a transmitting end (an upper computer) according to the recording data, and is transmitted to a terminal serving as a receiving end.
In this embodiment, the program of the terminal is generally divided into two parts, one is MBOOT program (boot program) and the other is the NAND main program. The program MBOOT keeps running in the standby state of the terminal, and the program MBOOT can complete the booting from the standby state to the system start when the terminal starts. In order to shorten the time waiting for the transmission of the recording data packet in the data recording process, a loop (thread) for receiving and processing the data is provided in the MBOOT procedure in this embodiment, so that the terminal can always acquire the recording data packet in the standby state.
Specifically, in this embodiment, the terminal keeps MBOOT the program running in the standby state, and a cycle for receiving and processing data is pre-established in the MBOOT program, so that the terminal detects whether the transmitting end transmits the recording data packet at any time in the standby state, and if yes, directly receives the recording data packet.
S120, decoding the recorded data packet to obtain the recorded data, and writing the recorded data into a preset array.
The recording data packet is generated by the transmitting end according to the recording data code, so that the recording data packet can be obtained by corresponding decoding. Since the receiving of the recording data packet and the decoding of the recording data packet are completed in MBOOT, the condition that the terminal is still in the standby state MBOOT and the recording data is decoded is easy to occur, and the terminal is in the standby state and cannot record at this time, so that the recording data needs to be temporarily stored, and the recording data can be used for completing the recording after the terminal is started. Therefore, in this embodiment, a preset array is provided for storing the recording data before recording, and considering that the recording data packet received by one recording may include a plurality of data packets, the preset array may further integrate and store the data in the plurality of data packets to obtain the completed recording data.
Specifically, in this embodiment, in the standby state, after receiving the recording data packet, the loop of receiving and processing data in the MBOOT program decodes the recording data packet according to the preset rule to obtain the recording data, and writes the obtained recording data into the preset array to store until all the recording data packets are received.
S130, reading the burning data from the preset array according to the received burning command, and writing the burning data into a storage device.
After the writing data is stored in the preset array, if the terminal does not receive the writing instruction all the time, the writing data in the array is written into an EEPROM (ELECTRICALLY ERASABLE PROGRAMMABLE READ ONLY MEMORY, electrified erasable programmable read-only memory) serving as a storage device through an I2C bus after the terminal receives the writing instruction, and the writing is completed.
The embodiment provides a data burning method, which comprises the steps that a burning data packet is obtained before a burning instruction is received, the burning data packet is decoded to obtain burning data, the burning data is written into a preset array, the burning data can be quickly read from the preset array after the burning instruction is received, the burning data is written into storage equipment, the burning data packet can be received in a terminal standby state, the time consumption for waiting for the terminal to start and then receive the burning data packet is reduced, the burning efficiency is greatly improved, and the method is convenient and quick.
Example two
The embodiment further explains and supplements part of the procedures of the data burning method based on the first embodiment, for example, when the burning data is written into a preset array, a process of verifying the burning data is further added, and the method specifically comprises the following steps:
Specifically, the data generation of the recording data packet, which is generated by separating the recording data by the transmitting end and further defining the recording data as the data in the preset format, namely, the encoding process of the recording data packet, can be completed by software arranged on the upper computer. For example, the upper computer receives a selection instruction of a user through software, determines a specific file corresponding to the burning data according to the selection instruction of the user, separates the data in the specific file to obtain the burning data, and generates a burning data packet in a preset format according to the preset coding rule (which can be set by itself according to actual conditions) and the burning data code.
More specifically, in general, a serial port tool is used for data transmission during data recording, and depending on the serial port tool, a lot of inconvenience is brought to practical application, so in an embodiment, the invention can further realize the transmission of the recorded data packet through the serial port tool or the TCP/IP simulation tool. The recording data packet is sent to the receiving end by the sending end through a serial port tool or a TCP/IP simulation tool, the serial port tool is used for directly sending the recording data packet to the receiving end, and the TCP/IP simulation tool is used for generating a network data packet according to the recording data packet and sending the network data packet to the receiving end. For transmission by using a TCP/IP simulation tool, a receiving end needs to use a wireshark tool to grasp network data, and can specifically grasp the data by adopting a plaintext mode and an encryption mode, wherein the main difference is whether the transmitted network adopts a password, if the transmitted network does not adopt the password, the transmitted network adopts the plaintext, but the plaintext is easy to intercept, so that a mathematical operation formula can be set at the transmitting end for encryption, and an inverse operation formula can be set at the receiving end for decryption, thereby ensuring the normal operation of the data transmission process.
It will be appreciated that, in general, when the data to be recorded is too large, a plurality of data packets are typically used to divide the data to be recorded into a plurality of transmissions, i.e., the data packets to be recorded include one or more data packets. When the burnt data is transmitted through the network data packets, the problem of sticking the data packets easily occurs in the transmission process of the data packets: the sender integrates smaller data packets, and sends the smaller data packets after reaching a certain data length, or the receiver does not know the length of the data to be received, and then sends the smaller data packets to the upper layer after reaching a certain number of data packets, so that a plurality of commands are sent, and the commands are not returned, or a plurality of commands are sent, and the results of the previous commands are returned, so that the command execution is asynchronous. Therefore, in this embodiment, when the recording data packet is generated according to the preset rule encoding, the recording data packet includes one or more data packets, each data packet includes guide information and recording data segments, the guide information includes one or more of a guide code, a total length, a command code, a data packet number, a total number of data packets, and a data packet verification parameter, and the recording data includes one or more recording data segments. Illustratively, a packet is defined as "5A 0C 83 01 01 00 1A 9A E3 4C 02 D0", which is interpreted from left to right as: 5A denotes a boot code, 0C denotes a total length, 83 denotes a command code, the first 01 denotes a packet number, the second 01 denotes a total number of packets corresponding to the recorded data, "00 1A 9A E3 4C 02" denotes one or all of the recorded data (in this example, all of the data), and D0 denotes a recording verification parameter.
As shown in fig. 2, the process of decoding the burned data packet, i.e. step S120 includes steps S121-123:
s121, determining one or more data packets corresponding to the burning data according to the guiding information.
The recording data is obtained according to the recording data packet, that is, the recording data packet is decoded, and the decoding process corresponds to the encoding, that is, the position of the recording data in the recording data packet, for example, the start bit of the recording data, is actually determined. According to the first embodiment, one or more data packets may exist in the recording data packet, and different processing methods are required, so that the data packet corresponding to the recording data needs to be determined first, specifically, whether all the data packets are received is determined according to the data packet number and the total number of the data packets in the guiding information, so as to avoid incomplete recording data finally obtained.
S122, decoding the one or more data packets to obtain one or more recorded data segments, wherein each data packet number corresponds to one recorded data segment.
And S123, sequentially writing the corresponding burnt data segments into a preset array according to the data packet numbers to obtain burnt data.
When writing the writing data into the preset array, it is required to ensure that a complete writing data is obtained after the writing is completed. For the recorded data sent by one data packet, directly decoding after receiving the recorded data packet to obtain recorded data (the recorded data segment is understood to be the complete recorded data herein), and writing the recorded data into a preset array; and when the burning data sent by the plurality of data packets is received, determining the corresponding plurality of data packets according to the data packet numbers and the total number of the data packets, decoding each data packet to obtain a corresponding plurality of burning data segments, writing the burning data segments into a preset array according to the data packet numbers, and recovering to obtain the complete burning data.
The embodiment further provides a process of completing the burning according to the burning command and verifying whether the burning is successful:
Specifically, the writing instruction includes an effective data length, where the effective data length is used to determine a portion of data actually used for writing in the writing data, as shown in fig. 3, and writing the writing data into the storage device specifically includes steps S131-132:
s131, determining the effective data in the burning data from a preset array according to the effective data length.
S132, reading the effective data, and writing the effective data into a storage device.
The writing mainly writes effective data into the storage device, and the writing data may include a lot of data, and only a part of the effective data may be needed in a one-time writing process, which is specifically determined by the writing instruction. After receiving the burning command, the terminal analyzes the burning command to obtain an effective data length, accurately finds effective data stored in a preset array according to the effective data length, wherein the effective data can be partial data or all data in the burning data, writes the effective data into the storage device, and finishes burning after all writing of the effective data is finished.
More specifically, the writing instruction further includes a writing verification parameter, as shown in fig. 4, after writing the writing data into the storage device, i.e. step S130, including steps S140-160:
s140, reading the effective data written in the storage equipment, wherein the effective data comprises data packet verification parameters.
And S150, comparing the burning verification parameters according to the data packet verification parameters to verify whether the writing is successful, and if so, deleting the burning data in the preset array.
And S160, if not, re-reading the effective data, and writing the effective data into the storage device.
Verifying whether the burn is completed correctly is to verify whether the valid data written to the storage device is accurate. Considering that there may be transmission errors in the data transmission process, in this embodiment, a recording check parameter is added to the recording instruction, where the recording check parameter is the same as a data packet check parameter sent by the sending end. During verification, the terminal reads the data packet verification parameters in the effective data in the storage equipment, if the data packet verification parameters are consistent with the recording verification parameters, the transmission process is normal, the recording process is normal, and at the moment, the recording data in the preset array can be deleted to finish recording; if the data packet verification parameters are inconsistent, the valid data in the preset array needs to be read again and written into the storage device again, and further, in some cases, the sending end needs to resend the burnt data packet (verifying whether the data packet verification parameters in the preset array are the same as the burnt verification parameters, and if the data packet verification parameters are not the same, the sending end needs to resend the burnt data packet).
The specific format of the writing command corresponds to the writing data packet, and illustratively, corresponding to the writing data packet example, a writing command is "5A 08 8D 0006 2D 83 A5", where 5A represents the corresponding guide code, 08 represents the total length, 8D represents the writing command, "00 06" represents the number of valid data, "2D represents the valid data checksum", 83 represents the command code, and A5 represents the writing checksum.
More specifically, in one embodiment, as shown in FIG. 5, after writing the burned data into the storage device, the data reading process steps S170-180 are further included:
s170, receiving a data reading instruction, wherein the data reading instruction comprises a data address and a data size.
The data reading instruction is used for completing the reading and writing of the bottom layer based on the I2C bus and reading the burnt data which is already written into the storage device, wherein the data address and the data size are used for finding specific data content.
S180, reading data in the storage device through the I2C bus according to the data address and the data size, and storing the data into a preset array.
After receiving the data reading instruction, the terminal finds out which address the data to be read starts from according to the data address, determines the data of which size the data to be read is according to the data size, so as to find out the data to be read, stores the data to be read into a preset array, and can directly call for display or other functions to complete the reading of the data.
The data burning method provided in this embodiment further provides specific formats of the data packet and the burning command based on the first embodiment, and provides a process of writing the burning data into the preset array and a process of verifying whether the data burning is completed correctly based on the specific formats, so that stable data burning is further ensured.
Example III
Fig. 6 is a schematic structural diagram of a data recording device according to a third embodiment of the present invention, as shown in fig. 3, the device includes:
The data packet obtaining module 310 is configured to obtain a recording data packet, where the recording data packet is generated by the transmitting end according to the recording data code;
the data decoding module 320 is configured to decode the recording data packet to obtain the recording data, and write the recording data into a preset array;
The writing module 330 is configured to read the writing data from the preset array according to the received writing instruction, and write the writing data into a storage device.
More specifically, in an embodiment, the recording data packet includes one or more data packets, each data packet includes guide information and recording data segments, the guide information includes one or more of a guide code, a total length, a command code, a data packet number, a total number of data packets, and a data packet verification parameter, and the recording data includes one or more recording data segments.
More specifically, in one embodiment, the data decoding module 320 includes a guide information parsing unit, a recording data decoding unit, and a recording data writing unit, wherein:
The guide information analysis unit is used for determining one or more data packets corresponding to the burning data according to the guide information;
the recording data decoding unit is used for decoding the one or more data packets to obtain one or more recording data segments, and each data packet number corresponds to one recording data segment;
And the writing unit of the writing data is used for writing the corresponding writing data segments into a preset array in sequence according to the datagram number to obtain the writing data.
More specifically, in an embodiment, the recording data packet is sent to the receiving end by the sending end through a serial port tool or a TCP/IP simulation tool, where the serial port tool is used for directly sending the recording data packet to the receiving end, and the TCP/IP simulation tool is used for generating a network data packet according to the recording data packet and sending the network data packet to the receiving end.
More specifically, in an embodiment, the burning instruction includes an effective data length, and the data decoding module is specifically configured to: determining effective data in the burning data from a preset array according to the effective data length; and reading the effective data, and writing the effective data into a storage device.
More specifically, in an embodiment, the writing instruction further includes a writing verification parameter, and the data writing device further includes an effective data reading module, a verification module, and an overwriting module, where:
The effective data reading module is used for reading the effective data written in the storage equipment, wherein the effective data comprises data packet verification parameters;
The verification module is used for comparing the recording verification parameters according to the data packet verification parameters to verify whether the writing is successful or not, and if so, deleting the recording data in the preset array;
And the rewriting module is used for reading the effective data again and writing the effective data into the storage device if the effective data is not.
More specifically, in an embodiment, the data burning device further includes a read instruction receiving module and a read module:
The reading instruction receiving module is used for receiving a data reading instruction, wherein the data reading instruction comprises a data address and a data size;
and the reading module is used for reading the data in the storage device through the I2C bus according to the data address and the data size and storing the data into a preset array.
The embodiment provides a data recording device, which is used for acquiring a recording data packet before a recording instruction is received, decoding the recording data packet to obtain recording data, writing the recording data into a preset array, quickly reading the recording data from the preset array after the recording instruction is received, writing the recording data into a storage device, and receiving the recording data packet in a terminal standby state, so that the time consumption for waiting for the terminal to start and then receiving the recording data packet is reduced, the recording efficiency is greatly improved, and the data recording device is convenient and quick.
Example IV
Fig. 7 is a schematic structural diagram of a terminal 400 according to a fourth embodiment of the present invention, where, as shown in fig. 7, the terminal includes a memory 410 and a processor 420, and the number of the processors 420 in the terminal may be one or more, and one processor 420 is taken as an example in fig. 7. The memory 410, processor 420 in the terminal may be connected by a bus or other means, for example in fig. 7.
The memory 410 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules corresponding to the data burning method in the embodiment of the present invention (for example, the data packet acquisition module 310, the data decoding module 320, and the burning module 330 in the data burning device). The processor 420 executes various functional applications of the device and data processing by running software programs, instructions and modules stored in the memory 410, i.e., implements the data burning method described above.
Wherein the processor 420 is configured to execute a computer executable program stored in the memory 410 to implement the following steps: step S110, a burning data packet is obtained, and the burning data packet is generated by a transmitting end according to the burning data code; step S120, decoding the recorded data packet to obtain the recorded data, and writing the recorded data into a preset array; step S130, reading the burning data from the preset array according to the received burning command, and writing the burning data into a storage device.
Of course, the apparatus provided by the embodiment of the present invention is not limited to the method operations described above, and may also perform the related operations in the data burning method provided by any embodiment of the present invention.
Memory 410 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 410 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 410 may further include memory located remotely from processor 420, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiment provides a terminal, which can acquire a recording data packet before receiving a recording instruction, decode the recording data packet to obtain recording data, write the recording data into a preset array, quickly read the recording data from the preset array after receiving the recording instruction, write the recording data into storage equipment, and receive the recording data packet in a standby state of the terminal, so that the time consumption for waiting for the terminal to start and then receive the recording data packet is reduced, the recording efficiency is greatly improved, and the terminal is convenient and quick.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a data burning method comprising:
Acquiring a burning data packet, wherein the burning data packet is generated by a transmitting end according to the burning data code;
Decoding the recorded data packet to obtain the recorded data, and writing the recorded data into a preset array;
and reading the burning data from the preset array according to the received burning instruction, and writing the burning data into a storage device.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the above-described method operations, and may also perform the related operations in the data burning method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a device, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the data recording system, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. The data burning method is characterized by comprising the following steps:
acquiring a burning data packet, wherein the burning data packet is generated by a transmitting end according to the burning data code; the recording data packets comprise one or more data packets, each data packet comprises guide information and recording data segments, the guide information comprises one or more of guide codes, total length, command codes, data packet numbers, total number of the data packets and data packet verification parameters, and the recording data comprises one or more recording data segments;
Decoding the recorded data packet to obtain the recorded data, and writing the recorded data into a preset array;
Reading the burning data from the preset array according to the received burning instruction, and writing the burning data into a storage device; the specific format of the burning instruction corresponds to the burning data packet;
the decoding the recording data packet to obtain the recording data, and writing the recording data into a preset array includes:
determining one or more data packets corresponding to the burning data according to the guide information;
Decoding the one or more data packets to obtain one or more recorded data segments, wherein each data packet number corresponds to one recorded data segment;
and sequentially writing the corresponding burnt data segments into a preset array according to the data packet numbers to obtain burnt data.
2. The data burning method according to claim 1, wherein the burning data packet is sent from a sending end to a receiving end through a serial port tool or a TCP/IP simulation tool, the serial port tool is used for directly sending the burning data packet to the receiving end, and the TCP/IP simulation tool is used for generating a network data packet according to the burning data packet and sending the network data packet to the receiving end.
3. The method of claim 1, wherein the writing command includes an effective data length, and the reading the writing data from the preset array according to the received writing command and writing the writing data to the storage device includes:
Determining effective data in the burning data from a preset array according to the effective data length;
and reading the effective data, and writing the effective data into a storage device.
4. The data writing method according to claim 3, wherein the writing instruction further includes a writing verification parameter, and after writing the valid data into the storage device, further includes:
Reading effective data written in the storage equipment, wherein the effective data comprises data packet verification parameters;
Comparing the data packet verification parameters with the burning verification parameters to verify whether the writing is successful or not, if so, deleting the burning data in the preset array;
And if not, re-reading the effective data, and writing the effective data into the storage device.
5. The method of claim 1, wherein after writing the burn data to a storage device, further comprising:
Receiving a data reading instruction, wherein the data reading instruction comprises a data address and a data size;
and reading data in the storage device through the I2C bus according to the data address and the data size, and storing the data into a preset array.
6. A data burning apparatus, comprising:
The data packet acquisition module is used for acquiring a burning data packet, wherein the burning data packet is generated by a transmitting end according to the burning data code; the recording data packets comprise one or more data packets, each data packet comprises guide information and recording data segments, the guide information comprises one or more of guide codes, total length, command codes, data packet numbers, total number of the data packets and data packet verification parameters, and the recording data comprises one or more recording data segments;
The data decoding module is used for decoding the recorded data packet to obtain the recorded data and writing the recorded data into a preset array;
The burning module is used for reading the burning data from the preset array according to the received burning instruction and writing the burning data into the storage device; the specific format of the burning instruction corresponds to the burning data packet;
The data decoding module comprises a guide information analysis unit, a burning data decoding unit and a burning data writing unit, wherein:
The guide information analysis unit is used for determining one or more data packets corresponding to the burning data according to the guide information;
the recording data decoding unit is used for decoding the one or more data packets to obtain one or more recording data segments, and each data packet number corresponds to one recording data segment;
and the writing unit of the writing data is used for sequentially writing the corresponding writing data segments into a preset array according to the data packet numbers to obtain the writing data.
7. A terminal, comprising:
One or more processors;
A storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, enable the one or more processors to implement the data burning method of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a data burning method as claimed in any one of claims 1-5.
CN202010808486.7A 2020-08-12 2020-08-12 Data burning method, device, terminal and storage medium Active CN111984291B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010808486.7A CN111984291B (en) 2020-08-12 2020-08-12 Data burning method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010808486.7A CN111984291B (en) 2020-08-12 2020-08-12 Data burning method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111984291A CN111984291A (en) 2020-11-24
CN111984291B true CN111984291B (en) 2024-05-24

Family

ID=73434074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010808486.7A Active CN111984291B (en) 2020-08-12 2020-08-12 Data burning method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111984291B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115827310B (en) * 2023-02-21 2023-05-23 成都天成电科科技有限公司 Information verification method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1354466A (en) * 2000-11-20 2002-06-19 联发科技股份有限公司 Continuously-connecting burn-recording method of recordable optic disk and driving device using said method
CN101872636A (en) * 2009-04-21 2010-10-27 广明光电股份有限公司 Flaw block judging device and method for optical discs
CN101887754A (en) * 2010-06-29 2010-11-17 深圳创维-Rgb电子有限公司 Method and device for burning HDCP Key and digital equipment
CN105068829A (en) * 2015-07-28 2015-11-18 深圳Tcl数字技术有限公司 Feature data burning method, apparatus and system
CN106708584A (en) * 2016-12-30 2017-05-24 深圳Tcl数字技术有限公司 Program burn method and device thereof
CN108363579A (en) * 2018-02-08 2018-08-03 深圳创维-Rgb电子有限公司 Data burning method, device, equipment and storage medium
CN110795112A (en) * 2019-10-08 2020-02-14 苏州浪潮智能科技有限公司 Multi-channel IC burning method, device and system
CN110928559A (en) * 2019-11-22 2020-03-27 深圳创维-Rgb电子有限公司 Data burning method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10797948B2 (en) * 2018-11-19 2020-10-06 Dell Products, L.P. Dynamic burn slot allocator

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1354466A (en) * 2000-11-20 2002-06-19 联发科技股份有限公司 Continuously-connecting burn-recording method of recordable optic disk and driving device using said method
CN101872636A (en) * 2009-04-21 2010-10-27 广明光电股份有限公司 Flaw block judging device and method for optical discs
CN101887754A (en) * 2010-06-29 2010-11-17 深圳创维-Rgb电子有限公司 Method and device for burning HDCP Key and digital equipment
CN105068829A (en) * 2015-07-28 2015-11-18 深圳Tcl数字技术有限公司 Feature data burning method, apparatus and system
CN106708584A (en) * 2016-12-30 2017-05-24 深圳Tcl数字技术有限公司 Program burn method and device thereof
CN108363579A (en) * 2018-02-08 2018-08-03 深圳创维-Rgb电子有限公司 Data burning method, device, equipment and storage medium
CN110795112A (en) * 2019-10-08 2020-02-14 苏州浪潮智能科技有限公司 Multi-channel IC burning method, device and system
CN110928559A (en) * 2019-11-22 2020-03-27 深圳创维-Rgb电子有限公司 Data burning method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111984291A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN107634859B (en) Firmware upgrading method and device
CN106843942B (en) Wearable device and firmware upgrading method thereof
US10437680B2 (en) Relay apparatus, relay method, and computer program product
CN106325929B (en) Firmware upgrading method, firmware upgrading device, refrigerator and server
CN109624529B (en) Consumable chip and consumable chip communication method
CN107179909A (en) Method for upgrading software, device and computer-readable recording medium
TW201025008A (en) System of updating firmware and method thereof, and method of creating firmware
CN107908417B (en) Firmware upgrading method and electronic equipment
CN111984291B (en) Data burning method, device, terminal and storage medium
CN111538515A (en) Method, device and equipment for upgrading electric energy meter program
CN107844305A (en) The method for upgrading software and embedded device of embedded device
US20100191949A1 (en) Information processing terminal and falsification verification method
CN104750532A (en) Android-based dual-system land verification PAD (portable android device) and starting method
CN107515757A (en) Software program upgrade method and system, terminal
CN101197959B (en) Terminal control method, system and equipment
JP6935694B2 (en) Electronic control device
CN114338848B (en) Communication data processing method, device, programmable logic device, transmitting card and medium
JP6314859B2 (en) Electronic control device and software rewriting system
JP2008107991A (en) Information processing medium, program therefor, error processing method for information processing medium, and information processing system
US9400758B2 (en) Reset method and network device
JP2000322535A (en) Information processing method and system for ic card
CN113064621B (en) Method for upgrading firmware of password keyboard system by android system of intelligent device
CN113467842B (en) Method for starting embedded device suitable for industrial application scene, embedded device and computer readable storage medium
CN115599407B (en) Firmware burning method, firmware burning system and memory storage device
CN202677384U (en) Online programmer provided with portable universal serial bus (USB) interface

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