CN106302065B - A kind of data transmission method and device - Google Patents

A kind of data transmission method and device Download PDF

Info

Publication number
CN106302065B
CN106302065B CN201610905269.3A CN201610905269A CN106302065B CN 106302065 B CN106302065 B CN 106302065B CN 201610905269 A CN201610905269 A CN 201610905269A CN 106302065 B CN106302065 B CN 106302065B
Authority
CN
China
Prior art keywords
bus
data
transmission rate
time
message transmission
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
CN201610905269.3A
Other languages
Chinese (zh)
Other versions
CN106302065A (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.)
Huaya Microelectronics Shanghai Inc
Original Assignee
Huaya Microelectronics Shanghai Inc
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 Huaya Microelectronics Shanghai Inc filed Critical Huaya Microelectronics Shanghai Inc
Priority to CN201610905269.3A priority Critical patent/CN106302065B/en
Publication of CN106302065A publication Critical patent/CN106302065A/en
Application granted granted Critical
Publication of CN106302065B publication Critical patent/CN106302065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40143Bus networks involving priority mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40065Bandwidth and channel allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/4013Management of data rate on the bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the present invention provides a kind of data transmission method and device, is related to electronic technology field, and when being got congestion with solving existing bus, data transmission device bandwidth obtains insufficient problem.This method comprises: obtaining the message transmission rate of the first bus and the message transmission rate of the second bus in predetermined amount of time;When the message transmission rate of the first bus is greater than the message transmission rate of the second bus, command information is sent to the second bus, the command information is used to indicate the priority of the second bus improve data transfer device, and data are transmitted for data transmission device according to the priority after raising, the data-transmission mode of first bus is consumption patterns, and the data-transmission mode of the second bus is supply model.

Description

A kind of data transmission method and device
Technical field
The present invention relates to electronic technology field more particularly to a kind of data transmission methods and device.
Background technique
Data transmission set (such as: CPU (Chinese: central processing unit, English: Central Processing Unit), Low-speed peripheral UART (Chinese: universal asynchronous receiving-transmitting transmitter, English: Universal Asynchronous Receiver/ Transmitter) etc.) data interaction can be carried out with bus, to give the data forwarding in a bus to another bus.
Under normal circumstances, bus is when to hang over all data transmission set bandwidth allocations thereon, it will usually according to pre- First the priority level for the configuration of these data transmission sets is successively allocated from high to low, wherein bus is that data transmission is set The standby priority level configured is immutable in data transmission procedure.In this way, when bus gets congestion, due to bus according to Priority level order-assigned bandwidth, so that bus meets its demand bandwidth in the data transmission set distribution for high priority level In the case where, remaining bandwidth may not be able to meet the required bandwidth of the other equipment of high medium priority in bus, so that in this The other equipment of isopreference level is obtained less than enough bandwidth, and then causes the equipment that can not obtain satisfaction by the bandwidth of distribution The data of demand.
Summary of the invention
The data transmission method and device that the embodiment of the present invention provides, when being got congestion with solving existing bus, number Insufficient problem is obtained according to transmission device bandwidth.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of data transmission method, it is applied to data transmission device, described device connects at least two Bus, which comprises
Obtain the message transmission rate of the first bus and the message transmission rate of the second bus in predetermined amount of time;
When described first message transmission rate is greater than the message transmission rate of second bus, Xiang Suoshu second is total Line sends command information, and described instruction information is used to indicate the priority that second bus improves the data transmission device, And data are transmitted for the data transmission device according to the priority after raising;The data-transmission mode of first bus is to disappear Consumption mode, the data-transmission mode of second bus are supply model.
Second aspect, provides a kind of data transmission device, and the data transmission device connects at least two buses, the dress It sets and includes:
Module is obtained, is passed for obtaining the data of the message transmission rate of the first bus and the second bus in predetermined amount of time Defeated rate;
The message transmission rate of sending module, first bus for obtaining when the acquisition module is greater than described the When the message transmission rate of two lines bus, the second bus of Xiang Suoshu sends command information, and described instruction information is used to indicate described the Two lines bus improves the priority of the data transmission device, and is data transmission device transmission according to the priority after raising Data;The data-transmission mode of first bus is consumption patterns, and the data-transmission mode of second bus is supply mould Formula.
Data transmission method and device provided in an embodiment of the present invention are transmitted by obtaining in predetermined amount of time with the data The message transmission rate of the first connected bus of device and the data for the second bus being connected with the data transmission device transmit speed Rate, when the data-transmission mode of the first bus is consumption patterns, the data-transmission mode of the second bus is supply model, if this When the message transmission rate of one bus is greater than the message transmission rate of the second bus, i.e., when the second bus gets congestion, no normal direction When bandwidth needed for the data transmission device configures data transmission device transmission data, by sending instruction letter to the second bus Breath, to indicate that second bus improves the priority of the data transmission device, to be preferably data transmission device distribution band It is wide.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of structural schematic diagram of data transmission device provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of data transmission method provided in an embodiment of the present invention;
Fig. 3 is a kind of curve graph of the volume of transmitted data of first bus and the second bus provided in an embodiment of the present invention;
Fig. 4 is a kind of curve graph of the message transmission rate of first bus and the second bus provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another data transmission device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, data transmission device provided in an embodiment of the present invention and at least two buses (such as bus 1, bus 2) it is connected to, the data transmission device between multiple bus for carrying out data interaction.Illustratively, above-mentioned data transmission device Including but not limited to: video DMA (Chinese: direct memory access or direct memory access, English: Direct Memory The data storages such as Access), or the bridge module of the upper any bus of SOC.
The embodiment of the present invention provides a kind of data transmission method, as shown in Fig. 2, this method specifically comprises the following steps:
101, the message transmission rate of the first bus and the message transmission rate of the second bus in predetermined amount of time are obtained.
Wherein, the first above-mentioned bus and the second bus can be used to receive data from data transmission device, also can be used In to data transmission device send data.And above-mentioned predetermined amount of time can be a data transfer cycle.Illustratively, when When data transmission device in the embodiment of the present invention is the video DMA of smart television, above-mentioned predetermined amount of time can be configured For the transmission time of a width picture, specifically, the transmission time can detect field sync signal for the data transmission device (field sync signal for keep all signals to be transmitted in the same time) starts, to a secondary picture transfer finish when Between.
It should be noted that the first bus and the second bus in the present invention are used to receive data from data transmission device, It can also be used to send data to data transmission device, only represent the current data-transmission mode of the bus.
Illustratively, in the present embodiment, it before realizing step 101, needs to predefine and the data transmission device The data-transmission mode (that is: supply model or consumption patterns) of every bus of interconnection, i.e., before step 101, data transmission Device determines that constant current journey can also be implemented by the following steps really for the data-transmission mode of bus:
Data transfer direction in A1, determining at least two buses between every bus and data transmission device.
A2, the data transmission that every bus is determined according to the data transfer direction between every bus and data transmission device Mode.
Wherein, the data-transmission mode of above-mentioned bus includes supply model and consumption patterns.
Specifically, step A2 includes following content:
B1, when data transfer direction be bus arrive data transmission device, it is determined that the data-transmission mode of bus be supply Mode;Alternatively, when data transfer direction is data transmission device to bus, it is determined that the data-transmission mode of bus is consumption mould Formula.
Illustratively, when data transfer direction be bus to data transmission device, show the bus to data transmission device Send data, it is determined that the data-transmission mode of bus is supply model;When data transfer direction is data transmission device to always Line shows that the bus receives data from data transmission device, it is determined that the data-transmission mode of bus is consumption patterns.
Illustratively, if the data transmission device be DMA, and the DMA respectively with AXI (Chinese: expansion interface, English: Advanced eXtensible Interface) bus and Video IP bus (referred to as: Vbus bus) connection.Specifically, working as The data transfer direction (i.e. data-moving direction) of DMA be AXI bus arrive Vbus bus when, due to DMA to AXI bus generate read Operation reads data from the AXI bus, and generates write operation to Vbus bus, writes data into the Vbus bus, therefore, The data-transmission mode of AXI bus be supply model, Vbus bus data-transmission mode be consumption patterns;When the data of DMA Transmission direction (i.e. data-moving direction) be Vbus bus arrive AXI bus when, due to DMA to Vbus bus generation read operation, from Data are read in the Vbus bus, and write operation is generated to AXI bus, are write data into the AXI bus, therefore, AXI bus For data-transmission mode be consumption patterns, Vbus bus data-transmission mode be supply model.
Illustratively, step 101 includes following content:
C1, according to the volume of transmitted data of the first bus in predetermined amount of time and the duration of predetermined amount of time, determine first The message transmission rate of bus within a predetermined period of time, and according to the volume of transmitted data of the second bus in predetermined amount of time and in advance The duration for section of fixing time determines the message transmission rate of the second bus within a predetermined period of time.
Illustratively, the data transmission device in step C1 according to the volume of transmitted data of the bus in predetermined amount of time and The duration of predetermined amount of time specifically includes when determining the message transmission rate of the bus within a predetermined period of time: data transmission dress It sets and public affairs is calculated according to the volume of transmitted data of the bus in predetermined amount of time, the duration of predetermined amount of time and message transmission rate Formula determines the message transmission rate of the bus within a predetermined period of time.
Wherein, above-mentioned transmission rate calculation formula can be with are as follows:
Message transmission rate (△ T)=(volume of transmitted data (t)-volume of transmitted data (t- △ T))/△ T;(formula 1)
Wherein, △ T is for indicating predetermined amount of time, and message transmission rate (△ T) is for indicating the number in △ T time section According to transmission rate, t is current point in time, and volume of transmitted data (t) is used to indicate the total data transmission before current point in time t Amount, at the time point that t- △ T starts for the predetermined amount of time before current point in time, volume of transmitted data (t- △ T) is for indicating t- △ T corresponds to the total data transmission quantity before time point.
Illustratively, the volume of transmitted data of the bus in step C1 in predetermined amount of time can directly pass through volume of transmitted data Statistic device or module directly come out, it is not limited here.
Illustratively, the curve graph of the volume of transmitted data of the first bus as shown in Figure 3 and the second bus, when horizontal axis represents Between, the longitudinal axis represents volume of transmitted data.In general, the volume of transmitted data of the first bus is linear, and due to the complexity of SOC, The volume of transmitted data of second bus is often nonlinear, and therefore, in Fig. 3, curve 1 is used to indicate that the data of the second bus to pass The curve of throughput rate, curve 2 are used to indicate the curve of the volume of transmitted data of the first bus.Crosspoint (the i.e. t2 of curve 1 and curve 2 Time point point corresponding with t4 time point) indicate that the volume of transmitted data of the second bus of current point in time supply and the first bus consume Volume of transmitted data it is equal, further demonstrate that the supply and demand of the current point in time are in equilibrium state.
Illustratively, if data transmission device is DMA, AXI bus can be in the message transmission rate of predetermined amount of time It is indicated with function axi_rate (t), the message transmission rate of Vbus bus can be indicated with vbus_rate (t).For example, Determine message transmission rate according to formula as shown in formula 1, then:
The message transmission rate axi_rate (△ T) of AXI bus within a predetermined period of time are as follows:
Axi_rate (△ T)=(axi_data_amount (t)-axi_data_amount (t- △ T))/△ T;(formula 2)
The message transmission rate vbus_rate (△ T) of Vbus bus within a predetermined period of time are as follows:
Vbus_rate (△ T)=(vbus_data_amount (t)-vbus_data_amount (t- △ T))/△ T;It is (public Formula 3)
Wherein, function axi_data_amount (t) is used to indicate the volume of transmitted data of AXI bus, function vbus_data_ Amount (t) is used to indicate the volume of transmitted data of Vbus bus.
102, it when the message transmission rate of the first bus is greater than the message transmission rate of the second bus, is sent out to the second bus Send command information.
Wherein, above-mentioned command information is used to indicate the priority of the second bus improve data transfer device, and according to mentioning Priority after height is that data transmission device transmits data, which can be urgent signal;The first above-mentioned bus Data-transmission mode be consumption patterns, the data-transmission mode of the second above-mentioned bus is supply model.
Illustratively, when the message transmission rate of the first bus is greater than the message transmission rate of the second bus, i.e., second The volume of transmitted data of bus supply is unsatisfactory for the volume of transmitted data that the first bus needs to consume, and the volume of transmitted data of supply occurs not Foot, then data transmission device enters urgent state, and sends command information to the second bus, so that the second bus is according to reception To command information improve the priority of the data transmission device, so that delivery rate is promoted, so that the data transmission device can To get enough volumes of transmitted data.
It should be noted that when message transmission rate of the message transmission rate of the first bus less than the second bus, i.e., The volume of transmitted data of second bus supply can satisfy the volume of transmitted data that the second bus needs to consume, then cancel an order information. After command information revocation, the data transmission device in the second bus restores the priority level of default.In this way, bus is according to instruction The priority level of information update data transmission device so that data using more flexible, can both guarantee the number of oneself in this way According to demand, and the acquisition data of other data transmission devices are not influenced, be a kind of more flexible and efficient data transmission method.
For example, by taking DMA as an example, when the data transmission mould that the data-transmission mode of AXI bus is supply model, Vbus bus Formula is consumption patterns, if when vbus_rate (t) > axi_rate (t), DMA sends urgent signal to AXI bus, AXI is total Line promotes the priority of DMA, to increase the message transmission rate for sending data to DMA.
Further, data waste in order to prevent, and step 102 specifically includes following content:
D1, when the message transmission rate of the first bus is greater than the message transmission rate of the second bus, if second bus Message transmission rate is on a declining curve, then sends command information to the second bus.
Illustratively, due to when the message transmission rate of the first bus be greater than the second bus message transmission rate when, if The message transmission rate of second bus is in rising trend, then after a short period of time, which is data transmission device distribution Bandwidth just can satisfy the transmission demand of the data transmission device, and wave occurs in the volume of transmitted data of the second bus supply in order to prevent Take, when the message transmission rate of the second bus is in rising trend, cancel an order information, then in the message transmission rate of the second bus When in rising trend, which restores the priority of script, and cancel an order information can be revocation urgent signal.
Illustratively, the message transmission rate in the statistics available continuous time period of data transmission device, and be compared, if working as The message transmission rate of preceding period is less than the message transmission rate calculated the previous time, then can indicate that message transmission rate is presented The trend of liter.
Illustratively, by taking DMA as an example, when the data biography that the data-transmission mode of AXI bus is supply model, Vbus bus When defeated mode is consumption patterns, if vbus_rate (△ T)>axi_rate (△ T) and axi_rate (△ T)<axi_rate (t- △ T), then DMA sends urgent signal to AXI bus, so that AXI bus promotes the priority of DMA, sends out to increase to DMA Send the message transmission rate of data.
Illustratively, referring to the curve graph of the first bus shown in Fig. 4 and the volume of transmitted data of the second bus, wherein horizontal Axis represents the time, and the longitudinal axis represents message transmission rate, and the curve 3 in Fig. 4 is (the i.e. data of the second bus supply of curve 1 in Fig. 3 Transmission quantity curve) corresponding message transmission rate curve, curve 4 is (the i.e. data transmission of the first bus consumption of curve 2 in Fig. 3 Measure curve) corresponding message transmission rate curve.Referring to Fig. 4 it is found that curve 4 is parallel to horizontal axis, show the data of the first bus Transmission rate is that at the uniform velocity, and the message transmission rate of corresponding second bus of curve 3 is nonlinear, wherein under curve 3 The region area that side, transverse and longitudinal top and longitudinal axis right surround is the total data transmission quantity of the second bus supply, and under curve 4 The region area that side, horizontal axis top and longitudinal axis right surround is the total data transmission quantity that the first bus needs to consume.
Specifically, in rising trend in the corresponding time step curve 3 of 0-t1;In the case where the corresponding time step curve 3 of t1-t2 is in Drop trend;It is all located at the top of curve 4 in the corresponding time step curve 3 of 0-t2, therefore, the face of 4 top of 3 lower section of curve and curve Product S1 shows that the total data transmission quantity that the second bus supplies in the 0-t2 corresponding period is higher than the total data of the first bus consumption The volume of transmitted data of transmission quantity then shows that the volume of transmitted data supply of the second bus supply is sufficient;In the t2-t3 corresponding period Curve 3 is on a declining curve;It is in rising trend in the corresponding time step curve 3 of t3-t4;In the t2-t4 corresponding period, due to song Line 3 is all located at the lower section of curve 4, therefore the area S2 of 4 lower section of 3 top of curve and curve is in t2-t4 corresponding period the Volume of transmitted data of the total data transmission quantity of one curve consumption more than the total data transmission quantity of the second bus supply.
It should be noted that, although in certain period of time after wearing curve 4 (i.e. t2) under curve 3, when due to 0-t2 Between in section the total data transmission quantity of the second bus supply be higher than the consumption of the first bus total data transmission quantity part, can supplement The problem that the supply of the second bus in certain time after t2 is insufficient, still, this time is very short, in order to avoid subsequent the There is the insufficient phenomenon of supply suddenly in two lines bus, and the embodiment of the present invention is that be greater than second total in the message transmission rate of the first bus The message transmission rate of line, and the second bus message transmission rate it is on a declining curve when, just start to the second bus send refer to Information is enabled, to indicate that the second bus improves the priority of the data transmission device.
In addition, it should be noted that, indicating the supply and demand within the 0-t4 corresponding period when area S1 and S2 are equal in magnitude Balance.
The method of data provided in an embodiment of the present invention transmission, by obtain in predetermined amount of time with the data transmission device The message transmission rate of the message transmission rate of the first connected bus and the second bus being connected with the data transmission device, when The data-transmission mode of first bus is consumption patterns, and the data-transmission mode of the second bus is supply model, if this is first total When the message transmission rate of line is greater than the message transmission rate of the second bus, i.e., when the second bus gets congestion, no normal direction number When bandwidth needed for configuring data transmission device transmission data according to transmitting device, by sending command information to the second bus, Indicate that second bus improves the priority of the data transmission device, to be preferably data transmission device distribution data band It is wide.
The embodiment of the present invention provides a kind of data transmission device, as shown in figure 5, the data transmission device connects at least two Bus, the device 2 include: to obtain module 21 and sending module 22, in which:
Module 21 is obtained, for obtaining the data of the message transmission rate of the first bus and the second bus in predetermined amount of time Transmission rate;
Sending module 22, for being greater than the second bus when the message transmission rate for obtaining the first bus that module 21 obtains When message transmission rate, command information is sent to the second bus.
Wherein, which is used to indicate the priority of the second bus improve data transfer device, and according to raising after Priority be data transmission device transmit data;The data-transmission mode of the first above-mentioned bus is consumption patterns, above-mentioned The data-transmission mode of second bus is supply model.
Optionally, sending module 22 is specifically used for:
When the message transmission rate for obtaining the first bus that module obtains is greater than the message transmission rate of the second bus, and the When the message transmission rate of two lines bus is on a declining curve, command information is sent to the second bus.
Optionally, as shown in figure 5, the device further include: determining module 23, in which:
Determining module 23, for determine in data transmission device at least two buses every bus and data transmission device it Between data transfer direction;
Determining module 23 is also used to determine every according to the data transfer direction between every bus and data transmission device The data-transmission mode of bus;
Wherein, the data-transmission mode of above-mentioned bus includes supply model and consumption patterns.
Optionally, determining module 23 is specifically used for:
When data transfer direction is bus to data transmission device, it is determined that the data-transmission mode of bus is supply mould Formula;
When data transfer direction is data transmission device to bus, it is determined that the data-transmission mode of bus is consumption mould Formula.
Optionally, module 21 is obtained to be specifically used for:
According to the duration of the volume of transmitted data of the first bus in predetermined amount of time and predetermined amount of time, the first bus is determined Message transmission rate within a predetermined period of time, and according to the volume of transmitted data of the second bus in predetermined amount of time and pre- timing Between section duration, determine the message transmission rate of the second bus within a predetermined period of time.
Data transmission device provided in an embodiment of the present invention, by obtain predetermined amount of time in the data transmission device phase The message transmission rate of the first bus even and the message transmission rate for the second bus being connected with the data transmission device, when the The data-transmission mode of one bus is consumption patterns, and the data-transmission mode of the second bus is supply model, if first bus Message transmission rate when being greater than the message transmission rate of the second bus, i.e., when the second bus gets congestion, no normal direction data When bandwidth needed for transmitting device configures data transmission device transmission data, by sending command information to the second bus, come Indicate that second bus improves the priority of the data transmission device, to be preferably the data transmission device bandwidth allocation.
It should be noted that each step can lead in above-mentioned method flow as shown in Figure 2 during specific implementation The processor for crossing example, in hardware executes the computer executed instructions realization of the software form stored in memory, to avoid repeating, Details are not described herein again.And program corresponding to movement performed by above-mentioned apparatus can be stored in the device in a software form In memory, the corresponding operation of the above modules is executed in order to which processor calls.
Memory above may include volatile memory (volatile memory), such as random access memory Device (random-access memory, RAM);It also may include nonvolatile memory (non-volatile memory), example Such as read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk (hard disk Drive, HDD) or solid state hard disk (solid-state drive, SSD);It can also include the combination of the memory of mentioned kind.
Processor in device presented above can be a processor, be also possible to the system of multiple processing elements Claim.For example, processor can be central processing unit (central processing unit, CPU;It may be other general places Manage device, digital signal processor (digital signal processing, DSP), specific integrated circuit (application Specific integrated circuit, ASIC), field programmable gate array (field-programmable gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components etc..It is logical It can be microprocessor with processor or the processor be also possible to any conventional processor etc.;It can also be dedicated processes Device, the application specific processor may include at least one of baseband processing chip, radio frequency processing chip etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description It with the specific work process of module, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of data transmission method, which is characterized in that be applied to data transmission device, the data transmission device connection is at least Two buses, which comprises
Obtain the message transmission rate of the first bus and the message transmission rate of the second bus in predetermined amount of time;
When the message transmission rate of first bus is greater than the message transmission rate of second bus, Xiang Suoshu second is total Line sends command information, and described instruction information is used to indicate the priority that second bus improves the data transmission device, And data are transmitted for the data transmission device according to the priority after raising;The data-transmission mode of first bus is to disappear Consumption mode, the data-transmission mode of second bus are supply model;
Wherein, the consumption patterns are the bus from data transmission device reception data, and the supply model is described Bus sends data to the data transmission device.
2. the method according to claim 1, wherein described when the message transmission rate of first bus is greater than When the message transmission rate of second bus, the second bus of Xiang Suoshu sends command information and specifically includes:
When the message transmission rate of first bus is greater than the message transmission rate of second bus, and second bus Message transmission rate it is on a declining curve when, the second bus of Xiang Suoshu send command information.
3. method according to claim 1 or 2, which is characterized in that the number for obtaining the first bus in predetermined amount of time According to before the message transmission rate of transmission rate and the second bus, the method also includes:
Determine the data transfer direction at least two buses between every bus and the data transmission device;
The number of every bus is determined according to the data transfer direction between every bus and the data transmission device According to transmission mode;The data-transmission mode of the bus includes supply model and consumption patterns.
4. according to the method described in claim 3, it is characterized in that, described fill according to every bus and data transmission Data transfer direction between setting determines that the data-transmission mode of every bus specifically includes:
When data transfer direction is bus to data transmission device, it is determined that the data-transmission mode of the bus is supply mould Formula;
When data transfer direction is data transmission device to bus, it is determined that the data-transmission mode of the bus is consumption mould Formula.
5. the method according to claim 1, wherein the data for obtaining the first bus in predetermined amount of time pass The message transmission rate of defeated rate and the second bus specifically includes:
According to the duration of the volume of transmitted data of first bus in the predetermined amount of time and the predetermined amount of time, determine Message transmission rate of first bus in the predetermined amount of time, and according to described second in the predetermined amount of time The duration of the volume of transmitted data of bus and the predetermined amount of time determines number of second bus in the predetermined amount of time According to transmission rate.
6. a kind of data transmission device, which is characterized in that described device connects at least two buses, described device and includes:
Module is obtained, for obtaining the data of the message transmission rate of the first bus and the second bus transmission speed in predetermined amount of time Rate;
Sending module, it is total that the message transmission rate of first bus for obtaining when the acquisition module is greater than described second When the message transmission rate of line, the second bus of Xiang Suoshu sends command information, and it is total that described instruction information is used to indicate described second Line improves the priority of the data transmission device, and is that the data transmission device transmits number according to the priority after raising According to;The data-transmission mode of first bus is consumption patterns, and the data-transmission mode of second bus is supply model;
Wherein, the consumption patterns are the bus from data transmission device reception data, and the supply model is described Bus sends data to the data transmission device.
7. device according to claim 6, which is characterized in that the sending module is specifically used for:
When the message transmission rate for first bus that the acquisition module obtains is greater than described in acquisition module acquisition The message transmission rate of second bus, and second bus message transmission rate it is on a declining curve when, Xiang Suoshu second is total Line sends command information.
8. device according to claim 6 or 7, which is characterized in that described device further include:
Determining module, for determining every bus and the data transmission device in the data transmission device at least two buses Between data transfer direction;
The determining module is also used to true according to the data transfer direction between every bus and the data transmission device The data-transmission mode of fixed every bus;The data-transmission mode of the bus includes supply model and consumption patterns.
9. device according to claim 8, which is characterized in that the determining module is specifically used for:
When data transfer direction is bus to data transmission device, it is determined that the data-transmission mode of the bus is supply mould Formula;
When data transfer direction is data transmission device to bus, it is determined that the data-transmission mode of the bus is consumption mould Formula.
10. device according to claim 6, which is characterized in that the acquisition module is specifically used for:
According to the duration of the volume of transmitted data of first bus in the predetermined amount of time and the predetermined amount of time, determine Message transmission rate of first bus in the predetermined amount of time, and according to described second in the predetermined amount of time The duration of the volume of transmitted data of bus and the predetermined amount of time determines number of second bus in the predetermined amount of time According to transmission rate.
CN201610905269.3A 2016-10-17 2016-10-17 A kind of data transmission method and device Active CN106302065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610905269.3A CN106302065B (en) 2016-10-17 2016-10-17 A kind of data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610905269.3A CN106302065B (en) 2016-10-17 2016-10-17 A kind of data transmission method and device

Publications (2)

Publication Number Publication Date
CN106302065A CN106302065A (en) 2017-01-04
CN106302065B true CN106302065B (en) 2019-09-20

Family

ID=57719062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610905269.3A Active CN106302065B (en) 2016-10-17 2016-10-17 A kind of data transmission method and device

Country Status (1)

Country Link
CN (1) CN106302065B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162694B (en) * 2020-09-09 2024-05-07 合肥中科君达视界技术股份有限公司 Data transmission speed control method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4396979A (en) * 1980-05-30 1983-08-02 Fairchild Camera & Instrument Corporation Microprocessor with improved arithmetic logic unit data path
CN1968195A (en) * 2006-05-29 2007-05-23 华为技术有限公司 Communication system scheduling method
CN102333350A (en) * 2011-10-19 2012-01-25 华为技术有限公司 Method, device and system for improving experiences of low-traffic user
CN102509136A (en) * 2011-11-16 2012-06-20 哈尔滨工程大学 Multi-microcontroller radio frequency identification read-write device and data transmission method thereof
CN103347071A (en) * 2013-06-28 2013-10-09 深圳市金立通信设备有限公司 MIPI data transmission control method and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4396979A (en) * 1980-05-30 1983-08-02 Fairchild Camera & Instrument Corporation Microprocessor with improved arithmetic logic unit data path
CN1968195A (en) * 2006-05-29 2007-05-23 华为技术有限公司 Communication system scheduling method
CN102333350A (en) * 2011-10-19 2012-01-25 华为技术有限公司 Method, device and system for improving experiences of low-traffic user
CN102509136A (en) * 2011-11-16 2012-06-20 哈尔滨工程大学 Multi-microcontroller radio frequency identification read-write device and data transmission method thereof
CN103347071A (en) * 2013-06-28 2013-10-09 深圳市金立通信设备有限公司 MIPI data transmission control method and electronic device

Also Published As

Publication number Publication date
CN106302065A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN104380780B (en) Transmission method and communication equipment
US20120311211A1 (en) Method and system for controlling inter-integrated circuit (i2c) bus
US8972646B2 (en) Superspeed inter-chip interface
CN103970710B (en) Adaptive service controller, system on chip and the method for controlling it
CN104322033A (en) Controlling a physical link of a first protocol using an extended capability structure of a second protocol
CN108027792B (en) Unified system and method for inter-chip and intra-chip node communication
CN108141882A (en) The adjustment of the data flow and contention window parameter with different priorities in system competition-based
TW201841530A (en) System and method of sending data via additional secondary data lines on a bus
US20190317911A1 (en) General purpose input output triggered interface message
CN110011714A (en) Signal acceptance method, sending method, user equipment and the network equipment
RU2545187C1 (en) Method and apparatus for implementing baseband resource pool in lte base station
CN111026697A (en) Inter-core communication method, inter-core communication system, electronic device and electronic equipment
CN108513361A (en) channel access method, device and storage medium
CN109474995B (en) Wireless communication method and device
CN106302065B (en) A kind of data transmission method and device
CN105701038A (en) Cascade chip starting method and related device
EP3106995B1 (en) Techniques for providing data rate changes
CN108810975A (en) The method and apparatus for being used for transmission buffer status report
EP3298760A1 (en) Quality of service for a universal serial bus
CN113312284A (en) Data transmission method, device, system, storage medium and electronic device
CN102742203B (en) Method, device and system for transmitting data in coaxial network
CN109857192A (en) A kind of signal processing method, device, system, equipment and readable storage medium storing program for executing
CN110392417A (en) Power consumption management method, terminal, computer equipment and storage medium
CN107005991B (en) Transmission method, terminal device, base station and the communication system of upstream data packet
CN111769859B (en) Method and equipment for reporting Channel State Information (CSI)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant