Data flow control method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorBo Zhang
Life of this patent
Estimating the term…
Abstract
This application discloses a data flow control method and apparatus. The method includes: calculating, by a device when a clock signal arrives, a quantity of transition-minimized differential signaling (TMDS) characters currently stored in a buffer of the device; and outputting, by the device, the TMDS character in the buffer when the quantity of TMDS characters currently stored in the buffer reaches a preset value, or outputting a gap data packet when the quantity of TMDS characters currently stored in the buffer does not reach a preset value, where the preset value is less than or equal to a TMDS character storage capacity of the buffer.
Claims21
A method, comprising:
- calculating, by a device when a clock signal arrives, a quantity of transition-minimized differential signaling (TMDS) characters currently stored in a buffer of the device;
- and
- in response to calculating the quantity of TMDS characters currently stored in the buffer:
- outputting, by the device, a TMDS character in the buffer when the quantity of TMDS characters currently stored in the buffer is at least a preset value, wherein the preset value is less than or equal to a TMDS character storage capacity of the buffer;
- and
- outputting a gap data packet when the quantity of TMDS characters currently stored in the buffer is less than the preset value.
An apparatus, comprising:
- a buffer configured to store a transition-minimized differential signaling (TMDS) character;
- and
- at least one processor configured to:
- when a clock signal arrives, calculate a quantity of TMDS characters currently stored in the buffer;
- and
- in response to calculating the quantity of TMDS characters currently stored in the buffer:
- output a TMDS character in the buffer when the quantity of TMDS characters currently stored in the buffer is at least a preset value, wherein the preset value is less than or equal to a TMDS character storage capacity of the buffer;
- and
- output a gap data packet when the quantity of TMDS characters currently stored in the buffer is less than the preset value.
A device, comprising:
- a memory configured to store a computer execution instruction;
- a communications interface;
- and
- at least one processor connected to the memory and the communications interface by a bus, the at least one processor is configured to execute the computer execution instruction stored in the memory, to perform the following operations:
- when a clock signal arrives, calculating a quantity of transition-minimized differential signaling (TMDS) characters currently stored in a buffer of the device;
- and
- in response to calculating the quantity of TMDS characters currently stored in the buffer:
- outputting a TMDS character in the buffer when the quantity of TMDS characters currently stored in the buffer is at least a preset value, the preset value is less than or equal to a TMDS character storage capacity of the buffer;
- and
- outputting a gap cap data packet when the quantity of TMDS characters currently stored in the buffer is less than the preset value.
A device, comprising:
- a buffer configured to store a transition-minimized differential signaling (TMDS) character;
- a TMDS character counter configured to:
- record a quantity of TMDS characters input to or output from the buffer;
- and
- send the quantity of TMDS characters recorded by the TMDS character counter to a controller;
- the controller, wherein the controller is configured to:
- when a clock signal arrives, calculate, according to the quantity of TMDS characters recorded by the TMDS character counter, a quantity of TMDS characters currently stored in the buffer;
- in response to calculating the quantity of TMDS characters currently stored in the buffer:
- send a first control signal to a multiplexer when the quantity of TMDS characters currently stored in the buffer is at least a preset value;
- and
- send a second control signal to the multiplexer when the quantity of TMDS characters currently stored in the buffer is less than the preset value;
- the multiplexer, wherein the multiplexer is configured to:
- in response to receiving the first control signal from the controller, output the TMDS character in the buffer;
- or
- in response to receiving the second control signal from the controller, output a gap data packet;
- and
- a gap data packet generator configured to generate the gap data packet.
Dependencies are inferred from the claim text.