CN114064532B - Data processing method and device, electronic equipment and storage medium - Google Patents
Data processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114064532B CN114064532B CN202111316048.XA CN202111316048A CN114064532B CN 114064532 B CN114064532 B CN 114064532B CN 202111316048 A CN202111316048 A CN 202111316048A CN 114064532 B CN114064532 B CN 114064532B
- Authority
- CN
- China
- Prior art keywords
- target
- sending
- information
- data
- configuration information
- 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
Links
Images
Classifications
-
- 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/14—Handling requests for interconnection or transfer
- G06F13/36—Handling requests for interconnection or transfer for access to common bus or bus system
- G06F13/362—Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
- G06F13/366—Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control using a centralised polling arbiter
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
The application provides a data processing method, a data processing device, electronic equipment and a storage medium, and belongs to the technical field of data processing. The method comprises the steps of obtaining a data sending record, and determining a target sending turn based on the data sending record; determining configuration information corresponding to the target transmission turn in transmission information stored in a random access memory, wherein the transmission information is determined in advance based on a communication protocol and comprises at least one transmission turn and the configuration information corresponding to the transmission turn; extracting, in a plurality of registers, at least one target byte based on the configuration information; determining target data corresponding to the target sending turn based on the configuration information and at least one target byte; and sending the target data and updating the data sending record. Thereby reducing version iteration frequency and update difficulty.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
In an existing fpga (field Programmable Gate array) data processing system, when a data package is sent according to a communication protocol, a set of sending logic (i.e. a design code) is usually required to be designed according to each communication protocol, and the data package is sent according to the sending logic, that is, a data package sending module is designed according to a current communication protocol in a customized manner, and then the data package sending module is used for sending the data package. However, when the data package is transmitted in this way, once any data format in the communication protocol is changed, a set of transmission logic needs to be redesigned, that is, the data package transmission module needs to be redesigned, which increases the version iteration frequency and the update difficulty of the product after the product is on line.
Disclosure of Invention
An embodiment of the present application aims to provide a data processing method, an apparatus, an electronic device, and a storage medium, so as to solve a problem that a set of sending logic needs to be redesigned once any data format in a communication protocol is changed. The specific technical scheme is as follows:
in a first aspect, a data processing method is provided, the method including:
acquiring a data sending record, and determining a target sending turn based on the data sending record;
determining configuration information corresponding to the target transmission turn in transmission information stored in a random access memory, wherein the transmission information is determined in advance based on a communication protocol and comprises at least one transmission turn and the configuration information corresponding to the transmission turn;
extracting, in a plurality of registers, at least one target byte based on the configuration information;
determining target data corresponding to the target sending turn based on the configuration information and at least one target byte;
and sending the target data and updating the data sending record.
In one possible embodiment, the configuration information includes: the order of the splicing is such that,
the determining target data corresponding to the target sending turn based on the configuration information and at least one of the target bytes includes:
and splicing and combining at least one target byte according to the splicing sequence to obtain target data corresponding to the target sending turn.
In one possible embodiment, the configuration information includes: at least one configuration sub-information is included,
the extracting at least one target byte based on the configuration information comprises:
determining at least one selector based on at least one of the configuration sub-information, the number of the configuration sub-information being the same as the number of the selectors;
establishing a corresponding relation between at least one selector and at least one configuration sub-message;
and controlling at least one selector to work in parallel, wherein when each selector works, the corresponding target byte is extracted according to the corresponding configuration sub information.
In one possible embodiment, the configuration information includes: the register information and the byte information are stored in a memory,
the extracting at least one target byte based on the configuration information comprises:
determining a target register based on the register information among a plurality of registers;
in the target register, extracting at least one of the target bytes based on the byte information.
In one possible embodiment, before the obtaining the data transmission record, the method further includes:
determining the sending information based on the communication protocol, wherein the sending information comprises at least one sending turn and configuration information corresponding to the sending turn;
and storing the sending information in the random access memory according to a preset data exchange format.
In a second aspect, there is provided a data processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring a data transmission record and determining a target transmission turn based on the data transmission record;
a first determining module, configured to determine, in transmission information stored in a random access memory, configuration information corresponding to the target transmission round, where the transmission information is determined in advance based on a communication protocol and includes at least one transmission round and the configuration information corresponding to the transmission round;
an extraction module to extract, in a plurality of registers, at least one target byte based on the configuration information;
a second determining module, configured to determine, based on the configuration information and at least one target byte, target data corresponding to the target sending turn;
and the sending module is used for sending the target data and updating the data sending record.
In one possible embodiment, the configuration information includes: the second determining module is specifically configured to:
and splicing and combining at least one target byte according to the splicing sequence to obtain target data corresponding to the target sending turn.
In one possible embodiment, the configuration information includes: at least one configuration sub-message, wherein the extraction module is specifically configured to:
determining at least one selector based on at least one of the configuration sub-information, the number of the configuration sub-information being the same as the number of the selectors;
establishing a corresponding relation between at least one selector and at least one configuration sub-message;
and controlling at least one selector to work in parallel, wherein when each selector works, the corresponding target byte is extracted according to the corresponding configuration sub information.
In one possible embodiment, the configuration information includes: the register information and the byte information are stored in a memory,
the extraction module is further configured to:
determining a target register based on the register information among a plurality of registers;
in the target register, extracting at least one of the target bytes based on the byte information.
In one possible embodiment, the apparatus further comprises a storage module, configured to:
determining the sending information based on the communication protocol, wherein the sending information comprises at least one sending turn and configuration information corresponding to the sending turn;
and storing the sending information in the random access memory according to a preset data exchange format.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the data processing methods described above.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides a data processing method, a data processing device, electronic equipment and a storage medium, wherein the data processing method comprises the steps of firstly, acquiring a data sending record, and determining a target sending turn based on the data sending record; determining configuration information corresponding to the target transmission turn in transmission information stored in a random access memory, wherein the transmission information is determined in advance based on a communication protocol and comprises at least one transmission turn and the configuration information corresponding to the transmission turn; then, in a plurality of registers, extracting at least one target byte based on the configuration information; determining target data corresponding to the target sending turn based on the configuration information and at least one target byte; and finally, transmitting the target data and updating the data transmission record.
In the application, the sending information determined according to the communication protocol is stored in the random access memory in advance, when the communication protocol is changed, the target data can be sent according to the modified communication protocol only by correspondingly modifying the sending information in the random access memory, and the overall sending logic does not need to be changed again, so that the version iteration frequency and the updating difficulty can be reduced.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a data processing method according to another embodiment of the present application;
fig. 3 is a flowchart of a data processing method according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
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 a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Because a set of sending logic is designed according to each communication protocol at present, and then a data packet sending mode is carried out according to the sending logic, once any data format in the communication protocols is changed, a set of sending logic needs to be redesigned, and the version iteration frequency and the updating difficulty of products after being online are increased. Therefore, the embodiment of the application provides a data processing method which can be applied to a system for sending data packets.
A data processing method provided in the embodiments of the present application will be described in detail below with reference to specific embodiments, as shown in fig. 1, the specific steps are as follows:
s101, acquiring a data sending record, and determining a target sending turn based on the data sending record.
The embodiment of the application can be applied to an FPGA data processing system, when the FPGA data processing system sends a group of data, the group of data is divided into a plurality of batches in advance according to a communication protocol and then sent according to the batches, the data sending records are used for recording the actual sending condition, namely, the sent batches are recorded, and the current batch to be sent, namely the target sending turn can be determined according to the sent batches. For example, the group a data is divided into 1, 2 and 3, and three batches, and if the data transmission record records that the batch 1 has been transmitted, it can be determined that the target transmission turn is 2.
And S102, determining configuration information corresponding to the target transmission turn in the transmission information stored in the random access memory, wherein the transmission information is determined in advance based on a communication protocol and comprises at least one transmission turn and the configuration information corresponding to the transmission turn.
In the embodiment of the present application, the transmission information is determined in advance based on a communication protocol, and is stored as a configurable file in a Random Access Memory (RAM), where the RAM is an internal Memory that directly exchanges data with the CPU, the RAM can be read and written at any time, and is fast, and is usually used as a temporary data storage medium for an operating system or other programs in operation, and the RAM can write or read information from any specified address at any time when operating. The sending information includes at least one sending turn (i.e., batch) and configuration information corresponding to the sending turn.
In this embodiment, after the target transmission turn is determined, the configuration information corresponding to the target transmission turn may be determined according to the correspondence between the transmission turn and the configuration information.
S103, in a plurality of registers, extracting at least one target byte based on the configuration information.
In the embodiment of the present application, a plurality of registers are arranged in the FPGA data processing system, and the plurality of registers are used for storing each field information to be sent, where at least one target byte is stored in the plurality of memories. The target byte is a byte to be sent in the target transmission turn, and the configuration information is used for indicating a storage location of the target byte, so that the target byte can be extracted from the plurality of registers based on the configuration information corresponding to the target transmission turn.
S104, determining target data corresponding to the target sending turn based on the configuration information and at least one target byte.
And S105, transmitting the target data and updating the data transmission record.
In this embodiment, the configuration information is further used to indicate a combination of at least one target byte, combine the at least one target byte according to the configuration information to obtain target data corresponding to the target sending turn, and further send the target data, and update the sending turn in the data sending record while sending the target data.
In the embodiment of the application, the sending information determined according to the communication protocol is stored in the random access memory in advance, when the communication protocol is changed, the target data can be sent according to the modified communication protocol only by correspondingly modifying the sending information in the random access memory without changing the whole sending logic, compared with the mode of directly changing the design code, the maintainability, the flexibility and the safety are greatly improved by changing the configurable file, and therefore the version iteration frequency and the updating difficulty can be reduced.
In another embodiment of the present application, the S104 may include the following steps:
and splicing and combining at least one target byte according to the splicing sequence to obtain target data corresponding to the target sending turn.
In this embodiment, the configuration information includes: and a splicing sequence, wherein at least one target byte can be spliced and combined according to the splicing sequence, and then target data corresponding to the sending turn is obtained.
According to the scheme, the target bytes can be spliced based on the configuration information stored in the random access memory to obtain corresponding target data, when partial modification (modification of byte splicing sequence) is performed in a communication protocol, only the configuration information in the random access memory needs to be modified, and the overall sending logic does not need to be changed again, so that the version iteration frequency and the updating difficulty can be reduced.
In another embodiment of the present application, as shown in fig. 2, the S103 may include the following steps:
s201, determining at least one selector based on at least one piece of configuration sub information, wherein the number of the configuration sub information is the same as that of the selectors;
s202, establishing a corresponding relation between at least one selector and at least one configuration sub-message;
s203, controlling at least one selector to work in parallel, wherein when each selector works, extracting the corresponding target byte according to the corresponding configuration sub information.
In an embodiment of the present application, the configuration information includes: and at least one configuration sub-information, wherein each matching sub-information is used for indicating the storage position of one target byte, namely, the at least one configuration sub-information corresponds to the at least one target byte one by one.
In order to extract at least one target byte simultaneously, at least one selector can be determined based on at least one piece of configuration sub information, wherein the number of the configuration sub information is the same as that of the selectors, a corresponding relation between the selectors and the configuration sub information is established, the at least one selector is in one-to-one correspondence with the at least one piece of configuration sub information, and for each selector, the selector can extract the corresponding target byte according to the configuration sub information corresponding to the selector during operation. Further, at least one selector is controlled to simultaneously extract the target byte.
According to the scheme, one selector can be allocated to each configuration sub-message, and then all the selectors are controlled to extract the target byte at the same time, so that the efficiency of extracting the target byte is improved.
In another embodiment of the present application, the step S103 may include the steps of:
step one, in a plurality of registers, determining a target register based on the register information;
step two, in the target register, extracting at least one target byte based on the byte information.
In an embodiment of the present application, the configuration information includes: register information for uniquely identifying a register, e.g., a register number, and byte information for uniquely identifying a byte, e.g., a byte number.
Specifically, in the plurality of registers, a target register, which may be one or more, is determined from the register information, and in the target register, a target byte is extracted based on byte information.
In an implementation manner of the embodiment of the present application, the register and the target byte may be in a one-to-one correspondence relationship, and after the target register is determined based on the register information, for each target register, the target byte stored in the target register is determined according to the byte information corresponding to the target register.
In the scheme, the target byte can be extracted based on the configuration information stored in the random access memory, so that the corresponding target data can be obtained, when partial modification (modification of the target byte) is performed in the communication protocol, only the configuration information in the random access memory needs to be modified, and the whole sending logic does not need to be changed again, so that the version iteration frequency and the updating difficulty can be reduced.
In yet another embodiment of the present application, the method may further comprise the steps of:
step one, determining the sending information based on the communication protocol, wherein the sending information comprises at least one sending turn and configuration information corresponding to the sending turn;
and step two, storing the sending information in the random access memory according to a preset data exchange format.
In the embodiment of the present application, the preset data exchange format may be an mif (memory Initialization file), and the format is an ascii code, which can be edited and easily generated, and can work on all platforms supported by MapInfo.
Specifically, the communication protocol specifies the data transmission requirement, so that the transmission information can be determined based on the communication protocol, wherein the transmission information comprises at least one transmission turn and configuration information corresponding to the transmission turn, and the transmission information is stored in the random access memory according to a preset data exchange format.
In the scheme, the sending information determined according to the communication protocol is stored in the random access memory according to the preset format, when the communication protocol is modified, only the configuration information in the random access memory is required to be modified, and the whole sending logic does not need to be changed again, so that the version iteration frequency and the updating difficulty can be reduced.
Optionally, the embodiment of the present application further provides a processing flow of data processing (taking 256bit (32Byte) of data bit width in the FPGA data processing system as an example), as shown in fig. 3, and the specific steps are as follows.
(1) Enabling the data package to be effective, and updating the configuration information according to the current sending turn to cache the RAM read address;
(2) acquiring 32 groups of corresponding register numbers and byte numbers from the RAM, as shown in Table 1;
(3) controlling 32 selectors to work in parallel, wherein each selector extracts a target byte according to the register number and the byte number corresponding to the selector;
(4) and combining and outputting the target bytes extracted by the 32 selectors in a splicing way.
TABLE 1
In the embodiment of the application, the sending information determined according to the communication protocol is stored in the random access memory in advance, when the communication protocol is changed, the target data can be sent according to the modified communication protocol only by correspondingly modifying the sending information in the random access memory, and the whole sending logic does not need to be changed again, so that the version iteration frequency and the updating difficulty can be reduced.
Based on the same technical concept, an embodiment of the present application further provides a data processing apparatus, as shown in fig. 4, the apparatus includes:
an obtaining module 301, configured to obtain a data sending record, and determine a target sending turn based on the data sending record;
a first determining module 302, configured to determine, in transmission information stored in a random access memory, configuration information corresponding to the target transmission turn, where the transmission information is determined in advance based on a communication protocol and includes at least one transmission turn and the configuration information corresponding to the transmission turn;
an extracting module 303, configured to extract at least one target byte based on the configuration information in a plurality of registers;
a second determining module 304, configured to determine, based on the configuration information and at least one of the target bytes, target data corresponding to the target sending turn;
a sending module 305, configured to send the target data and update the data sending record.
In one possible embodiment, the configuration information includes: the second determining module is specifically configured to:
and splicing and combining at least one target byte according to the splicing sequence to obtain target data corresponding to the target sending turn.
In one possible embodiment, the configuration information includes: at least one configuration sub-message, wherein the extraction module is specifically configured to:
determining at least one selector based on at least one of the configuration sub-information, the number of the configuration sub-information being the same as the number of the selectors;
establishing a corresponding relation between at least one selector and at least one configuration sub-message;
and controlling at least one selector to work in parallel, wherein when each selector works, the corresponding target byte is extracted according to the corresponding configuration sub information.
In one possible embodiment, the configuration information includes: the register information and the byte information are stored in a memory,
the extraction module is further configured to:
determining a target register based on the register information among a plurality of registers;
in the target register, extracting at least one of the target bytes based on the byte information.
In one possible embodiment, the apparatus further comprises a storage module, configured to:
determining the sending information based on the communication protocol, wherein the sending information comprises at least one sending turn and configuration information corresponding to the sending turn;
and storing the sending information in the random access memory according to a preset data exchange format.
Based on the same technical concept, an electronic device according to the embodiment of the present application is further provided, as shown in fig. 5, and includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114,
a memory 113 for storing a computer program;
the processor 111, when executing the program stored in the memory 113, implements the following steps:
acquiring a data sending record, and determining a target sending turn based on the data sending record;
determining configuration information corresponding to the target transmission turn in transmission information stored in a random access memory, wherein the transmission information is determined in advance based on a communication protocol and comprises at least one transmission turn and the configuration information corresponding to the transmission turn;
extracting, in a plurality of registers, at least one target byte based on the configuration information;
determining target data corresponding to the target sending turn based on the configuration information and at least one target byte;
and sending the target data and updating the data sending record.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the data processing methods described above.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the data processing methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
1. A method of data processing, the method comprising:
acquiring a data sending record, and determining a target sending turn based on the data sending record;
determining configuration information corresponding to the target transmission turn in transmission information stored in a random access memory, wherein the transmission information is determined in advance based on a communication protocol and comprises at least one transmission turn and the configuration information corresponding to the transmission turn;
extracting, in a plurality of registers, at least one target byte based on the configuration information;
determining target data corresponding to the target sending turn based on the configuration information and at least one target byte;
sending the target data and updating the data sending record;
wherein the configuration information comprises: at least one configuration sub-information, which is,
the extracting at least one target byte based on the configuration information comprises:
determining at least one selector based on at least one of the configuration sub-information, the number of the configuration sub-information being the same as the number of the selectors;
establishing a corresponding relation between at least one selector and at least one configuration sub-message;
and controlling at least one selector to work in parallel, wherein when each selector works, the corresponding target byte is extracted according to the corresponding configuration sub information.
2. The method of claim 1, wherein the configuration information comprises: the order of the splicing is as follows,
the determining target data corresponding to the target sending turn based on the configuration information and at least one of the target bytes includes:
and splicing and combining at least one target byte according to the splicing sequence to obtain target data corresponding to the target sending turn.
3. The method of claim 1, wherein the configuration information comprises: the register information and the byte information are stored in a memory,
the extracting at least one target byte based on the configuration information comprises:
determining a target register based on the register information among a plurality of registers;
in the target register, at least one of the target bytes is extracted based on the byte information.
4. The method of claim 1, wherein prior to obtaining the data transmission record, the method further comprises:
determining the sending information based on the communication protocol, wherein the sending information comprises at least one sending turn and configuration information corresponding to the sending turn;
and storing the sending information in the random access memory according to a preset data exchange format.
5. A data processing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a data transmission record and determining a target transmission turn based on the data transmission record;
a first determining module, configured to determine, in transmission information stored in a random access memory, configuration information corresponding to the target transmission round, where the transmission information is determined in advance based on a communication protocol and includes at least one transmission round and the configuration information corresponding to the transmission round;
an extraction module to extract at least one target byte based on the configuration information in a plurality of registers;
a second determining module, configured to determine, based on the configuration information and at least one target byte, target data corresponding to the target sending turn;
the sending module is used for sending the target data and updating the data sending record;
wherein the configuration information comprises: at least one configuration sub-message, wherein the extraction module is specifically configured to:
determining at least one selector based on at least one of the configuration sub-information, the number of the configuration sub-information being the same as the number of the selectors;
establishing a corresponding relation between at least one selector and at least one configuration sub-message;
and controlling at least one selector to work in parallel, wherein when each selector works, the corresponding target byte is extracted according to the corresponding configuration sub information.
6. The apparatus of claim 5, wherein the configuration information comprises: the second determining module is specifically configured to:
and splicing and combining at least one target byte according to the splicing sequence to obtain target data corresponding to the target sending turn.
7. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 4 when executing a program stored in the memory.
8. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111316048.XA CN114064532B (en) | 2021-11-08 | 2021-11-08 | Data processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111316048.XA CN114064532B (en) | 2021-11-08 | 2021-11-08 | Data processing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114064532A CN114064532A (en) | 2022-02-18 |
CN114064532B true CN114064532B (en) | 2022-06-17 |
Family
ID=80274792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111316048.XA Active CN114064532B (en) | 2021-11-08 | 2021-11-08 | Data processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114064532B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111478880A (en) * | 2020-03-03 | 2020-07-31 | 视联动力信息技术股份有限公司 | Data processing method and device |
CN112583674A (en) * | 2020-12-16 | 2021-03-30 | 珠海格力电器股份有限公司 | Data processing method and device, electronic equipment and storage medium |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1903437A3 (en) * | 2006-07-31 | 2008-10-22 | Seiko Epson Corporation | Update data transmission method, firmware writing system, and update data transmission program |
CN101594355B (en) * | 2009-06-17 | 2012-11-07 | 华为技术有限公司 | Method and device for realizing cross-version software interaction |
US8959275B2 (en) * | 2012-10-08 | 2015-02-17 | International Business Machines Corporation | Byte selection and steering logic for combined byte shift and byte permute vector unit |
US9772970B2 (en) * | 2013-08-29 | 2017-09-26 | Atmel Corporation | Multi-protocol serial communication interface |
CN103607376B (en) * | 2013-10-29 | 2017-01-11 | 北京奇虎科技有限公司 | Method and device for compatible protocol |
CN105573922B (en) * | 2014-11-07 | 2020-07-10 | 中兴通讯股份有限公司 | Method and device for realizing data format conversion |
CN109768970B (en) * | 2018-12-24 | 2021-05-04 | 通号通信信息集团有限公司 | Configurable universal protocol generation method |
CN111625448B (en) * | 2020-05-06 | 2021-09-21 | 清华大学 | Protocol packet generation method, device, equipment and storage medium |
CN113220607B (en) * | 2021-05-26 | 2023-05-12 | 浙江赛思电子科技有限公司 | Data processing method based on FIFO |
-
2021
- 2021-11-08 CN CN202111316048.XA patent/CN114064532B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111478880A (en) * | 2020-03-03 | 2020-07-31 | 视联动力信息技术股份有限公司 | Data processing method and device |
CN112583674A (en) * | 2020-12-16 | 2021-03-30 | 珠海格力电器股份有限公司 | Data processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114064532A (en) | 2022-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104246759A (en) | Application programming interface testing services | |
WO2021042849A1 (en) | Cloud platform, service processing method, command interface and computer device | |
CN111460458B (en) | Data processing method, related device and computer storage medium | |
CN108390856B (en) | DDoS attack detection method and device and electronic equipment | |
CN107770299A (en) | A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium | |
CN114064532B (en) | Data processing method and device, electronic equipment and storage medium | |
CN106528199A (en) | Method and terminal for updating automobile instrument panel system | |
CN111125168A (en) | Data processing method and device, electronic equipment and storage medium | |
CN107368337B (en) | Application downloading method and device and terminal equipment | |
CN113486025B (en) | Data storage method, data query method and device | |
CN112788551B (en) | Message processing method and device, terminal equipment and storage medium | |
CN110531991B (en) | Method and system for realizing universal burning platform | |
CN114006819A (en) | Detection strategy generation and device, and data transmission method and device | |
CN113177014A (en) | Serial port communication method based on inspection mode and serial port chip | |
CN107968997A (en) | A kind of mobile terminal recognition method, device, gateway device and storage medium | |
CN113783677B (en) | Data transmission method and device, electronic equipment and storage medium | |
CN111163088B (en) | Message processing method, system and device and electronic equipment | |
CN112416401B (en) | Data updating method, device and equipment | |
CN114237509B (en) | Data access method and device | |
CN113992566B (en) | Message broadcasting method and device | |
CN116828404B (en) | Industry short message accurate sending method and device, electronic equipment and medium | |
CN110071967B (en) | Correlation method, device and equipment | |
CN110046120B (en) | Data processing method, device and system based on IIC protocol and storage medium | |
CN117641343A (en) | Air downloading device, air downloading method and air downloading system | |
CN115563040A (en) | Firmware information acquisition method and server |
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 | ||
CP03 | Change of name, title or address |
Address after: 9th Floor, Block A, Shenzhen National Engineering Laboratory Building, No. 20, Gaoxin South 7th Road, High-tech Zone Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong 518000 Patentee after: Shenzhen Huayun Information System Technology Co.,Ltd. Address before: No. 904, block a, national engineering laboratory building, Gaoxin South 7th road digital technology park, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000 Patentee before: Shenzhen Huayun Information System Co.,Ltd. |
|
CP03 | Change of name, title or address |