CN109327284B - Data transmission method and device and electronic equipment - Google Patents

Data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN109327284B
CN109327284B CN201811426806.1A CN201811426806A CN109327284B CN 109327284 B CN109327284 B CN 109327284B CN 201811426806 A CN201811426806 A CN 201811426806A CN 109327284 B CN109327284 B CN 109327284B
Authority
CN
China
Prior art keywords
data
equipment
processing
read
byte
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
CN201811426806.1A
Other languages
Chinese (zh)
Other versions
CN109327284A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811426806.1A priority Critical patent/CN109327284B/en
Publication of CN109327284A publication Critical patent/CN109327284A/en
Application granted granted Critical
Publication of CN109327284B publication Critical patent/CN109327284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The application provides a data transmission method, a data transmission device and electronic equipment, wherein first data transmitted by first equipment is received in the method; and performing first processing on the first data, wherein the first data subjected to the first processing is used for being provided for second equipment to be read, so that the data read by the second equipment is consistent with the data transmitted by the first equipment. Through the first processing, data transmission defects, such as data reading byte loss caused by time delay, can be avoided, data read by the second device can be consistent with data transmitted by the first device, and the requirement of high-requirement communication equipment for data transmission is met.

Description

Data transmission method and device and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data transmission method and an electronic device.
Background
The two devices of the split device can transmit based on a certain communication protocol, but the communication protocol can bring a certain time delay, so that data loss is easily caused in the data reading process, and communication device failure can be caused in the communication device with higher requirement on data integrity.
Disclosure of Invention
In view of this, the present application provides the following technical solutions:
a method of data transmission, comprising:
receiving first data transmitted by a first device;
and performing first processing on the first data, wherein the first data subjected to the first processing is used for being provided for second equipment to be read, so that the data read by the second equipment is consistent with the data transmitted by the first equipment.
Optionally, the first processing includes caching;
wherein the performing of the first processing on the first data comprises:
and caching the first data, wherein the cached first data is used for being provided for a second device to be read, so that the cached data read by the second device is consistent with the data transmitted by the first device.
Optionally, the method further comprises:
caching the first data to a target area;
and controlling the second equipment to read data from the target area in a plurality of times, so that the cache data read by the second equipment is consistent with the data transmitted by the first equipment.
Optionally, the first processing comprises byte statistics processing;
wherein the performing of the first processing on the first data comprises:
and carrying out byte statistical processing on the first data, so that the byte statistical processed first data is provided to a second device for reading.
Optionally, the method further comprises:
carrying out byte statistical processing on the first data to obtain second data;
and controlling the second equipment to read the second data according to a preset byte reading length, so that the second data read by the second equipment is consistent with the data transmitted by the first equipment.
Optionally, a data connection is established between the first device and the second device through a bridge chip, wherein,
and the preset byte reading length is matched with the communication attribute of the bridge chip.
Optionally, the method further comprises:
and sending control information to the first equipment, wherein the control information represents the data transmission length, so that the first equipment sends data according to the data transmission length.
Optionally, the preset byte read length includes a redundant byte length, and the method further includes:
and byte information corresponding to the redundant byte length in the second data read by the second equipment is removed, so that the removed data obtained by the second equipment is consistent with the data transmitted by the first equipment.
A data transmission apparatus comprising:
the receiving unit is used for receiving first data transmitted by first equipment;
and the processing unit is used for carrying out first processing on the first data, wherein the first data subjected to the first processing is used for being provided for second equipment to be read, so that the data read by the second equipment is consistent with the data transmitted by the first equipment.
An electronic device, comprising: a memory and a controller;
the controller is used for receiving first data transmitted by first equipment; and performing first processing on the first data, wherein the first data subjected to the first processing is used for being provided for second equipment to be read, so that the data read by the second equipment is consistent with the data transmitted by the first equipment.
Therefore, compared with the prior art, the data transmission method, the data transmission device and the electronic equipment are provided, the first processing is performed on the received first data transmitted by the first equipment, so that the second equipment reads the obtained data after the first processing, and thus, the data transmission and the data reading are performed. Through the first processing, data transmission defects, such as data reading byte loss caused by time delay, can be avoided, data read by the second device can be consistent with data transmitted by the first device, and the requirement of high-requirement communication equipment for data transmission is met.
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 introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a processing method for transmitting data according to an embodiment of the present application;
fig. 3 is a flowchart illustrating another processing method for transmitting data according to an embodiment of the present application
Fig. 4 is a schematic diagram illustrating a split-type apparatus provided by an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a point-to-point SPI communication principle provided by an embodiment of the present application;
fig. 6 is a schematic diagram illustrating a read timing of an SPI provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram illustrating a data transmission apparatus according to an embodiment of the present application;
fig. 8 shows a schematic structural diagram of an electronic device provided in 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In an embodiment of the present application, a data transmission method is provided, and referring to fig. 1, the method includes:
s101, receiving first data transmitted by first equipment;
s102, performing first processing on the first data, wherein the first data subjected to the first processing is used for being provided for second equipment to be read, so that the data read by the second equipment is consistent with the data transmitted by the first equipment.
In a communication network or a communication system, communication transmission between a plurality of devices is usually required. In this embodiment, the first device and the second device perform communication transmission, and both the first device and the second device are devices capable of implementing a communication function, for example, the first device may be an acquisition device having a data acquisition function, the second device may be a processing device having a data processing function, the first device may transmit acquired data to the second device, and the second device may also transmit processed feedback information to the first device. After receiving the first data transmitted by the first device, the second device is not instructed to directly read the first data, but the first data is subjected to first processing, so that the processed data is used for reading by the second device, and thus, the data loss caused by the first data in the transmission process can be reduced.
The first process represents a process mode determined according to communication characteristics between the first device and the second device. For example, the processing mode of the first process may be determined according to a communication protocol between the first device and the second device, may be determined according to a connection apparatus between the first device and the second device, and may be performed according to a mode in which the second device reads data.
For example, in a split AR (Augmented Reality) device, in order to reduce software complexity and delay caused by encoding and decoding, a split main control end and a split head end are used, and if a bridge chip is used to complete communication between the head end and the main control end of a hardware signal, a processing mode of a first process is determined according to characteristics of the bridge chip, and then data transmitted from the head end can be processed based on the first process and then read by the main control end, so that delay at a signal level caused by the bridge chip is solved, and data read by the main control end is consistent with data transmitted by the head end.
In the data transmission method provided in this embodiment, the first processing is performed on the received first data transmitted by the first device, so that the second device reads the obtained data after the first processing, and thus, during the data transmission and data reading processes. Through the first processing, data transmission defects, such as data reading byte loss caused by time delay, can be avoided, data read by the second device can be consistent with data transmitted by the first device, and the requirement of high-requirement communication equipment for data transmission is met.
In another embodiment provided by the present application, the first processing includes caching, and correspondingly, the first processing is performed on the first data, and includes:
s201, performing cache processing on the first data, wherein the first data subjected to the cache processing is used for being provided for a second device to be read, so that the cache data read by the second device is consistent with the data transmitted by the first device.
In this embodiment, the first processing mode is a cache processing, that is, after receiving the first data, the first device is first cached, and then the second device is controlled to read the cache. Because the first data is cached instead of being directly sent to the second device for reading, data loss caused by time delay when the data is directly transmitted can be avoided, and the second device can read expected data in the cached data.
When the first processing is the buffering processing corresponding to the foregoing embodiment, referring to fig. 2, the data transmission method further includes:
s301, caching the first data to a target area;
s302, controlling the second device to read data from the target area in a grading manner, so that the cache data read by the second device is consistent with the data transmitted by the first device.
When the first data is cached, the first data is stored in a target area, where the target area is a preset area to cache the first data, and the specific area may be a storage area on an intermediate device between the first device and the second device, or may be the first storage area on the first device, or may be a storage area before the second device reads data.
And when the second equipment reads data, controlling the second equipment to read in a mode of reading for multiple times. For example, the second device is controlled to read the buffered data twice, but it should be noted that the two consecutive read operations must be atomic operations, cannot be interrupted, and there will be a delay of redundant read instructions.
In another embodiment of the present application, the first processing includes byte statistics processing, wherein the first processing on the first data includes:
s401, byte counting is carried out on the first data, and the first data subjected to byte counting is provided to a second device to be read.
In this embodiment, the data packet format of the transmission data is modified through byte statistics processing to achieve a read operation, and accurate communication data can be returned to the second device. When first data is received, byte counting processing is carried out on the received data, a byte counting threshold value can be set according to transmission characteristics of communication data between first equipment and second equipment, the number of lost bytes caused by communication delay is considered in the determination process of the threshold value, therefore, after the bytes meeting the threshold value are counted, the first data is sent to the second data for reading, the data length of the corresponding first data when the second data is read can be ensured to include the length of the lost bytes possibly existing in the communication delay, and the read data is consistent with the data sent by the first equipment.
Corresponding to the first processing in the above embodiment being byte statistics processing, referring to fig. 3, the data transmission method further includes:
s501, carrying out byte statistical processing on the first data to obtain second data;
s502, controlling the second device to read the second data according to the preset byte reading length, so that the second data read by the second device is consistent with the data transmitted by the first device.
After byte statistics processing is performed on the first data, second data is obtained, and since the second data includes redundant bytes, reading is performed according to a preset byte reading length when data reading is performed on the second device, so that it is ensured that the data read by the second device is not lost and is consistent with metadata sent by the first device.
However, the added redundancy bytes also need to correspond to transmission equipment or a transmission protocol, and it is necessary to ensure that data transmission can be performed after the redundancy bytes are added.
On the basis of this embodiment, if the preset byte read length includes the redundant byte length, correspondingly, the method further includes:
s601, removing byte information corresponding to the redundant byte length in the second data read by the second device, so that the removed data obtained by the second device is consistent with the data transmitted by the first device.
In order to ensure that the second device can read accurate data information, the preset byte reading length usually includes some redundant bytes, and if actual transmission data is obtained, the redundant bytes need to be removed to obtain transmission content consistent with the data sent by the first device.
In another embodiment of the present application, a data connection is established between the first device and the second device through a bridge chip, wherein the predetermined byte reading length matches with a communication attribute of the bridge chip.
The communication attribute of the bridge chip can represent the data volume transmitted by the bridge chip at one time, and then the delay is what, if the communication data transmission is directly carried out by the bridge chip, and the number of the lost bytes generated when the data reading is directly carried out is what. The byte threshold in byte statistical processing can be determined according to the number of lost bytes, so that the reading length of the preset bytes is determined according to the processing mode, and the accuracy of the read data is ensured.
On the basis of the above embodiment, the data transmission method in another embodiment of the present application further includes:
s701, sending control information to the first device, wherein the control information represents a data transmission length, so that the first device sends data according to the data transmission length.
Before the first device transmits data, the control information is sent to the first device, the control information can represent data transmission length and can also represent communication delay information or redundant byte length and the like, so that the first device can construct data according to the control information to obtain first data, namely certain redundant bytes can be added into the first data, and even if communication delay occurs, the second device can be ensured to read original data information.
The data transmission method provided by the present application is described below with specific communication transmission between split-type devices. Referring to fig. 4, in a schematic diagram of a split device provided in this embodiment of the present application, a Field-Programmable Gate Array (FPGA) is introduced between a master device and a slave device of the split device to serve as a bridge chip, so as to complete communication between the master device and the slave device of a hardware signal, and for a full-duplex low-speed Serial communication protocol such as SPI (Serial Peripheral Interface), bytes of read data are lost due to delay.
The communication principle of SPI is simple and it works in a master-slave manner, see fig. 5, which usually has a master device and one or more slave devices, requiring at least 4 wires, in fact 3 wires (for unidirectional transmission, i.e. half-duplex). Also common to all SPI-based devices are SDI (data in), SDO (data out), SCLK (clock), CS (chip select).
MOSI-SPI Bus Master Output/Slave Input (SPI Bus Master Output/Slave Input);
MISO-SPI bus Master Input/Slave Output (SPIBus Master Input/Slave Output);
SCLK-clock signal, generated by the master device;
the CS-Slave enable signal, controlled by the Master (Chip select), has an IC with pin called SS.
Referring to fig. 6, which is a schematic diagram of a read timing of an SPI provided in the embodiment of the present application, when the-CS signal is active, a read command with 8 bits is sent to the device and then a read command with 16 bits is sent to the device (address bits are related to platform) under synchronization of the SCK signal. After the read command and address are issued, the SCK continues to issue clock signals, at which point the data stored at that address is shifted out of the SO pin by SCK control. After each data shift, the internal address pointer is automatically incremented by 1, and if the device continues to send SCK signals, the next data can be read. When the address pointer counts to 0FFFH, it will return to 0000H. The end of the read operation is accomplished by the-CS signal going high.
In the split type device, due to the introduction of the FPGA, the return in the slave device cannot be returned to the master device from the FPGA in time, and since both the master device and the slave device have the FPGA, a delay of at least two bytes (bytes) is brought, and in order to avoid a data reading loss problem caused by the delay, a solution in an embodiment of the present application may include:
firstly, for a read instruction on the SPI, all return data of the MOSI can be cached in the cache of the FPGA first, and the master device reads twice to acquire desired data, which is equivalent to changing the full-duplex transmission of the SPI into a half-duplex form, and adding one master-slave conversion.
In another way, for a read instruction on the SPI, accurate information of the device can be returned by one-time read operation by modifying the format of a data packet for transmitting data, and this way can achieve one-step read operation, which is equivalent to no bridge connection by an FPGA.
For example, one read completion is achieved by customizing the data structure of X. X is completely controlled by the FPGA and is not transmitted to the slave device, the length of the read data is designed to be the highest byte of the X data, specifically 8/16/32 …, and the length is set according to the specification of different slave devices. The packing time required by adding the FPGA later can be set to be 2 bytes due to the loss of 2 bytes, but in order to ensure accurate reading of data, some redundant bytes can be added to ensure that the transmission of the FPGA can be finished definitely, which is specified according to the capacity of the FPGA.
Therefore, the FPGA receives the header data, namely the length data, of the X, and can send an MOSI instruction to the slave equipment, the slave equipment starts to return the data to the FPGA, but the MOSI of the master equipment is not finished at this time, and therefore the FPGA has enough time to pack the MISO data to the master equipment when the tail of the X packet is sent to the FPGA. The problem caused by the SPI protocol in the FPGA introduction is solved by introducing a small-section data packet form in the mode.
In an embodiment of the present application, there is also provided a data transmission apparatus, referring to fig. 7, the apparatus including:
a receiving unit 10, configured to receive first data transmitted by a first device;
and the processing unit 20 is configured to perform first processing on the first data, where the first data subjected to the first processing is used to be provided to a second device for reading, so that the data read by the second device is consistent with the data transmitted by the first device.
The application provides a data transmission device, which executes first processing on first data transmitted by first equipment received by a receiving unit through a processing unit, so that second equipment reads the obtained data after the first processing, and thus, the data transmission and data reading processes are carried out. Through the first processing, data transmission defects, such as data reading byte loss caused by time delay, can be avoided, data read by the second device can be consistent with data transmitted by the first device, and the requirement of high-requirement communication equipment for data transmission is met.
On the basis of the foregoing embodiment, in another embodiment of the present application, in response to the first processing in the processing unit 20 including the cache processing, the processing unit 20 is specifically configured to:
and caching the first data, wherein the cached first data is used for being provided for a second device to be read, so that the cached data read by the second device is consistent with the data transmitted by the first device.
On the basis of the above embodiment, the processing unit 20 includes:
the cache subunit is used for caching the first data to a target area;
and the first control subunit is used for controlling the second equipment to read data from the target area in multiple times, so that the cache data read by the second equipment is consistent with the data transmitted by the first equipment.
On the basis of the above embodiment, in another embodiment of the present invention, in response to the first processing in the processing unit 20 including byte statistics processing, the processing unit 20 is specifically configured to:
and carrying out byte statistical processing on the first data, so that the byte statistical processed first data is provided to a second device for reading.
On the basis of the above embodiment, the processing unit 20 further includes:
the statistical processing subunit is used for carrying out byte statistical processing on the first data to obtain second data;
and the second control subunit is configured to control the second device to read the second data according to a preset byte reading length, so that the second data read by the second device is consistent with the data transmitted by the first device.
On the basis of the above embodiment, in response to a data connection established between the first device and the second device through the bridge chip, the preset byte reading length is matched with the communication attribute of the bridge chip.
On the basis of the above embodiment, the data transmission apparatus further includes:
a sending unit, configured to send control information to a first device, where the control information represents a data transmission length, so that when the first device sends data, the control information is sent according to the data transmission length.
On the basis of the above embodiment, in response to that the preset byte read length includes the redundant byte length, the apparatus further includes:
and the removing unit is used for removing byte information corresponding to the redundant byte length in the second data read by the second equipment, so that the removed data obtained by the second equipment is consistent with the data transmitted by the first equipment.
An electronic device is also provided in the embodiments of the present application, referring to fig. 8, the electronic device includes a memory 30 and a processor 40, where the memory 30 is used to store an executable program, and the processor 40 is used to execute the program stored in the memory 30, that is, the processor 40 is specifically used to execute the following program steps:
s50, receiving first data transmitted by the first equipment;
and S51, performing first processing on the first data, wherein the first data subjected to the first processing is used for being provided for a second device to be read, so that the data read by the second device is consistent with the data transmitted by the first device.
In another embodiment, where the first process comprises a caching process, the processor 40 may also be implemented by executing an executable program stored in the memory 30:
and S52, performing cache processing on the first data, wherein the first data subjected to cache processing is used for being provided for a second device to be read, so that the cache data read by the second device is consistent with the data transmitted by the first device.
In another embodiment, the processor 50 may also be implemented by executing an executable program stored in the memory 40:
s53, caching the first data to a target area;
and S54, controlling the second device to read data from the target area in a plurality of times, so that the cache data read by the second device is consistent with the data transmitted by the first device.
In another embodiment, where the first processing comprises byte statistics processing, the processor 50 may also be implemented by executing an executable program stored in the memory 40:
and S55, performing byte statistic processing on the first data, so that the byte-statistic-processed first data is provided to a second device for reading.
In another embodiment, the processor 50 may also be implemented by executing an executable program stored in the memory 40:
s56, carrying out byte statistical processing on the first data to obtain second data;
and S57, controlling the second device to read the second data according to a preset byte reading length, so that the second data read by the second device is consistent with the data transmitted by the first device.
In another embodiment, the processor 50 may further implement the following by executing the executable program stored in the memory 40, wherein the data connection is established between the first device and the second device through the bridge chip:
and the preset byte reading length is matched with the communication attribute of the bridge chip.
In another embodiment, the processor 50 may also be implemented by executing an executable program stored in the memory 40:
and S58, sending control information to the first device, wherein the control information represents the data transmission length so that the first device sends data according to the data transmission length.
In another embodiment, the preset byte read length comprises a redundant byte length, and the processor 50 may further implement by executing an executable program stored in the memory 40:
and S59, removing byte information corresponding to the redundant byte length in the second data read by the second device, so that the removed data obtained by the second device is consistent with the data transmitted by the first device.
The electronic device provided by the application executes first processing on received first data transmitted by first equipment, so that second equipment reads the obtained data after the first processing, and thus, the data transmission and data reading processes are performed. Through the first processing, data transmission defects, such as data reading byte loss caused by time delay, can be avoided, data read by the second device can be consistent with data transmitted by the first device, and the requirement of high-requirement communication equipment for data transmission is met.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In addition, it should be further noted that, in the embodiments described above, relational terms such as first, second and the like are only used for distinguishing one operation, unit or module from another operation, unit or module, and do not necessarily require or imply any actual relation or order between the units, the units or modules. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or system 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, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method or system that comprises the element.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (6)

1. A method of data transmission, comprising:
receiving first data transmitted by a first device;
performing first processing on the first data, wherein the first data subjected to the first processing is used for being provided for second equipment to be read, so that the data read by the second equipment is consistent with the data transmitted by the first equipment;
the first processing comprises byte statistical processing;
wherein the performing of the first processing on the first data comprises:
performing byte statistical processing on the first data to enable the byte statistical processed first data to be provided to a second device for reading, including: carrying out byte statistical processing on the first data to obtain second data; and controlling the second equipment to read the second data according to a preset byte reading length, so that the second data read by the second equipment is consistent with the data transmitted by the first equipment.
2. The method of claim 1, a data connection established between the first device and the second device through a bridge chip, wherein,
and the preset byte reading length is matched with the communication attribute of the bridge chip.
3. The method of claim 1, further comprising:
and sending control information to the first equipment, wherein the control information represents the data transmission length, so that the first equipment sends data according to the data transmission length.
4. The method of claim 1, the preset byte read length comprising a redundant byte length, the method further comprising:
and byte information corresponding to the redundant byte length in the second data read by the second equipment is removed, so that the removed data obtained by the second equipment is consistent with the data transmitted by the first equipment.
5. A data transmission apparatus comprising:
the receiving unit is used for receiving first data transmitted by first equipment;
the processing unit is used for carrying out first processing on the first data, wherein the first data subjected to the first processing is used for being provided for second equipment to be read, so that the data read by the second equipment is consistent with the data transmitted by the first equipment;
the first processing comprises byte statistical processing;
wherein the performing of the first processing on the first data comprises:
performing byte statistical processing on the first data to enable the byte statistical processed first data to be provided to a second device for reading, including: carrying out byte statistical processing on the first data to obtain second data; and controlling the second equipment to read the second data according to a preset byte reading length, so that the second data read by the second equipment is consistent with the data transmitted by the first equipment.
6. An electronic device, comprising: a memory and a controller;
the controller is used for receiving first data transmitted by first equipment; performing first processing on the first data, wherein the first data subjected to the first processing is used for being provided for second equipment to be read, so that the data read by the second equipment is consistent with the data transmitted by the first equipment;
the first processing comprises byte statistical processing;
wherein the performing of the first processing on the first data comprises:
performing byte statistical processing on the first data to enable the byte statistical processed first data to be provided to a second device for reading, including: carrying out byte statistical processing on the first data to obtain second data; and controlling the second equipment to read the second data according to a preset byte reading length, so that the second data read by the second equipment is consistent with the data transmitted by the first equipment.
CN201811426806.1A 2018-11-27 2018-11-27 Data transmission method and device and electronic equipment Active CN109327284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811426806.1A CN109327284B (en) 2018-11-27 2018-11-27 Data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811426806.1A CN109327284B (en) 2018-11-27 2018-11-27 Data transmission method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109327284A CN109327284A (en) 2019-02-12
CN109327284B true CN109327284B (en) 2021-04-13

Family

ID=65258626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811426806.1A Active CN109327284B (en) 2018-11-27 2018-11-27 Data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109327284B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367850B (en) * 2020-02-11 2021-06-04 国电南瑞科技股份有限公司 Rapid communication method between FPGA and MCU

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297205A (en) * 1999-11-19 2001-05-30 威盛电子股份有限公司 Peripherals interconnection bus compatible master controller and its judging device and method
CN102801593A (en) * 2012-02-23 2012-11-28 中国电力科学研究院 Field programmable gate array (FPGA) and advanced RISC machine (ARM)-based data transmission method and system
CN103092806A (en) * 2013-01-18 2013-05-08 青岛海信宽带多媒体技术有限公司 Data transmission method and data transmission system based on serial peripheral interface (SPI) data transmission timing sequences
CN103888375A (en) * 2012-12-19 2014-06-25 研祥智能科技股份有限公司 Communication method based on ARINC 429, device thereof and expansion interface
CN103885910A (en) * 2012-12-21 2014-06-25 国基电子(上海)有限公司 Method and system for multiple devices for IIC communication in main mode
CN106339345A (en) * 2016-08-30 2017-01-18 山东得普达电机股份有限公司 One host and multiple slave type communication device and communication method
CN107544934A (en) * 2017-09-07 2018-01-05 龙迅半导体(合肥)股份有限公司 The two-way signaling regulation chip and USB Type C cables of a kind of USB Type C cables

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9270579B2 (en) * 2012-04-27 2016-02-23 Cisco Technology, Inc. Synchronization of traffic multiplexing in link aggregation
US9684699B2 (en) * 2014-12-03 2017-06-20 Sas Institute Inc. System to convert semantic layer metadata to support database conversion
US9240069B1 (en) * 2015-06-30 2016-01-19 Ariadne's Thread (Usa), Inc. Low-latency virtual reality display system
US9997233B1 (en) * 2015-10-08 2018-06-12 Rambus Inc. Memory module with dynamic stripe width
US10529063B2 (en) * 2016-08-22 2020-01-07 Magic Leap, Inc. Virtual, augmented, and mixed reality systems and methods
CN206461661U (en) * 2016-12-30 2017-09-01 上嘉(天津)文化传播有限公司 A kind of VR video data control systems based on decentralised control

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297205A (en) * 1999-11-19 2001-05-30 威盛电子股份有限公司 Peripherals interconnection bus compatible master controller and its judging device and method
CN102801593A (en) * 2012-02-23 2012-11-28 中国电力科学研究院 Field programmable gate array (FPGA) and advanced RISC machine (ARM)-based data transmission method and system
CN103888375A (en) * 2012-12-19 2014-06-25 研祥智能科技股份有限公司 Communication method based on ARINC 429, device thereof and expansion interface
CN103885910A (en) * 2012-12-21 2014-06-25 国基电子(上海)有限公司 Method and system for multiple devices for IIC communication in main mode
CN103092806A (en) * 2013-01-18 2013-05-08 青岛海信宽带多媒体技术有限公司 Data transmission method and data transmission system based on serial peripheral interface (SPI) data transmission timing sequences
CN106339345A (en) * 2016-08-30 2017-01-18 山东得普达电机股份有限公司 One host and multiple slave type communication device and communication method
CN107544934A (en) * 2017-09-07 2018-01-05 龙迅半导体(合肥)股份有限公司 The two-way signaling regulation chip and USB Type C cables of a kind of USB Type C cables

Also Published As

Publication number Publication date
CN109327284A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
US10291482B2 (en) ECU for transmitting large data in HiL test environment, system including the same and method thereof
RU2596582C2 (en) Method and device for memory size adapted serial data transfer
EP1870817B1 (en) Information processing device and information processing method
CN104038450A (en) Message transmission method and apparatus based on PCIE bus
US7460531B2 (en) Method, system, and program for constructing a packet
CN111541521B (en) Data packet length identification method and system
US20060236001A1 (en) Direct memory access controller
CN113254375A (en) Data transmission method and device, electronic equipment and storage medium
CN109327284B (en) Data transmission method and device and electronic equipment
CN106533976B (en) data packet processing method and device
CN113852533B (en) Multi-channel data communication system and method and electronic equipment
US20190104077A1 (en) Managing data compression
US7822040B2 (en) Method for increasing network transmission efficiency by increasing a data updating rate of a memory
CN115794701A (en) BMC chip and method of DMA function virtual serial port
CN115550442A (en) Data packet transmission method and device, electronic equipment and storage medium
JP4212508B2 (en) Packet generator
CN115904488A (en) Data transmission method, system, device and equipment
CN111367494B (en) Serial data frame receiving method and device
KR20170108739A (en) Method and system for data transfer in a Non-Volatile Memory Express (NVMe) interface in Data Integrity Extension (DIX) mode
JP5804930B2 (en) Serial communication method, communication apparatus, and serial communication system
CN106940684A (en) A kind of method and device pressed than feature data
JP4567400B2 (en) Semiconductor integrated circuit emulator
CN111371799A (en) Method, device and equipment for controlling data transmission and reception of MCTP (Multi-channel media processing protocol) controller
CN114817100B (en) Data reading method and device for single board
US11240178B2 (en) Data transmission method and data transmission system

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